How do I use this motor with my Arduino?

I have tried searching, and I cannot find anything understandable to an Arduino beginner on how to use the Pololu Dual DC Motor Driver ( with a Tamiya 70097 Twin-Motor Gearbox ( Okay, so I have the following things that I understood should be used to make this work: -Arduino Uno -DRV8833 Dual Motor Driver Carrier ( -Tamiya 70097 Twin-Motor Gearbox Kit, which I already put together ( -170-Point Breadboard -0.1" (2.54mm) Crimp Connector Housing: 1x1-Pin 25-Pack ( -Wires with Pre-crimped Terminals 10-Pack M-F 6" ( -Break Away Headers - Long and Straight 10 pack (

Please help me with this. Thanks in advance! :)

Your Arduino Uno, DRV8833 Motor Driver, Gearbox Kit will work together. But I can't find example code of someone who has used it with the Arduino. Not even in the forum of Pololu. So you have to find your own way how to do this. Read the datasheet of the DVR8833, try to understand figure 1 and table 2. Start for example only with fast decay, you can always add slow decay later on.

Pololu recommends to use the 'stall-detector'. This is a current limiter, which is disabled by default on the DRV8833 board. But that's for later.

Connect one motor to the output A1 and A2 of the DRV8833 board. For example the '+' of the motor to A1 and '-' of motor to A2. Connect the other motor to output B1 and B2. Use the same as for the other motor, so the '+' of the motor to B1 and the '-' of the motor to B2. The inputs are inputs for the full H-bridge. Connect the input signals of the DRV8833 board to the Arduino. Digital pin 0 and 1 are used for serial communication, so you could use 2,3,4,5 or other digital pins. Also connect the ground and motor power, as shown in the picture at the Pololu page.

Set the pins of the Arduino to output: If a pin needs to be zero, use: If a pin needs to be a PWM signal, use:

If you are a beginner, you should use those functions first to blink a led (pin 13 of the Arduino Uno is a led), and to dim a led with the analogWrite function. So you know how to use them, and what thay do.

Sorry but what does "Connect the input signals" mean?

Looks like you have 2 tables in the Driver Chip spec that tell you how the motor will be controlled. Assume you are driving Motor A and Motor B and that both motors are wired the same.

Driving Ain1 and Bin1 both High while Ain2 and Bin2 stay Low, then both motors will go forward. If Ain1 and Bin1 are driven from PWM pins, then the forward speed can be controlled, and not just On/Off.

Similarly, to go in Reverse, Ain2 will be High and Ain1 will be held Low. If moving and you want to slow down, you have choices to slow down slowly or quickly. The control signals are all in the tables on page 8.

RobotEsach: Sorry but what does "Connect the input signals" mean?

The DRV8833 board has 'input' and 'output' pins. I ment that the 'input' pins should be connected to the Arduino.

Okay, here's what I did that didn't work. Can you tell me exactly which connections I need to make? (ie digital 8 to ain1, etc.) Here's the code I tried to use. Should this work?

void setup()
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);

void loop()
  digitalWrite(8, LOW);
  digitalWrite(9, HIGH);

What do you have connected up? Power to Vin, Gnd? D8, D9 to Ain1, Ain2? Motor to Aout1, Aout2?

“Power to Vin, Gnd?”
What’s this used for and why is it necessary?

They are needed for the H-Bridge to control the power to the motors based on the Ain1/Ain2 and Bin1/Bin2 inputs.

I am thinking this project may be beyond your capability at the moment.

CrossRoads: ...I am thinking this project may be beyond your capability at the moment.

But if you upload a photo (so we can see how it is connected) and if you can get someone to help you, you should be able to make the motor run in both directions.