Raspberry Pi Pico practice problem · Raspberry Pi Pico
PIR alarm
MediumBudget $11MicroPython
A PIR motion sensor has OUT on GP16, VCC on 5 V (VBUS), and GND on GND. Its output is HIGH while it sees motion and for a few seconds afterwards. A red LED is on GP13.
Light the LED while the PIR output is high. The test is quiet at first and adds motion at 1 s.