Sample code showing processing.js with Arduino using Node and Socket.io
To run this:
-
Install the Arduino code in potSense onto your Arduino and build the circuit
-
Run
mpn install
to get the required node packages -
In
/public
runbower install
to get proessing.js -
Start the code using
node server.js arduinoSerialPort
where thearduinoSerialPort
will be something like/dev/tty.usbmodem1421