Skip to content

masuilab/linda-delta-door-open

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linda Delta Door Open

open door-lock with RocketIO::Linda and Servo-motor on Arduino

Video

http://www.youtube.com/watch?v=mHJhTMvtmPQ

Dependencies

Install Dependencies

Install Rubygems

% gem install bundler foreman
% bundle install

Setup Arduino

Install Arduino Firmata v2.2

Arduino IDE -> [File] -> [Examples] -> [Firmata] -> [StandardFirmata]

servo motor -> digital pin 9

Run

set ENV var "LINDA_BASE", "LINDA_SPACE" and "ARDUINO"

% export ARDUINO=/dev/tty.usb-device-name
% export LINDA_BASE=http://linda.example.com
% export LINDA_SPACE=test
% bundle exec ruby linda-door-phidgets-servo.rb

oneline

% LINDA_BASE=http://linda.example.com LINDA_SPACE=test  bundle exec ruby linda-delta-door-open.rb

Install as Service

for launchd (Mac OSX)

% sudo foreman export launchd /Library/LaunchDaemons/ --app linda-delta-door -u `whoami`
% sudo launchctl load -w /Library/LaunchDaemons/linda-delta-door-open-1.plist

for upstart (Ubuntu)

% sudo foreman export upstart /etc/init/ --app linda-delta-door -d `pwd` -u `whoami`
% sudo service linda-delta-door start

About

open door-lock with RocketIO::Linda and Servo-motor on Arduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published