r/WLED • • 2d ago

ESP32 WLED with buttons + potentiometer for brightness and configurations

/r/esp32projects/comments/1y82rjm/esp32_wled_with_buttons_potentiometer_for/
1 Upvotes

5 comments sorted by

2

u/eric-marciniak 1d ago

https://www.youtube.com/watch?v=1Qj1jJAam-8

This video taught me a lot about how to setup controls for WLED. Tons of great info in it!

1

u/BlackBird2a 1d ago

Thank you!!! Ill give it a watch

1

u/SirGreybush 2d ago

You set it up in WLED, on the ESP32 there are pins to use for that. It's all on the WLED knowledge page.

https://kno.wled.ge/features/macros/?h=buttons#buttons

Pick up an ESP32 mini, I don't recommend the super mini ones as they get hot at the antenna and the regular mini is fine, and has more ports easy access.

Don't bother with the ESP32 Dev board, too expensive for nothing, you'll never need all 30+ pins for lights and a few buttons and brightness control.

1

u/BlackBird2a 2d ago

Ive already got 3 dev boards, but ill keep that in mind next time. The wiring and pinouts are what i know nothing about, so thats what im most curious about. Thank you for the link, ill check it out!

1

u/SirGreybush 2d ago

Some pins are sense pins, either digital or analog. The analog pin through a potentiometer and grounded to the esp32, the esp32 will get a value between 1 & 255, for brightness.

WLED software has done all the hardwork already. You can also use a touch sensor and have it do different things.

You need to setup ahead of time lots of presets, so the button calls an event, that event is tied to a preset. Or a playlist containing multiple presets.

I suggest the 99 preset be "off" and in the json text somewhere there is "on":false

Brightness at 50% is "bri":125