Giter Site home page Giter Site logo

johnny-five's Introduction

Node-isassemble Johnny-Five

Build Status

Johnny-Five is an Open Source, JavaScript Arduino programming framework, developed at Bocoup.

Johnny-Five artwork by Mike Sgier

Many fragments. Some large, some small.

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();

});

Watch it here!

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.

A Little More Guidance

For step-by-step examples, including an electronics primer, check out Arduino Experimenter's Guide for NodeJS by @AnnaGerber

More Input

Board

JSConf

Nodebots

Servo

Motor

Stepper

Sonar/Ultrasonic

Button

Claw

Gripper

Infrared

Joystick

LCD

LED

Magnetometer (Compass)

NodeConf Demos

Wii

Sensors

TinkerKit

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 Rick Waldron [email protected] Licensed under the MIT license.

johnny-five's People

Contributors

rwaldron avatar reconbot avatar protonk avatar divanvisagie avatar rmurphey avatar julianduque avatar ajfisher avatar jhalbrecht avatar mharsch avatar jclem avatar tdd avatar haugstrup avatar pierceray avatar carldanley avatar randallagordon avatar twalker avatar mikesherov avatar sarajo avatar scottgonzalez avatar theycallmeswift avatar thieman avatar vinyll avatar achingbrain avatar shuhblam avatar opheliasdaisies avatar rockbot avatar hardbap avatar jgautier avatar beriberikix avatar jmorrell avatar

Watchers

JT5D avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.