Hello, I have a light component that is outputting to a special 16 bit output device. When I set the transition length to 2s, it appears choppy, and I’m seeing steps of size 30-80. I’d like to see more, smaller steps. How can I do this?
Do you mind telling us anything about the hardware you are using?
Maybe a esp82xx with software pwm?
Note that this is a software PWM, so there can be some flickering during periods of high WiFi activity. Hardware PWMs like the one on the ESP32 (see ESP32 LEDC Output) are preferred.
Or by chance a esp32 with hardware pwm?
And what about your yaml? How does that look like? What frequencies are you using? So many questions…
I am using GitHub - andyboeh/esphome-dmx512 this DMX output component to control a 16 bit dimmer. I am just seeing fewer and larger steps than I expect (on the order of 200 units per step). This causes my DMX led driver to not appear smooth on the transition. Is there a parameter I’m missing in the documentation for Light or Output that would give me more frequent, smaller steps during the transition? I haven’t found any parameter like that.
One link posted previously hosts a table with “Recommended frequencies” including bit depth and available steps for transission. Thing is for now we don’t even have a clue what hardware you are using and if you can make use of the hardware pwm at all
I am asking about whether, in the root object for Light or Output: are there parameters, like Gamma, but which control the step size of the floating point interpolation. I do not want help with the hardware, only software parameters I may not be aware of.
To get the highest available frequency while still getting the same bit depth it is recommended to pick one of the following frequencies.
Higher bit depth means that the light has more steps available to change from one value to another. This is especially noticeable when the light is below 10% and takes a long transition, e.g. turning slowly off.
Frequency
Bit depth
Available steps for transitions
1220Hz
16
65536
2441Hz
15
32768
4882Hz
14
16384
9765Hz
13
8192
19531Hz
12
4096
The ESP8266 for instance has usually a frequency of 1000Hz with a resolution of 10 bits. This means that there are only 4 steps between each value.
And as said it differs greatly depending of which hardware (esp82xx VS esp32) is used
I believe the step size is determined by the transition length. 2s seems like it would be enough for a smooth transition though. I’d ask in the discord server where the esphome devs hang out or better yet, ask the person who’s repo your using.
It would have been great to see this snippet in your first post or at least second post after your yaml was requested.
Please take the time to read how to ask a good question so you can get quicker help in the future
As the docs state all possible parameters is it as easy to hit this both links
to find out their is not much to tweak for you.
You might want to contact the author of the custom component you are using
After a very quick look it doesn’t seem like esphome is actually involved to much in the dimming and like @Fallingaway24 is stating it just might be your lights (or dmx) is the limiting factor