Site icon Circuit Ideas for You

Logic NAND Gate Circuit using Transistors

Logic NAND Gate Circuit using Transistors is very important in digital logic, as it work opposite of AND gate.

Output is HIGH when any input is LOW.

People call the NAND gate a universal gate because it can implement all other basic logic gates, including AND, OR, and NOT.

Truth Table for Logic NAND Gate:

Input AInput BOutput (Y = NOT (A AND B))
001
011
101
110

A NAND gate gives output 1 for all input combinations except when both inputs are 1 and when both A and B are 1 then output becomes 0.

Symbol for Logic NAND Gate:

Symbol for Logic NAND Gate Diagram

Circuit Working:

Parts List:

ComponentsValuesQuantity
Resistors10k 1/4 watt2
220Ω 1/4 watt2
470Ω 1/4 watt1
SemiconductorsTransistors 2N22222
Input LEDs 5mm 20mA2
Output LED 5mm 20mA1
Push buttons2

Power to First Transistor Q1:

First, Vcc supplies power to the collector of Q1, additionally, resistor R5 limits and controls the current flowing through Q1.

Connecting the Transistors:

Then Q1s emitter goes to Q2s collector and this link helps NAND gate to work.

Getting the Output:

Now Q1s collector also goes to output LED1 and this is where final output signal comes.

Inputs Handling:

First input push button1 goes to Q1s base through resistor R1 and this R1 limits current to base.

Same for second input push button2, it goes to Q2s base with resistor R2.

Why NAND is Different Than AND:

AND gate takes output from Q2s emitter and NAND gate takes output from Q1s collector and then this small change makes logic different.

Output Behavior:

If both inputs are HIGH, we press both push buttons and turn ON both Q1 and Q2.

Current flows to ground instead of the output, causing the output LED to indicate a LOW state.

However, if either input goes LOW, at least one push button remains unpressed, which turns OFF the corresponding transistor.

As a result, current cant go to ground and so it flows to output and hence output LED gets HIGH.

Summary:

NAND gate gives HIGH output when any input is LOW.

Formulas:

Transistor Base Resistor:

To turn ON transistor well find base resistor Rbase:

Rbase = (Vin − Vbe) / Ib

where,

LED Current Limiting Resistor:

To stop too much current in LED use RLED:

RLED = (Vsupply − VLED) / ILED

where,

Pull-Up Resistor for Push Buttons:

To keep the logic level HIGH when we do not press the button then use a pull-up resistor.

Rpull-up = Vsupply / Ipull-up

where,

We can use 2N2222 transistors, resistors, LEDs and push buttons to make NAND gate, hence, change values as needed for our own circuit.

How to Build:

To build a Logic NAND Gate Circuit using Transistors follow the below mentioned steps for connections:

Extra Info:

Conclusion:

Overall, this Logic NAND Gate Circuit using Transistors is small but useful, as it gives HIGH output only when any input is LOW; also its very important part of digital logic systems.

Exit mobile version