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 | Arduino Uno R3 | Raspberry Pi Pico |
|---|---|---|
| Logic voltage | 5 V | 3.3 V |
| 5 V tolerant inputs | Yes | No |
| Wi-Fi | No | No |
| Bluetooth | No | No |
| GPIO pins (on this module) | 20 | 26 |
| Analog (ADC) pins | 6 | 3 |
| PWM-capable pins | 6 | 26 |
| I2C pins | Fixed pins | Several fixed pin pairs |
| Typical price in India | ~₹450 | ~₹400 |
Pin counts are for the exact module in our library (Arduino Uno R3; Raspberry Pi Pico). 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
Measure distance with an HC-SR04, show it on a 16×2 I2C LCD and beep when something gets too close.
Arduino Uno R3 · 40 min
Choose the Arduino Uno R3 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.