Skip to content
A ruby on rails app that controlls an arduino uno with atmega328p processor through a web interface using the RAD gem.
Ruby Makefile C++ HTML CSS JavaScript CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
arduinotest
config
db
doc
examples
ledoff
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.rdoc
Rakefile
arduinotest.rb
config.ru
ledoff.rb

README.rdoc

To Use This Sample App…

  1. Install the latest version of the Arduino software from arduino.cc/en/Main/Software.

  2. Plug up an Arduino with an ATMega3328P processor, with an LED on pin 13 (and Ground pin), over usb.

  3. Change your port name in config/hardware.yml

To match the port of the serial device on your arduino board (can be found in the Arduino software menu Tools>Serial Port)

  1. At the command line, run bundle install and rails s

  2. Go to localhost:3000/ in your browser and you'll see two buttons you can click to turn the LED on and off.

Notes

This app uses rake to compile arduino sketches and write them to the arduino in the background based on a trigger in a rails app (i.e., a button click). If you are looking for a tighter, ruby language integration with the arduino, check out the Dino gem.

Something went wrong with that request. Please try again.