Skip to content

A ruby on rails app that controlls an arduino uno with atmega328p processor through a web interface using the RAD gem.

Notifications You must be signed in to change notification settings

JuliaLovel/arduino-rails

Repository files navigation

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.

About

A ruby on rails app that controlls an arduino uno with atmega328p processor through a web interface using the RAD gem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published