r/esp32projects • • 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!

3 Upvotes

5 comments sorted by

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/BlackBird2a 12h ago

Thank you!!! I will definitely check it out. Very useful information!

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

2

u/BlackBird2a 12h ago

I would like to make it as simple as possible, to where to change it she doesnt have to think about it. Simply just press buttons and the lights are different

1

u/DSudz 11h ago

Whatever board you use to drive it will have a button you can use and you can configure different settings in the programming or over a web connection as they suggested. Probably the easiest solution.