Node-isassemble Johnny-Five
Bocoup.
Johnny-Five is an Open Source, JavaScript Arduino programming framework, developed atNodeBots: The Rise of JavaScript Robotics
Why JavaScript?Mike Sgier
Johnny-Five artwork byDocumentation
Documentation for the Johnny-Five API can be found here
Guidance
For step-by-step examples, including an electronics primer, check out Arduino Experimenter's Guide for NodeJS by @AnnaGerber
Setup and Assemble Arduino
- Recommended Starting Kit: Sparkfun Inventor's Kit
- Download Arduino IDE
- Plug in your Arduino or Arduino compatible microcontroller via USB
- Open the Arduino IDE, select: File > Examples > Firmata > StandardFirmata
- Click the "Upload" button.
If the upload was successful, the board is now prepared and you can close the Arduino IDE.
Hey you, here's Johnny!
Source Code:
git clone git://github.com/rwldrn/johnny-five.git && cd johnny-five
npm install
npm package:
Install the module with:
npm install johnny-five
Johnny-Five is...
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();
});
Note: Node will crash if you try to run johnny-five in the node REPL, but board instances will create their own contextual REPL. Put your script in a file.
Many fragments. Some large, some small.
Wireless Nodebot NEW!
Kinect Controlled Robot Arm NEW!
Biped Nodebot
LCD Running Man
Slider Controlled Panning Servo
Joystick Controlled Laser (pan/tilt) 1
Joystick Controlled Laser (pan/tilt) 2
Joystick Controlled Claw
Robot Claw
Joystick, Motor & Led
Example Programs
Board
JSConf
Nodebots
Servo
Motor
Stepper
ESC & Brushless Motor
Sonar/Ultrasonic
Button
Relay
Claw
Gripper
Infrared
Joystick
LCD
LED
Magnetometer (Compass)
NodeConf Demos
Sound
Wii
Sensors
- Accelerometer
- Accelerometer Pan Tilt
- Gyro
- Photoresistor
- Photoresistor Servo
- Potentiometer
- Sensor
- Sensor Fsr Servo
- Sensor Fsr
- Sensor Ir Led Receiver
- Sensor Slider
- Slider Log
- Slider Pan
- Slider Servo Control
- Sensor Temperature
TinkerKit
- Tinkerkit Blink
- Tinkerkit Button
- Tinkerkit Continuous Servo
- Tinkerkit Combo
- Tinkerkit Gyroscope
- Tinkerkit Joystick
- Tinkerkit Linear Pot
- Tinkerkit Rotary
- Tinkerkit Thermistor
- Tinkerkit Tilt
- Tinkerkit Touch
Contributing
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.
Release History
(Nothing yet)
License
Copyright (c) 2012, 2013, 2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license.