Raspberry Pi Pico practice problem · Raspberry Pi Pico
Fan thermostat
HardBudget $23MicroPython
A potentiometer on GP26 is the temperature dial; a fan on VBUS is switched by a relay on GP13.
- above 70 %: fan on,
- below 30 %: fan off,
- in between: keep the current state.
So 80 → 50 keeps it running, and 10 → 50 leaves it stopped.