How to connect Arduino with Firmata

How to connect JavaScript and Arduino

Digital Write programm example Click here

Analog Write programm example Click here

Sound programm example Click here

Simple controlling programm example Click here

We have found information on this webpage.

There you'll find how you can make a project using Arduino and Javascript.

The main objective is to turn on an LED when a certain image is received by an artificial neural network.

This is the "software" we'll need to do this project:

You need to follow these steps:

  1. Connect a LED onto the pin number 13 of your Arduino board
  2. Install arduino software on your pen drive.
  3. Install drivers for Arduino recognition inside a folder called drivers
  4. Check the port number in Arduino menu, e.g."COM3", and click on it in order to be sure of port recognition.
  5. Under examples of Arduino software, upload Arduino Standar-Firmata
  6. Install node.js 8.9.4 LTS version. It is a JavaScript server listening to http://localhost:8080 or http://127.0.0.1:8080
  7. Open the unix terminal and execute "node hello.js" to check server is working
  8. Write in terminal "npm install johnny-five" this is a node package manager (NPM)
  9. Alteratively we coulld use Bower (instead of NPM) because is another powerfull package manager. To use bower you need to install it from github.com and write in the terminal npm install -g bower
  10. npm install express
  11. npm install socket.io --save
  12. npm install arduino-firmata