Browse over 10,000 Electronics Projects using the Page Numbering provided at the bottom of each Page.

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.

 

 

More Articles to Read

Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Teleknitting: TV-based string art
Teleknitting: TV-based string art
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Converting a coffee maker into a 3D printer
Converting a coffee maker into a 3D printer
Sort your M&Ms or Skittles with this ingenious machine
Sort your M&Ms or Skittles with this ingenious machine
The Hunt is both a playful game and tasteful home decor
The Hunt is both a playful game and tasteful home decor
The Rick and Morty Alarm will make sure you’re always on time
The Rick and Morty Alarm will make sure you’re always on time
Build your own MIDI accordion with Arduino
Build your own MIDI accordion with Arduino
A tiny orchestra of Lego Robots driven by Arduino
A tiny orchestra of Lego Robots driven by Arduino
8-bit Frogger game on a digital microfluidics device
8-bit Frogger game on a digital microfluidics device
An experimental game with a conductive rubber band controller
An experimental game with a conductive rubber band controller

Top




Shares