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

Help me get connected to my Duet2Wifi

Scheduled Pinned Locked Moved
Duet Hardware and wiring
6
126
6.0k
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.
  • undefined
    Phaedrux Moderator
    last edited by 18 Nov 2020, 19:15

    What does your M915 command look like?

    https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing#Section_Sensorless_Homing

    Have you calculated what your M915 H value should be and your minimum homing speed?

    https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing#Section_Minimum_recommended_speed_for_stall_detection

    In your example, remove the entire second homing move. With stall detection you need a short sharp shock during a steady state move. Backing off and slowly approaching from close up isn't going to generate a stall reliably. Since you're stalling the motor to a full step anyway, backing off and rehoming for more accuracy doesn't make sense here like it does when using an endstop switch.

    So try this

    M400
    M913 X70 Y70 ; drop motor current to 70%
    M400
    G91; relative positioning
    G1 H2 Z10 F12000 ; lift Z relative to current position
    G1 H1 X-320.5 F10000 ; move quickly to X axis endstop and stop there (first pass)
    G1 H2 Z-10 F9000 ; lower Z again
    G90 ; absolute positioning
    M400
    M913 X100 Y100 ; return current to 100%
    M400

    @Kwad3d said in Help me get connected to my Duet2Wifi:

    My guess is its slightly too sensitive. Im gussing I need to increase the motor current a few percent but want to check

    Start with as low a motor current as you can still reliably move with and set the sensitivity to default. Then slowly increase (or decrease) sensitivity from there.

    Z-Bot CoreXY Build | Thingiverse Profile

    undefined 1 Reply Last reply 18 Nov 2020, 23:52 Reply Quote 0
    • undefined
      Kwad3d @Phaedrux
      last edited by 18 Nov 2020, 23:52

      @Phaedrux So lower the full current setting that was set in the confit tool or the "drop motor" current in the M913 line? If im changing the full current that was set in the config (800) I can do that with a g code command in the console right? what is the code please if so

      undefined 1 Reply Last reply 19 Nov 2020, 00:14 Reply Quote 0
      • undefined
        Phaedrux Moderator @Kwad3d
        last edited by 19 Nov 2020, 00:14

        I mean lower the dropped current in the M913 command in your homing file.

        M906 sets the full current in config.g. That one should be set at ~80% of your motors max current.

        Z-Bot CoreXY Build | Thingiverse Profile

        undefined 1 Reply Last reply 19 Nov 2020, 00:53 Reply Quote 0
        • undefined
          Kwad3d @Phaedrux
          last edited by 19 Nov 2020, 00:53

          @Phaedrux Ok currently my M913 line is set to %70 for x and Y. lower to %60-65 and retest?

          1 Reply Last reply Reply Quote 0
          • undefined
            Phaedrux Moderator
            last edited by 19 Nov 2020, 00:58

            You can send M913 in the console to lower the current in steps. Send your homing move command each time. When the move doesn't work anymore, you've found the lower limit.

            Example

            M913 X30
            G1 H1 X-300 F10000
            M913 X40
            G1 H1 X-300 F10000

            etc

            If it still moves reliably sat 30% then maybe stick with that because I don't think you'd get much lower.

            Z-Bot CoreXY Build | Thingiverse Profile

            undefined 1 Reply Last reply 19 Nov 2020, 01:08 Reply Quote 0
            • undefined
              Kwad3d @Phaedrux
              last edited by Kwad3d 19 Nov 2020, 01:08

              @Phaedrux Today im getting zero movement on homing x. The bed drops then X is just set to 0 while the nozzle is in the center of the bed. I can manually move left and right after the failed homing move. Here is my code for home X at the moment. anything wrong with it? I repeated testing with M913 increments up to 100% I would occasionally get it to home but fails %90 of the time. How do I get it to grind the x axis into the home location? where I want to be is obviously somewhere between there and where Im at now.

              M400
              M913 X80 Y80 ; drop motor current to 80%
              M400
              G91; relative positioning
              G1 H2 Z10 F12000 ; lift Z relative to current position
              G1 H1 X-320.5 F10000 ; move quickly to X axis endstop and stop there (first pass)
              G90 ; absolute positioning
              M400
              M913 X100 Y100 ; return current to 100%
              M400

              1 Reply Last reply Reply Quote 0
              • undefined
                Phaedrux Moderator
                last edited by 19 Nov 2020, 01:44

                I still haven't seen your m915 command. Can you post your config.g file?

                Z-Bot CoreXY Build | Thingiverse Profile

                undefined 1 Reply Last reply 19 Nov 2020, 02:00 Reply Quote 0
                • undefined
                  Kwad3d @Phaedrux
                  last edited by Kwad3d 19 Nov 2020, 02:00

                  @Phaedrux

                  G90 ; send absolute coordinates...
                  M83 ; ...but relative extruder moves
                  M550 P"SK GO" ; set printer name
                  M669 K1 ; select CoreXY mode

                  ; Network
                  M551 P"SK GO" ; set password
                  M552 S1 ; enable network
                  M586 P0 S1 ; enable HTTP
                  M586 P1 S0 ; disable FTP
                  M586 P2 S0 ; disable Telnet

                  ; Drives
                  M569 P0 S1 ; physical drive 0 goes forwards
                  M569 P1 S1 ; physical drive 1 goes forwards
                  M569 P2 S0 ; physical drive 2 goes backwards
                  M569 P3 S1 ; physical drive 3 goes forwards
                  M584 X0 Y1 Z2 E3 ; set drive mapping
                  M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
                  M92 X200.00 Y200.00 Z400.00 E420.00 ; set steps per mm
                  M566 X600.00 Y600.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
                  M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
                  M201 X3000.00 Y3000.00 Z100.00 E10000.00 ; set accelerations (mm/s^2)
                  M906 X800 Y800 Z800 E800 I30 ; set motor currents (mA) and motor idle factor in per cent
                  M84 S30 ; Set idle timeout

                  ; Axis Limits
                  M208 X10 Y36 Z0 S1 ; set axis minima
                  M208 X310 Y336 Z320 S0 ; set axis maxima

                  ; Endstops
                  M574 X1 S3 ; configure sensorless endstop for low end on X
                  M574 Y1 S3 ; configure sensorless endstop for low end on Y

                  ; Z-Probe
                  M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch
                  M558 P9 C"^zprobe.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
                  G31 P500 X-26 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
                  M557 X36:290 Y46:290 S48 ; define mesh grid

                  ; Heaters
                  M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; 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 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit
                  M140 H0 ; map heated bed to heater 0
                  M143 H0 S90 ; set temperature limit for heater 0 to 90C
                  M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; 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
                  M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
                  M143 H1 S280 ; set temperature limit for heater 1 to 280C

                  ; Fans
                  M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
                  M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
                  M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
                  M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on

                  ; Tools
                  M563 P0 D0 H1 F0 ; 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

                  ; Custom settings are not defined

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

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Phaedrux Moderator
                    last edited by 19 Nov 2020, 02:12

                    May want to increase your max speed and decrease your acceleration.

                    M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
                    M201 X3000.00 Y3000.00 Z100.00 E10000.00 ; set accelerations (mm/s^2)

                    Try

                    M203 X12000.00 Y12000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
                    M201 X1500.00 Y1500.00 Z100.00 E10000.00 ; set accelerations (mm/s^2)

                    It sounds like it's detecting a stall immediately, possibly due to the high acceleration.

                    Doing this calculation for minimum stall speed would help as well so we know how fast it needs to be going to stall, but not so fast that it stalls prematurely.

                    https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing#Section_Minimum_recommended_speed_for_stall_detection

                    Hmin = full_steps_per_rev * rated_current * actual_current/(sqrt(2) * pi * rated_holding_torque)

                    Z-Bot CoreXY Build | Thingiverse Profile

                    undefined 1 Reply Last reply 19 Nov 2020, 02:31 Reply Quote 0
                    • undefined
                      Kwad3d @Phaedrux
                      last edited by Kwad3d 19 Nov 2020, 02:31

                      @Phaedrux Im confused by the equation.

                      Hmin = full_steps_per_rev * rated_current * actual_current/(sqrt(2) * pi * rated_holding_torque)

                      What is sqrt? and this is in algebraic format correct. So I would calculate full steps x rated current x actual current (A) and calculate sqrt x2 then x pi x rated holding (B). then divide a with b right?

                      I have never had any luck with stall guard in general. Is there a way to turn it off but have senseless homing like on a prusa? Since this is on a coreXY that I will want to print at speeds above 100mm/s It could become a problem could it not?

                      undefined 1 Reply Last reply 19 Nov 2020, 02:44 Reply Quote 0
                      • undefined
                        Phaedrux Moderator @Kwad3d
                        last edited by 19 Nov 2020, 02:44

                        @Kwad3d said in Help me get connected to my Duet2Wifi:

                        Is there a way to turn it off but have senseless homing like on a prusa?

                        Yes, that's exactly what you're doing now. You don't have to use both. You can use either or.

                        It would help me to know what your motor model is. Do you know the rated current? If it's detecting a stall already at M913 80% perhaps your M906 current in config.g is set too low.

                        If you tell me the rated current and whether they are 0.9 or 1.8 degree motors I can calculate the value using my spread sheet.

                        @Kwad3d said in Help me get connected to my Duet2Wifi:

                        Since this is on a coreXY that I will want to print at speeds above 100mm/s It could become a problem could it not?

                        No, no problem at all. Your max speed was limited to 100mm/s in your config.g and I suggested increasing it to 200mm/s, but you could raise that even more if you want.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        undefined 1 Reply Last reply 19 Nov 2020, 02:59 Reply Quote 0
                        • undefined
                          Kwad3d @Phaedrux
                          last edited by Kwad3d 19 Nov 2020, 02:59

                          @Phaedrux there LDO brand motors on X and Y at 0.9 deg. Model 42STh47 1684MAC Standard size motor. no other information about the motors was provided by the retailer of the machine and I could not find the required info on the LDO site.

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Phaedrux Moderator
                            last edited by 19 Nov 2020, 03:21

                            Do they look like this?

                            https://www.printedsolid.com/products/ldo-nema-17-motor-ldo-42sth47-1684mac

                            If so, 1.68a rated.

                            If that's the case, then the current you have set in M906 in your config.g is quite low at 800ma. Try changing that to 1400 instead.

                            Now your homing file might work better with M913 X70

                            Z-Bot CoreXY Build | Thingiverse Profile

                            undefined 3 Replies Last reply 19 Nov 2020, 03:23 Reply Quote 0
                            • undefined
                              Kwad3d @Phaedrux
                              last edited by 19 Nov 2020, 03:23

                              @Phaedrux Yes. the # number on the end is different on mine but I think that's a batch number or something

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                Kwad3d @Phaedrux
                                last edited by 19 Nov 2020, 03:24

                                @Phaedrux WIll that help with the stall issue or can I disable it

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  Kwad3d @Phaedrux
                                  last edited by Kwad3d 19 Nov 2020, 03:28

                                  @Phaedrux Does this look ok for my Homex file? I changed the current for x and y already
                                  M400
                                  M913 X70 Y70 ; drop motor current to 70%
                                  M400 G91; relative positioning
                                  G1 H2 Z10 F12000 ; lift Z relative to current position
                                  G1 H1 X-320.5 F10000 ; move quickly to X axis endstop and stop there (first pass)
                                  G90 ; absolute positioning
                                  M400
                                  M913 X100 Y100 ; return current to 100%
                                  M400

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    Phaedrux Moderator
                                    last edited by 19 Nov 2020, 03:34

                                    So at this point you should have

                                    M203 X12000.00 Y12000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
                                    M201 X1500.00 Y1500.00 Z100.00 E10000.00 ; set accelerations (mm/s^2)
                                    M906 X1400 Y1400 etc etc

                                    That homing file looks ok, does it work?

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    undefined 1 Reply Last reply 19 Nov 2020, 04:21 Reply Quote 0
                                    • undefined
                                      Kwad3d @Phaedrux
                                      last edited by Kwad3d 19 Nov 2020, 04:21

                                      @Phaedrux No same stuff. Bed lowers but the X axis remains motionless and the X location changes to 0. I need to disable the stall detection. I have been printing a long time and that feature will ruin more prints than it will potentially save.

                                      I also had my travel speed set to 300mm/s on the coreXy. So do I need to up my limit to 300 right. Don't have any reason to go beyond that.

                                      ? 1 Reply Last reply 19 Nov 2020, 05:08 Reply Quote 0
                                      • undefined
                                        Phaedrux Moderator
                                        last edited by Phaedrux 19 Nov 2020, 04:55

                                        But you don't even have an m915 in your config.g to enable stall detection.

                                        Once it thinks it's homed can you jog the axis around like normal?

                                        Try reducing the speed of the homing move to 6000

                                        Z-Bot CoreXY Build | Thingiverse Profile

                                        undefined 1 Reply Last reply 19 Nov 2020, 05:00 Reply Quote 0
                                        • undefined
                                          Kwad3d @Phaedrux
                                          last edited by Kwad3d 19 Nov 2020, 05:00

                                          @Kwad3d I never got enough information to solve the equation myself. If stall detection is off then what if preventing the homing procedure. Seems to me it is on and I would rather have it turned off. There has never been a print saved by senseless homing in my shop but I have had several failures so I turn it off on printers like my prusa. Yes after it thinks its homed it moves. just will not move beyond the zero position set by the homing move.

                                          undefined 1 Reply Last reply 19 Nov 2020, 14:58 Reply Quote 0
                                          56 out of 126
                                          • First post
                                            56/126
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA