Drive a DC Motor With Arduino DUE
This example shows the simplest thing you can do with an Arduino Due and an Arduino Motor Shield, driving a DC motor in forward and backward directions.
- Arduino Due
- Arduino Motor Shield
- DC motor
- Wall wart power supply
To build the circuit you need to mount the Arduino Motor Shield on top of the Arduino Due. Then you have to connect the two wires that comes out of the DC motor to the screw drivers terminals of the Motor Shield channel A. Last thing connect your wall wart power supply adapter to the DC connector of the Arduino Due. You must choose it respecting the voltage requirements of your DC motor. With the fan that we used in this example we provided 12V to the board.
Then plug your Arduino board into your computer, start the Arduino IDE 1.5, and enter the code below.
Arduino Due, Motor Shield and fan connected together
For more detail: Drive a DC Motor With Arduino DUE
JLCPCB – Prototype 10 PCBs for $2 + 2 days Lead Time
China’s Largest PCB Prototype Enterprise, 300,000+ Customers & 10,000+ Online Orders Per Day
Inside a huge PCB factory: https://www.youtube.com/watch?v=_XCznQFV-Mw