Skip to content

A demonstration of how to use Node.js with an Arduino by communicating over a virtual serial port.

Notifications You must be signed in to change notification settings

closure-poland/arduino-node-thermometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Arduino

First, fire up the Arduino IDE, load the provided .ino file and burn the sketch to an Uno (or other, IDE-compatible) board. Hardware-wise, you will need an analog thermometer (tested with an MCP9700A) hooked up to Analog Input 0.

Node.js

Ensure that all the required modules are installed (this is going to be easier when a package.json is provided):

npm install socket.io serialport

Next, launch the provided server:

node daemon.js

Finally, if everything went right, you should be able to navigate to the Web interface and see the real-time results:

http://localhost:1337/client.html

Enjoy!

About

A demonstration of how to use Node.js with an Arduino by communicating over a virtual serial port.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages