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,410 views
  • 0 comments
  • 12 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

Team PubNub

Pubnub
PubNub
  • 2 projects
  • 8 followers
Tomomi sfhtml5
Tomomi Imura
  • 2 projects
  • 23 followers

Additional contributors

Published on

July 13, 2016

Members who respect this project

Bicouni20849899Default17629827 1263054917063185 1194709664111071003 nMiavatar fjyvzg53zl0a7f9565 4119 47ac 952a 7027a7784126

and 6 others

Project replicated by

Bicouni
See similar projects
you might like

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,853 views
  • 17 comments
  • 75 respects
Add projectSign up / Login