Open Mesmer88 opened 5 years ago
Also getting inconsistent control on AC load. Looks like when power is above 95, it's actually chopping a lot .
This section doesn't make much sense to me:
/***** * DEFAULT DIMMING MODE (NOT TOGGLE) *****/ if (dimCounter[k] >= dimPulseBegin[k] ) { digitalWrite(dimOutPin[k], HIGH); } if (dimCounter[k] >= (dimPulseBegin[k] + pulseWidth) ) { digitalWrite(dimOutPin[k], LOW); zeroCross[k] = 0; dimCounter[k] = 0; }
Looks like in some conditions it will enter both if statements.
Managed to fix it. You can check this pull request:
https://github.com/RobotDynOfficial/RBDDimmer/pull/8
Also getting inconsistent control on AC load. Looks like when power is above 95, it's actually chopping a lot .
This section doesn't make much sense to me:
Looks like in some conditions it will enter both if statements.