Arduino Circuits

Dual Motor Driver Direction and Speed Control

Use a dual motor driver board to control the direction and speed of two DC motors from an Arduino.

22 November 20265 min read
Dual motor driver circuit with two DC motors, a driver board and an Arduino on a breadboard
Breadboard layout, components and jumper connections of the Dual Motor Driver circuit.

Interactive circuit guide

Run the simulation, follow the build steps one by one and try it in our real app.

Real screenshot of our circuit simulator Stopped
Open in our app →

Step-by-step build

What is it for?

In this project a dual motor driver board turns the low-current control signals from an Arduino into two separate motor channels. The driver input pins set the direction and the enable pin sets the speed with PWM. Each motor connects to the driver outputs and motor power comes from the driver separate supply terminal. The Arduino produces only control signals; motor current never passes through Arduino pins. The driver ground, the negative terminal of the motor supply and the Arduino GND must meet at one common point, otherwise the control signals have no reference. In the diagram the eight driver pins are used for control inputs, two motor outputs, power input and ground; the remaining output and enable terminals are explained in the layout notes. A green LED and a 220 ohm resistor show that the enable signal is present.

Parts list

The following components are used to build this project:

  • Arduino Uno × 1 — Generates the direction and PWM speed signals.
  • Dual motor driver board × 1 — Drives two independent motor channels.
  • DC motor × 2 — The driven loads.
  • 12V motor supply × 1 — Separate power source for the motors.
  • 220 Ω resistor × 1 — Limits the LED current.
  • Green LED × 1 — Shows the enable state.
  • Ground connection × 1 — Common reference for the driver, supply and Arduino.

Build it step by step

  1. Place the Arduino, driver board and two motors; connect GND to the ground rail.Tip: set up the common ground first.
  2. Connect the 12V supply positive to both motor positive terminals.Tip: never take motor power from the Arduino.
  3. Connect the motor negative terminals to the two separate driver outputs.Tip: each motor should go to its own channel.
  4. Connect the driver ground, supply negative and Arduino GND to the common ground.Tip: all three ground terminals must meet at one point.
  5. Connect the four direction pins to Arduino digital pins and the PWM pin to the driver enable input.Tip: if the channels are swapped the motors turn the wrong way.
  6. Add the 220 Ω resistor and green LED in series on the enable branch and upload the code.Tip: if the LED stays dark the enable pin may be LOW.

How it works

Each channel of a dual motor driver board contains an H-bridge circuit. The logic state of the two direction inputs decides which transistor pair conducts, reversing the motor direction. The PWM signal at the enable input sets the average power of the channel and therefore the speed. The logic side runs on the Arduino 5V signals and the power side on a separate 12V supply. If the grounds of these two sides are not commoned, the logic signal has no reference and the driver switches at random. The LED and series resistor provide a simple check that the enable line is driven correctly.

Layout tip: the Arduino is on the left, the driver in the middle and the two motors on the right. The 12V supply positive goes to both motor positives; driver ground, supply negative and Arduino GND share one row. The LED and 220 ohm resistor sit in series on the enable branch.

What you learn

  • Explains the logic of reversing direction with an H-bridge.
  • Drives two motors on independent channels.
  • Knows the distinction between power and logic supplies.
  • Explains the role of a common ground in signal integrity.

Tips

  • Separate the channel wires by colour.
  • Check the polarity of the supply terminals.
  • Both motors starting at once can strain the supply.
  • An LED connected without a series resistor will fail.

Try it yourself

  • Drive two motors separately: Run motor A and motor B at different speeds. Each motor is controlled independently on its own channel.
  • Reverse direction: Change the logic of the direction pins to reverse a motor. The motor direction changes with the direction command.

Getting the parts

If you want to build this project in real life, you can get the parts from hobidevre.com.

Frequently asked questions

What is this circuit for?

It uses a dual motor driver board to control the direction and speed of two DC motors independently from an Arduino.

How does the circuit work?

Each driver channel has an H-bridge. Two direction inputs select the conducting transistor pair, and PWM on the enable input sets the speed. Logic runs on 5V and motors on a separate 12V supply, with all grounds commoned.

What is the expected result?

Both motors run independently in the chosen direction at PWM-set speeds, with a shared ground and a separate motor supply.

You may also like

Try the circuit in the simulator

Open the schematic in the browser, inspect the connections and follow the steps.