Rain Sensor Library for Proteus

Hello friends, I hope you all are doing great. In today's tutorial, I am going to share a new Rain Sensor Library for Proteus. I have got a lot of requests for designing this sensor. So finally it has been designed by our team and is ready to use in your Proteus Simulations. Rain Sensor, as the name shows, is used for detection of rain and is common sensor used in Embedded Systems Projects. Both analog and digital rain sensors are available these days but we have only designed the digital Rain Sensor. It will give digital output and its output will be HIGH when there's rain and will remain LOW if it won't detect any rain. As Proteus is a simulation software and we can't actually bring the rain so that's why I have placed a TestPin. If you apply HIGH to this TestPin then that's means there's rain and if TestPin is LOW then it will give LOW output and will show there's no rain. So, now let's have a look at How to download and use this Rain Sensor Library for Proteus:

Rain Sensor Library for Proteus

  • First of all, download this Rain Sensor Library for Proteus, by clicking the below button:
Rain Sensor Library for Proteus
  • You will get a zip file so extract it and you will find these three Library Files in it:
    • RainSensorsTEP.LIB
    • RainSensorsTEP.IDX
    • RainSensorsTEP.HEX
  • Now place these Library files in the Library folder of your Proteus software.
Note:
  • Now restart your Proteus software if its already open.
  • In the components search box, make a search for rain sensor as shown in below figure:
  • I have designed these two rain sensors so now place both of them in your workspace.
  • If everything goes fine then you will get something as shown in below figure:
  • So now we have to add the hex file in our sensor, so I am gonna use the Rain Sensor Blue and will double click it to open its Properties Panel.
  • In the Properties Panel, you have to find the Program File section.
  • In the Program File, browse to RainSensorsTEP.HEX File and select it.
  • We have download this file and placed it in the Library folder of our Proteus software.
  • Here's the screenshot of my Properties Panel of Rain Sensor:
  • Now after adding the Hex file, click OK to close the Properties Panel.
  • Your rain sensor is now ready to be used in your Proteus Simulation.
  • So, let's design a simple circuit to have a look at How this Rain Sensor works in Proteus.
  • Here's the screenshot of my simple Rain Sensor simulation in Proteus:
  • I have attached LogicState to TestPin and LED on the output.
  • As I have explained earlier that we can't bring rain in the Proteus software, that's why I have placed a TestPin.
  • So, now when TestPin is LOW that means there's no rain and when you change the TestPin to HIGH then sensor will detect rain.
  • I have run my simulation and here's the output:
So that was all for today. If you got into any trouble then ask in comments and I will help you out. Thanks for reading. Take care. :)

Introduction to RJ45

Hi Guys! Hope you are doing well. We always strive to give the most relevant information as per your needs and demands. Today, I'll discuss the details on the Introduction to RJ45. It is a type of standard connector mainly used for data transmission. Almost all ethernet cables come with this connector on each end, and they, sometimes, known as RJ cables. The RJ in the connector stands for registered jack while 45 defines the number of interface standard. In this post, I'll cover each and everything related to RJ45, why it used, features, and main applications. Let's dive right in and nail down everything you need to know.

Introduction to RJ45

  • RJ45 is a type of connector, mainly used for Ethernet networking including connection with PC network cards, data switches, WiFi access points, and routers.
  • It is connected to each end of Ethernet cables and acts as the main source for transferring data. RJ stands for registered jack and ethernet cables are also known as RJ cables.
  • The most common standard for RJ cables is known as CAT5 (Category 5)
  • In simple words, connectors at the end of ethernet cables are known as RJ45 connectors which also indicate how the cables are wired, while ethernet cables are termed as CAT5 (also RJ cables) which show the maximum speed the cable can attain.
  • RJ connector comes with eight pins which indicate it can house eight wires inside. All these wires come in different colors i.e four are in solid color while the remaining four are stripped. These wires are combined in twisted pairs that help in reducing the crosstalk and canceling EMI.
  • These cables are not shielded and are merely twisted for noise reduction.
  • CAT cables are mostly used in networking and can handle bandwidth around 100mbps.
  • These cables fail to work in high-speed environments, in that case, CAT5 is widely replaced by CAT6.
  • RJ45 cables deem feasible for both long and short distance, and apart from supporting ethernet protocol, they also work for ATM and serial ISDN T1 and E1.
  • RJ45 come with 8 wires and only 4 of them take part in the communication where pin 1 and 2 are used for data transmission while pin 3 and 4 are used for receiving data. (only in ethernet interface)
  • In serial and ISDN protocols, all pins take part in the communication and are wired in a straight through configuration.
  • Don't get confused between RJ connectors and RJ ports. Both are the part of RJ protocol where connectors serve as a (male) connector and port that receives the connector is known as (female) port.
 RJ45 Pinout and Wiring Standards
RJ cables are wired in two ways named T-568A and T-568B. Wiring standards in both of them are different and listed below.
  • Both wiring schemes are equally practiced and commonly supported by most of the devices, however, T-568A is preferred over other.
Following figure shows the pinout of RJ45 (T-568A). Following figure shows the pinout of the RJ45 (T-568B).
  • In some networking applications, crossover ethernet cable is a prerequisite which contains T-568B at one end and T-568A on the other end.
  • This cable is mainly used in computer-to-computer connections.
Difference between RJ45 and RJ11
  • Both connectors are different in terms of size, wires, and applications.
  • RJ45 is relatively large as compared to RJ11 and mainly used to build a connection with routers, computers, XBoxes, hardware firewalls and play stations. It comes with 8 wires.
  • While RJ11 is smaller in size, comes with 4 wires and mainly used for connection with telephone, modem, and fax machine.
  • Although RJ11 comes in smaller size and can fit in the RJ45 slot, however, it is not recommended to use this practice. Doing so can damage the slot and affect the overall working of the device in which it is plugged in.

Types of Ethernet Cables

Ethernet cables are widely used for telecommunication and networking purpose. They come in different types based on nature and data transmission speed they can carry along the length of the wire. RJ45 connectors are connected on both sides of the cables that act as a source of data transmission. Following are the main types of Ethernet cables used for networking and telecommunication purpose. CAT-1. It stands for category 1 that doesn't support TIA (telecommunication industries association). It is mainly used for standard telephone wiring and ISDN. CAT-2. Similar to CAT-1, this type of wiring is not recognized by TIA. It is mainly used for token ring wiring and capable of carrying data at the rate of 4Mbit/s. This is the old version of cable wiring and widely abandoned by advanced cable categories. CAT-3. This cable wiring is widely supported and recognized by TIA/EIA. It is mainly used for data networks and can carry data at the rate of 100Mbit/s. However, this type of wiring is also becoming obsolete because of less data transmission speed and frequency for carrying out different functions at the decent pace. CAT-4. This type of cable wiring is not supported by TIA. It is widely used for token ring networks with the capability of supporting frequency up to 20MHz. CAT-5. Category 5 cables were introduced with the intention of providing more speed as compared to their predecessors. They can transmit frequency up to 100MHz and are not recognized by TIA. This cable wiring uses two twisted pair and is not recognized by TIA. The CAT-5 cable is not recommended for recent applications, however, it is useful for 100Base-T and 1000Base-T networks as it provides suitable speed and frequency for the data networks. CAT-5e. This cable wiring is almost similar to CAT-5 with some exemptions in terms of data transmission speed and TIA recognition. It is preferred for applications where speed is a major concern as it can support speed up to 125 Mbps. The physical appearance of this wiring is similar to CAT-5 and widely used for 100Base-T and 1000Base-T networks. CAT-6. This cable wiring is recognized by TIA and stays ahead of other ethernet cables in terms of performance and speed i.e. supports up to 10Gbps. They come with an outer foil or braided shielding and cover less space as they are tightly wound as compared to CAT-5 and CAT-5e. The shielding minimizes the crosstalk and noise and protects the twisted pair of wires inside the cable. They can work and cover a distance of around 55 meters. CAT-6a. It stands for Category 6 Augmented cable. They come with higher transmission speed, encompass maximum bandwidth and are less flexible than CAT-6 cables. They can carry more data along the length of the cable as compared to their predecessors and cover more distance without losing the bit of accuracy. The shielding is added in the wiring that protects the cable and helps in removing the crosstalk. CAT-7. It supports frequency up to 600 Mbps and comes with four individually shielded pairs. It works best in many applications for carrying out data transmission at a decent pace. They are introduced for rated speed of around 10 Gigabit. CAT-7a. These cables are used for augmented specifications that can support speed around 10 Gigabit. They cover frequency up to 1000 MHz and are quite identical to CAT-7 cables in terms of physical appearance and performance capability.

How to Connect Two Computers Using Ethernet Cables

It is very easy to connect two computers for data transmission using ethernet cables. The CAT-5 or CAT-5e crossover cables are widely used for this purpose and prevent from losing any data during transmission. These cables are quite identical to straight through cables but come with twisted wires on both ends. You can use the following steps to connect two computers using ethernet cables.
  • Connect one end of the cable with RJ45 connector into the ethernet port of the computer. Plug the other end of the cable into another computer.
  • Log in to one of the computers.
  • Go to the search box at the bottom left of the computer and type "Network and Sharing Center" and click it.
  • Then go to the "Change Adaptor Settings" on the top left side.
  • Right click on the "Ethernet" and go to properties.
  • Then select "Internet Protocol version 4 TCP/IPv4" and click properties.
  • Select the IP address and subnet mask at the two computers as mentioned below.
To check the connection, restart both PC and use the below instructions.
  • ping 192.168.0.2 -t: from the second PC
  • ping 192.168.0.1 -t: from the first PC
Right click on this PC option and click on "Change Settings" option.
  • The "Workgroup" name should be identical in both PC, otherwise, ethernet connection won't work.
  • If you want to share whole drive, just right click on the drive you want to share and select share with "Advanced Sharing Options" and check the box beside share this folder option and click "OK" to apply changes.
Applications
  • RJ45 are mainly used in ethernet cables for data transmission. They come in two types i.e. T-568A and T-568B.
  • As compared to the RJ11 connector, RJ45 comes with more applications including ethernet networking, industrial automation, and telecommunications.
That's all for today. I hope I have given you everything you need to know about RJ45. However, if you are feeling skeptical or have any question, you can approach me in the comment section below. I'd love to help you in any way I can. Feel free to keep us updated with your valuable feedback and suggestions, they help us provide you quality work so you keep coming back for what we have to offer. Thanks for reading the article.

Solar Panel Library for Proteus

Hello friends, I hope you all are doing great. In today's tutorial, I am going to share a new Solar Panel Library for Proteus. I hope you guys are gonna enjoy this Proteus Library as it's not available in Proteus and we are presenting it for the first time. :) I am quite proud of my team. B| We all know about Solar Panels which is an excellent renewable energy source. It is widely adopted by the inhabitants of this green planet as its totally free and converts solar energy into electricity. Solar panels are also used a lot in Engineering Projects especially related to renewable energy sources. Proteus doesn't have solar panels in its database that's why our team has designed this library. Using this Solar Panel Library for Proteus, now you can easily simulate solar panels in Proteus and can design your projects' simulations. I will also share some projects in which I will interface it with different Microcontrollers like Arduino, PIC Microcontroller or 8051 Microcontroller etc. So, let's get started with How to download and simulate Solar Panel in Proteus:

Solar Panel Library for Proteus

  • First of all, download the Solar Panel Library for Proteus by clicking the below button:
Solar Panel Library for Proteus
  • You will get a zip file which will have these two library files in it:
    • SolarPanelTEP.IDX
    • SolarPanelTEP.LIB
  • Now place these two files in the library folder of your Proteus software.
Note:
  • Now open you Proteus software or restart it if it's already open.
  • Proteus is not that smart so we have to restart it so that it would add new Library components in its database.
  • In the Proteus software click on the components button and make a search for Solar Panel as shown in below figure:
  • Now place this component in your Proteus software.
  • If everything goes fine then you will get something as shown in below figure:
  • Now double click this solar panel and its Properties panel will open up as shown in below figure:
  • If you have worked on Solar Panel then must have the idea that output of solar panel depends on the intensity of sunlight.
  • So, if its shiny bright day then solar panel normally give in the range of 15V to 19V.
  • Similarly, if its night time then solar panels output ranges from 2V to 6V.
  • While on a cloudy day it could vary between 8V to 12V.
  • So, if you want to change the output of this Proteus' Solar Panel then you have to open this Properties Panel and then change the Voltage value.
  • By default, it will give 12V as an output.
  • I am working on adding some button so that you could change the output in running simulation but for now you have to stop the simulation in order to change it.
  • Now let's place a voltmeter at the output of this solar panel and check its output.
  • Here's the simple solar panel simulation in Proteus:
  • Now you can see in above figure that our Solar Panel is giving 12V as an output.
  • So, now let's open it's Properties Panel and change the voltage value to 16.5V.
  • I have changed the value and here's our output:
  • You can see in the above figure that now voltage has changed to 16.5V.
  • Here's a video demonstration on How to download and install this Solar Panel Library for Proteus.
So, that was all about Solar Panel Library for Proteus. I hope you guys can now easily download and install it. If you still got in to any trouble then ask in comments and I will try my best to resolve them and also let me know about your feedback for this Library. Thanks for reading. Have a good day. :)

Infrared Sensor Library for Proteus

Hello friends, I hope you all are doing great. In today's tutorial, I am going to share a new Infrared Sensor Library for Proteus. This IR sensor is not available in Proteus and we are sharing this library for the first time. I hope it will help in your Embedded Systems Projects particularly related to robotics and automation. So, if you want to work on this IR Sensor then I would suggest you to first design its simulation and then try your luck with hardware. There are different types of Infrared Sensors & modules available in the market. Some of these modules have transmitter & receiver on separate chips and are mostly get activated when someone interrupts the light. The one we have designed has a transmitter & receiver on a single chip. The IR signal transmits from the IR transmitter and if it has some obstacle in front of it then it bounces back and received by the IR receiver. You should also have a look at this list of New Proteus Libraries for Engineering Students. So, let's have a look at How to use this Infrared Sensor Library for Proteus: Note:
Where To Buy?
No.ComponentsDistributorLink To Buy
1Arduino UnoAmazonBuy Now

Infrared Sensor Library for Proteus

  • First of all, download the Library files of this IR Sensor by clicking the below button:
Infrared Sensor Library for Proteus
  • After downloading this file extract it and you will find three Library files in it, named as:
    • InfraredSensorsTEP.IDX
    • InfraredSensorsTEP.LIB
    • InfraredSensorsTEP.HEX
  • Place all these three files in the Library folder of your Proteus software.
Note:
  • Once you have added the files in the Library folder, then restart your Proteus software.
  • In the components section, make a search for Infrared Sensor, as shown in below figure:
  • Now place this IR Obstacle Sensor in your Proteus and if everything goes fine then you will get something as shown in below figure:
  • As you can see in above figure that we have four pins on our Infrared sensor, which are:
    • Vcc => You need to provide +5V to this pin.
    • GND => It should be grounded.
    • OUT => That's output pin and it will get HIGH when this sensor will find some obstacle in front and will remain LOW in normal condition.
    • TestPin => As Proteus is a simulation software so we can't actually place something in front of this sensor. That's why I have used this TestPin. If this Pin is LOW, then sensor will remain normal and if it's HIGH then sensor will behave as it has something in front of it.
  • Now double click this Infrared Sensor and its Properties Panel will open up.
  • In the Program File section, browse to the file InfraredSensorTEP.HEX which you have already downloaded and placed in the Library folder of Proteus.
  • Here's the screenshot of Properties Panel for this Infrared Sensor:
  • I have encircled the Program File in above figure and you can see I have selected the InfraredSensorsTEP.HEX.
  • So, now let's design a simple circuit and have a look at how to use this Infrared Sensor in Proteus.
  • Here's the screenshot of Infrared Sensor Simulation in Proteus:
  • So, now let's run our Proteus simulation and if everything goes fine then you will get results, as shown in the below figure:
  • I will interface this sensor with different Microcontrollers e.g. Arduino, PIC Microcontroller etc. in my coming tutorial.
  • As you can see in the above figure that when TestPin is LOW then OUT Pin is also LOW means there's no obstacle and when TestPin gets 1 then OUT Pin will go HIGH and that means we have some obstacle.
