Transistor is a kind of solid semiconductor device, which has many functions, such as detecting, rectifying, amplifying, switching, voltage stabilizing, signal modulating and so on. As a variable current switch, transistor can control the output current based on the input voltage.