r/FastLED • u/HundredWithTheForce • May 26 '25
Share_something I made a thing.
Well, two things.
The first thing is an ESP32 driving an 8x32 matrix of WS2812B LEDs. Simply plugging it in, the device rotates through 5 different animations. They are attached to a plastic cylinder, with a slightly larger cylinder as the cover. The diffuser is a sheet of printer paper on the inside of the outer tube.
The second thing is an iOS app that can connect to the ESP32 and control the lamp. You can set any of the animations to run permanently, or rotate through them, showing each for 5 to 60 minutes. You can also select a permanent color for the lamp to display. You can save and load colors.
Future plans are to add more animations that take advantage of the matrix layout. And to build a second one because my wife stole the prototype and put it in the living room.
The ESP32 code lives here.
The iOS code lives here.
2
u/chemdoc77 May 27 '25
Hi u/HundredWithTheForce – AWESOME project! Thank you for sharing all of your code. What plastic did you use for your diffuser? It really does a great job diffusing the pixels.
You might want to look at the following YouTube video:
https://www.youtube.com/watch?v=BR_0xxGl2Xs
with code here:
https://github.com/chemdoc77/CD77_FastLED_MCAS_IR_Controlled/tree/master/CD77_FastLED_MCAS_Ring_IR
It uses IR control to run different complex groups of animations. This might be of interest to you. Also, some of the individual animations in that sketch would look great on your lamp.
I see you like the meteor shower animation, too.
1
u/Marmilicious [Marc Miller] May 26 '25
Very nice project! Even cooler that you incorporated an app.
Did you run into anything that was particularly tricky to sort out?
Thank you for sharing the code.
3
u/sutaburosu [stavros] May 26 '25
I love that you shared the source for the iOS app too. I've never read Swift code before, but now I've seen it, it isn't as scary as I had imagined. Much appreciated.
2
u/ZachVorhies Zach Vorhies May 27 '25
This is a absolutely fantastic.
2
u/No-Importance8307 May 27 '25
How would one go about diffusing these hard spots without sacrificing too much light from the LED ?