Hello, I am extremely new to Arduino; this is the first time I am using one. I am using the Uno R3. I want to control the speed of a DC motor through the arduino, but it is not working for some reason. I am using the TB6612FNG motor driver from Pololu. Here is its pinout.
My circuit looks like this, with the red motor driver in the middle being the TB6612FNG:
I am unsure what you mean by connecting the Uno to my computer. I used an AB USB cable to connect the USB connector on the arduino to a USB port on my laptop, and then uploaded the sketch.
I connected an AB USB cable to the USB connector on the Arduino(gray metal thing just below reset button on the arduino in the diagram) and attached the other end of the cable to my laptop. I ran the sketch by pressing the upload button, but the motor is still not working. I know the battery has power and the motor works because I tested them using only the battery, the motor, and two wires.