polltery / rest-server-connected-to-arduino

Mobile app available at https://github.com/polltery/augmented-reality-cordova-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AR Server

Prequsities

Arduino setup

Install the standardFirmataPlus firmware (read more here: https://github.com/firmata/arduino#usage):

  1. Connect Arduino
  2. Navigate to sketch > Include Library > Manage Libraries
  3. Filter by "Firmata" and click on the "Firmata by Firmata Developers" item in the list of results.
  4. Click the Select version dropdown and select the most recent version (note you can also install previous versions)
  5. Click Install.

You can now close the Arduino IDE, and clone this project into a folder.

Setup the circuit as given in the diagram below

Circuit sketch

Starting up the server

Make sure Arduino is connected. Start the server by running the command below

node app.js

The server should now be running, all the logs should displayed in the console.

A web interface is available on http://localhost:3000/index.html before using it, please setup the apiUrl in js/interactions.js

Created by Balraj Singh Bains for 4th Year Honours Dissertation at Heriot Watt University.

About

Mobile app available at https://github.com/polltery/augmented-reality-cordova-app


Languages

Language:JavaScript 70.6%Language:CSS 15.0%Language:HTML 14.4%