Skip to main content

NOT Logic Gate with Transistor

 

Creating a NOT gate using transistor is a fundamental exercise in digital electronics. In this post, I will guide you through the process of building a NOT gate with transistor, explaining each step in detail.

 

What is a NOT Gate?

A NOT gate is a basic digital logic gate that outputs TRUE or HIGH (1) when input is FALSE or LOW. And LOW if input is HIGH. The truth table for a NOT gate is as follows:

Input

Output

0

1

1

0

 

Components Needed

To build a NOT gate, you will need the following components:

  1. NPN Transistors: BC547 (1 No.); Q1.
  2. Resistors: 10K (1 No) - R1.
  3. Resistor: 300E (1 No) – R2.
  4. Resistor: 470E (1 No) – R3.
  5. LED: 5mm Red (1 No) – L1, for output indication.
  6. Switches: Tact Switch/ push button (1 No) – S1.
  7. Power Supply - DC source, +5V, Vds.
  8. Breadboard & Wires - for assembling the circuit

 

Understanding the Circuit

In a NOT gate circuit with NPN transistors, one transistor is used. The output is taken from the Collector of the transistor. The base of the transistor is connected to the input through a resistor, which limits the current and prevents damage to the transistor.

 

Transistor Basics

  • Emitter: The terminal through which current leaves the transistor.
  • Base: The terminal that controls the transistor's switching.
  • Collector: The terminal through which current enters the transistor.

For an NPN transistor, when a small current flows into the base, it allows a larger current to flow from the collector to the emitter.

 

Circuit Diagram



 

Building the NOT Gate

Step 1: Connect the Power Supply

  1. Connect the positive terminal of the power supply (+5V) to the positive rail of the breadboard.
  2. Connect the negative terminal (GND) to the negative rail.

 

Step 2: Place the Components on breadboard (As per your design)

  1. Place one NPN transistor (Q1).
  2. Place one switch (S1).
  3. Place one Red LED.

 

Step 3: Connect the Resistors (Use jumping wires for connections if required)

  1.  Connect resistor (R1) between the positive rail (+5V) and the input of S1.
  2.  Connect the output of S1 to the base of Q1.
  3. Connect the Collectors of Q1 to the one end of resistor R2
  4. Connect another end of R2 to the positive rail.
  5. Connect Emitter of Q1 the ground rail (GND).

 

Step 4: Connect the LED (To show the OUTPUT visually)

  1. Connect the anode of the LED (L1) to the one end of resistor R3.
  2. Connect another end of resistor R3 to the Collector of Q1.
  3. Connect the cathode of the LED (L1) to the GND.

 

Step 5: Testing the Circuit

  1. Apply different combinations of input voltage.
  2. Don’t press S1, LED should be ON.


 

  1. Press S1, LED should be OFF.


 

Note: Value of resistors can be adjusted as per the requirements.

 

 

I hope you liked the information.

 

Comments

Popular posts from this blog

How to Make Automatic Room Light Controller Without Microcontroller

You must have noticed in some offices or hotels, when nobody is in gallery or washroom, the light remains OFF but when somebody enters the place, light switches ON automatically. In this post I am going to teach you how to make this circuit. Before going ahead I would like to tell you that this is VERY EASY circuit. For this circuit the material we need is… PIR Motion sensor General Purpose PCB - 5x5 cm. Transistor 2222N – 1 No. Relay 5V – 1 No. 1K/0.250W – 2 Nos. 10K/0.250W – 1 No. IN4007 – 2 Nos. LED 3mm – 1 No. Connector – 4 Nos. Few wires. Relay Circuit Concept : We can use any relay of 12V, 24V, 5V etc. but we have to consider power supply or battery we will use. Since 5V power supply is easily available and 9V battery can also be used for 5V output (after using 7805 regulator if needed). So I am using 5V relay. PIR sensor has three terminals, One for 5Vdc Second for Gnd (0V). Third for ...

How to drive high voltage/current load by small voltage signal from a microcontroller?

Sometimes we need to control or drive a high voltage and heavy current load by a small voltage signal. For example, if you want to control water motor with your microcontroller output. We know that microcontroller gives only 5v output which is not sufficient to drive a heavy motor. This circuit, about which this post is, is very-very useful for electronics engineer and hobbyist. So pay attention! For this circuit the material we need is… General Purpose PCB - 5x5 cm. Transistor KN 2222A (TO-92) - 1 No. Relay 5V – 1 No. 1K/0.250W – 2 Nos. 10K/0.250W – 1 No. IN4007 – 2 Nos. LED 3mm – 1 No. Connector – 4 Nos. Few wires. Tools. Concept: Weak signal triggers the transistor and transistor acts as a switch for the relay. You can use any relay of 12V, 24V, 5V etc. but we have to consider power supply or battery we will use. Since 5V power supply is easily available and 9V battery can also be used for 5V output (after using 7805 regulator if needed)....

How to control digital output with serial monitor in Arduino

Hello Friends, in this blog we will be controlling digital output with serial monitor command. First let’s understand the working of serial monitor. Serial monitor in Arduino IDE is a tool which allows communication between the computer and Arduino board via a serial connection, normally we use USB cable for connection. What are the features of Serial Monitor? It shows the data sent from the Arduino board by using the functions like Serial.print() or Serial.println(). It allows to send text or numeric data to the Arduino board, which can be read by function like, Serial.read() or Serial.parseInt(), thereafter you can use this data for further analysis and action. We can use this tool for debugging and monitoring the function of the sketch. There is a procedure to use the serial monitor, below are the steps given. First initialize the serial communication in the sketch as given below. Normally baud rate is set 9600.  Void setup(){          Serial.begin(9600)...