Contents  Science and Technology > Basic logic circuits 
 

This page has circuit diagrams for very basic implementations of common logic gates

[WARNING: Build and operate these circuits at your own risk! The author accepts NO RESPONSIBILITY for injury, loss of life or any form of damage caused as a result of following the instructions on this page. While these circuits are probably safe to operate, you should not attempt to use them without first having an understanding of electronics. DO NOT connect these to a mains power source! These circuits HAVE NOT BEEN TESTED and are not guaranteed to work correctly if at all]

Recommended power supply: 1.5 volts DC (or 1 AA battery)

Logical AND gate

Both A and B must be closed to turn on the LED

A logical OR gate circuit

The LED will light if either A or B, or both A and B are closed

A logical NAND (Not-AND) gate circuit

A logical not-AND gate. Whether either A or B are closed (1), or both are open, the LED will continue to operate, but when both A and B are closed the LED turns off.

A logical NOR (Not-OR) gate circuit

Logical not-OR gate. The LED only lights if neither A nor B are closed (input 1)

A logical NOT gate circuit

This circuit is the same as the inverter. When A is not closed (input = 0), the LED lights (output = 1). When A is closed (input = 1), the LED will switch off (output = 0)

A logical inverter circuit

Once the power is on, the control switch acts as the input. With the control switch open (input 0), the LED will be on, but with it closed (input 1), the LED will turn off. The circuit inverts the input (1 becomes 0, 0 becomes 1).

Electricity always takes the shortest path, this means that when the power switch is closed, the electricity takes the only path available (through the LED), but when the control switch closes, it takes a much simpler route (there is less resistance in passing through the control switch)

Copyright © 2003-2007 Matt Squire. All rights reserved. No content may be duplicated without express written permission.
Hand coded by a thousand monkeys under the direction of Matt Squire
contact: mattsquire at insidereality dot net | Legal stuff

When in doubt, reverse the polarity