Site icon Circuit Ideas for You

Simple NAND Gate Circuit using Transistors

Simple NAND Gate Circuit using Transistors is very important in digital logic.

It work opposite of AND gate.

Output is HIGH when any input is LOW.

NAND gate is called “universal gate” because we can make all other gates like AND, OR, NOT using it.

Circuit Working:

Parts List:

Component TypeDescriptionQuantity
Resistors
10k 1/4 watt2
220Ω 1/4 watt2
470Ω 1/4 watt1
Semiconductors
Transistors 2N22222
Input LEDs 5mm 20mA2
Output LED 5mm 20mA1
Push buttons2

Power to First Transistor Q1:

We give power Vcc to Q1 at its collector.

Resistor R5 is put between Vcc and Q1 to control current.

Connecting the Transistors:

Q1s emitter goes to Q2s collector.

This link helps NAND gate to work.

Getting the Output:

Q1s collector also goes to output LED1.

This is where final output signal comes.

Inputs Handling:

First input push button1 goes to Q1s base through resistor R1.

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.

NAND gate takes output from Q1s collector.

This small change makes logic different.

Output Behavior:

If both inputs are HIGH then both push buttons is pressed and both Q1 and Q2 is ON.

Current flows to ground not to output.

So output LED gets LOW.

If any input is LOW then any push button is not pressed then one transistor is OFF.

Current cant go to ground and so it flows to output.

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 logic HIGH when button is not pressed then use pull-up resistor:

Rpull-up = Vsupply / Ipull-up

where,

We can use 2N2222 transistors, resistors, LEDs and push buttons to make NAND gate.

Change values as needed for our own circuit.

How to Build:

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

Extra Info:

Conclusion:

This Simple NAND Gate Circuit using Transistors is small but useful.

It gives HIGH output only when any input is LOW.

Very important part of digital logic systems.

References:

NAND gate

Multiple NAND gates built with transistors linked together

Exit mobile version