Close
0%
0%

WiFi LED Lamp

ESP8266-equipped decorative lamp

Similar projects worth following
This was just a really simple project that involved hacking an ESP8266 into the guts of a VERY simple 6-LED lamp, that lets me turn the unit on and off over WiFi and MQTT.

This is a pretty simple but fun project; involving adding a little ESP8266 microcontroller to a cheap LED lamp.

The lamp was nice, but it was too bright at night and would keep me up, and I didn't want to be constantly turning it on and off, which would probably wear out the switch (and my patience). So, instead I just added a little ESP8266 and now I can control it over MQTT, which means I can automate when the light goes on or off.

I flashed NodeMCU onto the ESP8266 and programmed the code in Lua, because the absolute simplicity of the project didn't need much else. NodeMCU is a firmware I've used a few times now and I've always been very happy with its performance.

octet-stream - 377.08 kB - 09/21/2016 at 18:48

Download

  • 1 × Cheap LED Lamp On sale in town
  • 1 × ESP8266 With basic carrier board
  • 1 × 1.5kOhm SMD Resistor NPN base resistor
  • 1 × PNP Transistor Switches power to the LEDs
  • 1 × SOT23 3v3 regulator Powers the ESP8266

View all 7 components

  • On Power Supplies

    Sukasa09/21/2016 at 18:48 0 comments

    So, it's always a good idea to check your power supplies when you pull them off the shelf at your local makerspace.

    I pulled a "6v" supply off the shelf and began using it, and I must have been really lucky that it lived long enough for me to disconnect the PNP transistor from my ESP8266 and put an NPN transistor in the way, as it somewhat "broke" afterwards. Instead of putting out 6v, it jumped to 8.5v in to my circuit, which wasn't ever meant to handle more than 5.5-6v. I'm honestly surprised the little SOT23 regulator feeding the ESP8266 didn't cook itself. Let alone the 4.5v LEDs getting nearly 8v.

    (On the bright side, the ESP8266 has some seriously durable inputs. I really should have blown that chip up, but it survived quite happily)

View project log

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates