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.
-
@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
-
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.
-
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
-
In that case, does my description make sense on how to use G1 H3 to measure the high end of travel?
-
@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
-
@phaedrux Yes. Looks like that is the easy solution. Thanks.
-
@fcwilt That's what I was thinking. A magnetic sensor can do the trick I believe.
-
@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
-
@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.
-
@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.
Frederick
-
@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.
-
@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
-
@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