Making Ideas Shine with Johnny-Five!!

Get started w/ Johnny-Five on Arduino — #arduSerie 21

J3
Jungletronics
5 min readDec 4, 2016

--

Meet Johnny-Five! It’s an open-source project with a user-friendly API that closely resembles jQuery, making it quite familiar to those already acquainted with web development.

To access the code, just head over to the GitHub repository.

I won’t delve into the specifics of getting started with Johnny-Five, as the official website provides clear and straightforward instructions.

Johnny-Five is the JavaScript Robotics & IoT Platform. Released by Bocoup in 2012, Johnny-Five is maintained by a community of passionate software developers and hardware engineers. Over 75 developers have contributed to building a robust, extensible, and composable ecosystem.

Let us jump straight to the code (it’s on Github too):

Before proceeding, make sure to upload the ‘StandardFirmata’ firmware onto your Arduino board. This step is straightforward and ensures that Firmata can facilitate seamless two-way serial communication between the Arduino and the computer, making the process much smoother.

You’ll need to install Node.js and get Johnny-Five lib:

Now the codes:

Note: NodeBots and Johnny-five are very fashionable words on the internet. It makes programming hardware circuitry very similar to how one would program a modern web page.

NodeBots

The possibility of using the power of JavaScript (and by extension the power of the web!) allows you to think more creatively, especially if you come from a web development background.

Now I’ll show you how I’ve learned to cope with Johnny-Five!!!!

Let’s dissect the RGB code:

The Server side:

Follow me if you will in these six incremental server steps

Now The Client side:

Follow me if you will in these six incremental client steps

What you can make with it:

This page of hackster.io is dedicated to projects aiming at j5. Visit and check it out for yourself !!!

Download All Archives of this Project

Johnny-Five Mantra:

“Be as simple and obvious as possible” — RickWaldron rwaldron

Links:

javascript-arduino-servo-control-tutorial

Arduino Experimentr’s Guide for NodeJS

Rick Waldron Github REPO

Related Post:

Socket-io Intro — Project#1 — Socket_series — Episode #0

edited @set2023 — minor text fixes

--

--

J3
Jungletronics

😎 Gilberto Oliveira Jr | 🖥️ Computer Engineer | 🐍 Python | 🧩 C | 💎 Rails | 🤖 AI & IoT | ✍️