how to use the new heater tuning algorithm on 3.2 ?
-
Hi
i have updated my Duet wifi to newest RRF 3.2 what i must change to use the new heater tuning algorithm ?
thats my actual settings for heater:
; Heaters M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 ; configure sensor 0 as thermistor on pin bedtemp M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0 M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8; configure sensor 1 as thermistor on pin e0temp M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1 M143 H1 S280 ; set temperature limit for heater 1 to 300C M307 H1 B0 S1.00
and how i can tune the bed and thermistor ?
thanks a lot
-
Im new to all of this, but here is my settings. They seem to work well.
; Heater, Extruder 1. M308 S1 P"e0temp" Y"thermistor" A"Extr. 1 Temp" T100000 B4725 C7.06e-8 ; Set (Extruder 1) temperature sensor parameters. ; S (Sensor number): 1. ; P (Pin name): e0temp. ; Y (sensor type): thermistor. ; A (Sensor name): Extr 1. Temp. ; T (Thermistor resistance at 25 deg C): 100,000. ; B (Beta value): 4725. ; C (Coefficient): 7.06e-8. M950 H1 C"e0heat" T1 ; Create heater (extruder 1). ; H (Heater number): 1. ; C (Pin name): e0heat. ; T (Temperature sensor number): 1. M307 H1 R1.481 C620.7:352.3 D6.65 I0 B0 S1.00 V24.1 ; Set heating process parameters. ; H (Heater number): 1. ; R (Heating rate): 1.481. ; C (Dominant time constant of heating process [seconds]): 620.7 (print fans off) : 352.3 (print fans fully on). ; D (Dead time [seconds]): 6.65. ; I (Invert PWM signal): 0 (Not inverted). ; B (Bang bang control): 0 (Disabled). ; S (Maximum PWM frequency to use): 1.00. ; V (Vin calibration supply voltage): 24.1. M143 H1 S285 ; Set maximum heater temperature (deg C).
Specifically within "M307" the "R", "C", "D", "S", and "V" parameters.
-
-
i dont understand the config.g for new algortihm
for tuning is like thats?
Nozzle thermistor : M303 H1 S230 BED: M303 H0 S70
-
For the hot end you can now tune it as a tool instead of just a heater to allow for the tool fan to be part of the tuning process so that the algorithm can compensate for the cooling effects of the part fan.
Ex: M303 T0 S205
-
-
@lui2004 Nothing. You tune as normal and save the results, just like before.
See the entries for M303 and M307 for details on the changes.
-
@Phaedrux said in how to use the new heater tuning algorithm on 3.2 ?:
M303 T0 S205
ok perfect after tuning i will safe it with M500 and its done ?
-
@lui2004 Yes, as long as you also have M501 at the end of config.g to load your saved results.
-
-
@Phaedrux said in how to use the new heater tuning algorithm on 3.2 ?:
For the hot end you can now tune it as a tool instead of just a heater to allow for the tool fan to be part of the tuning process so that the algorithm can compensate for the cooling effects of the part fan.
Ex: M303 T0 S205
Can you elaborate?
There doesn't seem to be a way to auto-tune with both fan on and off, to give the two sets of parameters that would be needed. -
@theruttmeister it should be automatic when you tune as a tool versus as a heater. It will turn the fan on and off during the process and use that info. Beyond that it's all magic to me.
-
I recommend running the tuning with the hot end close to the bed and near the centre of the bed, because proximity of the bed affects the airflow from the fan.
-
-
@lui2004 no as the bed isn't a tool.
Tune the bed as normalM303 H0 S70
-
are my results ok ?
; config-override.g file generated in response to M500 at 2021-01-07 09:03 ; This is a system-generated file - do not edit ; Heater model parameters M307 H0 R0.245 C675.381:675.381 D13.14 S1.00 V24.2 B0 M307 H1 R2.516 C140.883:121.891 D4.68 S1.00 V24.3 B0 ; Workplace coordinates G10 L2 P1 X0.00 Y0.00 Z0.00 G10 L2 P2 X0.00 Y0.00 Z0.00 G10 L2 P3 X0.00 Y0.00 Z0.00 G10 L2 P4 X0.00 Y0.00 Z0.00 G10 L2 P5 X0.00 Y0.00 Z0.00 G10 L2 P6 X0.00 Y0.00 Z0.00 G10 L2 P7 X0.00 Y0.00 Z0.00 G10 L2 P8 X0.00 Y0.00 Z0.00 G10 L2 P9 X0.00 Y0.00 Z0.00 M486 S-1
-
Yes those look good to me.
-
a little bit maybe from my personal observations regarding the new heater tuning algorithm:
We have here a small anycubic-i3-mega that got as new mainboard the duet-pcb, it sits in a wooden chamber with the standard heatplate used as chamber heater and 1 additional fan in the top of that chamber to "cool" the chamber by sucking out air (there are some holes in the bottom plate of the chamber to let new air in when that happens)
When using the new heater tuning algorithm, I leave the door of the chamber open and put the fan of the chamber to max rpm, BECAUSE first I did it the other way round with door closed and chamberfan off and after tuning and saving the tune with M500 I got a heater fault manually heating up, because that time the door was open and the fan on and that was too much for the state it was tuned in (heating too slow/temperature rise too slow).
So long story short: I would recommendate from my observations that you tune with "hardest" surrounding conditions for the heater. With hardest what I mean is, that it has to work hardest. If you tune it with the easiest condition, you might later get a sporadic heater fault when conditions get harder.
(I do not know if that on the long run could be also constrained by something like this request here https://forum.duet3d.com/topic/20844/limiting-ramp-rate-in-heating-algorithm/3?_=1610360187720 but for the moment I can work with it and that is what counts.)