- node.js : https://nodejs.org/en/
- Install all the required packages via
npm install
- Arduino IDE : https://www.arduino.cc/en/main/software
- Arduino Uno with the following accessories
- Bread-board
- 2x 1k Ohm Resistors
- 2x LED
- 3x Jumper cables
Install the standardFirmataPlus
firmware (read more here: https://github.com/firmata/arduino#usage):
- Connect Arduino
- Navigate to
sketch > Include Library > Manage Libraries
- Filter by "Firmata" and click on the "Firmata by Firmata Developers" item in the list of results.
- Click the Select version dropdown and select the most recent version (note you can also install previous versions)
- 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
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.