How to connect Javascript
We have find information Link in Spanish.
Here's how you can make a project using Arduino and Javascript.
The object of the project is to switch
Here's how to make a list:
You need to follow these steps:
- Connect a LED in pin 13 of Aruino
- 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 o it to be sure of port recognition
- Install node.js 8.9.4 LTS version. It is JavaScript server listening to https://localhost:8080 or https://127.0.0.1:8080
- Open the Unix terminal and execute "node hello.js" to check server is working
- Write in terminal"npm install johnny-five" this is a node package manager (NPM) found at npmjs.org
- Altenative to NPM is Bower because is another powerfull package manager. To use bower you need to install git from github.com and write in the terminal "npm install -g bower"
- npm install express
- npm install socket.io --save
- npm install arduino-firmata
To learn more HTML/CSS, check out these tutorials!