Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    how to use the new heater tuning algorithm on 3.2 ?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    7
    18
    668
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lui2004undefined
      lui2004
      last edited by lui2004

      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

      A Former User? 1 Reply Last reply Reply Quote 0
      • Charlieundefined
        Charlie
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • Charlieundefined
          Charlie
          last edited by

          And M303 H# S# should allow you to tune the heater.
          Tuning

          M303

          lui2004undefined 1 Reply Last reply Reply Quote 0
          • lui2004undefined
            lui2004 @Charlie
            last edited by lui2004

            @Charlie

            i dont understand the config.g for new algortihm

            for tuning is like thats?

            Nozzle thermistor :
            M303 H1 S230
            
            BED:
            M303 H0 S70
            
            
            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator
              last edited by

              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

              Z-Bot CoreXY Build | Thingiverse Profile

              lui2004undefined theruttmeisterundefined 2 Replies Last reply Reply Quote 0
              • lui2004undefined
                lui2004 @Phaedrux
                last edited by

                @Phaedrux

                ok thank @Phaedrux

                what i must change in my config.g ?

                Phaedruxundefined 1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator @lui2004
                  last edited by Phaedrux

                  @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.

                  https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M307_Set_or_report_heating_process_parameters

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • lui2004undefined
                    lui2004
                    last edited by

                    @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 ?

                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @lui2004
                      last edited by

                      @lui2004 Yes, as long as you also have M501 at the end of config.g to load your saved results.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      lui2004undefined 1 Reply Last reply Reply Quote 0
                      • lui2004undefined
                        lui2004 @Phaedrux
                        last edited by

                        @Phaedrux

                        yes i have M501 in my config.g

                        thanks a lot

                        1 Reply Last reply Reply Quote 0
                        • theruttmeisterundefined
                          theruttmeister @Phaedrux
                          last edited by

                          @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.

                          Isolate, substitute, verify.

                          Phaedruxundefined 1 Reply Last reply Reply Quote 0
                          • Phaedruxundefined
                            Phaedrux Moderator @theruttmeister
                            last edited by

                            @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.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 0
                            • dc42undefined
                              dc42 administrators
                              last edited by

                              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.

                              Duet WiFi hardware designer and firmware engineer
                              Please do not ask me for Duet support via PM or email, use the forum
                              http://www.escher3d.com, https://miscsolutions.wordpress.com

                              lui2004undefined 2 Replies Last reply Reply Quote 0
                              • lui2004undefined
                                lui2004 @dc42
                                last edited by

                                @dc42

                                hi

                                can itune booth with:

                                M303 T0 S205 for Hotend

                                and

                                M303 T1 S70 for Bed is that ok ?

                                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                • jay_s_ukundefined
                                  jay_s_uk @lui2004
                                  last edited by

                                  @lui2004 no as the bed isn't a tool.
                                  Tune the bed as normal

                                  M303 H0 S70
                                  

                                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                  1 Reply Last reply Reply Quote 0
                                  • lui2004undefined
                                    lui2004 @dc42
                                    last edited by

                                    @dc42

                                    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
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • dc42undefined
                                      dc42 administrators
                                      last edited by

                                      Yes those look good to me.

                                      Duet WiFi hardware designer and firmware engineer
                                      Please do not ask me for Duet support via PM or email, use the forum
                                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                                      1 Reply Last reply Reply Quote 0
                                      • A Former User?
                                        A Former User @lui2004
                                        last edited by A Former User

                                        @lui2004

                                        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.)

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post
                                        Unless otherwise noted, all forum content is licensed under CC-BY-SA