Open fenilGhoghari opened 1 year ago
I'm having same issue using pid controller output as dimmer power setting. I've limited pid output to max 98% and now it's ok . This line in RBDmcuESP32.cpp made me to try with max 98% power but it's above my knowledge why it works.
void dimmerLamp::setPower(int power)
{
if (power >= 99)
{
power = 99;
}
dimPower[this->current_num] = power;
dimPulseBegin[this->current_num] = powerBuf[power];
delay(1);
}
We are facing an issue with a library while using the code to dim an AC fan. When we try to set the power to 0 at once, the fan does not stop. On the other hand, if we set it to 100 at once, the fan generates too much flickering. We have defined a few steps for dimming, where 0 represents 0% dimming, 1 represents 25%, 3 represents 50%, 4 represents 75%, and 5 represents 100%.
However, when we try to directly switch from 100% to 0%, the library does not generate the proper signal to handle the AC load, which leads to flickering. We are facing this issue and would appreciate any help to resolve it.