Salman Faris
Published © GPL3+

Arduino Blink With Node.js

Johnny-Five is the JavaScript Robotics & IoT Platform; in here I'll show you how to blink an LED using Node.js with Johnny-Five.

EasyFull instructions provided9 minutes8,791
Arduino Blink With Node.js

Things used in this project

Story

Read more

Schematics

Arduino + LED

Image002 2rn29therp

Code

blink

JavaScript
    var five = require("johnny-five");  
    var board = new five.Board();     //adding johnny-five
    board.on("ready", function() {   
        console.log("Ready!");       //print Ready if it's ok
        var led = new five.Led(13);  //Arduino Pin-13
        led.blink(500);             //delay  
    });  

Credits

Salman Faris

Salman Faris

11 projects • 227 followers
Maker | Hardware Hacker | Electronics Enthusiast

Comments