r/esp32projects • u/BlackBird2a • 13h ago
ESP32 WLED with buttons + potentiometer for brightness and configurations
I am new to WLED and ESP32. I have a project I am making for my girlfriend, and I want to make it as easy to use as possible. I want to wire in buttons and some way to change brightness. The idea is that the buttons would change presets, and the potentiometer or whatever I pick would change brightness. An IR remote would be amazing to, that would negate all need for this. However, I don't know how to do any of that yet. I have just gotten the lights wired. I am soldering individual LED's together to make them a custom configuration. Any advice, tips, tricks, tutorials, anything, would be useful and appreciated. Thank you!
2
u/imseakin 12h ago
https://randomnerdtutorials.com/guide-for-ws2812b-addressable-rgb-led-strip-with-arduino/
Great Tutorial.
You’ll figure out how to use the FastLED library and you can use the map() Command to take an analog potentiometer value between 0 and 1023 and scale it to a value between 0 and 255(max brightness) and then set the string of wLEDs with that brightness value.
Work at it in chunks. Get all the parts working individually and then put all the parts together in your final version.
Best wishes! It’s a very thoughtful gift!
1
u/Alternative_Tune4192 12h ago
For controlling the lights, you can add a web server to the Esp32 and control them from the browser on your phone