Raspberry Pi Pico practice problem · Raspberry Pi Pico
Night lamp
HardBudget $20MicroPython
An LDR divider on GP26 watches the light; a 5 V lamp on a relay (GP13) is the night lamp.
- dark (reading below 40 %): lamp on,
- light (above 40 %): lamp off.
The test starts dark and turns the light on after 1.5 s.