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

    Heater config not working, why?

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    3
    10
    319
    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.
    • Chrissundefined
      Chriss
      last edited by

      Hi *,

      I have a problem with my new setup. (The config is still a bit "wild", do not be shocked, you have been warned. (Mini 5+ FW 3.3)

      Thing is: The bed heater does not work:

      ; Bed
      M308 S0 P"0.temp0" Y"thermistor" T100000 B4138	; configure sensor 0 as thermistor on pin temp0
      M950 H0 C"out5" T0								; create bed heater output on out0 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
      
      

      I tried "out5" and "out6", with and without "1." in front. The outputs should drive a SSR. I do not measure any voltage change when I turn on the heater via the DWC. I had a close look the the MosFets next to the output, they look good. I do not measure anythings at the pins, not VIN against GND and not GND when I measure against the power supply.
      What else to test? (Jumper is still in factory default)

      Full Config:

      ; Default config.g template for DuetPi
      ; Replace this with a proper configuration file (e.g from https://configtool.reprapfirmware.org)
      
      ; Display initial welcome message
      ;M291 P"Please go to <a href=""https://www.duet3d.com/StartHere"" target=""_blank"">this</a> page for further instructions on how to set it up." R"Welcome to your new Duet 3!" S1 T0
      
      ; Hardware: Duet Mini 5+
      ; Stepper XY = LDO 0,9° 2Amax  LDO-42STH40-2004MAC
      ; Stepper Z = LDO 1,8°  2Amax  LDO-42STH48-2004AC
      ; Stepper E = LDO 1,8   1Amax  LDO-42STH20-1004ASH
      
      ; Enable network
      if {network.interfaces[0].type = "ethernet"}
          M552 P0.0.0.0 S1
      else
          M552 S1
      
      ; Network
      M586 P0 S1                                         ; enable HTTP
      M586 P1 S1                                         ; enable FTP
      M586 P2 S1                                         ; enable Telnet
      
      G90                                         ; send absolute coordinates...
      M83                                         ; ...but relative extruder moves
      M550 P"v2"                                  ; set printer name
      M669 K1										; 1=select CoreXY mode   0=Cadasian
      
      ;; Toolboards
      ; M115 B121  ; Show board 121
      ; M997 B121  ; Update tool 121
      ; M122 B121  ; Detailed status of toolboard
      G4 S1        ; wait for expansion boards to start
      
      ;;; Drives
      ;X
      M569 P0.2 S1
      M584 X0.2
      ;Y
      M569 P0.1 S0
      M584 Y0.1
      
      
      ;; Z
      ; - front left
      M569 P0.5 S1									; physical drive 0.6 goes forward/backward - 
      ; - front right
      M569 P0.6 S0									; physical drive 0.5 goes forward/backward - 
      ; - back left
      M569 P0.0 S1									; physical drive 0.0 goes forward/backward - 
      ; - back right
      M569 P0.4 S0									; physical drive 0.4 goes forward/backward - 
      M584 Z0.4:0.0:0.5:0.6
      
      ;; E
      M569 P121.0 S0
      M584 E121.0
      
      
      
      
      ;M584 X0.2 Y0.0 Z0.3:0.4:0.5 E121.0				; set drive mapping
      
      
      M350 X16 Y16 Z16 E16 I1						; configure microstepping with interpolation
      M92 X160 Y160 Z400 E560						; set steps per mm   M92 X80.00 Y80.00 Z400.00 E420.00
      M566 X200.00 Y200.00 Z12.00 E120.00			; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00 Z480.00 E1200.00		; set maximum speeds (mm/min) Z180
      M201 X400.00 Y400.00 Z20.00 E250.00			; set accelerations (mm/s^2)
      M906 X1400 Y1400 Z1400 E700 I30				; set motor currents (mA) and motor idle factor in per cent
      M84 S30                                     ; Set idle timeout
      M84 S120									; Idle timeout
      
      ; Axis Limits
      M208 X0 Y0 Z0 S1                                ; set axis minima
      M208 X230 Y250 Z275 S0                          ; set axis maxima
      
      ;; Endstops -- Display status with: M119
      M574 Y2 S1 P"0.io5.in"	; Y
      M574 X2 S1 P"!0.io6.in"	; X
      M574 Z0 P"nil"			; No Z endstop, we have a probe
      ; Z probe
      ; Vinda: Black = Signal - Brown = +5v - Blue = GND
      M574 Z1 S2								; Configure Z-probe endstop for low end on Z
      M558 P8 C"^121.io0.in" H5 F120 T6000	; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X0.1 Y-0.1						; set Z probe offset
      G31 Z0.05								; set Z probe  and trigger height
      M557 X0:270 Y0:290 S15					; define mesh grid
      
      
      ; Z-level settings
      M671 X-65:-65:365:365 Y-20:380:380:-20 S20      ; Define Z belts locations (Front_Left, Back_Left, Back_Right, Front_Right)
      M557 X25:275 Y25:275 S25                        ; Define bed mesh grid (inductive probe, positions include the Z offset!)
      
      
      ;; Heaters :: Tune with: M303 H0 S115
      ; Bed
      M308 S0 P"0.temp0" Y"thermistor" T100000 B4138	; configure sensor 0 as thermistor on pin temp0
      M950 H0 C"out5" T0								; create bed heater output on out0 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
      
      
      
      
      ; Hotend
      ; Tune in with:  M303 H1 S270       (270=Temp) (M500 to save) 
      ; Show current settings M307 H1
      M308 S1 P"121.temp0" Y"thermistor" T500000 B4702 C1.171057e-7   ; configure sensor 1 as thermistor on pin temp1
      M950 H1 C"121.out0" T1										; create nozzle heater output on 0.out3 and map it to sensor 1
      M143 H1 S400												; set temperature limit for heater 1 to 320C
      
      
      
      
      
      ;; Fans
      ; Fan for the printed part:
      M950 F0 C"121.out1" Q500		; create fan 0 on pin 0.out9 and set its frequency
      M106 P0 S0 H-1 C"Part"			; set fan 0 value. Thermostatic control is turned off
      
      ; Fan for the Hotend:
      M950 F1 C"121.out2" Q500		; create fan 1 on pin 0.out9 and set its frequency
      M106 P1 S1 H1 T45 C"Hotend"		; P="set fan 1" S="value" H="Thermostatic control Heater No." T=" is turned on at 45°C"
      
      
      
      ;; Tool
      M563 P0 S"Tool" D0 H1 F0	; define tool
      G10 P0 X0 Y0 Z0				; set tool 0 axis offsets
      G10 P0 R0 S0				; set initial tool 0 active and standby temperatures to 0C
      
      
      
      
      ;;;;;;;;;;;; Setup Only
      ;M564 S0 H0 			; Allow movement over the endstops
      M302 P1 ; allow cold extrusion
      ;M302 S1 ; deny cold extrusion
      ;;;;;;;;;;;; Setup Only END
      
      
      M501						; Load config-override.g
      
      ; Serial interface
      M575 P1 B115200 S1
      ; Mini 12864
      M918 P2
      ;M918 P2 E4 R3 C100
      ;M150 X2 R255 U255 B255 S3		; set all 3 LEDs to white
      M150 X2 R0 U255 B0 S3			; set all 3 LEDs to red
      
      T0						; Select the tool 0 as default
      
      

      Cheers, Chriss

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @Chriss
        last edited by

        @chriss At a guess, I'd say that it might be because the PWM frequency might be too high for your SSR. I believe that if you don't specify a value, then frequency will default to 250 for heaters. But SSRs usually need much lower values - typically 10 Hz. So try adding Q10 to you M950 command for the bed heater.

        i.e. try this: M950 H0 C"out5" T0 Q10.

        Note also that the Mosfet switches the negative side, so you won't see any change on the voltage input side of the heater connector.

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        Chrissundefined 1 Reply Last reply Reply Quote 0
        • Chrissundefined
          Chriss @deckingman
          last edited by

          @deckingman said in Heater config not working, why?:

          i.e. try this: M950 H0 C"out5" T0 Q10.
          I tried it, without success.

          Note also that the Mosfet switches the negative side, so you won't see any change on the voltage input side of the heater connector.

          Well, what I measure is 24V between "V_OUTLC2+" out out 5 and GND. Clear because we switch GND here. What I do not see is a change on the GND pin.

          The SSR works when I trigger it with a wire from GND of the power supply to the SSR.

          Cheers, Chriss

          Chrissundefined 1 Reply Last reply Reply Quote 0
          • Chrissundefined
            Chriss @Chriss
            last edited by

            @chriss Update: I pushed two pins in the connector (the same typo of connectors as on the boad) and powered the pins. That triggered the SSR. So I do not expect any problems with the crimping or the wires.

            Cheers, Chriss

            Chrissundefined 1 Reply Last reply Reply Quote 0
            • Chrissundefined
              Chriss @Chriss
              last edited by

              @chriss I tested now with out0, same result. I do not get the SSR working, I see no GND on the ground pin.

              I thing that I should see the LED next to the connector blinking (out0), shouldn't I? (The LED remains off)

              Cheers, Chriss

              Chrissundefined 1 Reply Last reply Reply Quote 0
              • Chrissundefined
                Chriss @Chriss
                last edited by Chriss

                @chriss

                This here works funnily:

                M950 F3 C"0.out0" Q10   ; LED on out6 ground on top pin, plus on 3rd pin from top (V_OUTLC1)
                M106 P3 C"LED" S0
                
                

                So something is wrong with my heater here....

                Chrissundefined 1 Reply Last reply Reply Quote 0
                • Chrissundefined
                  Chriss @Chriss
                  last edited by

                  @chriss

                  The config.g looks now like that:

                  ; Default config.g template for DuetPi
                  ; Replace this with a proper configuration file (e.g from https://configtool.reprapfirmware.org)
                  
                  ; Display initial welcome message
                  ;M291 P"Please go to <a href=""https://www.duet3d.com/StartHere"" target=""_blank"">this</a> page for further instructions on how to set it up." R"Welcome to your new Duet 3!" S1 T0
                  
                  ; Hardware: Duet Mini 5+
                  ; Stepper XY = LDO 0,9° 2Amax  LDO-42STH40-2004MAC
                  ; Stepper Z = LDO 1,8°  2Amax  LDO-42STH48-2004AC
                  ; Stepper E = LDO 1,8   1Amax  LDO-42STH20-1004ASH
                  
                  ; Enable network
                  if {network.interfaces[0].type = "ethernet"}
                      M552 P0.0.0.0 S1
                  else
                      M552 S1
                  
                  ; Network
                  M586 P0 S1                                         ; enable HTTP
                  M586 P1 S1                                         ; enable FTP
                  M586 P2 S1                                         ; enable Telnet
                  
                  
                  ;; Heaters :: Tune with: M303 H0 S115
                  ; Bed
                  ;M308 S0 P"0.temp0" Y"thermistor" T100000 B4138	; configure sensor 0 as thermistor on pin temp0
                  ;M950 H0 C"out6" T0 Q10							; create bed heater output on out0 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
                  
                  ; Bed
                  M308 S0 P"temp0" Y"thermistor" T100000 B4138     ; configure sensor 0 as thermistor on pin temp0
                  M950 H0 C"out0" T0                               ; create bed heater output on out0 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   
                  

                  All other .g files where removed. And I still do not see the LED next to out0 blinking.
                  I have two more of the Mini 5+ and use exactly the same code on them and it works there. :?

                  Cheers, Chriss

                  Chrissundefined 1 Reply Last reply Reply Quote 0
                  • Chrissundefined
                    Chriss @Chriss
                    last edited by

                    @chriss

                    I upgraded to "3.4.0beta3 (2021-08-24)" now and you guys know what? The heater works now. Why? I have no idea..... :? Maybe a bit more "reset" than with a normal reboot? I have no idea at all.

                    Anyway, it works now...

                    Cheers, Chriss

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

                      Very strange. Please keep us posted.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      Chrissundefined 1 Reply Last reply Reply Quote 0
                      • Chrissundefined
                        Chriss @Phaedrux
                        last edited by

                        @phaedrux

                        I will keep you guys up to date when I have that again.

                        Cheers, Chriss

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