As an example, let’s consider the AND gate (the others are OR, NOT, NAND, NOR, XOR and XNOR ... done an excellent job of explaining relay-based logic. The image below show his implementation ...
How well do you know your logic gates? For their final submission for STEM Projects class, [BKriet] gamified the situation using a Raspberry Pi Pico, some blinkenlights, and a not-insignificant ...