Transistor Terminology
A transistor has three legs: a collector, an emitter and a base. Below is the symbols for an NPN and a PNP transistor.

NPN transistor
https://web.archive.org/web/20081029225342/http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-2757683140936137&dt=1225340342608&lmt=1612436893&output=html&slotname=6542966663&correlator=1225340342602&url=https%3A%2F%2Fmayothi.com%2Ftransistors.html&ea=0&frm=0&ga_vid=852767767.1225340343&ga_sid=1225340343&ga_hid=1881404826&flash=0&u_h=864&u_w=1536&u_ah=834&u_aw=1536&u_cd=24&u_his=17&u_nplug=3&u_nmime=4 |

PNP transistor
Transistors as switches
The easiest way to understand transistors is to think of them as switches. You can switch a big current (between the collector and emitter) with a much smaller current (in the base). Lets look at an example:

NPN transistor as a switch (on)

NPN transistor as a switch (off)
The circuit above is a typical example of driving LED’s from a microcontroller or a PC’s parallel port. The port is well protected because it will only supply a small current, though the small current is enough to switch a much bigger load.
Transistors is also handy to convert between different voltages (5V and 12V in the example above.)
A PNP transistor works the same as an NPN transistor, except the current flows from the base, not into the base..

PNP transistor as a switch (on)

PNP transistor as a switch (off)
Also note that the emitter is always tied to the fixed voltage (+12V or GND) when using transistors as switches.In the following tutorials (coming soon) we will show you how to do calculations with transistors.