Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. DIY CNC mill from mainly salvaged and 3D printed parts

DIY CNC mill from mainly salvaged and 3D printed parts

Scheduled Pinned Locked Moved My Project
76 Posts 5 Posters 11.8k Views 6 Watching
  • 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.
  • dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by
    #33

    I haven't had a chance to test the accuracy of the machine yet, but I did find a web page that has a VERY useful calculator for figuring out your steps per mm for a lead screw type system.
    https://www.prusaprinters.org/calculator
    Scroll down to the section labeled "Steps per millimeter - leadscrew driven systems". You just enter the parameters of your motor, microstepping, gear ratio (if any) and lead screw type/size. From that it calculates the steps per mm that is needed to configure your X, Y and Z axes for your GRBL controller.

    Figured this may be useful to others.

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    1 Reply Last reply
    0
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by
      #34

      Or use a dial gauge and get an exact measurement.

      dbemowskD 1 Reply Last reply
      0
      • NeverDieN NeverDie

        Or use a dial gauge and get an exact measurement.

        dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #35

        @neverdie I'll check things with my micrometer once I get my bits and get a print on something.

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        1 Reply Last reply
        0
        • NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by
          #36

          That should work. Here's what I meant though:

          https://youtu.be/rr42kPzL7js

          dbemowskD 1 Reply Last reply
          2
          • NeverDieN NeverDie

            That should work. Here's what I meant though:

            https://youtu.be/rr42kPzL7js

            dbemowskD Offline
            dbemowskD Offline
            dbemowsk
            wrote on last edited by
            #37

            @neverdie Interesting video. It appears that I may have to get myself a dial indicator tool. Looks as if it will prove very useful. Using that calculator page that I found can at least get me to a starting point, and I can adjust from there.

            Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
            Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

            1 Reply Last reply
            1
            • dbemowskD Offline
              dbemowskD Offline
              dbemowsk
              wrote on last edited by
              #38

              So I am trying to get my spindle control set up and I am having an issue. I am checking with a volt meter between the spindle enable (SpnEn) and ground and I am reading 5v. No matter what spindle commands I am sending (M03, M04 or M05) I am always reading 5v. Is there a different command for spindle enable? If I check the spindle direction pin (SpnDir), I read 5v when I send M03, and 0v when I send M04. So that appears to be working.

              0_1520794359319_77a64f0c-8d90-446e-92f9-cd619ff12095-image.png

              Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
              Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

              NeverDieN 1 Reply Last reply
              0
              • dbemowskD dbemowsk

                So I am trying to get my spindle control set up and I am having an issue. I am checking with a volt meter between the spindle enable (SpnEn) and ground and I am reading 5v. No matter what spindle commands I am sending (M03, M04 or M05) I am always reading 5v. Is there a different command for spindle enable? If I check the spindle direction pin (SpnDir), I read 5v when I send M03, and 0v when I send M04. So that appears to be working.

                0_1520794359319_77a64f0c-8d90-446e-92f9-cd619ff12095-image.png

                NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by NeverDie
                #39

                @dbemowsk
                On my board,
                M3 SP1000
                spins the spindle at maximum speed. Just M3 by itself doesn't.
                It's not obvious from looking at your board where the spindle OUT voltage is. Maybe on the opposite side? I guess you'll have to probe around to find it.

                dbemowskD 1 Reply Last reply
                0
                • NeverDieN NeverDie

                  @dbemowsk
                  On my board,
                  M3 SP1000
                  spins the spindle at maximum speed. Just M3 by itself doesn't.
                  It's not obvious from looking at your board where the spindle OUT voltage is. Maybe on the opposite side? I guess you'll have to probe around to find it.

                  dbemowskD Offline
                  dbemowskD Offline
                  dbemowsk
                  wrote on last edited by
                  #40

                  @neverdie The SpnEn and SpnDir are control signals. For this board you need to have an external motor driver. After some looking, I may have found my answer. I am running GRBL 1.1. It appears that they swapped 2 of the pins. Pin 12 used to be the spindle enable pin in GRBL 0.9. In 1.1, they swapped 11 and 12 because pin 12 cannot be used for PWM which is how the controller limits the speed. I have not tried it yet, but I am going to try the Z+ pin which is pin 11. If that works, I may do a slight board mod.
                  Here is the post that explains it. https://github.com/grbl/grbl/issues/1187
                  0_1520804676897_8cee2644-8a98-4ff6-a564-84430a436c6f-image.png

                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                  1 Reply Last reply
                  0
                  • dbemowskD Offline
                    dbemowskD Offline
                    dbemowsk
                    wrote on last edited by
                    #41

                    BTW, I am using an external H- Bridge to control the spindle.

                    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                    1 Reply Last reply
                    0
                    • dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #42

                      Just tried that and it worked perfect. I don't use SP though, I just use S. So M3 S1000 is full speed, M3 S500 slows the motor, and M5 stops it.

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                      1 Reply Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #43

                        Yes, my typo, just S, not SP.

                        I do wonder whether some of the more "advanced" boards, like the Duet WiFi, actually perform better, or whether the results are the same.

                        I think I may get a RAMPS board, if only because it supports Marlin, and that's what the MPCNC uses.

                        On the other hand, there is a smoothieboard clone on aliexpress for $40. . Hmm... It's tempting....

                        The jump from GRBL 0.9 to 1.1 convinced me that the firmware can make a difference, that it's not just all equivalent.

                        dbemowskD 1 Reply Last reply
                        0
                        • NeverDieN NeverDie

                          Yes, my typo, just S, not SP.

                          I do wonder whether some of the more "advanced" boards, like the Duet WiFi, actually perform better, or whether the results are the same.

                          I think I may get a RAMPS board, if only because it supports Marlin, and that's what the MPCNC uses.

                          On the other hand, there is a smoothieboard clone on aliexpress for $40. . Hmm... It's tempting....

                          The jump from GRBL 0.9 to 1.1 convinced me that the firmware can make a difference, that it's not just all equivalent.

                          dbemowskD Offline
                          dbemowskD Offline
                          dbemowsk
                          wrote on last edited by
                          #44

                          @neverdie I have always said, at least for 3D printers, that RAMPS was the way to go if you had to change your main board. Many of these 3D printer main boards have everything integrated into them. With RAMPS, it is all modular. If something dies, you are replacing 1 part rather than an entire board.

                          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                          NeverDieN 1 Reply Last reply
                          0
                          • dbemowskD dbemowsk

                            @neverdie I have always said, at least for 3D printers, that RAMPS was the way to go if you had to change your main board. Many of these 3D printer main boards have everything integrated into them. With RAMPS, it is all modular. If something dies, you are replacing 1 part rather than an entire board.

                            NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by NeverDie
                            #45

                            @dbemowsk I'll give it a shot. I ordered a mildly upgraded RAMPs board (so called "version 1.6"). It doesn't have the re-settable fuses, which I guess have a dodgy reputation (or so Tom Sanlanderer seems to imply).
                            https://www.aliexpress.com/item/Bigtreetech-upgrade-Ramps-1-5-Base-on-Ramps-1-4-3D-control-panel-printer-Control-Reprap/32822038995.html?spm=a2g0s.9042311.0.0.9zbnJj
                            I'll be curious as to whether it can accept either the TMC2130 or the TMC2660 modules.

                            dbemowskD 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              @dbemowsk I'll give it a shot. I ordered a mildly upgraded RAMPs board (so called "version 1.6"). It doesn't have the re-settable fuses, which I guess have a dodgy reputation (or so Tom Sanlanderer seems to imply).
                              https://www.aliexpress.com/item/Bigtreetech-upgrade-Ramps-1-5-Base-on-Ramps-1-4-3D-control-panel-printer-Control-Reprap/32822038995.html?spm=a2g0s.9042311.0.0.9zbnJj
                              I'll be curious as to whether it can accept either the TMC2130 or the TMC2660 modules.

                              dbemowskD Offline
                              dbemowskD Offline
                              dbemowsk
                              wrote on last edited by
                              #46

                              @neverdie I think most of those stepper driver modules run the same footprint. Check out this link. It is from Tom's 3D forum. People there are talking about those as replacements for the DRV88256's, which are the ones that I have. May be some useful info for you.
                              https://discuss.toms3d.org/hardware-f6/drv8825-vs-tmc2100-vs-tmc2130-vs-tmc2208-t250.html

                              Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                              Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                              NeverDieN 1 Reply Last reply
                              1
                              • dbemowskD dbemowsk

                                @neverdie I think most of those stepper driver modules run the same footprint. Check out this link. It is from Tom's 3D forum. People there are talking about those as replacements for the DRV88256's, which are the ones that I have. May be some useful info for you.
                                https://discuss.toms3d.org/hardware-f6/drv8825-vs-tmc2100-vs-tmc2130-vs-tmc2208-t250.html

                                NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by
                                #47

                                @dbemowsk Short of making a very careful study of the datasheets, the other info that's available is awfully sketchy, so I ordered one of each module, and I'll see if I can get either one to work on the RAMPS board that I ordered. I'm not completely sure, but I get the impression that after they are properly configured, they can maybe just plug and play.

                                1 Reply Last reply
                                1
                                • dbemowskD Offline
                                  dbemowskD Offline
                                  dbemowsk
                                  wrote on last edited by dbemowsk
                                  #48

                                  So, here is the latest update with pictures. I have the whole setup mounted on a leftover piece of MDF. I am using an ATX computer power supply to run everything. The fan pulls air from the back of the setup and blows it over the heatsinks for all of the modules.
                                  0_1520946272163_131786b5-061d-4b94-87f0-51fd63e651f5-image.png

                                  For spindle control I have 3 different modules. The first is a buck converter to boost the 12 volts to 24 for running the spindle motor.
                                  0_1520946618766_8dcfa79c-88e3-47ea-96c4-c7fcc2d79c60-image.png

                                  Next I have a dual H-Bridge that I had in my parts bin. I am only using one side of it. This handles the motor direction and speed. One problem with it that I had to overcome was that it had separate logic inputs for forward and reverse. The problem was that the CNC shield had a single output for spindle direction. To overcome this, I made a simple not gate circuit using an NPN switching transistor which sends a normal logic level to one input pin and an inverted signal to the other. I then use the enable line to start and stop the spindle. This setup works well.
                                  0_1520946877139_dc380f67-1b86-4d3f-ac22-fb6b71e70cba-image.png
                                  0_1520946841439_23a33cb6-099e-40ec-b23e-7428844f63eb-image.png
                                  This is the entire spindle drive circuity.
                                  0_1520947331423_88fe41df-a8ce-4e92-b13b-b748b5cbfeef-image.png

                                  Here is an angled front view.
                                  0_1520947428887_66a64c7c-abfd-43d8-a904-1299598725f4-image.png

                                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                  1 Reply Last reply
                                  1
                                  • NeverDieN Offline
                                    NeverDieN Offline
                                    NeverDie
                                    Hero Member
                                    wrote on last edited by NeverDie
                                    #49

                                    Don't forget to include a snub diode on the motor, if you haven't already.

                                    dbemowskD 1 Reply Last reply
                                    0
                                    • NeverDieN NeverDie

                                      Don't forget to include a snub diode on the motor, if you haven't already.

                                      dbemowskD Offline
                                      dbemowskD Offline
                                      dbemowsk
                                      wrote on last edited by
                                      #50

                                      @neverdie I thought that that was integrated on to the H-Bridge controller.
                                      0_1520952967198_15ac4a99-26fa-4c20-b0c6-ad75ddd26065-image.png

                                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                      NeverDieN 1 Reply Last reply
                                      0
                                      • dbemowskD dbemowsk

                                        @neverdie I thought that that was integrated on to the H-Bridge controller.
                                        0_1520952967198_15ac4a99-26fa-4c20-b0c6-ad75ddd26065-image.png

                                        NeverDieN Offline
                                        NeverDieN Offline
                                        NeverDie
                                        Hero Member
                                        wrote on last edited by
                                        #51

                                        @dbemowsk If that's what it is, then I guess you're covered. :)

                                        1 Reply Last reply
                                        0
                                        • NeverDieN Offline
                                          NeverDieN Offline
                                          NeverDie
                                          Hero Member
                                          wrote on last edited by NeverDie
                                          #52

                                          I like the idea of recycling an old PC power supply with a boost converter. For instance, a lot of the 48v power supplies don't come with regular 110VAC plugs, and you're even left with semi-exposed 110VAC wiring, so this kinda works around that. It's a bit ungainly, but it works.

                                          The only problem is you probably can't get to more than 240w, as that would be 20amps at 12v to the input of the boost converter. Actually less than 240w because of conversion inefficiency. At best probably just 0.85*240=204w. Maybe it would be good enough for milling PCBs though.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          9

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular