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

    What exactly does PID tuning do?

    Scheduled Pinned Locked Moved
    General Discussion
    5
    35
    3.4k
    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.
    • A Former User?
      A Former User
      last edited by

      Not sure, I've never been too fuzzed about what the actual temperature is, I've always been more concerned with precision rather than accuracy for printer temperature. You have to try out each filament anyways, so if its 230 or 235 is of little importance to me, as long as its the same each time. (And I have a Seek Thermal which should let me check my hotend relatively easy)

      But if you have a thermocouple stick that in boiling water and check that you get a 100C reading. Then stick it on the hotend, preferably inside any insulation you may have, or somehow get a good connection and cover. Allow the hotend to reach its setpoint, and give everything a few minutes to get up to the same temperature and compare?

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

        If it's a Titan Aero and genuine V6 hotend and cartridge thermistor from E3D, then you should get pretty accurate results just by using the thermistor settings provided by E3D.

        What settings are you using?

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • crchisholmundefined
          crchisholm @A Former User
          last edited by

          @bearer I had not thought of the boiling water trick to check the thermocouple. Good idea.

          If the thermocouple passes muster, I will try attaching it to the bare hot end with capton (sp?) tape and see what happens. Thanks.

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

            For the home gamer water to a propper boil, and water filled with ice cubes are the two easiest to recreate temperature references which will be close to 100C and 0C. Just make sure you don't touch the container or ice with the actual probe. But not super usefull for hot end use as its only half to a third of the range, but still, it'll give you some idea.

            Kapton tape to hold the thermocouple to the hotend and giving it some time to stabilize ought give a good reading, provided the temperature the read by the thermistor isn't oscillating.

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

              Is it really a thermocouple you are using, connected to a thermocouple daughter board that is plugged into the Duet, or is it the more common thermistor? It it's a thermistor, then you may just be using the wrong settings in config.g.

              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

              crchisholmundefined 1 Reply Last reply Reply Quote 0
              • crchisholmundefined
                crchisholm @dc42
                last edited by

                @dc42 said in What exactly does PID tuning do?:

                Is it really a thermocouple you are using, connected to a thermocouple daughter board that is plugged into the Duet, or is it the more common thermistor? It it's a thermistor, then you may just be using the wrong settings in config.g.

                I am using a k-type thermocouple on a multi-meter with a temporature function and a thermocouple plug.

                The problem is worse than I thought. I tested the thermocouple/multimeter with boiling water and it was within a couple degrees of 100c. I taped the thermocouple to the heat block and when DWC showed 235c , the thermocouple showed 160c My neighbor has another thermocouple device and we tried with that and got essentially the same reading (157-165)

                I am not using the thermocouple daughter board as I have zero confidence that it will be significantly different that the three devices I have tried. Is their reason to believe otherwise? Also the fact that I have to print PLA at such a high temp seems to confirm that the temp reported in DWC is not accurate.

                Could it be that there is a setting somewhere that does not correctly identify the Titan Aero thermister?

                @Phaedrux - Also the Titan Areo is the real deal....not a knock-off

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

                  I think dc42 meant to ask if you had a thermcouple on the hotend, or basically establish which thermistor you have, and if the settings are correct?

                  crchisholmundefined 1 Reply Last reply Reply Quote 0
                  • crchisholmundefined
                    crchisholm @A Former User
                    last edited by crchisholm

                    @bearer I am not using a thermocouple/daughter board on the hotend. I am using the thernmistor that came with the Titan Aero. If there is a setting that should be tweaked to accomodate that arrangment, I have not done so. That certainly could be the issue.

                    @dc42 I may have miss understood your question

                    Do I really need to go to the Duet daughter board to get anything more accurate than a 65+ inaccuracy? If I have to I will, but I guess I thought the Titan Aero would work as supplied.

                    How do I set the firmware to work with the Titan Aero thermistor? Or that just not a realistic option.

                    mudcruzrundefined 1 Reply Last reply Reply Quote 0
                    • mudcruzrundefined
                      mudcruzr @crchisholm
                      last edited by

                      @crchisholm Check your M305 values in your config.g, I have a Titan Aero and I've never had the slightest reason to suspect the accuracy of the E3D thermistor (It is the cartridge type you have, yes?) My settings are:

                      M305 P1 T100000 B4388 C7.06e-8 R2200 ; Set thermistor + ADC parameters for heater 1

                      But I have a Maestro, for your WiFi I believe the R parameter should be changed to R4700. It should then look like this:

                      M305 P1 T100000 B4388 C7.06e-8 R4700

                      Otherwise, please post your config.g to let us have a look at it.

                      Alan

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

                        @mudcruzr I think your B values are out of date. That was correct for firmware 1.16 and earlier. According to the E3D documentation the values for the Duet Wifi and firmware 1.17 and later should be:

                        M305 P1 T100000 B4725 C7.06e-8 R4700

                        There was a mistake in the configurator that was still using the old values.

                        @crchisholm So check your config.g for the heater section and compare your M305 P1 commands with the one above. A wrong value there would definitely explain the difference in temperature readings.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        mudcruzrundefined 1 Reply Last reply Reply Quote 0
                        • crchisholmundefined
                          crchisholm @mudcruzr
                          last edited by

                          @mudcruzr said

                          M305 P1 T100000 B4388 C7.06e-8 R4700

                          I made the change but not much difference config.g attached.

                          ; Configuration file for Duet WiFi (firmware version 1.21)
                          ; executed by the firmware on start-up
                          ;
                          ; generated by RepRapFirmware Configuration Tool v2 on Fri Feb 01 2019 16:04:24 GMT-0500 (Eastern Standard Time)

                          ; General preferences
                          G90 ; Send absolute coordinates...
                          M83 ; ...but relative extruder moves

                          M667 S1 ; Select CoreXY mode

                          ; Network
                          M550 P"Core XY" ; Set machine name
                          M552 S1 ; Enable network
                          ; M587 S"BHNDVW3201B4B28" P"3c5d116a" ; Configure access point. You can delete this line once connected
                          M586 P0 S1 ; Enable HTTP
                          M586 P1 S0 ; Disable FTP
                          M586 P2 S0 ; Disable Telnet

                          ; Drives
                          M569 P0 S0 ; Drive 0 goes backwards
                          M569 P1 S0 ; Drive 1 goes backwards
                          M569 P2 S1 ; Drive 2 goes forwards
                          M569 P3 S0 ; Drive 3 goes forwards
                          M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation

                          M92 X80.5369 Y100.7067 Z399.9219 E416.666 ; Set steps per mm

                          M566 X900.00 Y900.00 Z150.00 E857.1428 ; Set maximum instantaneous speed changes (mm/min)
                          M203 X18000.00 Y6000.00 Z380.00 E1500.00 ; Set maximum speeds (mm/min)
                          M201 X3000.00 Y500.00 Z100.00 E10000.00 ; Set accelerations (mm/s^2)
                          M906 X950.00 Y950.00 Z950.00 E950.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
                          M84 S30 ; Set idle timeout

                          ; Axis Limits
                          M208 X0 Y0 Z0 S1 ; Set axis minima
                          M208 X300 Y270 Z300 S0 ; Set axis maxima

                          ; Endstops
                          M574 X1 Y1 Z1 S0 ; Set active low and disabled endstops

                          ; Z-Probe
                          ;M574 Z1 S2 ; Set endstops controlled by probe
                          ;M558 P5 H5 F0 T6000 ; Set Z probe type to switch and the dive height + speeds
                          ;G31 P500 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
                          ;M557 X15:13 Y15:195 S20 ; Define mesh grid

                          ; Heaters
                          M305 P0 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 0
                          M143 H0 S120 ; Set temperature limit for heater 0 to 120C

                          M305 P1 T100000 B4388 C7.06e-8 R4700 ; As suggested by mudcurxzr
                          ;M305 P1 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 1

                          M143 H1 S280 ; Set temperature limit for heater 1 to 280C
                          M305 P2 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 1
                          M143 H2 S280

                          ; Fans
                          M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
                          M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on

                          ; Tools
                          M563 P0 D0 H1 ; Define tool 0
                          G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
                          G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

                          ; Automatic power saving
                          M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

                          ; Attempt to control heater2
                          M307 H2 A-1 C-1 D-1 ; Disable Heater E1 for use with the Berd-Air cooling
                          M106 P0 A2 S0 F30000 ; Fan 0 (Part Cooler) using Heater E1 Mosfet; Custom settings are not configured

                          ; BLTouch code
                          G29 S1
                          M307 H3 A-1 C-1 D-1
                          M558 P9 H5 F100 T2000
                          G31 X30 Y15 Z3 P25
                          G31 P500 Z0.1
                          M375 ; load "heightMape.csv"

                          1 Reply Last reply Reply Quote 0
                          • mudcruzrundefined
                            mudcruzr @Phaedrux
                            last edited by

                            @phaedrux Remember I have a Maestro

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

                              Use your multimeter and measure the resistance of the thermistor at room temperature? Cant see any other possibility than

                              • sensor is bad
                              • input channel is not configured correctly
                              • input channel is bad (try another one?)
                              1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined
                                Phaedrux Moderator @mudcruzr
                                last edited by

                                @mudcruzr said in What exactly does PID tuning do?:

                                @phaedrux Remember I have a Maestro

                                In that case the only thing that changes in the command I posted is the R4700. For the maestro it's R2200, but you can actually leave the R value off completely for boards newer than the 0.6 Duet.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                mudcruzrundefined 1 Reply Last reply Reply Quote 0
                                • mudcruzrundefined
                                  mudcruzr @Phaedrux
                                  last edited by

                                  @phaedrux Sorry m8, missed you were talking about the B parameter. I've changed it and will keep a close eye on temps for a day or two.

                                  Alan

                                  1 Reply Last reply Reply Quote 0
                                  • crchisholmundefined
                                    crchisholm
                                    last edited by

                                    Ok, for good or for bad, I have ordered the thermocouple daughter board and K type probe for it. I think the reason I didn't want to do that was that I spent a lot of time designing and printing (on another priinter) the case....just the way I wanted it. So now, after installing this, I will be redesigning it again. Oh well.

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

                                      So this didn't give a good result?

                                      M305 P1 T100000 B4725 C7.06e-8

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      crchisholmundefined 1 Reply Last reply Reply Quote 0
                                      • crchisholmundefined
                                        crchisholm @Phaedrux
                                        last edited by

                                        @phaedrux said in What exactly does PID tuning do?:

                                        M305 P1 T100000 B4725 C7.06e-8

                                        @Phaedrux Pretty much the same results. Now I've tried B4138, B4388 and B4725 and the results have not varied any appreciable amount. All registered around 160 to 170
                                        when DWC reported a temp of 235,
                                        (I also added the R4700 on the end because I figured that was just an oversite that it wasn't added, correct?)

                                        @bearer I checked the resistance across the thermiter and it is about 91k which I would think was close enough.

                                        Phaedruxundefined A Former User? 2 Replies Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator @crchisholm
                                          last edited by

                                          @crchisholm said in What exactly does PID tuning do?:

                                          I figured that was just an oversite that it wasn't added,

                                          It doesn't matter if it was included or not, but won't hurt to include it.

                                          I would suggest contacting E3D support, perhaps they can replace your thermistor cartridge for you.

                                          Another way to check where the fault lies is to swap the bed thermistor and hotend thermistor connection on the board. If the fault follows the thermistor, the board is fine at least.

                                          Z-Bot CoreXY Build | Thingiverse Profile

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

                                            @bearer I checked the resistance across the thermiter and it is about 91k which I would think was close enough.

                                            If your ambient temp is about 27C then that should be correct.
                                            (if https://e3d-online.com/100k-ohm-ntc-thermistor-semitec is correct and it is a 104GT-2 (which is replaced by 104NT-4-R025H42G) both should have b=4267 from what I could tell )

                                            Try another input on the Duet?

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