kliment / Sprinter

Firmware for RepRap printers and similar devices
432 stars 329 forks source link

check temperatures more often during PID autotune #204

Closed triffid closed 12 years ago

triffid commented 12 years ago

also tolerate 55c overshoot- default temp is 150c, 205 is not dangerous for hotends

midopple commented 12 years ago

Hi,

The Define #define HEATER_CHECK_INTERVAL 100 is not used for Autotune, only for Heater PID control or ON / OFF Control.

For Autotune there is a fix Value Check every 100 ms the Temperatur and calculate every 1sec the Autotune values

triffid commented 12 years ago

hm ok, I'm getting 50-60c overshoot when I run PID autotune, thought it might not be checking often enough.. it leaves the heater on for a few seconds after it reports exceeding the target over serial which sure doesn't help. Seems to be a few hardcoded 5000ms timeouts in there although I don't understand the algorithm well enough to see their exact purpose just yet

midopple commented 12 years ago

Next days i check the sourcecode and change the overshot value.

midopple commented 12 years ago

Hi,

I have change the Overshot value to 55 °C The cycletime is the same, i need it for calc the I-Factor.

see: https://github.com/kliment/Sprinter/tree/experimental