Close
0%
0%

ESP32-MeshKit custom RGB LED Lamps

Use this RGB Leds that are in your garage to build your own Lights. As simple as Leds, Ω and soldiering (To be safe max. 30 mA per GPIO)

Similar projects worth following
The Espressif ESP-Mesh took a different approach than Osram or Phillips: Every device is a network member making a Mesh of interconnected devices. There is no gateway because there is no need for one.There is also a very important point that is very interesting if you are a maker like me. It’s open source. That means you don’t need to buy a 60€ light to test it, you can just go to the ESP-Mesh github repository and download ESP-Mesh-Light example to compile it in one of your existing ESP32 Boards. In my first approach I just built a 6*3 matrix of RGB Leds and documented the aprox. consumption of every line of 6 LEDs (calculated using a 1K Resistance for each 6 Leds)Red: 2.4 mA *3 -- 7.2 mABlue: 1.8 mA *3 -- 5.4 mAGreen: 2.1 mA *3 6.3 mA
This project is sponsored by http://CALE.es your Screen manager for ESP32

This all started when Espressif sent me a white Button that is part of their ESP-MDF examples. The funny part of the history is that I could never register the button in the App. But exploring the Mesh Development Framework I found a light example and my internal "light" flashed. Heck! There is a light ready to compile. And has PWM outputs, and there is an App ready to control it, what can be better than this ?
So actually you have to make the "hardware" part. The software is already done, with the benefit that is open-source, and in the road of creation you can learn a bit more of MQTT*, ESP-NOW and even monitor to see how the light receives this short messages and interacts with them in real time. MQTT messages are lighting fast since they use UDP instead of HTTP that has a lot of headers and would be actually totally over-engineered to use in this scenario.

So actually you need some Leds, any ESP32 board, and the appropiate resistances for each line of Led. I'm not an expert calculating those so this part I leave to the electronic masters here. This way you can build a light for approx. 10 dollars while learning quite a lot in the process and even maybe getting some other cool ideas to do with the ESP-MESH App. 

App for Android: https://www.espressif.com/en/products/software/esp-mesh/resources

App for Apple, search in the Ipad or Iphone "ESP-MESH" NOTE: Deactivate the filter only for iPad since the app is released only for iPhones.


LIGHT Source code to be compiled:

https://github.com/espressif/esp-mdf/tree/master/examples/development_kit/light


PWM Outputs

GPIO4 PWM Red

GPIO16 PWM Green

GPIO5  PWM Blue

GPIO23 PWM_BR output ( I used this for White, not sure if is the right one )

GPIO19 PWM_CT output control ( Color Temperature )









Be cautious to respect the max. 30/ top max 40 mA per PWM output. If you need to add more than that then you need to separate the logical outputs from the power outputs.

MQTT a lightweight messaging protocol for small sensors and mobile devices, optimized for high-latency or unreliable networks

10cm-round-lamp.blend

Round Lamp Blender file

x-blender - 811.92 kB - 03/04/2019 at 23:19

Download

rgb-lamp-10cm.stl

10x4 cm rectangular Led Light

sla - 280.36 kB - 03/04/2019 at 23:18

Download

rgb-lamp-10cm-top-Leds.stl

10x4 cm rectangular support top (PCB)

sla - 1.64 kB - 03/04/2019 at 23:18

Download

62783.PDF

This is a 8 Channel HIGH−VOLTAGE SOURCE DRIVER that I recommend not only for the light but also to any project that needs to power more than 30mA with the ESP32 GPIOs

Adobe Portable Document Format - 265.72 kB - 03/04/2019 at 16:47

Preview
Download

10cm-round-lamp-v1.stl

Ready for the Slicer. Print without any supports

sla - 494.52 kB - 02/18/2019 at 22:14

Download

View all 11 files

  • 1 × ESP32 Board Any you have, it does not matter what model, the cheapest you find will work
  • 30 × RGB Leds with GND as common for all (Also one Anode for each color) Any amount will be fine take in account that more than 30mA and you need to separate Logic using a Bus chip or transistor
  • 1 × Only IF > 30 mA per color: 74HC125 or similar https://cdn-reichelt.de/documents/datenblatt/A240/74HC125_74HC126%23STM.pdf
  • 1 × Cables if possible Red, Green and Blue To wire all this together
  • 1 × Spare PCB, size does not matter as long as you can modify the case There is a case example in the Files

View all 6 components

View all 8 project logs

  • 1
    Search components

    Get any spare Esp32 board and prepare to compile. Get some RGB Leds and a spare PCB

  • 2
    Compile the light example
  • 3
    Soldiering

    Build an RGB Led lamp taking in account to add a proper resistance and not passing the 30mA per gpio 

View all 7 instructions

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