I work from home, and my workspace also happens to directly attatch to the garage. Because of this, my family often needs access to the garage, but does not know if I can be disturbed. This system will give them a definitive answer, by placing adjustable LEDs on the outside of the office and garage doors.
Please feel free to use everything here to build your own.
- You will need to set up a Raspberry Pi. Click Here for Instructions
NOTE: I used some larger LEDs for the "above door" unit, but that is optional.
| Item | Quantity | Link |
|---|---|---|
| Raspberry Pi Zero | 1 | Microcenter |
| Red LEDs | 2 | Amazon |
| Yellow LEDs | 2 | Amazon |
| Green LEDs | 2 | Amazon |
| BLue LED | 1 | Amazon |
| 1KΩ Resistors | 3 | Amazon |
| 220Ω Resistors | 2 | Amazon |
| 147Ω Resistors | 6 | Amazon |
| 12mm Colored Buttons | 3 | Amazon |
| Two-Prong Button | 1 | Amazon |
| Wire | 25ft | Amazon |
This diagram represents the circuit for the "desk" unit. For the "door" unit, simply omit the buttons.
Use the table in the Connections section to connect the pins to the Pi's pins.
Value for buttons: 1KΩ
Value for Green and Yellow LEDs: 147Ω
Value for Red LEDs: 220Ω
| Purpose | Pin (BCM) |
|---|---|
| Power Indicator | 17 |
| Red LED - Desk | 5 |
| Red LED - Hall | 11 |
| Yellow LED - Desk | 6 |
| Yellow LED - Hall | 13 |
| Green LED - Desk | 26 |
| Green LED - Hall | 19 |
| Button - Lights OFF | 12 |
| Button - Red Light ON | 23 |
| Button - Yellow Light ON | 24 |
| Button - Green Light ON | 25 |
1. Clone the Repo
git clone https://github.com/DavidMiles1925/office_stoplight.git2. Navigate to Program Directory
cd office_stoplight3. Test the program
sudo python stoplight.py4. Set to Run on Startup
sudo nano /etc/rc.localFor instructions on making the program run on startup, look here: Configure a Program to Run on Startup
- RED: DO NOT DISTURB
- YELLOW: You can come in, but be quiet.
- GREEN: Come on in!
Prototying
Main Unit - Final
Door Unit - Final






