The idea from this project is to present the ability to use arduino board (UNO R3 in this example) as a data capture device (in our case reading temperature), then presenting the captrued data on PC. demo.
The circuit is very simple, I used LM35 as temperature detector as shown in the photo:
I also installed Standara Firmata. Firmata is a protocol (set of rules) for communicating with microcontrollers from software on a computer, smartphone, or tablet. Standard Firmata is a software library that allows Arduino devices to communicate with your computer using the Firmata protocol.
I used a javascript Platform named johnny-five.io, to achieve communication between arduino and nodejs. In this connecting with LM35, you can see the subroutine to read temperature from LM35 connected with arduino.
I also used socket.io engine to achieve realtime data communication between server side (nodejs) and client side (angularjs).
both Johnny-five.io and socket.io are libraries that can be used in nodejs.
Important Note: I tired NODEJS 6.0.0 but it failed to initiate the communication with arduino.
I used AngularJS and client socketio to present the data on the navigator in the realtime, I also used ngRadialGauge. This radial gauge builded using D3.js JavaScript library is designed for Angular.js framework.
Notify me about any bug or question feel free to contact me at my twitter @rakhayyat