Firmata & SerialPort powered JavaScript Arduino programming framework.
Why JavaScript? NodeBots: The Rise of JavaScript Robotics
Johnny-Five artwork by Mike Sgier
Biped Nodebot NEW!
LCD Running Man NEW!
- Recommended Starting Kit: Sparkfun Inventor's Kit
- Download Arduino IDE
- OSX
- Linux 32 bit
- Linux 64 bit
- Windows support coming soon.
- Plug in your Arduino or Arduino compatible microcontroller via USB
- Open the Arduino IDE, select: File > Examples > Firmata > StandardFirmata
- Make sure that the version of Firmata is 2.2. There are known issues with 2.3
- Click the "Upload" button.
If the upload was successful, the board is now prepared and you can close the Arduino IDE.
Attention There is a known issue in where the Firmata protocol layer has issues freeing itself on the serial line which results in the program hanging in when it tries to connect. For now, the only way to get around the issue is to send a SIGINT ^C
to kill the hanging program and simply run it again.
git clone git://github.com/rwldrn/johnny-five.git && cd johnny-five
npm install
Install the module with:
npm install johnny-five
var five = require("johnny-five"),
// or "./lib/johnny-five" when running from the source
board = new five.Board();
board.on("ready", function() {
// Create an Led on pin 13 and strobe it on/off
// Optionally set the speed; defaults to 100ms
(new five.Led(13)).strobe();
});
- Accelerometer
- Accelerometer Pan Tilt
- Photoresistor
- Potentiometer
- Sensor
- Sensor Fsr Servo
- Sensor Fsr
- Sensor Ir Led Receiver
- Sensor Slider
- Slider Log
- Slider Pan
- Slider Servo Control
All contributions must adhere to the Idiomatic.js Style Guide, by maintaining the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
(Nothing yet)
Copyright (c) 2012 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license.