Driving a DC Motor
It is now time to move onto controlling a DC motor. If you ever plan on building a robot or any device that requires the use of a motor, then the skills you are about to learn will be essential. Driving a motor requires currents higher than the Arduino can safely provide from its outputs, so we will need to make use of transistors and diodes to ensure that we have enough current for the motor and diodes for protection of the Arduino.
The hardware overview will explain how these work. For our first project, we will control a motor using a very simple method and will then go on to use the very popular L293D Motor Driver ...