The third circuit in the Arduino Inventor’s Guide uses current flowing through a P2N222AG transistor to spin a motor.
Kit:
- 1 x Arduino Duemilanove
- 1 x Breadboard
- 1 x P2N2222AG transistor
- 1 x Toy Motor
- 1 x 1N4001 Diode
- 1 x 10k Ohm Resistor (Brown-Black-Orange)
- 6 x wire
Additional Resources:
Despite the fact that this is a simple circuit to build, I just haven’t been able to get it to work. It has been rebuilt several times, using different wires, 10k Ohm resistor and a different P2N222AG transistor. I suspect I might have a defective diode or faulty wiring for the motor. I am unable to verify this as I only have one of each. Hopefully others are able to have more success with this circuit than I did. I will update this post if I finally get it working.

{ 2 } Comments
You need to use a 2.2k Ohm Resistor in place of the 10k Resistor.
I did not have a 2.2k resistor, so I used a 330k resistor, which worked as well.
Also, my computer’s USB drive ran the motor very slow. Just not enough power from the USB. So I add external power to the Arduino board and the motor ran as expected, much faster than just the power from the USB.
I was able to get the example to work once I realized that I had the wrong transistor. In the Sparkfun Inventor’s Kit there are 3 transistors. Of course I picked the one that was not the P2N2222AG……doh! Everything worked as listed in the example, including the 10k resistor. I only used USB power and it seemed to be “fast”, but I can’t say I had any way to measure it!
Post a Comment