Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

connected-arduino-uno

Posting at the Safari Books Online Blog, Derick Bailey has created an Arduino project that bows before Atwood’s Law (“Any application that can be written in JavaScript, will eventually be written in JavaScript.”):

It should be no surprise, then, that JavaScript can also be used to control off-the-shelf hardware, circuits and other electronics like the Arduino platform. Through the use of frameworks like Rick Waldron’s Johnny-Five for NodeJS, and the “StandardFirmata” software package for Arduino, you can write JavaScript on your computer and use it to control and manipulate nearly any aspect of an Arduino-based hardware setup.

But before you take over the world with your JavaScript powered robots, you’ll need to get a few of the basics out of the way. You’ll need to know how to get an Arduino to communicate with your JavaScript program. You’ll need to know how to build a circuit that works properly. And you’ll need to know how to manipulate that circuit, through the use of Arduino, with your JavaScript code. And before you do any of that, you’ll need a few hardware parts to work with.

Check out the article for all the code, Fritzing diagrams, and list of electronic parts you need to control a USB-tethered Arduino from a Node app running on your computer: JavaScript Powered Arduino with Johnny-Five. (You can also find our MAKE books up on Safari Books Online; they’ve got a link at the end of Derick’s post to one of my favorites: Make a Mind-Controlled Arduino Robot.

Brian Jepson

I’m a tinkerer and finally reached the point where I fix more things than I break. When I’m not tinkering, I’m probably editing a book for Maker Media.


Related

Comments

  1. eksith says:

    Reblogged this on This page intentionally left ugly and commented:
    Even though I’m not a JS fan, this is pretty bloody impressive! I think I’ll still stick to C++ for my robot build ;)

  2. So… this is exciting :)

    To anyone reading… If you have any questions, need help or want to show me awesome things you’ve made with Johnny-Five, don’t hesitate to ping me on IRC or twitter @rwaldron or email me directly waldron.rick@gmail.com

  3. Hello! Somesone in my Facebook group shated this website with us so
    I came to give it a look. I’m definitely loving the information.
    I’m book-marking and will be tweeting this to my followers!
    Superb blolg and wonderful design.

In the Maker Shed