A circuit is a set of switches, wires, bulbs and components called
There are seven different types of logic gates, each with a
XOR (exclusively OR)
NAND (not AND)
NOR (not OR)
XNOR (not XOR)
You can experiment by building your own circuits with
interesting properties using the interactivity below. You will be
able to see when current flows and bulbs light up according to the
circuits and settings of the logic gates. Instructions are given at
the bottom of the page.
You can also read and learn more about logic circuits and logic
gates in our article
Full Screen Version
If you can see this message Flash may not be working in your browser
Please see http://nrich.maths.org/techhelp/#flash to enable it.
To build a circuit follow these steps. You can delete mistakes by
clicking on the cross which appears when you hover above the
1. Left-click on the components to drag them on to the circuit
2. FIRST click next to a red dot and drag to the right to create a
wire; THEN you can stretch this wire to join with any other red dot
in the circuit.
3. Click on the switches to turn them on or off. Wires 'fill' with
current unless blocked by an un-triggered logic gate.
4. Click on the logic gates to change their type.
5. Left-click and drag to move the components around.