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 | Arduino Nano (ATmega328P) |
|---|---|---|
| Logic voltage | 3.3 V | 5 V |
| 5 V tolerant inputs | No | Yes |
| Wi-Fi | No | No |
| Bluetooth | No | No |
| GPIO pins (on this module) | 26 | 22 |
| Analog (ADC) pins | 3 | 8 |
| PWM-capable pins | 26 | 6 |
| I2C pins | Several fixed pin pairs | Fixed pins |
| Typical price in India | ~₹400 | ~₹300 |
Pin counts are for the exact module in our library (Raspberry Pi Pico; Arduino Nano (ATmega328P)). 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 Arduino Nano (ATmega328P) for 5 V sensors and modules without level shifting; it is also more forgiving for beginners.
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.