Skip to content

DavidMiles1925/office_stoplight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Office Stoplight

Stoplight GIF

Project Decription

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.

Hardware

Pre-requisites:

  1. You will need to set up a Raspberry Pi. Click Here for Instructions

Components List

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

Circuit Diagram

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.

Diagram

Resistor Values

Value for buttons: 1KΩ

Value for Green and Yellow LEDs: 147Ω

Value for Red LEDs: 220Ω

Connections

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

Pi Diagram

Running the Code

1. Clone the Repo

git clone https://github.com/DavidMiles1925/office_stoplight.git

2. Navigate to Program Directory

cd office_stoplight

3. Test the program

sudo python stoplight.py

4. Set to Run on Startup

sudo nano /etc/rc.local

For instructions on making the program run on startup, look here: Configure a Program to Run on Startup

What the Lights Mean

  • RED: DO NOT DISTURB
  • YELLOW: You can come in, but be quiet.
  • GREEN: Come on in!

Description and Gallery

Prototying

Prototype Open

Main Unit - Final

Main Unit

Door Unit - Final

Door Unit

About

A simple array of LEDs used to signal those outside the office as to your availability.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages