Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

envoy/DoorPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DoorPi

Plays a chime when the Envoy front door is opened.

Requirements

  • RPi GPIO library
  • Pygame
  • Raspberry Pi (we used Adafruit Raspberry Pi Rev. B+)
  • Internet connection (wired or wireless, for remote debugging)
  • Reed Switch on GPIO pin 23
  • Green LED on GPIO pin 17
  • Red LED on GPIO pin 4
  • Mono USB-powered speaker

Instructions

Note: These are very loose instructions to help get you started. This guide won't cover the basics of electronic wiring, and Raspbian (the Raspberry Pi flavored Linux distro)

  1. Install Raspbian Wheezy – I recommend using NOOBS (linked) because it's easier.
  2. Use the raspi-config menu to change the default password, set the charset to UTF-8, and set your time zone. Don't skip this step.
  3. Add the wi-fi config
  4. Once at the command prompt, run sudo apt-get update and sudo apt-get upgrade to update your base system.
  5. Run apt-get install git
  6. Clone the repo git clone git@github.com:OutrageousLabs/doorpi.git
  7. sudo mv rc.local /etc/rc.local – this overwrites the default rc.local with one that runs the required scripts on boot.
  8. Try running sudo python chime.py – it should return the following:
listening…
_

If so, the Chime script is now running and listening for the reed switch to activate. When the door opens, it will play a sound from the speaker and light the green LED. When the door is closed, it will return back to the red LED.

  1. Restart your Pi sudo shutdown -r now
  2. When the Pi reboots, it will automatically start the network monitor (which will auto-reconnect WiFi if disconnected) and the chime.py script.

About

Ding Dong! Someone is at the front door.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published