arnlen / arduino_manager

Rails app to control an Arduino board through serial-USB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

From Raspberry to Arduino through serial

Rails app dedicated to receive data, and transmit it to an Arduino, through USB-serial port. The Arduino board would control the world: lights, LCD, motors, etc.

First goal: Turn my light on and off.

This project is designed to work on a Raspberry Pi, with this Arduino sketch.

How to use it?

  • Git clone this repo on your Raspberry Pi
  • Bundle install
  • Connect your Raspberry to your Arduino through USB-serial communication port
  • Edit the initializer config/initializers/arduino.rb with your data
  • rails s -b 0.0.0.0
  • visit the URLs http://<pi_ip_address>:3000/light/on and http://<pi_ip_address>:3000/light/off

Discalmer

Be sure to only run this project on Raspberry Pi. It won't work on another computer, since dependencies would be missing.

About

Rails app to control an Arduino board through serial-USB


Languages

Language:Ruby 73.7%Language:HTML 19.0%Language:CSS 3.5%Language:JavaScript 3.1%Language:CoffeeScript 0.7%