I have a 2N2222 transistor that I plan to use with an Arduino Uno. My question is how much current can this transistor handle at it's base?
Electronic – 2N2222 Base Current Maximum Tolerance
currenttransistors
Related Solutions
The TIP120 does not need 120mA at the base for normal operation, that's the absolute maximum rating, above which you don't want to go.
The spec you are mostly interested in is the hFE (current gain), which for a darlington is very high, since it's two transistors connected in a way so the current gains multiply.
For the TIP120 it's given as minimum 1,000 (compare with a typical 200 for a single bipolar transistor)
Also important are the max collector current (5A) and the collector emitter voltage (60V)
The main disadvantages are that the base-emitter voltage is doubled compared to a single transistor (~1.4V), and the saturation voltage is higher (typically ~0.8V compared to ~0.2V at low currents)
These points are rarely a problem for a simple switch driven from a micro pin. At higher collector-emitter currents though, the Vsat rises and can interfere with desired operation and cause problems with dissipation.
For example, in the TIP120 datasheet note that at 3A Ice, Vsat is given as 2V, but at 5A it has risen to 4V. That's 20W of dissipation, a lot to heat to try and get rid of to keep the temperature down. So when switching a large current you need to take these factors into account, and maybe decide to look at a more suitable part (e.g. logic level, low Rsdon power MOSFET)
Since we have a gain of 1000, we hardly have to draw anything from the micro pin. Let's say we want to switch 1 Amp:
1A / 1000 = 1mA into the base needed.
If we have a drive voltage of 5V, then we subtract the Vbe from the drive voltage and divide by the current:
(5V - 1.4V) / 1mA = 3.6k resistor. To give it a bit of leeway select something a bit smaller like 2.2k. This still only draws ~1.6mA.
I wouldn't read too much into the different prices - the price of components is often dictated by how popular they are, the more they sell the less they cost. If you see better specs at a cheaper price, go for it ;-)
You can some pretty odd prices when the component is scarce/new/obsolete - I saw a 10uF ceramic capacitor priced at £7.50 (qty 1) on Farnell the other week...
One, that switch does not directly control the motor. It's most likely a few mA at best, as it signals a microcontroller inside the cdrom to open/close the tray.
Two, what you are looking for is simple ohms law. Resistor = (Source Voltage - The Transistor Base/Emitter Drop) / Current Required in Amps. Since the hFE or current multiplication ability of the TIP120 is 1000, so roughly it will allow 1000 times the base current at the collector, any amount of current should be good at the base. Let's just use 5mA. The Base/Emitter drop is 1.25V minimum, as there are two transistor diodes.
Resistor = (5v - 1.25V) / 0.005A or 3.75V / 0.005A = 750Ω or close.
Update To further answer the question, you calculate the base resistor within the safe range of your source (Arduino, 40mA per pin, 200mA total at any given time). The unknown collector current in this case would be minimal for a button. For actual loads like a motor, you could simply max out the transistor by saturating it, giving the base transistor as much current as possible. In this case, you would have to have multiple arduino pins in parallel since the TIP120 base limit is 120mA and the Arduino is 40mA per pin. This is not ideal because you don't know the current at C-E or the amount of voltage it will drop.
The best answer is that you DONT. A proper design will find out how much current will be at the collector. Use a ammeter or multimeter in current mode to find out.
Best Answer
The Fairchild PN2222 data sheet says the base-emitter saturation voltage is 2V with a collector current of 500mA and a base current of 50mA. This is for a small duty cycle of 2% with the pulse width less than 300us.
I guess this means the base could take 50mA but how long could it take it for is a bit of a guess really.
If we look at the wattages, 50mA x 2V = 100mW and with collector-emitter saturating at 1V for Ic = 500mA we get 500mW. That's 600mW in total and pretty close to the absolute max rating of 625mW.
You could argue that if the collector current were limited to somewhat less than 500mA the overall power disippation would be less and maybe the 50mA is sustainable indefinitely.
Multicomp's 2N2222 data sheet quotes min H\$_{FE}\$ of 30 at a collector current of 500mA and this implies a base current of 16.67mA. The same data sheet also quotes 50mA base current when specifying base-emitter saturation voltage. It also has the same caviats on duty cycle and pulse width as Fairchild.
It looks like ON semi's data sheet has a nice graph on page 4 (figure 4) that gives a bit more detail.
My personal conclusion - don't run the base current continuously at more than 20mA - this is based on gut feeling and the data I've seen.