Skip to content

Logic

What It Does

Logic gates perform a logical operation on their inputs and produce logical outputs. Examples: OR, AND, NOT, NAND, NOR, XOR and XNOR.

OR gates

ABOUTPUT
000
011
101
111

With diodes

With transistors

AND gates

ABOUTPUT
000
010
100
111

With diodes

With transistors

With open collector comparators

NOT gates

AOUTPUT
01
10

With transistors

With diodes and a LED

With leftover parts

NAND gates

ABOUTPUT
001
011
101
110

With transistors

With one transistor

NOR gates

ABOUTPUT
001
010
100
110

With transistors

With one transistor

XOR gates

ABOUTPUT
000
011
101
110

With diodes & transistors

With NAND gates

XNOR gates

ABOUTPUT
001
010
100
111

0010 series

ABOUTPUT
000
010
101
110
  • Notice that input data at A only goes to the output when B is low.
  • Thus a low B "enables" A.

TIP

I really like these circuits because they allow you to enable and disable signals!

0100 series

ABOUTPUT
000
011
100
110

1101 series

ABOUTPUT
001
011
100
111

1011 series

ABOUTPUT
001
010
101
111