Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.23 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.23 KB

Burglarm

Burglar Alarm using RaspberryPi + Go

Schematic
Schematic Shield on Perfboard with Raspberry Pi
Burglarm Schematic Burglarm with RaspberryPi

I know Raspberry Pi is an overkill for this project but I've been wanting to build a simple burglar alarm since long and also wanting to try Go on Raspberry Pi.

Installing Go on RaspberryPi

You can ofcourse build from source but the process is time consuming. Dave Cheney has been generous enough to provide pre-compiled tarballs on his blog.

cd /usr/local
wget http://dave.cheney.net/paste/go1.4.2.linux-arm~multiarch-armv6-1.tar.gz
tar -xvzf go1.4.2.linux-arm~multiarch-armv6-1.tar.gz

Add Go bin to PATH

vim ~/.profile
export PATH=$PATH:/usr/local/go/bin

Configuring LIRC [1]

# Stop LIRC daemon
sudo /etc/init.d/lirc stop

# Create remote control config file
cd ~
irrecord -d /dev/lirc0 lircd.conf

# Copy configuration
sudo cp ~/lircd.conf /etc/lirc/lircd.conf

# Start LIRC daemon
sudo /etc/init.d/lirc start