Plays a chime when a door is opened.
- RPi GPIO library
- Internet connection (wired or wireless, for remote debugging)
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)
- Install Raspbian Wheezy – I recommend using NOOBS (linked) because it's easier.
- Use the
raspi-configmenu to change the default password and set your time zone. Don't skip this step.
- Once at the command prompt, run
apt get updateand
apt-get upgradeto update your base system.
apt-get install git
- Clone the repo
git clone firstname.lastname@example.org:OutrageousLabs/doorpi.git
sudo mv rc.local /etc/rc.local– this overwrites the default rc.local with one that runs the required scripts on boot.
sudo python chime.py– it should return the following:
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.
Restart your Pi
sudo shutdown -r now
- When the Pi reboots, it will automatically start the network monitor (which will auto-reconnect WiFi if disconnected) and the