Hades logoHades applet banner
relay-based AND and NAND gates

applet icon

The image above shows a thumbnail of the interactive Java applet embedded into this page. Unfortunately, your browser is not Java-aware or Java is disabled in the browser preferences. To start the applet, please enable Java and reload this page. (You might have to restart the browser.)

Circuit Description

This applet demonstrates a three-input logical AND and a two-input logical NAND built with relays.

Click the input switches or type the ('a','b','c') and ('d','e') bindkeys to control the circuit and watch the behavior.

The upper circuit uses three relays, with the coil of each relay connected to one input and ground. Therefore, the relays will activate whenever their corresponding input is driven to a (strong) high level.

A series connection of the switches insures that the output of the AND gate is only driven high when all relays are active. The net result is the logical AND of the three inputs. Here, a strongly-driven high-value at the output is interpreted as a logical 1, while an open (floating) output is interpreted as a logical 0.

The lower circuit demonstrates the corresponding NAND gate with two inputs. A parallel-connection of the relay switches ensures that the output will be logical-1 while at least one relay remains inactive.

Print version | Run this demo in the Hades editor (via Java WebStart)
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)
Impressum http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/05-switched/20-relays/and-nand.html