KlausMu / esp32-fan-controller

ESP32 fan controller with temperature sensor and MQTT
272 stars 48 forks source link

Fan never stops #7

Closed srg74 closed 2 years ago

srg74 commented 2 years ago

Here is a problem, when temperature falling below target point fan never stops.

KlausMu commented 2 years ago

The reason for this can be seen in file "temperatureController.cpp":

} else if (difftemp <= 0.0) { // Temperature is below target temperature. Run fan at minimum speed. newPWMvalue = pwmMinimumValue;

pwmMinimumValue can be set in file "config.h". Default is:

const int pwmMinimumValue = 120;

srg74 commented 2 years ago

Yes, I figured. Sorry for useless post and thank you for excellent code! Your code made to another great project https://github.com/Aircoookie/WLED