All Projects → sbstjn → node-arduino-socket

sbstjn / node-arduino-socket

Licence: MIT License
Simple node.js application for piping a serial connection over websockets to your browser

Programming Languages

javascript
184084 projects - #8 most used programming language

Simple Node.js application for piping serial communication from your arduino to a modern web browser with WebSockets.

arduino-socket

See serial.js for setting your serial port and needed baud rate

define(['child_process', 'serialport'], function(child, serialport) {
  var serial = {
    'connect': function(socket) {
      board = new serialport.SerialPort('/dev/tty.usbmodem1a21', {
        baudrate: 9600,
        parser: serialport.parsers.readline("\n")
      });

Install dependencies with npm install, start the application with node app.js and point your web browser to http://localhost:8099 to see your arduino's serial output…

Using Node.js, Express.js, Socket.IO, bootstrap by twitter and some more libs…

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].