loading

In this tutorial we will see how to control a LYT8266 WiFi bulb in 5 minutes using the new powerful BLYNK platform.

You will need:

-A LYT8266 Bulb (http://authometion.com/shop/en/home/13-lyt8266.html)

-BLYNK APP for iOS or Android + Blynk Arduino libraries (http://www.blynk.cc/getting-started/)

-Arduino environment with ESP8266 support (https://github.com/esp8266/Arduino)

Ok, let's go.

Step 1: Create a New Account on BLYNK

First of all lauch your BLYNK app and create a new account.

Insert you email address and a password than click on NEXT button.

Step 2: Create Your PROJECT

Now it's time to create you first project for control your LYT8266 bulb.

Click on CREATE NEW PROJECT.

Give a name to your project (here we called it LYT8266).

Select ESP8266 in the Hardware Model.

Now you need to send the AUTH TOKEN to your email. Click on the "E-Mail" button to receive it.

Please note that this Token is univocal and will link your Arduino APP to the project on you mobile.

If you change it you will need to recompile the Arduino application with the new token.

Ok, now we can choose the widgets for our first APP.

Step 3: Add Widgets to BLYNK Project: POWER BUTTON

The first widget we need to add is a BUTTON.

Click on the right side of the screen to bring up the widgets list.

Select BUTTON and sets its parameters in this way (look also to the top image):

Name: POWER

OUTPUT: gp15

MODE: SWITCH

Now click ok and move the button on the screen where you prefer.

Step 4: Add Widgets to BLYNK Project: WHITE SLIDER

The second widget we need to add is a SLIDER for the White leds brightness.

Click on the right side of the screen to bring up the widgets list.

Select LARGE SLIDER and sets its parameters in this way (look also to the top image):

Name: White

OUTPUT: gp2

Left values from 0 to 255.

Clicck OK and position it on the screen.

Step 5: Add Widgets to BLYNK Project: ZeRGBa Settings Widget

The last widget we need to add is a zeRGBa controlelr for the RGB leds control.

Click on the right side of the screen to bring up the widgets list.

Select zeRGBa and sets its parameters in this way (look also to the top image):

Name: RGB

Mode: SPLIT

RED PIN: gp13

GREEN PIN: gp12

BLUE PIN: gp14

Left values from 0 to 255.

Clicck OK and position it on the screen.

Step 6: SETTING UP YOUR ARDUINO SKETCH

Before to proceed please double check that BLYNK arduino libraries and ESP8266 boards manager are installed in your arduino environment (please refer to slide N.1).
Now select from Examples->Blynk->BoardsAndShields the ESP8266_Standalone sketch.

This is a very simple sketch where you need only to add the authorization token of your project and the SSID and Password of your router.

Program you LYT8266 with OTA or USB cable with the new sketch.

Step 7: START YOUR BLYNK APP AND CONTROL YOUR LYT

Now you can start your blynk app clicking on the PLAY button on the top right of your APP.

If your LYT8266 is properly connected to your router the Blynk APP will start immediately (the STOP button will apperar instead of PLAY).

Now you can control your bulb.

IMPORTANT: BECAUSE THE POWER SUPPLY HAS BEEN MANUFACTURED TO MANAGE 9W POWER PLEASE DO NOT POWER ON SIMULTANEUSLY WHITE LED AND RGB LED.

Press the POWER button (GP15) to activate the bulb.

Try to move the WHITE slider increasing the brightness. You will see an immediate reaction of your bulb.

Now power off completely the WHITE led moving the slider to zero.

Now try to move your finger on the zeRGBa controller. You can change the color of your bulb!!

Have a look to our video and enjoy with your WiFi bulbs!!

About This Instructable

3,121views

22favorites

License:

More by AUTHOMETION:HOW TO CONTROL a WiFi LYT8266 LED BULB  WITH BLYNK IN 5 MINUTES Automatic lighting management using ambient sounds Use a LYT/WiFi shield to sync LYT radio bulb with music 
Add instructable to: