-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LED Flickering H801 #7415
Comments
Thanks, I noticed subtle flickering too with Arilux LC01. I hadn't time to check with a scope what's happening yet. |
The PWM is controlled by the SDK. Unlikely that this causes the flicker. As far as I understand you see the flicker only during dimming up and down. In this case the tasmota way how to change the pwm could be an issue. There a recent changes to the code to make this much smoother with a 100Hz instead of 20Hz change process. Anyhow is this really a flickering or is the dumm down process not as smooth as you expect? |
Flickering can also be initiated by the power supply. If you can change this experimental this is also an idea to get more insight in the root cause |
I have also encountered flickering with my RGB strips offcourse most noticble in the lower PWM range.. I attached my Logic Analyzer to a NodeMCU with nothing else attached so no influences. Running 8.1.0 and also 8.1.0.3 I with 5 PWM channels in RGBWW setting ( less channels makes no difference btw ) can clearly see that the PWM Pulse lenght is at random moments off.. That means that a channel 99% of the time is for example 3us and then jumps on the next Pulse to 13us and then back to 3us.. There is no pattern to be found when its off.. The analyzer is set at 10 Mhz so there is nou rounding errors with that us .. Can attach screenshots if wanted or do additional tests.. First time experience with tasmota so no idea how it was in previous versions... |
Thanks. Screenshots would be useful. Can you try with 1 PWM active and all off, then with 2 pwm active. I had a gut feeling it was more obvious at low values. |
Hi, any news on this? |
Any news on this? Have you tried latest Tasmota v8.1.0.4? |
Testing with my H801, I saw marked slow on/off flickering (period like ½ sec) on 8.1, with a CW/WW strip (no RGB) on certain levels of moderate brightness, with color temperature slider in the middle. After upgrading to 8.1.0.4 I was not able to get this blinking again, even trying to do similar things. However, I still see quite visible, and much faster, flickering when going near minimum brightness. This is not constant, but cycling between stable and flickering over periods around a couple of seconds. ... "POWER":"ON","Dimmer":6,"Color":"0,0,0,8,7","HSBColor":"20,1,0","White":6,"CT":314,"Channel":[0,0,0,3,3],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON" ... |
I could now record the behaviour of a friend with an oscilloscope. You can see the PWM signal from channel 4, if you switch channel 5 on, channel 4 starts to flicker, which is perceived as flickering of the LEDs. The behaviour can be reproduced with all channels. I will now test the new Tasmota v8.1.0.4 version to see if the flickering still occurs. |
Thanks, I will try to make a capture with a smaller time scale. There is definitely an issue in the pulse duration. I still don't know if it's the initial pulse that has a wrong duration or a second pulse that is randomly happening. |
I think I found the cause of the flickering, but it will require changes in Arduino Core. |
Fix PWM flickering at low levels (#7415)
For those who are here, like me. As you may see R channel(GPIO15) doesn't flickering on power up. Refer to ESP8266 GPIO table - GPIO15 - pulled to GND. UPDATE: Double check my version of PCB. GPIO15 is R channel as in template H801. Fix my comment. |
Looks like there are two revisions of the board, the image in the template for H801 has a different layout where you connect. |
Yes. The board has index - H807WIFI-210819. The box itself has the same look. NXP 74HC245D on the over side of PCB. |
PROBLEM DESCRIPTION
I have connected 5 LED strips (warm white) to a H801 controller and activated SetOption68 = 1 and set values for Color 23,61,71,69,46 and switch the individual channels ON/OFF, the LED strips start to flicker uncontrolled and differently. The same happens when changing the Color values. The flickering decreases after a short time, but is still noticeable.
If LedTable is set to 0, it is much better, but then the LEDs can only be dimmed in a small range, no gamma correction and the flickering is no longer present during dimming, but is still visible afterwards!
Command Sleep = 0 has no influence on the behaviour described above.
No flickering I have noticed when I set option15 = 1 and set the individual channels with the command PWM 0..255, but with this variant I have no LED functionality anymore and cannot be the solution for the problem!
REQUESTED INFORMATION
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Set Color 23,61,71,69,46, switch the channels ON/OFF individually at random, always wait a moment. Set Color 13,26,3,23,3 and repeat the steps.
EXPECTED BEHAVIOUR
H801 Controller with SetOption68 = 1 and LedTable = 1.
No flickering when dimming or switching ON/OFF the LED channels.
SCREENSHOTS
The text was updated successfully, but these errors were encountered: