Getting Started with Johnny Five for IoT (Part 1)

Getting Started with Johnny Five for IoT (Part 1) © GPL3+

Tomomi Imura, developer evangelist at PubNub, walks through setting up a Arduino simple circuit to blink a LED on-command using Johhny-Five.

  • 7,720 views
  • 0 comments
  • 13 respects

Components and supplies

Apps and online services

About this project

Interested in the world of hardware hacking, but feeling left out because you just don’t have the time to learn another language? Or maybe you aren’t comfortable using Sketch to program? Have no fear, you can easily use JavaScript to program boards like Arduino and Genuino. Yes, just JavaScript!

In this series of video tutorials, Tomomi Imura from PubNub shows you how to start hacking an Arduino board with Node.js using Johnny-Five, a JavaScript Robotics Framework.

Part One covers:

  • Setting up a board.
  • Building the Hello World of hardware, a LED blink.
  • Writing your Johnny-Five code to make it blink according to the program.

Enjoy the tutorial!

Code

blink.jsJavaScript
var five = require('johnny-five');
var board = new five.Board();

board.on('ready', function() {
  var led = new five.Led(13);
  led.blink(500);
});

Schematics

LED - Hello world
Arduino uno led bb annotations

Comments

Similar projects you might like

IoT Blink - Getting started with IoT

Project showcase by AppShed Support

  • 2,026 views
  • 0 comments
  • 11 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 24,838 views
  • 17 comments
  • 75 respects
Add projectSign up / Login