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

    Automatic bed size using endstops

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    bed dimensions endstop max endstop min
    4
    14
    576
    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.
    • fcwiltundefined
      fcwilt @CalinFlorin86
      last edited by

      @calinflorin86 said in Automatic bed size using endstops:

      Hi. I would like to ask if is there any possibility to use MIN and MAX endstop switches to define the bed size. What I mean is that I want the firmware to calculate the travel between MIN and MAX endstops and save the bed size accordingly. Thanks.

      Why?

      Surely it is easier to enter two known constants.

      Thanks.

      Frederick

      Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

        Yes you can, but also, why unless it's often changing?

        If you have the endstop inputs available you could home to the min side and set the 0,0 position and then use G1 H3 moves to measure the length of X and Y and update the M208 maxima with those values.

        H3 terminate the move when the endstop switch is triggered and set the axis limit to the current position, overriding the value that was set by M208.

        You could use this method to calibrate the bed size the first time, but once you know the exact length you can just save that to M208 in your config.g.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 1
        • CalinFlorin86undefined
          CalinFlorin86
          last edited by

          I want to use Duet not for a 3d printer. My project is to autoalign and measure a device ( e.g. a screen) to automatically apply touchscreen or protection covers. Because the devices have different sizes I want to automatically calculate the dimensions

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

            In that case, does my description make sense on how to use G1 H3 to measure the high end of travel?

            Z-Bot CoreXY Build | Thingiverse Profile

            CalinFlorin86undefined 1 Reply Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @CalinFlorin86
              last edited by

              @calinflorin86 said in Automatic bed size using endstops:

              I want to use Duet not for a 3d printer. My project is to autoalign and measure a device ( e.g. a screen) to automatically apply touchscreen or protection covers. Because the devices have different sizes I want to automatically calculate the dimensions

              You might consider keeping the endstops for establishing the boundaries of the work area and use a "edge finder" type sensor on the XY gantry connected to a trigger which would execute the needed code.

              Frederick

              Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

              CalinFlorin86undefined 1 Reply Last reply Reply Quote 0
              • CalinFlorin86undefined
                CalinFlorin86 @Phaedrux
                last edited by

                @phaedrux Yes. Looks like that is the easy solution. Thanks.

                1 Reply Last reply Reply Quote 0
                • CalinFlorin86undefined
                  CalinFlorin86 @fcwilt
                  last edited by

                  @fcwilt That's what I was thinking. A magnetic sensor can do the trick I believe.

                  fcwiltundefined 1 Reply Last reply Reply Quote 0
                  • fcwiltundefined
                    fcwilt @CalinFlorin86
                    last edited by

                    @calinflorin86 said in Automatic bed size using endstops:

                    @fcwilt That's what I was thinking. A magnetic sensor can do the trick I believe.

                    When I made my post I was thinking of my mill and how I use an edge finder to obtain the needed references to set the digital readouts so I can then move to the required locations for further machining.

                    And that sounded a bit like what you needed to do.

                    Frederick

                    Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                      @fcwilt This is completely off topic but I'm looking for a better edge finder for my milling machine. What type do you use and/or recommend? I mostly machine non-ferrous metals so magnetic types won't work.

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

                      fcwiltundefined 1 Reply Last reply Reply Quote 0
                      • fcwiltundefined
                        fcwilt @deckingman
                        last edited by

                        @deckingman said in Automatic bed size using endstops:

                        @fcwilt This is completely off topic but I'm looking for a better edge finder for my milling machine. What type do you use and/or recommend? I mostly machine non-ferrous metals so magnetic types won't work.

                        I have the first and second types listed and use them both depending on the specific circumstances.

                        The fourth one is new to me and it looks interesting - if somewhat expensive.

                        Edge Finders

                        Frederick

                        Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                          @fcwilt Thanks. I use the second type but something has gone wrong with it - it doesn't "jump" when I go past the zero point like it used to which makes it difficult to tell exactly where the edge is. But it was a very cheap one - maybe I'll just buy a better quality one of the same type.

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

                          fcwiltundefined 1 Reply Last reply Reply Quote 0
                          • fcwiltundefined
                            fcwilt @deckingman
                            last edited by

                            @deckingman said in Automatic bed size using endstops:

                            @fcwilt Thanks. I use the second type but something has gone wrong with it - it doesn't "jump" when I go past the zero point like it used to which makes it difficult to tell exactly where the edge is. But it was a very cheap one - maybe I'll just buy a better quality one of the same type.

                            I would go for the fourth one - then you can tell me if I should get one. 😉

                            Frederick

                            Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                              @fcwilt said in Automatic bed size using endstops:

                              I would go for the fourth one - then you can tell me if I should get one. 😉

                              Frederick

                              That's not going to happen - one of those costs more than one months state pension and I need to eat 🙂

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

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