Announcement

Collapse
No announcement yet.

Non circular boring... (fun with Linuxcnc of course..)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Non circular boring... (fun with Linuxcnc of course..)

    Andy created a hex on his lathe by slaving his x axis to the spindle rotation. I wondered if I could do something similar on the mill....

    bore a hex hole anyone?



    I created a hal component (realtime module within linuxcnc) that takes the spindle angle and calculates where x/y needs to be to create a polygon. (hex in this case but you can do almost any sided polygon)
    Last edited by skunkworks; 03-08-2020, 08:58 PM. Reason: Spellin

  • #2
    neat! I like that
    located in Toronto Ontario

    Comment


    • #3
      Subscribed ! ! !

      -Doozer
      DZER

      Comment


      • #4
        COOL!! I never would have thought of that.... you do realize that bit of code can make you famous
        I can calculate any kind of polygon?? I see whats happening... the X and Y are compensating for the Radius of the cut while moving in a hex pattern, that is cool!
        25 miles north of Buffalo NY, USA

        Comment


        • #5
          Heh - I don't think I am the first one to do this... But I think it is normally part of high end machine controls.

          it is based on this formula... https://math.stackexchange.com/a/41954

          surprisingly simple. You tell the component the number of sides, Inscribed radius, tool radius.. I have to add a way to set the tool orientation. Doing that manually currently.

          Comment


          • #6
            I have used linuxcnc for many years but this sort of thing still amazes me of the power it has. That is NOT to take anything away from the HAL programming Sam did to make that hex! He is one sharp guy with linuxcnc!!

            Comment


            • #7
              Testing the component..
              ​

              image widget

              Comment


              • #8
                Also - This is still testing the rpi4 + mesa 7i92.

                sam

                Comment


                • #9
                  Some more playing.... 2nd run through plastic. very conservative. (read slow)



                  Click image for larger version

Name:	IMG_20200310_190102.jpg
Views:	363
Size:	2.73 MB
ID:	1860834

                  Comment


                  • #10
                    rotatable... (2 hexes 30 deg apart..)

                    Click image for larger version

Name:	IMG_20200311_173730.jpg
Views:	344
Size:	2.61 MB
ID:	1861419

                    Comment


                    • #11
                      I can easily see making custom monogrammed wrenches for people that are building or restoring machines... My last job I needed an 8-point wrench in 8mm, good luck finding that in the states anytime soon
                      25 miles north of Buffalo NY, USA

                      Comment


                      • #12
                        Awesome job figuring that out. That's seriously clever.

                        Comment


                        • #13
                          The movement reminds me of the old "Spiro-Graph" toys... makes me wonder if theres a way to duplicate that movement with some mechanism.
                          25 miles north of Buffalo NY, USA

                          Comment


                          • #14
                            Added the ability to change the radius of the polygon by moving the X axis. (so you can create profiles..) The resolution of the spindle encoder is visable in the cut you could also just do round profiles. Sort of like lathe turning profiles on a mill.




                            Click image for larger version

Name:	2020-03-14-152321_1920x1080_scrot.png
Views:	335
Size:	162.8 KB
ID:	1861619
                            Click image for larger version

Name:	IMG_20200314_182353.jpg
Views:	308
Size:	3.37 MB
ID:	1861620

                            Comment


                            • #15
                              *boggle*

                              mind ==blown

                              Somebody needs to show this to StefanG
                              25 miles north of Buffalo NY, USA

                              Comment

                              Working...
                              X