This simple alarm system features 2 LEDs, a PIR sensor, an LCD display, a buzzer, and a 7-segment display that acts as a countdown timer; all done on the Raspberry Pi Pico.
Credit for the "rpiPicoSegDisplay.py" code goes to peppe8o and can be found at https://peppe8o.com/7-segment-display-and-raspberry-pi-pico-wiring-and-setup-with-micropython/
Credit for the "lcd_api.py" and "pico_l2c_lcd.py" programs goes to Tom's Hardware and can be found at https://www.tomshardware.com/how-to/lcd-display-raspberry-pi-pico
- 1 Raspberry Pi Pico
- 1 solderless breadboard
- 1 solderless mini-breadboard
- 2 LEDs (1 red, 1 green)
- 8 220 Ω resistors
- 2 330 Ω resistors
- 1 active buzzer
- 1 I2C LCD 1602
- 1 PIR sensor
- 1 7-segment-display
- Design the circuit based on the provided breadboard image and schematic below:
- Download and install Thonny. (https://thonny.org/)
- Open Thonny and install Micropython on the Pico.
- Copy the files in this repository to the Pico.
- Open Pico_Alarm_System.py
- Run the code.
- Sleep soundly knowing your items will be safe from intruders.