Squaring a CNC Gantry Machine with Simple Tools and Math

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In this video, I demonstrate a method for squaring a CNC gantry machine to a very high degree of squareness using simple modified tools and a bit of math. By increasing the size of the angles you measure, you can achieve greater accuracy.
    However, when measuring absolute distances that are too big for calipers, we instead measure the relative distances or the delta between the diagonals of a square or rectangle. I show how to use CAD to visualize the process, some high school math to work out the triangles, and how to generate Python code to refine the results. This method is still iterative, but once you get the squareness down to sub 0.5mm, you can make final adjustments in software like LinuxCNC. In the end, my machine's squareness is between 90.0009 and 89.9991 degrees with a +-0.01mm delta on the diagonals. Let me know in the comments if you find any mistakes or ways to improve this method.
    Timestamps ⏱
    0:00 Intro.
    0:44 Accuracy results with this method.
    1:40 Other methods of squaring a gantry CNC.
    2:43 Advantage of this method over other methods.
    4:05 Closeup of the caliper extension bracket.
    5:29 Workflow of measuring the delta on the 2 diagonals.
    8:37 CAD sketch and Python code visualizing how the offset is calculated.
    13:15 First pass adjusting homing switches.
    14:28 Scaling the value was necessary after all.
    14:49 Second pass with 0.12mm of delta.
    16:43 Third pass in Linuxcnc (software) 0.01mm of delta.
    18:44 Final thoughts and what could be improved on.
    #cncgantry
    #squaringmachine
    #simpletools
    #math
    #accuracy
    #calipers
    #deltadistance
    #CAD
    #highschoolmath
    #triangles
    #pythoncode
    #iterativeprocess
    #linuxcnc
    #machineprecision
    #squareness
    #comments welcomed
  • Věda a technologie

Komentáře • 20

  • @BryanHoward
    @BryanHoward  Před rokem

    It's not a fan video! but surly to blow you away. Python code shown in this video can be downloaded here: github.com/bhowiebkr/gantry-square/blob/main/main.py

  • @ferriswhitehouse1476
    @ferriswhitehouse1476 Před měsícem

    I'm so happy I found your channel. So many brilliant ideas that make things accessible without spending a fortune on precision equipment. Thank you!

  • @tonyrichmond9428
    @tonyrichmond9428 Před 4 dny

    This is pretty clever. I've been. Making holes at corners of 6in squares and sticking old endmills in them, then measuring those.
    Reading through the comments, seems like a lot of people need to review their geometry. Any parallogram with equal diagonals MUST be a rectangle.
    Complaints about making the tool don't seem to consider that it doesn't matter how ACCURATE the reading is, only the PRECISION, because you don't be to calculate the square, you only need to verify the equality of the diagonal.
    The source of accuracy improvement is in the fact that the three absolute error of the calipers doesn't change, so the PERCENT error over the much longer distance goes WAY down, assuming the tool can be placed precisely. The locator pins are about as good as you can expect.
    The only real complaint that holds any water is whether you've ensured that your steppers deliver the same error on each side, that tbe error is simar to the, and that the error is repeatable in both directions on all axes. Imagine am axis set to 40steps/mm vs another set to 40.5, or an axis with significant backlash. Also, whats the repeatability of the switches? It's probably reasonable to assume that all of these errors are within the margin of what you can actually measure and/or the accuracy of your calipera, but if you're claiming 0.02mm accuracy, you could probably measure and do the rest of that math to back it up.
    Really clever technique to use a small tool in a big way, though. I like it.

  • @jonm189
    @jonm189 Před rokem +1

    This is ingenious, I have never seen this method before. It looks really simple and effective - I'll be squaring my gantry this way when I get to that point in my build. 🍻

    • @BryanHoward
      @BryanHoward  Před rokem +1

      When I squared the new gantry I didn't bother to run the software and just winged it with the tool. It works super fast that way if you can easily adjust the end stops.
      I made a small gcode script for drilling the 4 holes which saves a huge bunch of time vs doing with sending commands manually. I'll post the gcode script in the description later today.

  • @ChristophLehner
    @ChristophLehner Před rokem +3

    Really smart way 👌

  • @mikenewman4078
    @mikenewman4078 Před 3 měsíci

    I wish I could give this more than one thumbs up.

  • @FilterYT
    @FilterYT Před rokem +3

    This is a great tip, thanks! (3 - 4 - 5 btw)

  • @ferencbordacs2319
    @ferencbordacs2319 Před rokem +1

    Great idea!!!!!! Super!!!!!

  • @giuliobuccini208
    @giuliobuccini208 Před 10 měsíci

    Brilliant!
    I used the 3-4-5 method (Pitagora's theorem) but your is way better because you do not need a precise and long ruler.

    • @BryanHoward
      @BryanHoward  Před 10 měsíci

      Yeah this method works well, you don't even need to bother with the math and instead just keep adjusting till the difference is negligible.
      Writing a simple gcode program to make the dots also speeds up the process and makes for a good first gcode by hand script.

  • @andreacerroni9010
    @andreacerroni9010 Před měsícem

    Hi bryan, I wanted to ask you how you made the holes on the spoilboard, with what type of bit (V-shaped?)

  • @toddspeck9415
    @toddspeck9415 Před rokem +1

    Super curious if you are self taught in solidworks? Or did you go to school for cad. I tried out Solidworks. It was a bit out of my price range. So I bought Viacad 12 pro, Moi3d, Alibre atom, qcad, turbocad. And I taught myself Blender, And I have a no save version of Rhino5. I really enjoy learning all these programs. But I always am amazed when I see what Solidworks can do. No wonder most colleges use Solidworks.

  • @rafal7217
    @rafal7217 Před 3 měsíci

    "I have a question: Is using two limit switches a good solution? These inductive sensors have a certain measurement error tolerance, I suspect it could be even over 1mm. Wouldn't it be better to use one limit switch and synchronize two motors with each other using a belt, and calibrate them on the coupling?"

    • @rafal7217
      @rafal7217 Před 2 měsíci

      @@wyattutz Do you have any reliable sensors from AliExpress that you know are okay and recommend? Could you drop a link?

  • @KarlMiller
    @KarlMiller Před rokem

    Great tip. Are your Y rails parallel?

    • @BryanHoward
      @BryanHoward  Před rokem

      They're planar. I used a master precision level to calibrate on the right side. Then shimmed the left side so they match.

    • @KarlMiller
      @KarlMiller Před rokem +2

      @@BryanHoward Sorry, I did see you establish them being coplanar with the level, but being parallel to each other.
      I asked because, if they were not parallel, I wondered how effective it could be to move the endstops to adjust squareness of the gantry if the frame wasn't square. I would imagine you only could compensate just so much for Y rails being out of parallel by adjusting the endstops.

    • @mikenewman4078
      @mikenewman4078 Před 3 měsíci

      This extended caliper would be useful for setting rails parallel during initial calibration with a small modification to support the span. Diagonals are then the final check.
      Thanks everyone for the inspiration.
      I'm sure this would also work for squaring a column too.
      I love simple solutions.

  • @alterstassfurter5743
    @alterstassfurter5743 Před měsícem

    Don't get me wrong.I can't trust your way. Because you build your measuringtool by yourself. 1st point of inaccuracy, next is the count of your measurings. With every single measuring you are generating measurement errors. in summery you are going wrong remember: Anyone who measures a lot measures crap 🤣