Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Prototyping a smart bulb with JavaScript, Arduino + PubNub

Prototyping a smart bulb with JavaScript, Arduino + PubNub

In this video, our friends at PubNub are going to create a smart home network that builds upon their previous Johnny Five tutorial. They again hack an Arduino Uno using JavaScript, but this time to create the simplest smart bulb. Because by “smart bulb,” we really just mean an LED.

The tutorial was developed by Tomomi Imura from PubNub and also uses Johnny-Five. No, not the robot from the movie Short Circuit. It is an open-source JavaScript robotics framework that lets you program an Arduino with Node.js. The bulb itself is remotely controlled via a web portal.

To establish the realtime communication between the Arduino and a web browser, the PubNub Data Stream Network (DSN) is used. PubNub provides global infrastructure and allows you to build and scale real-time apps and IoT devices quite easily.

The remote controller (web app) is written in JavaScript. This is a simple user interface that includes only one button. While a completed code sample is available on CodePen, this tutorial employs a simplified version so that it’s easier to follow along.

 

Read more Here

 

More Articles to Read

DIY thermal imaging
DIY thermal imaging
IR thermometer hacked into an IR camera
IR thermometer hacked into an IR camera
Bookcase automatically opens to reveal secret lair
Bookcase automatically opens to reveal secret lair
Single tube Lethal Nixie clock
Single tube Lethal Nixie clock
Dot² isn’t your typical coffee table
Dot² isn’t your typical coffee table
A 3D-printed e-drum pad
A 3D-printed e-drum pad
Interactive geodesic LED dome = extreme geometric fun!
Interactive geodesic LED dome = extreme geometric fun!
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
Control a tracked robot with your mind (or joystick)
Control a tracked robot with your mind (or joystick)
Bridge Monitoring System using Wireless Sensor Network
Bridge Monitoring System using Wireless Sensor Network

Top




Shares