JavaScript Powered Arduino with Johnny-Five

Arduino
JavaScript Powered Arduino with Johnny-Five

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.

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged

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.

View more articles by Brian Jepson
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK