ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
353 stars 50 forks source link

PWM calculation #63

Closed AlexeiBaranov closed 2 years ago

AlexeiBaranov commented 2 years ago

Wonderful job! I would like to give a little advice about autotune. My autotune calculated the coefficients well, but I did not know how to define appropriate PWM. However, that it is easy enough to define - just look at the autotune graph. if I understood correctly, then the average period of time during which the heater was active is the PWM (it was ~3h with my electric Kospel ECKO). Is it worth mentioning in the documentation about the definition of PWM? I think it is possible to log it as one of autotune suggestions in the system log.

image

AlexeiBaranov commented 2 years ago

Or am I wrong?

ScratMan commented 2 years ago

No, it seems the PWM period has no real link with the heating system. Except that it should be long enough to ensure that the high levels can generate enough power, but not too long or it would limit the accuracy of the modulation at lower levels. The 15 to 30 minutes range seems to be a good choice.

LeoI5 commented 10 months ago

image I think PWM should be full period between two start heating