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.

BeginnerFull instructions provided9 minutes18,413
Arduino Blink With Node.js

Things used in this project

Story

Read more

Schematics

Arduino + LED

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

26 projects • 410 followers
Maker | Hardware Hacker | Electronics Enthusiast

Comments