I don't care how a transistor works, how do I get one to work?
The base-emitter junction is like a diode. When the voltage across it (Vbe) exceeds approximately 0.65V (can be as low as 0.55V and as high as 0.9V, check the datasheet for your transistor) it begins conducting.

The current (not voltage!) through the base emitter junction is amplified by the gain of the transistor, which is known as HFE. Ic(collector current) = Ib(base current) * HFE. Remember HFE is not constant for transistors, it varies from transistor to transistor and depending on temperature, previous usage, etc., so don't rely on it for controlled amplification. For the 2N2222 it is around 160, plus or minus 30.

By applying a base-emitter voltage exceeding 0.65V to the transistor you can use it as a switch.







simulate this circuit &ndash; Schematic created using CircuitLab

(It is an NPN transistor you want. 2N3904 or 2N2222 will do.)

If you want to use an LED which is not blue or white then use a 47 ohm resistor in series with it.

When you press the switch the LED will come on.