The following library is used for work with dimmer, it gives ability to control large ammoun of dimmer. This lib uses with Leonardo, Mega, UNO, ESP8266, ESP32, Arduino M0, Arduino Zero, Arduino Due, STM32.
I get a flicker almost exactly each second mostly noticeable when on low power ( 0 ~ 30 %). The flicker consists of the lamp getting bright for some milliseconds I guess. Dont have a oscilloscope here.
Things I already tried without success to fix the issue.
Serialmonitordim example from the library. Same problem than with my code using the library.
Limit the working angle to make sure the gate isnt on entering next semi-cycle.
Change timer number (from 0 to 2) on esp32.
After turning the gate on a delay of ~60us and turning the gate off again. (shorter delay dont turns the triac on)
Change timer interrupt to 100 times in one semi-cycle (one interrupt each 100us)
Only turn on gate when it was not jet time to turn it off (just in case)
Second timer to run after turning gate on to turn it off again. This second timer configuration produced a reset loop so not even working.
Different pins for zerocrossing and thiristor.
Hope didnt forget anything.
Any help and/or suggestion will be appreciated!
I get a flicker almost exactly each second mostly noticeable when on low power ( 0 ~ 30 %). The flicker consists of the lamp getting bright for some milliseconds I guess. Dont have a oscilloscope here. Things I already tried without success to fix the issue.
Hope didnt forget anything. Any help and/or suggestion will be appreciated!