Build a NAND Gate From Transistors

by Mudbud in Circuits > Electronics

11419 Views, 30 Favorites, 0 Comments

Build a NAND Gate From Transistors

NAND Gate - Intro.jpg

Here I am going to show you how to build a NAND gate from NPN transistors.

If you would like to get a better idea of how I am using the transistors, visit my other guide on building a AND gate.


Parts List

NAND Gate - Parts List.jpg

You are going to need the following parts to build the NAND gate:

  • 1x Breadboard
  • 1x LED (Any color)
  • 1x 1K Ohm resistor
  • 2x 10K Ohm resistors
  • 2x NPN Transistors (I used the 2N2222)
  • 2x N.O. Push buttons
  • 5x Various length wires/Jumper wires

You also need to know how to build a circuit from a schematic.

Schematic / Truth Table

NAND Gate - Schematic and Truth Table.jpg
NAND Gate - Universal Logic Gate.jpg

To build the NAND gate, just follow the schematic from the above image. The truth table is also shown, if your build doesn't match the states listed in there then you have done something wrong :( .

The NAND gate is actually somewhat special in that its also referred to as a universal logic gate, being that it can be used in combinations to make all the other gates (AND, OR, NOR, XOR, XNOR,) just by itself. I have (poorly) drawn three combinations of NAND gates to simulate a OR, AND, and inverter.