Create Your Own Smart Light Using Electric Imp

Introduction: Create Your Own Smart Light Using Electric Imp

Create your own smart light using Electric Imp. Learn how to control and monitor your lights from mobile, tablet and desktop in 15 minutes. $44 in hardware. Entry level.

Step 1: Hardware

To complete this tutorial you need the following components.

Step 2: Software

In order to connect Electric Imp to the internet follow the official Getting started guide. To fully understand this tutorial you need to know the Electric Imp's concepts behind Agent and Device entities.

Step 3: Hardware Setup

This schema represents the led, resistor and pushbutton setup. With this setup each time you press the button, the LED is turned on and off.

Step 4: Software Setup

Open Lelylan Dashboard and create a new device by following 3 simple steps (if you are new to Lelylan, you can sign up for free).

  1. Set a meaningful name (e.g. bedroom light).

  2. Choose the device type. For this tutorial choose Basic Light. What is a type? A type defines what a device is by defining its properties, functions and statuses. For this tutorial you do not need to now more about.

  3. In order to communicate with the physical device you need to connect Lelylan with the Electric Imp agent. Every agent has a unique url that can be found in your Electric Imp Ide. Copy and paste it into the Custom URI field. In this way Lelylan will forward all requests coming from the dashboard (or APIs) to the Electric Imp.

  4. Get the Device ID and Device Secret. Once the device is created, click the settings link (placed under the device name) and get the device ID and device secret. You'll need them in the next section.

Step 5: Code

Once the (virtual) device is defined on Lelylan you need to make it communicate with the Electric Imp. Copy the Electric Imp Agent and Device sketches below and change the and with your device credentials.

Step 6: You Are Done

Access Lelylan Dashboard and control your connected light from mobile, tablet and desktop. If any problem occours, let @lelylan know.

Step 7: Learn More

Nothing else to do. Everything should be up and running.

If you want to better understand how the code works checkout the code explenation code explenation section.

Be the First to Share


    • Origami Speed Challenge

      Origami Speed Challenge
    • Woodworking Contest

      Woodworking Contest
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest