How to conect Javascript and arduino
We have found information in this: lnk in Spanis .
Here's how you can make a project using Arduino and Javascript
The objective of the project is to switch a LED on when the Image is detected by a Neural Network:
Here's a list of the software for this project :
You need to follow these steps
- Connect a LED in 13 of an Arduino
- Install Arduino software in pendrive
- Install drivers for arduino recognition found in folder drivers
- Check the port number in Arduino menu, e.g. Com3 and click on it to be sure of port recognition
- Under examples of Arduino Software, upload Arduino Standart-Firmata
- Install node.js 8.9.4LT2 version. It's a JavaScript server listening to http://localhost:8080 or http://127.0.0.1:8080
- Open the Unix Terminal and execute "node hello.js" to check the server is working
- Write in terminal "npm install johnny-five" this is a node package managment (NPM) found at npmjs.org
- Alternative to NPM isBower because is another powerfull pack manager. To use bower you need to install git from github.com and write in the terminal "npm install -g bower"
- NMP install express
- NPM install socket.io --save
- NPM install arduino-firmata