# Can we use D.C motor with 2n2222 transistor and arduino uno?

I have Arduino Uno and I want to switch on or off a D.C motor with 2n2222 transistor using external power supply from 9V battery. Is this possible with 2n2222 transistor?

I saw this tutorial which uses a TIP120 transistor but I don't have one.

It depends on the current requirement of your motor. Do you have a spec sheet you can link to? .

The 2n2222 is rated for 500mA, so if the motor requires less than that you should be OK. It's always a good idea to derate transistors (especially without a heatsink) so 200mA is a more reasonable limit. Worst case you'll burn-up the transistor (you won't hurt the Arduino or the motor as long as it's wired correctly with a resistor in series with the transistor base).

Yes, will work with 2n2222. How much current does your motor need? With 20mA into the base, you should get ~200mA of current flow. The Arduino can't drive 50mA into the base to achieve 500mA of current thru collector to emitter.

AOI514 or AOI510 will work much better. More current flow, less power wasted in the transistor. Rds is very low, so the motor will be the current limiter and not the transistor, which can act simply as a switch. http://www.digikey.com/product-detail/en/alpha-omega-semiconductor-inc/AOI510/785-1487-1-ND/3603498 http://www.digikey.com/product-search/en?keywords=aoi514

Yes, will work with 2n2222. How much current does your motor need? With 20mA into the base, you should get ~200mA of current flow. The Arduino can't drive 50mA into the base to achieve 500mA of current thru collector to emitter.

I feel I have to disagree.

I think the need for 50mA at the base for 500mA output is a bit high.

The current for my motor is 200mA I suppose. It's the motor you get in starter kits.

CrossRoads: Yes, will work with 2n2222. How much current does your motor need? With 20mA into the base, you should get ~200mA of current flow. The Arduino can't drive 50mA into the base to achieve 500mA of current thru collector to emitter.

AOI514 or AOI510 will work much better. More current flow, less power wasted in the transistor. Rds is very low, so the motor will be the current limiter and not the transistor, which can act simply as a switch. http://www.digikey.com/product-detail/en/alpha-omega-semiconductor-inc/AOI510/785-1487-1-ND/3603498 http://www.digikey.com/product-search/en?keywords=aoi514

Its a 200mA motor. Should I use a resistor in any way??

Wilson28300: Its a 200mA motor. Should I use a resistor in any way??

Yes, 180 ohm in series with the base of the transistor.

Russell.

And a fly-back diode over the motor.

Note that the PN2222A has a current rating of 1.0 Amp. Digi-Key. Minimum hFE is 35.

Base resistor of 180Ω (as suggested) is good. I wouldn’t go higher than 220Ω.