A collection of practical CircuitPython projects for the Raspberry Pi Pico, demonstrating integration with various sensors, displays, and actuators.
A real-time environmental monitor that alerts users when conditions go beyond comfortable limits.
Displays real-time temperature and humidity readings on an OLED screen. If the temperature exceeds 28°C or humidity exceeds 58%, a buzzer alerts the user.
- Raspberry Pi Pico
- OLED Display (128x32)
- DHT11 Sensor
- Buzzer
| Component | Pin | Pico GPIO |
|---|---|---|
| OLED | SDA | GP0 |
| SCK | GP1 | |
| DHT11 | OUT | GP2 |
| Buzzer | + | GP3 |
An infrared-based security system that detects unauthorized access to a safe.
| Safe Locked | Safe Violated |
|---|---|
![]() |
![]() |
Monitors the safe door using an IR sensor. When the door is opened, the system triggers an alarm and increments an "intrusion counter" displayed on the OLED screen.
- Raspberry Pi Pico
- OLED Display (128x32)
- IR (Infrared) Obstacle Sensor
- Buzzer
| Component | Pin | Pico GPIO |
|---|---|---|
| OLED | SDA | GP0 |
| SCK | GP1 | |
| IR Sensor | OUT | GP2 |
| Buzzer | + | GP3 |
An automated entry system offering hands-free operation and feedback.
Uses an ultrasonic sensor to detect presence at the door.
- Detection: If someone is in range -> Buzzer beeps & OLED shows "Someone Outside".
- Action: Press the button to open the door (Servo rotates 90°).
- Auto-Close: Door closes automatically after 5 seconds.
- Raspberry Pi Pico
- OLED Display (128x32)
- HC-SR04 Ultrasonic Sensor
- Servo Motor (SG90)
- Push Button
- Buzzer
| Component | Pin | Pico GPIO |
|---|---|---|
| OLED | SDA | GP0 |
| SCK | GP1 | |
| Button | OUT | GP2 |
| Buzzer | + | GP3 |
| Servo | SIG | GP4 |
| Ultrasonic | ECHO | GP20 |
| TRIG | GP21 |
- CircuitPython Firmware: Install the latest CircuitPython uf2 on your Pico.
- Libraries: Copy the
libfolder from this repository to your Pico'slibfolder. This contains essential drivers for the OLED, DHT11, and Servo.
- Clone this repository.
- Choose a project script (e.g.,
Door Control System.py). - Rename the chosen script to
code.pyand copy it to the root of your Pico. - The project will start automatically!
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open-source.