So, that's all for Infrared Sensor Library for Proteus. I hope it will help you guys in your engineering projects. Let me know if you have any suggestions. Take care & have fun !!! :)

Introduction to 8051 Microcontroller

Hello Friends! Hope you are doing great. I am back to give you a daily dose of valuable information so you can excel and grow in your relevant field and keep coming back for what we have to offer. Today, I am going to unlock the details on the Introduction to 8051 Microcontroller. This is an 8-bit Microcontroller developed by Intel in the 1980s. It is considered as a small system on an integrated chip that comes with CPU, I/O ports, timers, counters, RAM and ROM. The Microcontroller is a one step forward to a microprocessor. Both Microcontrollers and microprocessor work in a similar way with some exceptions. Microcottler comes with everything required to run an embedded system like CPU, I/O ports and inbuilt peripherals like timers, counters, and interrupts. While processor comes with the processing unit and in order to make it work like a microcontroller, separate peripherals are required to connect with the microprocessor. Other examples of microcontrollers are PIC Microcontroller, Atmel & Arduino etc. The 8051 is the most common used microcontroller nowadays. If you are a newbie and trying to get your hands on very first time with a microcontroller you will be advised to start with 8051. It is the most commonly used Microcontroller in Embedded Systems. Technology is evolving and becoming more advanced day by day. Gone are days, when you required separate systems or chips to perform a specific task. Now, most of the chips and electronic systems are developed with the purpose of performing multiple tasks using a single system that comes with a number of integrated circuits incorporated in it that sets you free from the hassle of spending lot of money on the individual system, making our project highly economical in nature. I'll try to discuss each and everything related to 8051, so you get a clear idea of what it does, its main features, working, applications and everything you need to know. You should also have a look at these 8051 Microcontrollers Projects. So, let's get started with Introduction to 8051 Microcontroller:

Introduction to 8051 Microcontroller

  • The 8051 Microcontroller is a 40-Pin integrated chip that comes with CPU and other peripherals like I/O, timers, counters, RAM and ROM.
  • It is widely used in an embedded system, consumer electronics, automotive systems, robotics and security cameras.
  • The 8051 microcontrollers have made a renowned place in the market in terms of their availability, low cost, and operational flexibility.
  • Before the inception of microcontroller, everything that required automatic action was designed with the processor. That made overall project more costly that would cover more space.
  • The 8051 was developed using Intel 8051 MSC-51 architecture.
 
  • Older versions of 8051 used assembly programming language, however, recent editions can be programmed using more advanced language like C, Python or JavaScript.
  • Microcontrollers have revitalized the robotics and removed the need for extra devices to make them function like an automatic system.
  • Earlier, microcontrollers were produced using N-MOS technology that came with more power consumption and less efficiency. However, recent CMOS technology introduced in the development of the microcontrollers requires less power as compared to its predecessor.
  • 8051 comes in a variety of packages but the most common package is a DIP (dual inline package). However, it is also available in other surface mount packaging like 44 - Lead TQFP (Thin Quad Flat Package) and 44 – Lead PLCC (Plastic Leaded Chip Carrier).

8051 Architecture

Following features of the microcontroller define the overall architecture of the controller.
  • CPU. The central processing unit is considered as the main part of the controller that is capable of performing different tasks based on the instructions given by the user.
  • It is a like a brain of the device that reads instructions from data memory (ROM). However, a user has no direct control over the internal function of CPU except code with a number of instructions embedded into the unit through the compiler.
  • Storage Memory. CPU is used to call and execute the set of instructions. A memory is required to store those number of instruction. There are two sets of memory locations present in the device called ROM and RAM.
  • The ROM comes with 4k bytes memory while RAM comes with 128 bytes. The information stored in the ROM memory is known as code or program memory. This memory is non-volatile where information sustains over a long period of time and doesn't require a constant source of power supply to hold information in it.
  • While RAM memory is volatile in nature and stores information for short period of time and requires a constant source of power supply to retain information in it. As you remove the power supply the RAM memory removes from the memory location.
  • Interrupts. Interrupts are very useful in case of emergency. They are used to put the main program on hold when a specific function is required to perform over the main function.
  • The system switches to the main program after the interrupt is called and executed properly. There are five interrupts present in the architecture of 8051 known as INT0, TF0, INT1, TF1, R1/T1
  • All these interrupts are used to pause the main program. TF0 and TF1 are timer interrupts while INT0 and INT1 are external interrupts. R1/T1 is a serial port interrupt.
  • All external interrupts are low level triggered where flags are cleared when the processor is connected to the interrupt service routine.
  • Serial Port. The 8051 comes with UART (Universal Asynchronous Receiver/Transmitter) which is used for serial communication in 8051. The serial port is duplex i.e. it can transfer or receive data. Serial port comes with three pins called Tx, Rx and ground.
  • Buses. Buses are the valuable addition in the development of the microcontroller that are used for the data transmission. Mainly two buses are used for the communication called Data Bus and Address Bus and are 8 bit and 16 bit respectively.
  • The size of the address bus predicts the amount of memory a system can address. The 16-bit address bus determines it can address memory up to 2 (64k).
  • Address bus comes with four addressing modes called immediate addressing mode, direct addressing modes, register addressing mode, register indirect addressing mode.
  • The Data Bus is used for the transfer of data for a particular application within microprocessor and memory I/O devices. It is bi-directional and used for sending and receiving data.
  • The CPU's circuitry determines the width of the data bus.
  • I/O Ports. Microcontroller comes with four I/O ports called P0, P1, P2, and P3. These ports are used to interface controller with other devices. Each port comes with 8 pins, making it an 8-bit port. Once these ports are reset, they are used as an output port. However, we need to program them in order to use them as an input port.
  • Timers/Counters. 8051 microcontroller comes with two 16 bit timers and counters. Timers are used to count the internal signal of a particular function of the controller while counters are used to count the external signals of the peripherals connected to the controller. These timers are further divided into an 8-bit register.
  • Oscillator. It is added in the controlled for generating clock pulses. It works as a clock source for CPU of the controller. The oscillator works over a certain frequency when a certain voltage is applied.

8051 Basic Circuit

Following figure shows the pin diagram of 8051 microcontroller. As figure shown above, 8051 comes with 40 - Pin Dip that contains 20 pins on each side. It has four ports and 8 pins are associated with each port. Let's describe the function of each port one by one. Port 0. Pin number from 32 to 39 belong to Port0. These pins are bidirectional and come with internal pull-up resistors. Port0 is multiplexed with data and address bus. Port 1. Pin from 1 to 8 falls under Port 1 that is the 8-bit port where each pin is bidirectional. This port comes with internal pull-up resistors. Port 2. Pin from 21 to 28 falls under Port 2. All the port 2 pins are bi-directional like port 1 and are used as I/O pins. Port 2 pins behave like a higher order address/data bus when external memory is accessed. Port 3. Port 3 contains pins from 10 to 17 number. All pins of the port 3 come with special functions. Following are the main functions associated with each pin. RST. Pin 9 represents the reset pin. The controller will be reset by holding RST HIGH for at least two machine cycles. GND and Vcc. Pin 20 represents the ground pin that represents 0V and connected to the negative terminal of the power source, while Pin 40 represents the power source pin that requires 5 V. PSEN. Pin 29 is PSEN (Program Stored Enable Pin) which is used for reading external program memory. ALE. Pin 30 is ALE ( Address Latch Enable) that is mainly used for separation of external address from data. VPP. Pin 31 is external access enable pin used for external program memory. If this pin is set LOW, it can fetch the code from external program memory.

