BeginnerRule-checked
Raspberry Pi Pico PIR Motion Alarm
Detect movement with an HC-SR501 PIR sensor and flash an LED and sound a buzzer on a Raspberry Pi Pico.
Raspberry Pi Pico · 30 min
Quick answer
| Feature | Raspberry Pi Pico | Wemos D1 Mini (ESP8266) |
|---|---|---|
| Logic voltage | 3.3 V | 3.3 V |
| 5 V tolerant inputs | No | No |
| Wi-Fi | No | Yes |
| Bluetooth | No | No |
| GPIO pins (on this module) | 26 | 12 |
| Analog (ADC) pins | 3 | 1 |
| PWM-capable pins | 26 | 10 |
| I2C pins | Several fixed pin pairs | Any GPIO (matrix) |
| Typical price in India | ~₹400 | ~₹220 |
Pin counts are for the exact module in our library (Raspberry Pi Pico; Wemos D1 Mini (ESP8266)). Prices are typical online prices for clone boards and vary.
Detect movement with an HC-SR501 PIR sensor and flash an LED and sound a buzzer on a Raspberry Pi Pico.
Raspberry Pi Pico · 30 min
Choose the Wemos D1 Mini (ESP8266) if your project needs Wi-Fi (dashboards, notifications, MQTT, web servers).
Raspberry Pi Pico pins are 3.3 V and not 5 V tolerant. Power the sensor at 3.3 V if it allows, or use a voltage divider or level shifter on signal lines going into the board.