Pages menu

Wednesday, August 19, 2020

Ordinary to smart lamp

The project

Using cheap components, you can make your home devices smart. My lamp which used 220 volt ac bulb  which is not common and may not be available on normal neighborhood DIY stores got busted. So instead of finding a bulb replacement, I decided to make use of cheaply available components and make it a smart lamp.

Components


 

1. 5V power supply (old charger)

2. ESP8266 module

3. 5V to 3.3V dc-dc to power up ESP

4. RGB led strip based on WS2812

5. Arduino Uno (only for flashing ESP8266)

Lamp Connections 

Below is the connection for the modules on the final setup when the ESP is already been flashed with the firmware. 

Programming connections

Before making the connections above, I flashed the EPS8266 module in arduino environment. I made use of the arduino uno to flash with the below connections
Arduino Uno    ESP8266
TX                    RX
RX                    TX
3.3V                  3V3, EN
GND                 GND, IO0

Steps

1. Download the Adafruit libraries. Update necessary library using Arduino's library management instead of manually copying manually.

2. Make the setup as described in programming connections

3. Flash the ESP8266 with "Torogi Smart Lamp" sketch in https://github.com/Lakay-Codes/Torogi-Smart-Lamp. (modify the wifi names/passworsds/mqtt broker address)

4. Create the lamp connections as described above.

5. Assemble the lamp.

6. Install the Mosquitto MQTT broker on synology (can be also in any PC or raspberry pi 4)

7. Download a free MQTT client app (IOT On/Off) and test.


Testing the lamp

YouTube video of testing the lamp


Conclusion

I love the outcome. Been using it for a few days and looks great. A cloud MQTT broker may be a good upgrade if things get more serious. With that, it can be controlled outside the home.


7 comments:

  1. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.Best contemporary ceiling fans service provider

    ReplyDelete
  2. The information in the post you posted here is useful because it contains some of the best information available. Thanks for sharing it. Keep up the good work lamp glass shade.

    ReplyDelete
  3. A free example of Betway sports betting - videoodl.cc
    Betway Sports Betting Odds is a free football betting website developed by Digiplay. It was youtube to mp3 iphone founded in 2007 by Digiplay, and has a wide range of betting options.

    ReplyDelete
  4. This article provided me with a wealth of information about led strip light. The article is incredibly helpful and offers some of the most useful information. Thank you for sharing it with us.

    ReplyDelete
  5. The Gaming Industry: The Casino Industry, Industry & History
    From the first decade of the 1980s to the 하남 출장안마 present, gaming has gained 계룡 출장샵 a name for itself. 나주 출장안마 Over 포항 출장샵 the last two decades, Las Vegas has seen over 안산 출장마사지 a million

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Your blog is very valuable which you have shared here about led lights flicker I appreciate the efforts which you have put into this blog and also it is a gainful blog for us. Thank you for sharing this here.

    ReplyDelete