Applications

The 8051 comes with a wide range of applications, but it is mainly used for the embedded system. Following are some applications it is used for.
  • Industrial automation
  • Process control devices
  • Home Applications (Camcorder, Music InstrumentsTVs, VCR, Video Games, Oven)
  • Safety devices and automotive applications
  • Temperature sensing and safety devices
  • Parking indication system
  • Fire detection and defense applications
  • Defense and medical equipment
  • Arduino DC motor speed control
  • GSM based electricity meter billing
  • Voice controlled system
  • Communication Systems (Intercoms, Answering Machines, Mobile Phones, Paging Devices)
  • Aeronautical and Space systems
  • Robotics and Automation
So, that was all for today. I hope you have enjoyed today's tutorial about 8051 Microcontroller. Will meet you guys in the next tutorial. Take care and have fun !!! :)

Introduction to Transistor

Hi Guys! Hope you are doing fine. Today, I am going to give you a detailed Introduction to Transistor. A transistor is a semiconductor device that comes with three terminals, where a small current at one terminal is used to control current at the other terminals. Transistors are mainly used for the amplification of electronic signals. Transistors were first invented by American Physicists John Bardeen in 1947. Before the inception of transistors, vacuum tubes were used to control the electronic signals. These vacuum tubes come with anode & cathode arrangement and the potential difference across these ends produces the electric current. In the later versions, a filament is added which is used to provide heat to the cathode that directs the electrons towards the anode side. Their complex design, more power consumption set a pathway for the development of the transistors that play an important role in the creation of modern electronic devices. Before you get ahold of the transistor, I'd highly suggest you read the article on which is the building block of the transistor.

What is Diode?

Before going into the details of the transistor, let's first recall some points from the previous lecture Introduction to Diode:
  • A diode is a semiconductor device, that is developed when two types of semiconductor materials(i.e. N-Type and P-Type) are joined together.
  • In the construction of the diode, the PN junction is formed by the combination of P-type & N-type material.
  • Electrons(-ve charge) are major charge carriers in the N-Type material and Holes(+ve charge) are major charge carriers in the P-Type material.
Transistors are formed when an extra layer is added to this PN junction. Transistors come in various types including BJTs, JFETs, MOSFET. BJTs are the bipolar junction transistors which use two charge carriers i.e. electrons and holes for electrical conduction. And BJTs are the current controlled devices where small current at one terminal is used to control large current at other terminals. While JFETs are the unipolar devices where conduction is carried out by the movement of only one charge carrier. Let's dive in and explore what is the main function of a transistor and how it is used for the development of many electronic circuits.

Introduction to Transistor

  • A transistor is a three-terminal electronic device where small current at one terminal is used to control large current at other terminals. Transistors are mainly used for the amplification of the electronic signals.
  • Transistor comes with three terminals called emitter, base, and collector which are used for the external connection with electronic circuits.
  • Transistors were created with the intention of providing cheap electronics. They are available individually, however, most of the time they are packed together in integrated circuits which are then used for the developments of processors, computer memory chips, and complex ICs.
  • A transistor is a combination of two words i.e. transfer and varistor where each layer comes with an ability to transfer current to other layers when a proper biasing voltage is applied across one of the layers.
  • Transistor comes with three layers and two PN junctions where an emitter-base junction is forward biased and the collector-base junction is reverse biased.
  • Most of the transistors are created using silicon and germanium that are less expensive to vacuum tube and require less power to operate.
  • Based on the mobility of major charge carriers, transistors are divided into two types NPN and PNP transistors. Both are different in terms of electrical behaviors and physical construction.
  • The NPN transistors comes with three layers i.e. two N-doped layers and one P-doped layer. The P-doped layer is sandwiched between two N-doped layers. In NPN transistors, conduction is carried out by both charge carriers i.e. electrons and holes, however, electrons are major charge carriers in NPN transistors.
  • Similarly, PNP transistors comes with three layers i.e. two P-doped layers and one N-doped layer. The N-doped layer exists between two P-doped layers. Actually, N-doped layer is responsible for triggering transistor action. When a proper bias voltage is applied at the P-doped layer, it draws current which is then used to control large current at other terminals.
  • Transistors that come in NPN and PNP configurations are nothing but the combinations of two diodes joined back to back.
  • In NPN transistor current flows from collector to emitter, while in PNP transistor current flows from emitter to collector.
  • The current directions and voltage polarities are always opposite in both transistors. Suppose, if a current is flowing in a clockwise direction in NPN transistor and comes with positive polarity at the base terminal, it will flow in an anticlockwise direction in PNP transistor where voltage polarity becomes negative.
  • PN junction formed between two semiconductor material is a building block of the transistor. When PN junction is formed, major charge carriers in N-region (electrons) cross the junction and reach the P-region where they recombine with holes. Similarly, major charge carriers in P-region (holes) cross the junction and reach the N-region where they recombine with electrons.
  • The diffusion of electrons and holes depends on the biasing voltage applied across the junction.
  • The voltage is said to have forward biased when P-region is connected with positive terminal of the battery and N-region is connected with the negative terminal of the battery.
  • Under the forward biased condition, holes and electrons can easily cross the junction and maintain a current across the junction. When this diffusion occurs, it will generate the region across the junction which is depleted with major charge carriers. This region is known as depletion region.
  • As long as the forward biased voltage is applied, current flows across the junction. Diffusion of holes and electrons create an electric field within the junction. This electric field resists the further diffusion of charge carriers.
  • As said earlier, transistor comes with two PN junctions where one junction is forward biased and other junction is reverse biased.

Modes of Transistor

Transistor comes with different modes of operation. Let's discuss them one by one.
Active Mode
  • Active mode is used for amplification of the electronic signal where small current at the base terminal is being amplified at the collector terminal.
  • The base terminal is responsible for the transistor action which controls the number of main charge carriers (electrons in case of NPN transistor and holes in case of PNP transistor) flowing through it and draws a small current when a proper bias voltage is applied.
Cut-Off Mode
  • In this mode, transistor works as an open switch and no current flows across the terminals where a base voltage is less than a voltage at other terminals.
Saturation Mode
  • This mode is considered as an ON switch where current flows freely from collector to emitter.
  • In this condition, the voltage difference between collector and emitter is zero, and the collector current is restricted by a supply voltage and load resistance.
  • In saturation mode, both junctions are forward biased and base voltage is greater than the voltage at other terminals.
Reverse Active Mode
  • This mode acts as an active mode with one exception i.e. current direction is reversed.
  • Current flows from emitter to collector which is proportional to the base current.
  • The base current is highly influenced by the bias voltage applied at the terminal which then controls large current at other terminals.
  • The voltage at the terminals is related in the following way.

Current Gain

Current gain plays an important role in the function of the transistor. Following are two common current gains in a transistor.
Common-Emitter Current Gain
  • Common-Emitter current gain is a ratio between collector current and base current.
  • This is also known as an amplification factor which defines the amount of current being amplified.
  • It is called beta and denoted by ß. The beta value ranges from 20 to 1000, however, most of the time its value is taken as 50.
Common-Base Current Gain
  • Another current gain is common-base current gain which is a ratio between collector current and emitter current.
  • It is called alpha and denoted by a. The alpha value is taken as unity.
Applications of Transistor
  • Transistors are mainly used for the amplification of low and high-frequency AC signals.
  • No current is produced at the collector terminal unless there is a current at the base terminal. This process allows the transistor to work as a switch. The transistor can be turned ON and OFF by controlling the bias voltage at the base terminal.
  • Based on requirements, a transistor can be made to operate in cut-off or saturation region for switching applications.
  • Integrated circuits added in the development of the processors are made from transistors.
  • Used in the development of logarithmic converters and logic gates.
  • Transistors are widely used in modern electronics especially where signal processing and radio transmission is required.
That's all for today. I hope you have found this article useful. We always keep your demands on the top and develop a content that truly resonates with your field of interest. If you are unsure or have any question, you can ask me in the comment section below. I'd love to help you in any way I can. Thanks for reading the article.

What is PN Junction? Forward-Biased | Reverse-Biased

Hey Guys! I hope you all are doing great. In the previous tutorial, we studied the basics of Semiconductors, where we briefly discussed the PN Junction. Today, we are going to have a detailed overview of PN Junction.

But before getting into the details of PN Junction, we need to first recall a few concepts from the previous lecture:

Semiconductor Basics

As we know, the conductive power of a semiconductor material lies between a conductor and an insulator. So, it can act as a pure conductor as well as a pure insulator, depending on the applied conditions.

Semiconductors are divided into two types:

  • Intrinsic Semiconductor.
  • Extrinsic Semiconductor.

Intrinsic Semiconductor

  • A semiconductor in its pure form is called an Intrinsic semiconductor.
  • In this state, the outermost valance shell of the semiconductor has an equal number of electrons and holes(which is 4).
  • These four valance electrons in the outermost shell of an Intrinsic semiconductor remain bound to their positions and thus no conduction is allowed.
  • So, an Intrinsic Semiconductor acts as a pure insulator.
  • The elemental Silicon(Si) or Germanium(Ge) in its pure form is an intrinsic semiconductor.

Extrinsic Semiconductor

  • In order to increase the conductive power of semiconductors, small amounts of impurities(in the ratio of 1 to 106) are added to them, by a method called Doping.
  • Such doped/impure semiconductors are called Extrinsic Semiconductors.
  • Impurities added in the semiconductors are of two types i.e.
    • Pentavalent (Arsenic, Antimony, Phosphorous etc.).
    • Trivalent (Aluminium, Boron, Indium, Gallium etc.)
  • If the semiconductor is doped with a Pentavalent impurity, it's called N-Type Semiconductor.
  • If the doping element used is trivalent, the extrinsic semiconductor produced will be called P-Type Semiconductor.

So, now we need to understand the formation of N-Type and P-type semiconductors, because PN Junction is formed by joining these two types.

N-Type Semiconductors

  • Pure semiconductors normally belong to the 4th column of the periodic table and thus have an equal number of electrons & holes in their valance shell(which is 4).
  • So, in pure form, there's no free electron or hole available for the conduction of electricity and thus it acts as an insulator. (We discussed conduction energy levels in detail in our last lecture)
  • The pentavalent elements belong to the 5th column of the periodic table and have 5 electrons in their outermost shell.
  • So, when a pure semiconductor i.e. Silicon(Si) is doped with a pentavalent impurity i.e. Boron(B), the four valance electrons of the Boron(B) will create a covalent bond with the closest Silicon(Si) atoms, but the 5th electron won't find a pair and will become a free electron.
  • This free electron increases the conductive ability of the semiconductor.
  • As an electron carries a negative charge, such extrinsic semiconductors are called Negative-Type Semiconductors or N-Type Semiconductors.
  • In N-Type Semiconductors, the majority charge carriers are free electrons(negative), while the holes(positive) are present in very small numbers(called minority charge carriers).

Now let's have a look at the formation of P-Type Semiconductors:

P-Type Semiconductors

  • When a semiconductor is doped with a trivalent impurity i.e. Aluminium(Al), the extrinsic semiconductor produced is called P-Type Semiconductor and has positively charged holes as majority charge carriers.
  • Trivalent elements belong to the 3rd column of the periodic table and have 3 electrons in their outermost shell(valence shell).
  • So, if we dope Silicon(Si) with Aluminium(Al), the 3 valence electrons of the impurity element(Al) will create a covalent bond with the neighboring Silicon(Si) atoms.
  • The 4th valence electron of Si won't find a pair and thus a positively charged Hole will be originated. A Hole is a vacant space, has a positive charge and is ready to accommodate an electron(if available).
  • This Hole generated in the Si crystal will increase its conductivity and such doped semiconductor will be called Postive-Type Semiconductor or P-Type Semiconductor.

So far, we have created N-Type and P-Type Semiconductors by adding pentavalent and trivalent impurities respectively in separate semiconductor crystals. Now, we are going to add both impurities in a single semiconductor crystal to create a PN Junction. So let's get started:

What is PN Junction?

  • When a single crystal of semiconductor is doped with both pentavalent(i.e. Boron) and trivalent(i.e. Aluminium) impurities, a special barrier is created at the boundary of the two regions(N-Type & P-Type) which stops the flow of charge carriers. This barrier is called PN Junction.
  • The most basic semiconductor component called Diode is a real-life application of the PN Junction.

Now let's have a look at the formation of this PN Junction:

PN Junction Formation

  • As we know, electrons are the majority charge carriers in N-Type Semiconductors and Holes are the majority charge carriers in P-Type Semiconductors.
  • Now, when we dope a single Si crystal with both impurities, an N-Typer region is created on one side and a P-Type region is created on the other side of the crystal.
  • Electrons(in the N-Type region) present near the boundary get excited and diffuse into the P-Type region. Similarly, the Holes(in the P-Type region) close to the boundary move towards the N-Type region.
  • This generates a potential difference at the boundary of the two regions, which gradually increases and at one point, restricts the further flow of electrons or holes in the neighboring region. (electron-hole diffusion stops)
  • This region at the boundary with electrons in the P-Type region and Holes in the N-Type region is called the depletion region.
  • The width of this depletion region depends on the amount of impurity added to the semiconductor.
  • This Junction/boundary of the P-Type and N-Type regions is called the PN Junction.
  • Under normal conduction, when there is no voltage applied across the PN junction, the junction is said to be in an equilibrium state. The potential difference at the junction in that state is called built-in potential which is 0.7 V for Silicon(Si) and 0.3 V for Germanium(Ge).
  • When an external voltage is applied at the PN Junction, we get two behaviors of PN Junction depending on the external voltage polarity, named:
    1. Forward-Biased.
    2. Reverse-Biased.

Let's discuss these diode states, one by one:

Forward-Biased PN Junction

  • If the positive terminal of the battery is connected to the P-region and the negative terminal to the N-region, the PN Junction will be said to be operating in a Forward-Biased State.
  • The external voltage should be greater than the built-in potential i.e. 0.7V for Si and 0.3V, so that it could melt the depletion region.
  • In the Forward-Biased State, the Holes start to move towards the N-region and the electrons start flowing towards the P-region.
  • As a result, the width of the depletion region starts reducing and finally depletes out.
  • The current starts flowing through the semiconductor, as soon as the depletion region gets removed. We can say the semiconductor is acting as a conductor.
  • In this state, the semiconductor has maximum conductivity and quite low resistance.

Reverse-Biased PN Junction

  • If the P-region is connected with the negative terminal of the external source and the N-region with the positive terminal, the PN-Junction will operate in the reverse-biased state.
  • As the P-region is connected to the negative voltage, the holes in the P-region will get attracted towards the external voltage, so start flowing away from the depletion region. The same will be the case with the electrons.
  • So, no current will flow through the PN Junction in a reverse-biased state.

PN Junction as a One-Way Switch

In a normal conductive wire, current can flow in both directions but in a PN Junction, the current will flow only in one direction and will get blocked in the opposite direction. So, we can say that a PN-Junction is a One-Way Switch, allowing the current to flow in one direction only. On the top of my head, it could be used to avoid the back emf generated by the motors. This One-way switch literally bought a revolution in electronics.

Breakdown Region

  • While the PN Junction is operating in the reverse-biased state, if the external voltage exceeds a certain limit, the PN Junction will collapse, resulting in an excessive amount of current flow(short-circuit). This external voltage is called breakdown voltage and the PN Junction is said to be operating in a breakdown region.
  • PN Junction can't recover from the breakdown region so it should be avoided, though it also has a few advantages, which we will cover in the Zener Diode Chapter.
  • The breakdown voltage depends on the semiconductor used and the amount of impurity added.

Characteristic Curve of PN Junction

