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

    Unable to make External stepper driver work

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    3
    7
    335
    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.
    • cj19944undefined
      cj19944
      last edited by cj19944

      Hi i am using an duet 3 6hc with and 1xd expansion board and i am trying to connect an external stepper driver i am currently not getting any movement when i try to extrude or retract on the dashboard. im pretty sure i have my wiring right but i dont know if my config is 100 percent from what i have looked into i seems to be okay. I send the command to check if xd board is conected with m115 b122, thanks. This is extruder i am trying to connect https://docs.dyzedesign.com/pulsar.html#reprap-firmware

      code_text
      ; Configuration file for Duet 3 (firmware version 3.3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.10 on Fri May 06 2022 00:13:26 GMT+0100 (British Summer Time)
      
      ; General preferences
      G90                                          ; send absolute coordinates...
      M83                                          ; ...but relative extruder moves
      M550 P"L3D"                                  ; set printer name
      
      ; Wait a moment for the CAN expansion boards to start
      G4 S2
      
      ; Network
      M552 P10.10.1.4/ S1                             ; enable network and acquire dynamic address via DHCP
      M586 P0 S1                                   ; enable HTTP
      M586 P1 S0                                   ; disable FTP
      M586 P2 S0                                   ; disable Telnet
      
      ; Drives
      M569 P0.0 S0                                 ; physical drive 0.0 goes backwards
      M569 P0.1 S0                                 ; physical drive 0.1 goes backwards
      M569 P0.2 S0                                 ; physical drive 0.2 goes backwards
      M569 P0.3 S0                                 ; physical drive 0.3 goes backwards
      M569 P122.0 S1 R1 T3:3:3:5:0
      M584 X0.0 Y0.1 Z0.2 E0.3:122.0                  ; set drive mapping
      M350 X16 Y16 Z16 E16:16 I1                      ; configure microstepping with interpolation
      M92 X320.00 Y320.00 Z320.00 E492.45:3200.00     ; set steps per mm
      M566 X900.00 Y900.00 Z60.00 E120.00:120.00      ; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00 Z600.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z20.00 E250.00:250.00      ; set accelerations (mm/s^2)
      M906 X2800 Y2800 Z2800 E1200:2700 I60           ; set motor currents (mA) and motor idle factor in per cent
      M84 S200                                    ; Set idle timeout
      
      ; Axis Limits
      M208 X20 Y0 Z0 S1                            ; set axis minima
      M208 X1100 Y1000 Z1500 S0                    ; set axis maxima
      
      ; Endstops
      M574 X1 S1 P"io1.in"                         ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io1.in
      M574 Y1 S1 P"io2.in"                         ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io2.in
      M574 Z1 S2                                   ; configure Z-probe endstop for low end on Z
      
      ; Z-Probe
      M950 S0 C"io7.out"                           ; create servo pin 0 for BLTouch
      M558 P9 C"io4.in" H10 F240 T12000            ; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X-22 Y-10 Z3.66                        ; set Z probe trigger value, offset and trigger height
      M557 X50:1000 Y0:1000 S50                    ; define mesh grid
      
      ; Heaters
      M308 S0 P"temp0" Y"pt1000"                   ; configure sensor 0 as PT1000 on pin temp0
      M950 H0 C"out0" T0                           ; create nozzle heater output on out0 and map it to sensor 0
      M307 H0 B0 S1.00                             ; disable bang-bang mode for heater  and set PWM limit
      M143 H0 S280
      ; bed
                                       ; set temperature limit for heater 0 to 280C
      M308 S1 P"temp1" Y"thermistor" T100000 B3950 ; configure sensor 1 as thermistor on pin temp1
      M950 H1 C"122.out0" T1                         ; create bed heater output on 1.out0 and map it to sensor 1
      M307 H1 B1 S1.00                             ; enable bang-bang mode for the bed heater and set PWM limit
      M140 H1                                      ; map heated bed to heater 1
      M143 H1 S150                                 ; set temperature limit for heater 1 to 150C
      
      ; dyze
      M308 S2 P"spi.cs2" Y"rtd-max31865"           ; configure sensor 2 as PT100 on pin spi.cs2
      M950 H2 C"out1" T2                           ; create nozzle heater output on out1 and map it to sensor 2
      M307 H2 B0 S2                             ; disable bang-bang mode for heater  and set PWM limit
      M143 H2 S480                                 ; set temperature limit for heater 2 to 150C
      
      M308 S3 P"spi.cs1" Y"rtd-max31865"           ; configure sensor 3 as PT100 on pin spi.cs1
      M950 H3 C"out2" T3                           ; create nozzle heater output on out2 and map it to sensor 3
      M307 H3 R0.882 K0.330:0.000 D22.74 E1.35 S1.00 B0 V28.3                           ; disable bang-bang mode for heater  and set PWM limit
      M143 H3 S480                                ; set temperature limit for heater 3 to 150C
      
      M308 S4 P"spi.cs0" Y"rtd-max31865"           ; configure sensor 4 as PT100 on pin spi.cs0
      M950 H4 C"out3" T4                           ; create nozzle heater output on out3 and map it to sensor 4
      M307 H4 R0.964 K0.156:0.000 D21.85 E1.35 S1.00 B0 V28.3                             ; disable bang-bang mode for heater  and set PWM limit
      M143 H4 S480                          
                 
      ; Fans
      M950 F0 C"out6" Q500                         ; create fan 0 on pin out6 and set its frequency
      M106 P0 C"Part fan" S1 H0 T45                            ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"out5" Q500                         ; create fan 1 on pin out5 and set its frequency
      M106 P1 C"noctua" S1 H-1                     ; set fan 1 name and value. Thermostatic control is turned off
      M950 F2 C"!out4" Q500                        ; create fan 2 on pin !out4 and set its frequency
      M106 P2 C"pump" S1 H0 T25                    ; set fan 2 name and value. Thermostatic control is turned on
      
      ; Tools
      M563 P0 S"slice head" D0 F0 T0                  ; 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
      M563 P1 S"dyze head" D1 H2:3:4 F0 T1                  ; define tool 1
      G10 P1 X0 Y0 Z0                              ; set tool 1 axis offsets
      G10 P1 R0 S0
      
      ; Custom settings are not defined
      cj19944undefined 1 Reply Last reply Reply Quote 0
      • cj19944undefined
        cj19944 @cj19944
        last edited by

        @cj19944 this is the mircostepper drive ,the green light is on constantly which says it is not enabled

        https://drive.google.com/file/d/1Oqd8jz7uU2o1Le19gp45uWQ7Z-tONXLA/edit

        Here is the drive it is an r60 model.

        dc42undefined droftartsundefined 2 Replies Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @cj19944
          last edited by dc42

          @cj19944 the enable polarity varies between drivers. Try swapping the ENA+ and ENA- wires over; or alternatively, change R1 to R0 in the M569 command for that driver.

          PS - you could drive the motor in that device directly from the 6HC. The documentation says it needs 2.7A RMS and the 6HC can do up to 4.5A RMS.

          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
          • droftartsundefined
            droftarts administrators @cj19944
            last edited by

            @cj19944 See @dc42's answer for enabling the driver.

            M569 P122.0 S1 R1 T3:3:3:5:0

            This is incorrect; you have five variables for the T parameter, when it only takes four. See https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m569-set-motor-driver-direction-enable-polarity-mode-and-step-pulse-timing

            There is no information in the driver user manual about pulse speeds, and your current ones look very fast. Once it is enabled, try something a bit slower and more standard for external drivers, eg:
            M569 P122.0 S1 R1 T5:5:10:10
            Then reduce the timings to find the limit, if needed.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            dc42undefined 1 Reply Last reply Reply Quote 1
            • cj19944undefined
              cj19944
              last edited by

              Really appreciate your help I will try these changes and see what happens.

              1 Reply Last reply Reply Quote 0
              • cj19944undefined
                cj19944
                last edited by

                Hi this issue is solved now by changing r1 to r0 and adjusting the timing, thanks again for your help.

                1 Reply Last reply Reply Quote 0
                • droftartsundefined droftarts marked this topic as a question
                • droftartsundefined droftarts has marked this topic as solved
                • dc42undefined
                  dc42 administrators @droftarts
                  last edited by dc42

                  @droftarts the Pulsar manual gives this suggestion for the driver timings:

                  M569 PXXX SXXX R1 T3:3:5:0
                  

                  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
                  • nachogilundefined nachogil referenced this topic
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA