Modular CNC Controller
I built this modular CNC controller to run a variety of different machines in my shop. My first application is to replace the old controller on my CNC Shark router but I wanted the flexibility to reuse the same hardware on different machines, so I came up with a standard connector layout that will let me swap the controller and power supply for different needs. Initially I'm using the DDCSV1.1 Control Panel but I could someday replace it with a different standalone controller or an Ethernet SmoothStepper and Mach3 or Mach4 software.
DDCSV1.1 Control Panel Documentation
Here is the DDCSV1.1 User Manual that contains a wealth of information about this panel, including details of wiring and operation.
I bought the parts on Amazon.com and you can find them all in this Shopping List.
I laid out the openings in the aluminum case for the pendant and cut out the front panel using my Dewalt scroll saw. The end panel couldn't be cut on the scroll saw so I used a nibbling tool to make the openings for the USB and DB37 connectors. I also added aluminum L channels on the back of the case in order to mount the control panel:
The wiring was pretty straightforward but there were a lot of connections, and because most of them used screw terminals I used crimp ferrules on the wire ends. This was the first time I had used crimp ferrules and they worked great, much more secure and neat looking than bare wire ends.
The signal wiring is all 22-AWG stranded wire, and here's the pinout that I used on the DB37 connector:
I couldn't find an off-the-shelf enclosure of the size that I wanted for the power supply module so I made my own from aluminum sheet using my ShopFox box and pan brake and plate shear. I ran the AC power from the switched inlet to a 10A circuit breaker, and then to the two power supplies. I also added an AC outlet to run the cooling pump for my 2.2KW water cooled spindle. On the 36V 11A supply for the stepper motors, I added a 22,000 microfarad capacitor to help absorb the current spikes from the stepper drivers.
The output current of the stepper drivers is configured using DIP switches and I have them set for 2.8A output current, which is the rating of the stepper motors in my CNC router. I could have used a larger power supply and drivers that would be sufficient to run the larger 6A stepper motors I plan to use on the milling machine, so that a single power unit could run either machine. But that would require changing the DIP switches when moving it between machines, which is inconvenient and error-prone so I chose to dedicate this power unit to running medium-size steppers and to build a separate one for the mill. I could still use this power unit on another machine such as my metal lathe, as long as I use stepper motors with similar current requirements.
I set the stepper drivers for 1/16 microstepping, and the CNC Shark HD router's X-Y lead screws have multi-start threads with a pitch of 2 TPI. That gives 12.7 mm per rotation so with 200-step stepper motors, the pulses per millimeter are calculated as 200 * 16 / 12.7 = 251.969. This number must be entered into the settings page on the CNC controller. The Z-axis lead screw has a finer 4 TPI pitch so its setting is 503.937 pulses/mm.
I use AutoDesk Fusion 360 to model 3D parts and to generate CNC toolpaths using its CAM capability. AutoDesk makes this software available FREE to hobbyists and it's very powerful. It has a steep learning curve but there are lots of tutorials available for it. I initially started using Fusion 360 with the original controller for my CNC Shark router, but unfortunately it lacked a post-processor to generate compatible G-code so I wrote my own post-processor for it and the resulting G-code works with the original CNC Shark controller as well as the DDCSV1.1 control panel that I'm using now. To use this post-processor with Fusion 360, follow these steps:
- In Fusion 360 select the CAM workspace, create a milling operation and generate a toolpath from it. You can find online help on CAM if you don't know how to get that far.
- Once your toolpath is generated, select it and either right-click to select the Post Process menu, or select the Post Process button on the toolbar at the top. Again you can find online help on post-processing if you need it.
- In the Post Process dialog, under Configuration Folder enter the path to the folder where you saved the post-processor file in step 1. Then the DDCSV11 post-processor should appear in the drop-down list under Post Configuration. Pressing the Post button will generate G-code that should work on the DDCSV1.1 controller, as well as on the original CNC Shark controller.
- Transfer the resulting G-code file to the controller and run it. I strongly recommend "cutting air" at first, to test the G-code before performing actual machining with it. My usual technique is to raise the Z axis well above the part and then zero it out, so that I can test the code without actually cutting anything until I believe it's correct.
You may email me at Jay@BrainRight.com with reports of any problems or requests for enhancements to this Fusion 360 post-processor, but I provide it at no charge with no guarantee of any kind and I may or may not respond to requests for changes.