The following figure shows the I vs V characteristic curve of a silicon diode:

  • As we can see in the above characteristic curve of PN Junction, it has two sections i.e. forward-biased and reverse-biased.
  • In the forward-biased state, if the voltage is lower than the built-in potential(i.e. 0.7 for Si), a small amount of current is flowing through the PN Junction but if the voltage overcomes the built-in potential, the current jumps to its maximum value and we can say the PN Junction is conducting.
  • In the reverse-biased state, there's no current flowing through the PN Junction until the breakdown voltage is reached.
  • At the breakdown voltage, the current starts flowing in the opposite direction and we can say the PN Junction collapsed.
  • The small current flowing under reverse bias normal condition is known as leakage current. Germanium(Ge) has more leakage current as compared to Silicon(Si).

So, that's all for today. I hope you have enjoyed today's lecture. In the next lecture, we will discuss the Basics of Diodes, where I am going to repeat today's lecture :)) But I will keep the practical approach in it, so there will be a lot to learn. If you have any questions, you can approach me in the comment section below. Keep your suggestions and feedback coming, they help us deliver quality content. Thanks for reading the article.

Introduction to 2n3903

Hi Friends! Hope you are doing great. I am back to give you a daily dose of valuable information so you can excel and grow in your relevant field. Transistors are the fundamental parts of most of the electronic circuits. Today, I am going to unlock the details on the Introduction to 2n3903. It is an NPN transistor main used for general purpose amplification and switching applications. Transistor comes in two types i.e. NPN and PNP transistors. This transistor falls under the category of NPN transistor. This is a bipolar junctions transistor where conduction is carried out by movement of both charge carriers i.e. electrons and holes. However, electrons are major charge carriers in case of NPN transistors. If you are unsure how these bipolar transistors work, you can check this read on Introduction to Bipolar Junction Transistor. I'll reveal each and everything related to this transistor, so you don't get overwhelmed by all data across the web and find all information in one place. Before we move on to the details of this NPN transistor, you must be clear what is transistor? The transistor is an electronic component that comes with three terminals that are used for external connection with the electronic circuits. The voltage applied to one pair of its terminals is used to control the current at the other pair of terminals. Let's dive in and explore what is this about, its pinout, circuit diagram, applications and everything you need to know.

Introduction to 2n3903

  • The 2n3903 is an electronic component called NPN transistor mainly used for general purpose amplification and switching applications.
  • It comes with three terminals called emitter, base, and collector.
  • This transistor has three layers i.e. two N-doped layers and one P-doped layer. The P-doped layer is a semiconductor that is housed between two N-doped layers.
  • The P-doped layer represents the base of the transistor while other two layers represent emitter and collector respectively.
  • All three terminals are different in terms of their size and doping concentration. The emitter is highly doped as compared to base and collector.
  • The base is lightly doped which is responsible for the electron reaction when a voltage is applied at this terminal. When a voltage is applied, it draws small current which is then used to control large current at the emitter and collector terminals.
  • Under normal conditions, the number of electrons diffused into the base terminal is more than the number of holes diffused into the emitter terminal. Electrons act as a majority charge carriers in case of NPN transistor.
  • This transistor is an ideal choice for amplification and switching purpose requiring collector current around 100mA.
Pinout of 2n3903
Following figure shows the pinout of this NPN transistor which is composed of three terminals. 1. Emitter  2. Base 3. Collector 
  • Movement of electrons plays an important role in the current flowing from emitter to collector.
  • The output current obtained at the output terminals is highly dependent on the voltage applied to the base terminal.
  • This bipolar transistor is a current controlled device where small current at the base terminal is used to control large current at other terminals. It is different than MOSFET that is voltage controlled unipolar device where conduction is carried out by one charge carrier i.e either electron or hole.
Circuit Diagram of 2n3903
  • Following figure shows the circuit diagram of this NPN transistor.
  • The emitter is highly doped so it exhibits more current as compared to other terminals. Actually, current at the emitter terminal is a sum of the current at the base and collector terminal.
  • Common-Emitter current gain plays an important role in the amplification process. It is a ratio between collector current and base current. It is called beta and denoted by ß. This is also called amplification factor which defines the amount of current being amplified.
  • Common-Base current gain is another important factor which exhibits lower value than beta. It is a ratio between collector current and emitter current. It is called alpha and denoted by a. Alpha value ranges between 0.95 to 0.99 and most of the time its value is taken as unity.
Absolute Maximum Ratings of 2n3903
  • Following figure shows the absolute maximum ratings of this NPN transistor.
  • These are the stress ratings which play an important role in the execution of the electronic circuit. If these stress ratings are exceeded from absolute maximum ratings, they can damage the device at large, ultimately affecting the overall nature and performance of the project.
  • Similarly, if these ratings are applied for the maximum period of time above normal operating conditions they can affect the reliability of the device.
  • It is advised to check these ratings before placing the device in the circuit and make sure device undergoes and follows same operating conditions and stress ratings as defined by the manufacturer.
  • Steps and measurements taken in the early stages of your project can save you bunch of time and worry and prevents electronic circuit from being affected.
Difference between PNP and NPN Transistors
  • NPN and PNP work in a similar way with the intention of amplification and switching purpose but there is some difference between them.
  • Voltage polarities and direction of currents are opposite in these transistors.
  • Electrons are majority charge carriers in case of NPN transistors while holes are majority charge carriers in case of PNP transistors, however, both types of transistors require both charge carriers for complete conduction process.
  • The base is negative in case of PNP transistor and a negative voltage is applied at the base terminal in order to trigger the holes reaction. And the base is more negative as compared to emitter and collector.
  • While in case of NPN transistor, a base is positive and positive voltage is applied at this terminal in order to trigger electron reaction which draws small current that is used to control large current at the emitter and collector terminals.
  • These transistors are nothing but a combination of diodes joining back to back.
Applications
  • This transistor is mainly used for amplification and switching purpose where collector current around 100mA is required.
You must have look at following articles that are bipolar junctions transistors used for amplification, switching or other electronic applications. 2n5551 - NPN transistor 2n2219 - NPN transistor That's all for today. I hope you have found this article useful. However, if you are unsure or have any question relating to this transistor, you can approach me in the comment section below. I'd love to help you according to best of my expertise and knowledge. Thanks for reading the article.

Introduction to PNP Transistor

Hey Friends! Hope you are doing great. I am back to give you a daily dose of valuable information so you can always stay ahead of your competitors. I have previously updated the article on NPN transistor that is used for amplification and switching purpose. Today, I am going to unveil the details on the Introduction to PNP Transistor which falls under the category of bipolar junction transistors and comes with three layers i.e. two P-doped layers and one N-doped layer where an N-doped layer exists between two P-doped layers. Main Function: Small current at one terminal is used to control large current at other terminals. Major Charge Carriers:  Holes  These NPN and PNP transistors come with their own benefits based on the nature of the electronic project, however, NPN transistors always deems preferable over PNP transistors because of its quick response due to mobility of electrons while PNP transistors are not preferable for amplification and switching purpose because conduction through mobility of holes deems less useful and beneficial as compared to mobility of electrons. In this tutorial, I’ll discuss each and everything related to this PNP transistor i.e what it does, circuit diagram, applications and everything you need to know. Let’s dive in and explore what is this about and how it is used for the execution of electronic projects.

Introduction to PNP Transistor

  • The PNP transistor is a type of bipolar transistor used for amplification and switching purpose and for the designing of the complementary output stage in combination with NPN transistor.
  • It comes with three terminals called emitter, base, and collector where small current at the base terminal is used to control large current at other terminals.
  • It is a current controlled device also known as sinking device where it sinks current into its base terminal and current flows out of the collector.
  • Unlike NPN transistor, current flows from the emitter to collector in this PNP transistor and holes act as a majority charge carriers.
  • This transistor comes with same characteristics as NPN transistor but there are some exceptions. In case of PNP transistor, all voltage polarities and current directions will be reversed as compared to NPN transistor. The PNP transistor sinks current into its base while NPN transistor sources current through its base terminal.
  • Both NPN and PNP transistors are current controlled devices where conduction is carried out by both charge carriers i.e. electrons and holes, but major charge carriers are electrons in case of NPN transistors. While in case of PNP transistor major charge carriers are holes.
  • The PNP transistor is like a combination of diodes combined back to back from cathode sides.
