Logic Circuits

Boolean logic appears in the KS3 National Curriculum for Computing, and in most GCSE Computer Science courses. This page demonstrates a practical use of Boolean logic to create electrical circuits.

Drag the symbols (logic gates) below into the box to complete the circuit.

AND OR NAND NOR EOR NXOR

You can also click/tap a symbol to copy it and then click/tap to paste it into the box.

Two-Way Light Switch

In your house you probabably have a light with more than one switch - e.g. landing lights often have switches upstairs and downstairs. Add the correct logic gate to the circuit and see if you can get this light work to work in the same way. You can click on Upstairs and Downstairs switches to change them.

Upstairs
Downstairs
Upstairs
Downstairs

Security Light

You can buy security lights that come on only when it's dark and they sense some movement. Add the correct logic gate to the circuit and see if you can get it to work (you can click on Darkness and Movement to change them).

Darkness
Movement
Darkness
Movement
Unfortunately your screen is too small to display this page correctly. If you are using a tablet or phone you could try turning it round to landscape orientation.