A few days back I was just surfing around the web as a usual loafer and stumbled upon some very cool PC setups with all sorts of amazing lights and everything. And the next thing I knew was that I also wanted these shiny lights. Then I headed over to Amazon and searched for it and then fainted... $75 for just 2 meters of LED!! clearly I couldn't afford that so I thought Why not make my own!!?.. I rushed towards my wardrobe and grabbed a couple of ESP8266's a $4 regular LED strip and BAANNNGGG!(mic drop) I made my very own hue lights in next 6 hours!
Just kiddoing :D but I did made it in a week.
So lets now hop right in!!
WiFi Smart LED Strip
Adjustable Colors and brightness
16 million colors (depends on quality of your LED Strip)
Animates changing colors and color wheel
WebApp to control from smartphone, PC etc. No external app required.
Inbuilt mqtt client, NTP client
Remembers last setting even after power cycle. Settings saved in EEPROM.
Alexa integrated using openhab2
Supports utterances like:
Alexa, Turn on/off
kitchenLED
Alexa set
kitchenLED to RED/GREEN/PINK/TOMATO etc.
Alexa set
kitchenLED to 30%
Control remotly from anywhere in the world using Alexa/Openhab app
Wemosd1 R2 or any other esp8266 development board
A LED strip like this one. We need just the strip and power adopter. I used RGB5050 strip whereas phillips uses a better version RGBW.
IRF530N N-channel MOSFET with logic level gate like this X3
DC-DC Step down power module like this or you may use LM7805 Voltage Regulator IC
Resistances 220 ohm X3
General purpose PCB
RGB5050 LED's works on 12v whereas the wemos D1 mini needs 5v input. I have used a DC-DC step down power module to step down from 12v to 5v. This module is very tiny and to select output voltage to 5v You need to solder a very tiny jumper wire . Soldering on a smallboard like this can be difficult specially if you're new to the business. Alternatively LM7805 module can also be used.
ESP8266 outputs 3.3v that's why we need logic level MOSFET. If you are looking for an alternate MOSFET make sure that it is logic level gate driven.
The esp8266 PWM signal is only 3.3v, it can not drive RGB5050 LED on it's own. I have fed 3.3v PWM signal to MOSFET Gate which inturn feeds 12v power to RGBLED as par the input gate signal.
My working prototype:
Now before I start this make sure your openhab2 setup satisfy the
following requirements:
MQTT Binding or MQTT Broker installed and configured.
Amazon Echo Control Binding installed and configured
Login to Openhab
http://<your openhab IP>:8080/start/index
open PaperUI
Configure a Things
Click on + icon to add new
Thing
Choose MQTT Binding
Manually
add thing
Generic MQTT Thing
Save by clicking on blue
icon
Click on just created thing
Kitchen_LED(Yeah I use it in
my kitchen..)
Click on + icon to add
channels
Fill it and save
Click on Things in left pane
Click on just created Thing
Kitchen_LED
Click on round icon
under
Channels.
Link Channel widow will pop
up
Please select a profile:
Default (system default)
Please select the item to
link: + Create new Item
In the category write
“Light”, other fields will be already populated as given below
Click on LINK
Verify that a new Item
Kitchen_LED is now available
Click on copy icon next to
Kitchen_LED_Kitchen_LED
Edit the tags so that Alexa
can discover it
http://<Your LED IP>:8080/
(192.168.1.158 by default)
Select REST APP
Click on items to extend
Click on “PUT /items/{itemname}/tags/{tag}”
to Add tags to Kitchen_LED item so that Alexa can discover this new Device.
Click on “Try it out” to
save
Now It’s all set. Ask Alexa
to Discover Devices.
Rename the
newly discovered Devices as you like
in Alexa App.
I am an IOT enthusiast with more than 20 years of experience in the IT sector. Specializing in telecom service's; follow me for some very innovative and best in class IOT products as I unfold my knowledge and passion for the subject.
Just me, myself and I, exploring the universe of uknownment. I have a heart of love and interests in technology, IOT and travel . And I want to share my world with you .