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

I could use some help

Scheduled Pinned Locked Moved
Duet Hardware and wiring
11
682
63.9k
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 27 Jun 2022, 11:03

    @droftarts @alankilian Interesting the Driver 2 is “unassigned,” to accommodate the Z-pride in its own assignment area of the software.

    1 Reply Last reply Reply Quote 0
    • undefined
      droftarts administrators @A Former User
      last edited by 27 Jun 2022, 11:07

      @mac I updated my post so it looks more like your setup. I'd chosen the wrong pins.

      As I've said before, it doesn't matter which way around you wire a switch to the pins on the Duet. If you are using C and NO, wire one to the IO header GND, and one to io[x].in. Same if you are using C and NC. It's just the signal is different, so that needs changing in the configuration.

      Think of it this way;

      • NC means Normally Closed. In a circuit, the switch in 'ON'. A light bulb in the circuit would be on. If you flick the switch, the light bulb turns off.
      • NO means Normally Open. In a circuit, the switch is 'OFF'. A light bulb in the circuit would be off. If you flick the switch, the light bulb turns on.

      The Duet doesn't mind which way it's wired, it just need to know the way you want the logic to work.

      The answer, really, is to test your endstops before relying on the homing macro to be correct. For each endstop, send M119 in DWC. This will report the state of the endstop. Then press and hold the endstop, and send M119 again. The state of the endstop should change. When it's not pressed, it should say "not stopped". When it is pressed, it should say "at max stop" (or "at min stop" if that's the way it's been configured.

      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

      1 Reply Last reply Reply Quote 1
      • undefined
        droftarts administrators @A Former User
        last edited by droftarts 27 Jun 2022, 11:12

        @mac

        To be clear, these setting are the software solution versus rewiring the switches.

        Yes

        And, they include reinstalling the Z-probe (BLTouch). Is that what I’m seeing?

        You've got one, it was working, may as well use it!

        Interesting the Driver 2 is “unassigned,” to accommodate the Z-prideprobe in its own assignment area of the software.

        Yes. But... you can have a Z endstop as well, if you want. Generally, best to use the Z probe for Z homing, but there are cases when it's good to have another option. If your printer stops mid-print (eg power failure), the Duet can save the position in the current file (it detects the power drop and quickly saves this info before power completely disappears). When power is back on, and assuming you want resume the print, how do you home the printer? X and Y is usually fine to home, but homing Z with the probe will probably cause it to hit the print. In this case, if you set up a max Z endstop, the printer can home Z to the top of the frame (as your printer moves the X axis up on Z), and then continue with the print.

        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

        ? undefined 2 Replies Last reply 27 Jun 2022, 12:40 Reply Quote 0
        • ?
          A Former User @droftarts
          last edited by 27 Jun 2022, 12:40

          @droftarts "In this case, if you set up a max Z endstop, the printer can home Z to the top of the frame (as your printer moves the X axis up on Z), and then continue with the print."

          Is a "max Z endstop" a virtual endstop (versus the real z-stop)? Is it a record of the elevation when the printer lost power, that is used to return to the print with?

          Mac

          undefined 1 Reply Last reply 27 Jun 2022, 13:01 Reply Quote 0
          • ?
            A Former User @droftarts
            last edited by 27 Jun 2022, 12:45

            @droftarts does selecting Z-Probe render the Low end selection moot? Is that why your picture didn't show Z as "High end?"

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User @fcwilt
              last edited by 27 Jun 2022, 12:46

              @fcwilt now THAT! is an endstop! (referring to the picture of the lovely blue endstop)

              ? 1 Reply Last reply 27 Jun 2022, 12:53 Reply Quote 1
              • ?
                A Former User @A Former User
                last edited by 27 Jun 2022, 12:53

                @droftarts I learned yesterday that there are two settings for Microstepping: x32 and x32 (on). I had changed my settings to x32 (on) because the Xvico board has a 32 bit processor. I thought they would use 32 (bit?) microstepping, so to be inline with their choices, I should use those choices on my board.

                What's the difference? Can I use an even higher setting to get more microstepping?

                Mac

                undefined 1 Reply Last reply 27 Jun 2022, 13:30 Reply Quote 0
                • undefined
                  droftarts administrators @A Former User
                  last edited by 27 Jun 2022, 13:01

                  @mac said in I could use some help:

                  Is a "max Z endstop" a virtual endstop (versus the real z-stop)? Is it a record of the elevation when the printer lost power, that is used to return to the print with?

                  No, it's a real endstop, just at the top of the frame. When power is lost, all the Duet can do is record the current position. When it is turned back on, the printer needs to be homed in all three axes, so that it can resume at that position. So the X axis gets lifted in Z until the Z endstop is triggered, which then gives the machine the Z position. Basically, it's just two different ways of finding Z home, depending on the circumstances.

                  does selecting Z-Probe render the Low end selection moot? Is that why your picture didn't show Z as "High end?"

                  Selecting Z Probe forces the homing macros to use the Z probe for Z homing. Your Z probe can't measure at the high end. (Theoretically you could use a probe at the max end, but you would need to mount it at the top of the machine, and then you wouldn't be able to probe the rest of the bed with it, so it would be the same as fitting a microswitch there.)

                  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

                  ? 1 Reply Last reply 27 Jun 2022, 13:08 Reply Quote 0
                  • ?
                    A Former User @droftarts
                    last edited by 27 Jun 2022, 13:08

                    @droftarts this is where I post a funny picture of myself with my eyes crossed. Maybe I'm using my hands to suggest that my head is about to explode.

                    ? 1 Reply Last reply 27 Jun 2022, 13:13 Reply Quote 0
                    • undefined
                      fcwilt @droftarts
                      last edited by 27 Jun 2022, 13:12

                      @droftarts said in I could use some help:

                      Generally, best to use the Z probe for Z homing

                      I will offer a different opinion here.

                      I prefer homing with a Z endstop sensor.

                      Homing with a Z probe requires that X and Y be homed first and that code includes short Z movements to be sure the nozzle is clear of the bed while moving X and Y.

                      With a Z endstop sensor you can home Z first and usually at a faster speed then you can with a Z probe.

                      And since Z is homed first you need no Z movements when homing X and Y.

                      I have both "low" and "high" Z endstop sensors which can be "enabled" as needed via M574 commands.

                      Again, just my opinion.

                      Frederick

                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @A Former User
                        last edited by 27 Jun 2022, 13:13

                        @droftarts can I put a date after a generated config.g file? I'm saving all of them, and right now, the only way I've found that I can keep track of them is to order them in a folder as "Most Current."

                        undefined 1 Reply Last reply 27 Jun 2022, 13:16 Reply Quote 0
                        • undefined
                          fcwilt @A Former User
                          last edited by 27 Jun 2022, 13:16

                          @mac said in I could use some help:

                          @droftarts can I put a date after a generated config.g file? I'm saving all of them, and right now, the only way I've found that I can keep track of them is to order them in a folder as "Most Current."

                          You can name the config.g file anything you wish when you save it.

                          I don't use dates, since that information is already part of the file metadata.

                          I use version numbers:

                          • config_001.g
                          • config_002.g
                          • config_003.g

                          and so forth

                          BUT to use a config file with a changed name it will have to be renamed back to config.g

                          Frederick

                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            droftarts administrators @A Former User
                            last edited by droftarts 27 Jun 2022, 13:30

                            @mac said in I could use some help:

                            @droftarts I learned yesterday that there are two settings for Microstepping: x32 and x32 (on). I had changed my settings to x32 (on) because the Xvico board has a 32 bit processor. I thought they would use 32 (bit?) microstepping, so to be inline with their choices, I should use those choices on my board.

                            What's the difference? Can I use an even higher setting to get more microstepping?

                            Mac

                            Microstepping has NOTHING to do with the processor. Duet has a 32-bit processor too, but we generally recommend x16 microstepping, with interpolation turned 'on'. Using x32 microstepping will limit the maximum step rate, and generally doesn't offer any extra accuracy. Why? Now, how much stepper motor theory do you want to know?! Here goes...

                            Stepper motors move in... steps. Generally, stepper motors that are used in 3D printers are either 1.8° or 0.9° motors, and each full step rotates the motor that far. That means they have either 200 or 400 'full' steps per rotation (yours are 1.8°/200 steps per rotation). Remember the 4 wires/2 phases you connected to the stepper driver? Each pair connects to a coil. As each coil is energised, the magnets on the motor shaft move towards it. By controlling the order in which each coil is turned on and off, you can control which way the motor turns. There's a good explanation here: https://youtu.be/eyqwLiowZiU

                            So that is full stepping. Rather than just turning the coils on and off, if you use a variable voltage, you can add extra steps between the full step. This is microstepping, and increases the positional resolution (ie instead of moving 1mm for each step, it can move 0.1mm for each step). However, most motors have an accuracy on the full step of +/- 5°. When you do the math, this means you don't get much more positional accuracy once you go beyond about x10 microstepping. You can generally see a small improvement between x8 and x16, so we recommend x16. Using higher microstepping has its uses, but comes with an overhead on the processor if you are trying to move the axis fast, and will limit the step rate.

                            Lastly, interpolation. This is controlled by the stepper driver itself. It smooths the voltage transition between one microstep and the next, making movement smoother. You want that switched on.

                            TL/DR: Use x16 microstepping, with interpolation on. If you change the microstepping, it will also affect you steps per mm (M92) for that axis.

                            Edit: Though you're probably okay with x32 microstepping if you're not planning on moving the axes very fast.

                            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

                            ? undefined 3 Replies Last reply 27 Jun 2022, 13:41 Reply Quote 0
                            • ?
                              A Former User @droftarts
                              last edited by 27 Jun 2022, 13:41

                              @droftarts link text

                              I changed the microstepping back to 16x. I need to check to see if I had interpolation checked.

                              Mac

                              ? 1 Reply Last reply 27 Jun 2022, 13:58 Reply Quote 0
                              • undefined
                                fcwilt @droftarts
                                last edited by 27 Jun 2022, 13:41

                                @droftarts

                                You are a wonderfully optimistic person. 😉

                                Frederick

                                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  fcwilt @droftarts
                                  last edited by 27 Jun 2022, 13:47

                                  droftarts said in I could use some help:

                                  If you change the microstepping, it will also affect you steps per mm (M92) for that axis.

                                  @Mac

                                  To expand on what droftarts said:

                                  If you place the M92, in the config.g file, before the M350 and set M92 based on 16x micro-stepping then you can freely change M350 while leaving M92 alone.

                                  The firmware will make the needed adjustments.

                                  Frederick

                                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @A Former User
                                    last edited by 27 Jun 2022, 13:58

                                    @droftarts link text

                                    With 16x (on)

                                    😞

                                    undefined 1 Reply Last reply 27 Jun 2022, 14:04 Reply Quote 0
                                    • undefined
                                      droftarts administrators @A Former User
                                      last edited by droftarts 27 Jun 2022, 14:04

                                      @mac From the video, it looks like you haven't changed your steps per mm (you need to halve them if you go from x32 to x16), and at the least your Z motor is going the wrong way.

                                      Did you test your X and Y endstops with M119?

                                      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

                                      ? 2 Replies Last reply 27 Jun 2022, 14:06 Reply Quote 0
                                      • ?
                                        A Former User @droftarts
                                        last edited by A Former User 27 Jun 2022, 14:06

                                        @droftarts

                                        ; Axis Limits
                                        M208 X0 Y0 Z0 S1 ; set axis minima
                                        M208 X220 Y220 Z240 S0 ; set axis maxima
                                        ; Endstops
                                        M574 X2 S1 P"!io5.in" ; configure switch-type (e.g. microswitch) endstop for high end on X via pin !io5.in
                                        M574 Y2 S1 P"!io6.in" ; configure switch-type (e.g. microswitch) endstop for high end on Y via pin !io6.in
                                        M574 Z1 S2 ; configure Z-probe endstop for low end on Z
                                        ; Z-Probe
                                        M950 S0 C"io3.out" ; create servo pin 0 for BLTouch
                                        M558 P9 C"io3.in" H5 F120 T3600 ; set Z probe type to bltouch and the dive height + speeds
                                        G31 P500 X15.875 Y0.625 Z2.5 ; set Z probe trigger value, offset and trigger height
                                        M557 X5:190 Y5:215 S10 ; define mesh grid
                                        undefined undefined 2 Replies Last reply 27 Jun 2022, 14:08 Reply Quote 0
                                        • undefined
                                          droftarts administrators @A Former User
                                          last edited by 27 Jun 2022, 14:08

                                          @mac Try

                                          M92 X40.00 Y40.00 Z2000.00 E420.00
                                          

                                          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

                                          ? 2 Replies Last reply 27 Jun 2022, 14:10 Reply Quote 0
                                          109 out of 682
                                          • First post
                                            109/682
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA