This repository has been archived by the owner. It is now read-only.
💾 Control your Arduino with Node
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 8 commits ahead of voodootikigod:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Node Arduino

This package is designed to allow you to control and program an arduino chipset with JavaScript. It leverages the node-serialport code base, so ensure that you have that installed. In order to see what this package can do, please watch this presentation from JSConf EU 2010 by Nikolai Onken and Jörn Zaefferer.

How To Use

Using node-arduino is pretty easy because it is pretty basic. It is essentially a wrapper with arduino specific message handling around the node-serialport library.

To Install

npm install git://

To Use

  • Opening an arduino board:
var arduino = require("arduino") 
  , myBoard = arduino.connect("/dev/tty-usbserial1");
  • Getting pin 7 digital value
var arduino = require("arduino")
  , myBoard = arduino.connect("/dev/tty-usbserial1");

myBoard.pinMode(7, arduino.INPUT);

setInterval(function () {
  myBoard.digitalRead(7, function(data) {
}, 100);