You need to install Johnny-Five, PubNub, Jade and Express to run the node.js code with Arduino.
Install all the dependencies:
$ npm install
Start the server:
$ npm start
Then go to http://localhost:3000
on browser
The temperature data comes from a LM35 sensor, and it is published to PubNub.
When you are using Arduino with Johnny-Five, you need to install StandardFirmataPlus to your Arduino to be able to run the code.
- Connect your Arduino to computer with a USB cable.
- On Arduino IDE.
- Go to File > Examples > Firmata > StandardFirmataPlus
- Upload the code to the device.
Now, you are done with Arduino IDE. You can close it and switch to your fave IDE (or keep using Arduino IDE if you like).
- Website of Johnny-Five - Docs
- Website of Express - Docs - v4.x
- Website of PubNub - Docs
- Website of Jade - Docs
An original project of Tomomi ❤ Imura