Skip to content

Rails app to control an Arduino board through serial-USB

Notifications You must be signed in to change notification settings

arnlen/arduino_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:https://<pi_ip_address>:3000/light/on and http:https://<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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published