WiFI-RGBWW-module icon indicating copy to clipboard operation
WiFI-RGBWW-module copied to clipboard

Unreliable soft PWM

Open ge0rg opened this issue 9 years ago • 0 comments

Hi,

I've been experimenting with the code in the last days, generally it works pretty well, but I'm getting occasional bright flickers of the LED when driving the PWM at very low values. It seems especially bat at values <6, which you are not using in your gamma_table any more:

https://github.com/4ndreas/WiFI-RGBWW-module/blob/master/WiFi_RGBWW_module_mqtt_example/WiFi_RGBWW_module_mqtt_example.ino#L13-L18

But even with higher values it happens once or twice in an hour, which is very disturbing for a bedroom light. Did you encouner this problem as well? To me it looks like something is disabling interrupts, and thus the PWM code misses its beat.

P.S: time to change your wifi password.

https://github.com/4ndreas/WiFI-RGBWW-module/blob/master/WiFi_RGBWW_module_mqtt_example/WiFi_RGBWW_module_mqtt_example.ino#L58

ge0rg avatar Sep 29 '15 06:09 ge0rg