Raspberry Pi Pico practice problem · Raspberry Pi Pico
One relay, two lamps
HardBudget $29MicroPython
A relay is a changeover switch. Wire one lamp between COM and NO, another between COM and NC, and toggle the relay from a button:
- coil off: the NC lamp is lit, the NO lamp is dark,
- coil on: the NO lamp is lit, the NC lamp is dark.
Exactly one lamp at a time.