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

    CNC Screw Mapping

    Scheduled Pinned Locked Moved Unsolved
    Firmware developers
    4
    19
    1.1k
    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.
    • markzundefined
      markz @dc42
      last edited by

      @dc42 I've forked and updated the github repo. You can see the code changes at: https://github.com/MZachmann/RepRapFirmware/tree/v3.2-screwmap

      and it forks from the 3.02-dev branch (3.2 retail).

      Let me know where you'd like to go from here. Implement (pull request)? Move to M-codes? Change syntax?

      The only thing I couldn't yet figure out from the code base was how to correctly have the ui update the user position when the screw map definition changes.

      Mark

      1 Reply Last reply Reply Quote 3
      • markzundefined
        markz
        last edited by

        Here's a doc file describing the current implementation of screw mapping.

        Screw Mapping in RRF.docx

        1 Reply Last reply Reply Quote 1
        • markzundefined
          markz
          last edited by

          I've posted a video showing a calibration run (in X). It took about 1/2 hour to gather X and Y error terms and improved the CNC accuracy from .033" to .002".

          here: https://youtu.be/wpUOaYwDrvI

          1 Reply Last reply Reply Quote 1
          • botundefined
            bot
            last edited by

            Nicely done!

            I just had a thought, though. Make sure your yard-stick is straight. You could be compensating for an error in the yard stick.

            *not actually a robot

            1 Reply Last reply Reply Quote 0
            • markzundefined
              markz
              last edited by

              Sorry, I should have posted that. You're absolutely right.

              The yardstick is one of the most expensive hand tools I own since it's so important.

              https://www.mscdirect.com/product/details/58700246

              botundefined 1 Reply Last reply Reply Quote 1
              • botundefined
                bot @markz
                last edited by

                @markz Oh!!!! That's a nice "yard stick" lol!!!

                *not actually a robot

                markzundefined 1 Reply Last reply Reply Quote 0
                • markzundefined
                  markz @bot
                  last edited by

                  @bot Yeah, Starrett would probably not be happy me calling it that.

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

                    I also spit coffee on my laptop when I saw that price. 😳

                    Z-Bot CoreXY Build | Thingiverse Profile

                    botundefined 1 Reply Last reply Reply Quote 2
                    • botundefined
                      bot @Phaedrux
                      last edited by

                      I suddenly want a yard stick like that... but I couldn't even use such a large one! My print bed is only ~11" x 11". I'll look for it's younger sibling. And possibly metric, too.

                      *not actually a robot

                      markzundefined 1 Reply Last reply Reply Quote 0
                      • markzundefined
                        markz @bot
                        last edited by markz

                        @bot Yeah, I wish I had a metric one - if you watch the video I spend a lot of time converting inches. Kinda dumb.

                        backstory - when I first realized about 10 years ago my CNC had so much error I did this measurement with a normal yardstick, couldn't believe the results (especially the Y error), so in order to root-cause I had no choice.

                        1 Reply Last reply Reply Quote 1
                        • markzundefined
                          markz
                          last edited by markz

                          I've cleaned up the code so setting a screw map entry changes the DRO readout in real-time.

                          Here are a couple of plots of my CNC error curves with increment=25.4mm (1 inch). Note the 2d-ishness of the whole thing.

                          To put this in a worst case if I were just drilling holes the largest X error pre-compensation would be about 1.5mm (or 1/16th of an inch for US). Post-compensation error is 2*repeatability + test measurement error (~.03mm).

                          XAxis Compensation.jpg YAxis Compensation.jpg

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