Construction
  • This PNP transistor is composed of two P-doped layers and one N-doped layer where N-doped layer represents the base of the transistor while other P doped layers represent emitter and collector respectively.
  • The base of the transistor is more negative than the emitter terminal.
  • All three terminals in the PNP transistor are different in terms of doping concentration and size.
  • An emitter is highly doped and exhibits 100% current of the transistor while a base is lightly doped which is responsible for the transistor action and controls the number of holes in case of PNP transistor.
  • While collector is lightly doped and comes in a bigger size as compared to other two terminals and collects the number of holes.
Circuit Diagram
  • Following figure shows the circuit diagram of PNP transistor.
  • In PNP transistor, a source voltage is applied at the emitter terminal (instead of collector terminal in case of NPN transistor) and load resistor is applied that is used to resist the current in the collector terminal.
  • Similarly, a bias voltage is applied at the base terminals and a base resistor is connected to this terminal in order to limit the current flowing through this terminal.
  • The emitter is connected to a positive voltage while the base is connected to the negative voltage.
Working
  • Similar to NPN transistor, PNP transistor comes with two pn junctions i.e. emitter-base junction and collector-base junction.
  • An emitter-base junction is forward biased and shows low resistance while collector-base junction is reverse biased and exhibits high resistance. Steps and process required to make these junctions forward biased and reverse biased are different than NPN transistors.
  • Emitter-base junction will become forward biased when a base is negative with respect to the emitter and the voltage at the base side is 0.7 V less than the voltage at the emitter side.
  • Similarly, emitter-base junction is made reverse biased when applied collector voltage is negative. In case of PNP transistor, emitter voltage is much larger than collector voltage.
  • In order to conduct for PNP transistor, emitter voltage must be more positive as compared to both base and collector.
  • The transistor will turn on when there is small current flowing from emitter to base terminal.
  • In PNP transistors emitter emits holes as compared to NPN where emitter emits electrons.
  • When a proper bias voltage is applied at the base terminal, it gets biased and the holes present at emitter terminal moves to the base terminal where they combine with the electron present at this terminal. This generates the small current at the base terminal.
  • The base is very thin so it is very difficult for a base to accept all holes injected by the emitter, as a result, most of the holes leave the base terminal and enter collector terminal.
Matched Switch
  • Combination of PNP transistor with NPN transistor is used for designing and development of the power amplifier circuits. Power B amplifiers are the great example of this amplifier circuits where both PNP and NPN transistors are incorporated together to generate high amplification cycle.
  • Pair of NPN and PNP transistor used in Class B amplifiers is called complementary or matched switch where PNP transistor conducts for the negative half cycle while NPN transistor conducts for the positive half cycle of the transistor.
  • This process is used to generate required power for the loudspeaker in both directions. The resulting power generates at the output current is very high which is then equally shared between matched switch composed of NPN and PNP transistor.
Output Characteristics Curve
  • The output characteristic curve of PNP transistor looks identical to that of NPN transistor but there is one exception i.e. it is rotated by 180 degrees.
  • The same load line is drawn on the characteristic curve that we drew in case of NPN transistor that mentions the operating points of the transistor.
  • The following figure shows the characteristics curve of PNP transistor which is drawn between the output current and collector-emitter voltage and is rotated by 180 degrees where current directions and voltage polarities are reversed. The supply voltage becomes negative for PNP transistor.
  • The current gains (alpha, beta) value are much less in PNP transistor as compared to NPN transistor. We can calculate the beta value from the following equation;
Difference between PNP and NPN Transistors
  • The PNP transistor is known as sinking device while NPN transistor is known as sourcing device.
  • The main difference between PNP and NPN transistor is the proper biasing of the base terminal where current directions and voltage polarities are always opposite to each other.
  • In PNP transistor, holes are majority carriers while in NPN transistor electrons are majority carriers.
  • The emitter voltage is made more positive as compared to both base and collector in PNP transistor. While collector voltage is made more positive as compared to base and emitter in case of NPN transistor.
  • The PNP transistor will be considered ON when there is no current at the base terminal. The NPN transistor will be considered ON when there is enough current present at the base terminal.
  • In PNP transistor current flows from the emitter to collector, while in case of NPN transistor current flows from collector to emitter.
  • The base is positive in case of NPN transistor while it is negative in PNP transistor.
  • When there is enough voltage applied at the base terminal it gets biased in case of NPN terminal while in case of PNP transistor, negative voltage 0.7 V less than emitter voltage must be applied to trigger transistor action.
Applications
  • This transistor is used as a switch for electronic signals.
  • It is used in amplifying circuits.
  • Used as a matched switch in combination with NPN transistor for generating continuous power.
  • Current flow involving heavy motors makes use of these transistors.
  • Used in robotic applications where current sinking is required.
That's all for today. I hope you have found this article useful. If you are unsure or have any question, you can ask me in the comment section below. I'd love to help you in any way I can. You are most welcome to add anything valuable related to this transistor. Thanks for reading the article.

Introduction to NPN Transistor

Hello Friends! I hope you are well. Today, I am going to give you a detailed Introduction to NPN transistor. In this tutorial, we'll look at the NPN transistor, how it works, circuit diagram, output characteristics curve, and applications. It is a bipolar junction transistor mainly used for current amplification and switching purposes. BJTs (Bipolar Junction Transistor) are divided into two types i.e. NPN transistor and PNP transistor. Both transistors are different in terms of their electrical composition and construction, however, both are used for amplification and switching purposes in one way or the other.

What is NPN Transistor?

  • NPN transistor is a bipolar junction transistor(BJT), composed of 3 semiconductor layers in a way that one P-doped layer(Base) is sandwiched between two N-doped layers(Emitter & Collector) and is mainly used for current amplification and fast switching.
  • In NPN transistors, the majority charge carriers are electrons and thus conduction is carried out by the flow of electrons from emitter to collector.
  • NPN transistor package comes with three terminals named:
    1. Emitter.
    2. Base.
    3. Collector.
  • These terminals are used for external connection with the circuit and a small current at the base terminal is used to control the large current at the collector and emitter side. (We will cover it in detail in the working section)
Let's have a look at the symbol of NPN transistor:

NPN Transistor Symbol

  • As we use logos to represent companies, similarly in electronics, specific symbols are used to represent components. These electronic symbols prove helpful in designing circuit diagrams especially block diagrams of electronic models.
  • Below figure shows the NPN transistor's Symbol:
Now let's have a look at the Construction of NPN Transistor:

Construction of NPN Transistor

  • NPN transistor consists of 3 regions, two of them are constructed using N-type semiconductor material while the third one is of P-Type Semiconductor.
  • The P-type region is sandwiched between these two N-Type regions.
  • So hypothetically, NPN Transistor is constructed by connecting two diodes in opposite directions.
  • The equivalent circuit of NPN transistor is shown in the below figure:
  • An NPN transistor has two P-N junctions in it, named as:
    1. Emitter-Base Junction.
    2. Collector Base Junction.

Doping Concentration in NPN Transistor

  • Impurities are added to Intrinsic(Pure) Semiconductors which increase their conductivity and are called Extrinsic(Doped) Semiconductors.
  • In NPN transistors, the Base region is heavily doped, the Emitter is lightly doped while Collector's doping lies in between the Base & Emitter.
  • So, in terms of doping concentration from high to low, we have the sequence as follow:

Base > Collector > Emitter

  • Moreover, the Base region is constructed using P-type semiconductors, while Emitter & Collector are designed using N-type semiconductors.
Now, let's have a look at the working of NPN transistors:

