Hero999, Ian and Jefrey, thank you all.
Because I have already designed the PCB for a TO-92 transistor, I think I'll stick to the 2N2222 and replace the 100ohm resistor for a 1k resistor.
Here's how I thought (this is the Beginners forum, so if you see a mistake please say so so I can learn!):
The only Min/Max pair of Current Gain displayed in the 2N2222 datasheet is on page 4, with the values I
C = 150 mA; V
CE = 10 V; Min = 100; Max = 300.
Bellow we can read that at I
C = 500 mA and V
CE = 10 V, the minimum Gain is 30. Because of the previous min/max gives us a relation of Max=3*Min, we apply the same to our value, so the maximum gain at 500mA is 90.
That means that the current in the base has to be 500mA/90, which we'll round to 5mA. // Why would we want half a friggin' Amp in the collector?! Just to waste battery?
Now to calculate the resistor to be placed in series with the base, which will also limit the current in the collector, we do (5-0.8)/0.005 = 840 ohm, and we'll use a 1K resistor to keep things simple.
Have I done Science?
Is this how one uses datasheets? I've only used them to see the pin mapping of components - I never really understood what all those values meant.
Is there something like a Noob's Guide to Reading Datasheets?
Here's the updated schematic:
pic.
Any critics? Suggestions? Warnings?