Article 5JB13 Opening a Garage Door Using OpenBSD on a Raspberry Pi

Opening a Garage Door Using OpenBSD on a Raspberry Pi

by
from OpenBSD Journal on (#5JB13)

Sven G is back with another tale of using a Raspberry Pi in his garage:

OpenBSD lets one control the GPIO pins on a Raspberry Pi. Controllinga garage door is simple: connect the GPIO output pin to one side of arelay's coil, connect the 5 volt output of the Pi to the other side ofthe relay's coil, and connect wires from your garage's wall console tothe relay's common and "normally closed" ports. Running the program belowopens or closes the door. Since the Pi will be connected to the garagewall console, you'll want to enable sshd. I've named my Pi "garage"and my program "og," so I can open the door remotely with

ssh garage /home/sven/bin/og

Read more...

External Content
Source RSS or Atom Feed
Feed Location http://undeadly.org/cgi?action=rss
Feed Title OpenBSD Journal
Feed Link http://undeadly.org/
Reply 0 comments