fabianoriccardi/dimmable-light

Zero cross deviations

Opened this issue · 0 comments

Hi,

Jus trying to get all working correct with new hardware configuration. Zero cross signal is generated by HW just before actual zero cross. Can you point where we can correct delays to make it work correctly?
Managed to delay thyristor firing just near 100procent power by changing 10000 to 12000
#ifdef NETWORK_FREQ_FIXED_50HZ
uint16_t newDelay = 12000 - (uint16_t)(((uint32_t)bri * 10000) / 255);
Otherways it jumps back at the end of previous sinewave. But cant get correct lowest power value. Thyristor closes to early, not with 1-2 procent but 7-8 att the best.
Maybe its not best way to correct this zc discrepancy, but actually looking for advice how we can correct zc hardware errors.