top of page

What is Transistor and how to use in switching circuits

Updated: Jan 15, 2022

Transistor is perhaps the most important of electronic components because of which all modern electronics works. Therefore It becomes not only important but also mandatory to know what is transistor and how transistor works. A transistor is a semiconductor device commonly used to amplify or switch electronic signals. It’s a Device with three terminals where one terminal can be use to control the flow of current through the other two terminals. The three terminals are Emitter, Base and Collector. Its major use is as amplifier to boost various signals as well as to perform automatic switching.

3 Major applications of transistors are

  1. As a switch

  2. As Amplifier

  3. As oscillator

In this tutorial, we’ll see how to use transistor as switch

There are 2 types of bipolar transistors which we primarily use, in general applications.


NPN

what is transistor

what is NPN transistor

When base of n-p-n is connected with logic high voltage (positive voltage) then it short circuits emitter and collector (SWITCH ON). When base of n-p-n is connected with logic low voltage (Ground of Supply) then it open circuits both emitter and collector (SWITCH OFF).

what is transistor

NPN Transistor as switch ( Collector to GND, load connected across Voltage and Collector Terminal)

and base is to be given with a current limited +5v signal to turn on the device

when Base is connected to 0 or GND, the device turns off

PNP

what is transistor

what is PNP transistor

When base of p-n-p is connected with logic high voltage then it opens circuit’s emitter and collector (SWITCH OFF). When base of p-n-p is connected with logic low voltage then it short circuits both emitter and collector (SWITCH ON).

Another point you should keep in mind is that the arrow always points in the direction of positive charge flow, or from the P to N sections, no matter whether the P section is the emitter or base.

Notation aside, the three pins – base, emitter, collector – are typically labeled on the data sheet for a transistor

NPN Transistor as a Switch

As said, the biggest application of transistor is to use it as a switch. We’ll see how we can use the NPN transistor as switch

  1. Device power to whatever power source I want to use

  2. Device ground to the collector on my NPN transistor

  3. Transistor emitter to “real” ground.

Connection for PNP transistor


what is transistor

PNP transistor as switch

Example of Transistor with Buzzer

When interfacing buzzer with micro controller, we often need a large buzzer to generate tones. In such cases, the buzzer can not be directly interfaced to arduino pins. Some buzzer’s will generate loud sounds with 12v or higher voltage. To interface such buzzer with arduino or raspberry pi, we use transistor a switch to interface buzzer with microcontroller. Below is the circuit of how to use transistorized buzzer with controllers.


what is transistor

transistor and buzzer

Commonly used Transistors and their pin identifications

BC548/BC547 :– NPN


BC557 :– PNP