Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 871 Bytes

README.rdoc

File metadata and controls

16 lines (9 loc) · 871 Bytes

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.