How NPN Transistor Works?

  • The NPN transistor comes with two junctions, called:
    1. Emitter-Base Junction.
    2. Collector-Base Junction.
  • The NPN transistor sets in operating condition when an emitter-base junction is forward biased and the collector-base junction is reverse biased and enough current is present at the base terminal. In order to make emitter-base junction forward biased, a positive voltage is applied at the base side and a negative voltage is applied at the emitter side.
  • Similarly, in order to make emitter-base junction reverse biased, collector voltage must be kept more positive than base and collector.
Circuit Diagram
Following figure shows the circuit diagram of the NPN transistor.
  • We can see from the diagram, voltage and resistive loads are applied at the terminals of the transistor.
  • A negative voltage is connected to the emitter while a positive voltage is connected to the base terminals.
  • The base is more positive with respect to the emitter.
  • The resistive load is applied at the base terminal which limits the current produced in this terminal.
  • The positive voltage is applied at the collector terminal and load resistance is applied at this terminal that limits the electrons entering at this terminal.
Working
  • The base is responsible for initiating transistor action. When a voltage is applied at the base, it gets biased and draws a small current which is then used to control a large current at the collector and emitter side.
  • The base action is considered as an ON-OFF valve that generates current when a proper bias voltage is applied at this terminal.
  • The small change in the voltage applied at the base terminal shows a large impact on the output terminals. Actually, the base acts as an input and the collector acts as an output in NPN transistor.
  • In case of silicon transistor emitter-base junction draws voltage around 0.7 when there is no voltage at the base terminal, in order to initiate the electron action and put the transistor in running condition, the base voltage must be greater than 0.7 voltage in the case of silicon transistor and 0.3 in case of germanium transistor.
  • In the N-side of the transistor which represents emitter, the electrons act as the majority charge carriers which are then diffused into the base when a suitable voltage is applied at the base terminal. These electrons act as minority charge carriers when they enter the base terminal, where they join with holes present in the base. Not all electrons join with the holes present at the base terminal. Some of them join with the holes, and the resulting electron-hole pair disappears. Most of the electrons leave the base terminal and then enter the collector region where they again act as a majority charge carriers.
  • When a voltage is applied across the base terminal, the base current is given by;
 
  • Collector current is directly related to base current times a constant factor.
  • In order to increase the efficiency of the NPN transistor, the base is made very thin and a collector is made thick for two reasons i.e collector can handle more heat and accept more electrons diffused through the base terminal.
Current Gains and Relation between Them
  • Current gains play an important role in the amplification process. The common emitter current gain is a ratio between collector current and base current. It is called beta and denoted by ß. It is also known as an amplification factor which defines the amount of current being amplified.
  • Beta is a ratio between two currents, so it features no unit. The beta value is always greater than unity and ranges between 20 to 1000 - 20 for high power transistors and 1000 for low power transistors, however, most of the time its value is taken as 50.
  • Similarly, a common base current gain is another important factor which is a ratio between collector current and emitter current. It is called alpha and denoted by a. An alpha value ranges between 0.95 and 0.99, however, most of the time its value is taken as unity.
  • Following figure shows the relation between two current gains.
  • IF alpha = 0.99 then b = 0.99/0.01 = 99.
  • An alpha value cannot exceed from unity, because it is a ratio between collector current and emitter current i.e emitter current always remains greater than collector current because it exhibits 100% current of the transistor and is equal to the sum of collector current and base current.
NPN Transistor Configurations
  • This NPN transistor can be configured into three configurations called common emitter configuration, common collector configuration, and common base configuration.
  • Common emitter configuration is mostly used for amplification purpose where base acts as an input, collector acts as an output while emitter acts as a common terminal between input and output.
  • This common emitter configuration acts always operates in a linear region where small current at the base side is used to control large current at the collector side.
  • The common emitter configuration used in the electronic circuits always produces inverted output that is highly affected by the bias voltage and temperature. This configuration is an ideal choice for ampliation circuits because it comes with high input impedance and low output impedance and produces the exact voltage and power gain required for amplification purpose.
  • During common emitter configuration, transistor always operates between saturation and cut-off region that helps in amplifying the negative and positive cycles of the input signals. If the base terminal is not biased with the proper voltage, only half of the signal would be amplified.
Output Characteristics Curve of NPN Transistor
Following figure shows the output characteristic curve of the NPN bipolar transistor which is plotted between output collector current and the collector-emitter voltage with varying base current.
  • As described earlier, there will be no output collector current if the applied voltage at the base terminal is zero. When proper bias voltage above 0.7 V, is applied at the base terminal, it gets biased and draws current that controls and effects the output collector current.
  • We can see, Vce directly effects the value of output collector current as long as the applied voltage is 1 V. Above that value collector current no longer remains under the influence of Vce value. In that case, the collector current is widely dependent and controlled by the base current. A small change in the base current and bias voltage would produce a large change in the collector current.
  • The load resistor applied at the collector terminal controls the amount of current entering the collector terminals. Keeping in the view of the load resistor and the voltage applied at the collector-emitter terminals, the collector current is given by;
  • Straight load line between point A and B falls under active region when an emitter-base junction is forward biased and the transistor conducts where electrons are majority charge carriers.
  • The Q point in the graph can be defined by the load line which is actually referred as an operating point of the transistor.
  • The output characteristics curve of this NPN transistor is used to describe the collector current when base current and collector voltage is given.
  • In order to conduct, collector voltage needs to be more positive than base and emitter.
  • It is important to note that, when an emitter-base junction is not forward biased, Ic will be zero, no matter how much voltage is applied at the base terminals. When the emitter-base junction is forward biased and voltage is applied at the base terminal, it draws small current which is then used to control large current at other terminals.
Difference between NPN and PNP Transistors
  • Both NPN and PNP transistors are different in terms of electrical construction and layers doping. NPN stands for negative-positive-negative and also known as sourcing device. While PNP stands for positive-negative-positive and also known as sinking device.
  • In NPN transistor base is positive as compared to emitter and collector voltage is more positive as compared to both emitter and base. Similarly, in PNP transistor base is negative as compared to emitter and emitter voltage is much larger than collector voltage.
  • The voltage polarities and current directions are reversed in both transistors.
  • The NPN transistor conducts and initiates transistor action when a positive voltage is applied at the base terminal. The PNP transistor conducts when a negative voltage lower 0.7 V (for silicon) than emitter voltage is applied at the base terminal.
  • The NPN transistor uses electrons as majority charge carriers for the conduction while PNP transistor uses holes as majority charge carriers for conduction process.
  • In NPN transistor current flows from the collector to emitter while in case of PNP transistor current flows from emitter to collector terminal.
  • Both transistors differ in terms of how they are powered on. The NPN transistor powers on when there is enough current present at the base terminal while PNP transistor powers on when there is no current at the base terminal.
Now, let's have a look at the applications of NPN transistor:

Applications of NPN Transistor

NPN Transistor is the most commonly used type of transistor because of its wide range of applications. A few of NPN transistor applications are as follows:
  • As NPN transistors are fast switching devices, thus they are used for switching purposes i.e. Pulse Width Modulation.
  • NPN transistors are also used as automatic switches in electronics products.
  • Because of high current gain, NPN transistors are used for current amplification i.e. small current at input allows heavy current to pass at the output(Ic).
  • In embedded computers(i.e. microcontrollers, microprocessors etc.), thousands of transistors are joined together(in SMD form) performing different functions i.e. switching of pins.

Real-Life Applications of NPN Transistor

  • Used in logarithmic converters and high-frequency applications.
  • Signal processing and radio transmission applications involve NPN transistors.
  • Darlington pair circuits make use of this NPN transistor for amplifying signals.
  • Used in temperature sensor.
  • Push-Pull amplifying circuits, which fall under the category of the classic amplifier circuit, make use of this NPN transistor.
  • In small quantities, transistors are used to make logic circuits and in the circuits where amplification is required.
That's all for today. I hope you have got clear what is NPN transistor and why it is used for. If you are unsure or have any questions, you can approach me in the comment section below, I'd love to help you according to the best of my expertise and knowledge. Feel free to keep us updated with your feedback and suggestions, they help us provide you quality content that aligns with your needs and requirements. Thanks for reading the article.
Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir