How to Drive a DC Motor With Transistor - Arduino Tutorial
To drive a DC motor you need a larger amount of current than Arduino board can give. For that reason you must use a transistor. Transistors have limits and maximum specs, just be sure those values are enough for your use.The transistor we are using for this tutorial is P2N2222A and is rated at 40V and 200mA, it just perfect for one toy dc motor.Note: If your motor needs more current than 200mA you can just buy another transistor (ask the staff in the electronics store). The connections below...