Hi! I use ESPHome ac_dimmer component to control Sonoff D1 dimmer. And see light flickering, more visible on low volume.
Then I logged D1 zero-cross output and found very unstable behavior. With AC frequency of 50 Hz I expected time between zero-cross signals about 20 ms. But actually this times have values in very large range:
10
149
7
115
14
23
7
23
11
99
6
34
13
27
8
22
7
23
12
28
12
100
7
583
6
23
12
28
12
121
11
168
6
and so on.
What can be a cause of such unstable zero-cross signal? Or may be my understanding of meaning of this pin is wrong?