A simple example using node.js, canvas and javascript integrated with arduino.
This application depends of, express.js 3.x, socket.io and serialport. To install do:
npm install express
npm install serialport
npm install socket.io
npm install http
To run the application, access the node folder and start the app.js
node app.js
After that you can access in your browser:
http://127.0.0.1:8090
Probably you will need edit the USB port, so go to app.js at line 6, and edit:
SerialPort('/dev/tty.usbserial-A800G0JO');
Demo at youtube: http://www.youtube.com/watch?v=6yl_jmYQLhM
If you have problems like this:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
Error: Could not load the bindings file. Tried:
Fix it like this:
npm install serialport@1.0.6
cd node_modules/serialport
node-gyp configure build