Introduction: How to Convert and Mill Your PCB Layouts on Your CNC
Used Software.
DipTrace : http://www.diptrace.com/
CopperCAM : http://www.galaad.net/coppercam-eng.html
Mach3 : http://www.machsupport.com/
I used DipTrace form y PCB Layouts but any software cable of saving Gerber files can be used. Its Free if you can be under 300 pins. Witch works fine for most of my projects.
To control my CNC Mill I use Mach 3, but any other software can be used such as LinuxCNC and EMC2.
But for me I think the 175$ for a Mach 3 License is well spend since it’s a great peace of software.
I also got an license for CopperCAM for 80 € which is good given out and don’t have to mangle with a lot of conversation programs and scripts. Her I gave a great GUI and can see what’s happens and change the settings easily.
I will make the Tutorial both as a Video and Images Step by Step Guide
The Video can be seen her, the Image and Text Step by Steps on the next pages.
Step 1: Exporting PCB Design
Have your PCB Design Loaded in DipTrace and go to File /Export / Gerber…
Select the Top Layer and click Export chose Yes to use the automatically apertures and save the File eg. “Top.gbr”
Select Board Outline and click Export chose Yes to use the automatically apertures and save the File eg. “BoardOutline.gbr”
Close the Export Gerber window.
Select File /Export / N/C Drill…
Check the settings and click Export chose Yes to use the automatically tools and save the File eg. “Through.drl”
Then Close DipTrace and start CopperCAM.
Step 2: Exporting G-Code in CopperCAM
Start CopperCAM
Goto Files / Open / New Circuit.. and select the file Top Layer file “Top.gbr”
Goto Files / Open / Drills.. and select the file N/C Drill file “Through.drl” and click Yes if the Drill Holes look to be placed correct.
Goto Files / Open / Additional layer.. and select the file Board Outline file “BoardOutline.gbr” and click Yes if Board Outline look to be placed correct.
Select Layer 6 (Card Cutout)
Goto Files / Offset.. set Dx = -2,5 and Dy=-2,5 and click OK, this will place the PCB Layout in the correct place in the Card Cutout.
Select the Calculate isolating toolpaths icon, select the number of extra contours the engraving bit shall run abound the tracks. I use 1 both places. And click OK
Now you should see how your PCB will look like. The view is from the Top thru the board to it have to be inverted. But we will do that under the export process.
Select Parameters / Tool library..
And set up the number of tools you are going to use.
For my example
1 : 10 degree V-Bit for Engraving
2 : 1,3 mm Drill for Cutting
3 : 0,8 mm Drill for drilling 0,8 mm holes.
4 : 1.2 mm Drill for drilling all 1,2 mm holes and those a bow. So that I don’t have to change drills too often.
And click OK
Select File / Origin
Enter the values X=2 and Y=2 and select OK
This will change the Origin Point where the CNC will start from so that the start point is where the corner of the board so that you easily can position the CNC and don’t get too much waist material.
The White Cross will mark the Start Point.
Select Parameters / Select tools.. her you can change some option on how your G-Code shall be with travel speed and use of Bits with more.
I change under Drilling Tools “Use for each drill the closest small tool, with circular boring”
And “Allow circular boring for all holes over “ is set to 1 mm.
In my setup, it will then end up with one file for 0,8 mm drilling and one for 1,2 mm and it will then use the 1,2 mm drill for all holes witch is bigger, this saves me a lot of changing drills since I can do it all with only 2 drills.
Click OK
Then to the last steps exporting the G-Code for the tool’s.
Click the Mill Icon to generate the Output files.
Select Section #1 and chose “Engraving layer #1” check the Flip X box.
This will invert the design.
Select OK, this will Open a Notepad windows with the G-Code for the selected task. Save that eg. As “Engrave.txt”.
Click the Mill Icon again and change the Section #1 to Drilling (Tool #3 ø 0,8) check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “drill_08.txt”.
Click the Mill Icon again and change the Section #1 to Drilling (Tool #4 ø 1,2) check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “drill_12.txt”.
Click the Mill Icon again and change the Section #1 to Cutting out check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “Cutout.txt”.
Now you have 4 files with G-Code for the necessary tasks.
You can run them in the order you like. But you should always run the Cutout as the last one.
I prefer the following order.
1 : Engrave
2 : Drill 0,8
3 : Drill 1,2
4 : Cutout
Now start your favorite Milling program and get ready to Mill.
A video of this process of my example is in the last port of the Video.
Step 3: The Finish Result
Her are 6 images showing the PCB after each step.
1. After Engraving.
2. After 0,8 mm Drill
3. After 1,2 mm Drill
4. After 1,2 mm Cutout
5. The cleaned and ready to use PCB
6. The Complete and assembled PCB
30 Comments
7 weeks ago on Step 3
Good morning !
It's really great what you've done.
I want to know:
- What type of copper plate you use to make your PCBs. (technical designation if possible)
- I find it difficult to understand how the choice of tools is made. (Do I just have to know that here it is: for engraving you need a javelin? while there are several types of cutters in this range... )
is there a science behind the choice of these tools. If so how does it work?
Thanks in advance
1 year ago
Software that can only be used under WINDOWS is an impertinence for me, but not a solution. Your project dies before it even starts!
1 year ago
This is no longer working, Copper CAM only puts out 4 or five lines of GCode as after money for a program that we can not evaluate!
Question 4 years ago
Very useful instructions. Which milling machine are you using?
5 years ago
Some body know how to put a circular card contour in coppercam ??
6 years ago
Hey,
Does anyone know how to make coppercam to put a line number (N***) in front of every line? I have a demo Mach3 and i can run only 999 line Gcodes, so I have to cut the g-code lists into 999 line pieces. Or is there any other solution?
Many thanks
Reply 6 years ago
Use Florian Balmer's Notepad2 and under the "view" tab, select "line numbers".
6 years ago
I need control circuit diagram,please give me
6 years ago
I need control circuit diagram
7 years ago
Thanks for tutorial....
7 years ago
HI dear centauri, thank you very much for sharing such a useful info. as i ma a layman in software part i was not able to generate g codes to run my diy cncs,finally today i could generate some n run my m/c, however request pls kindly post some info about mechanical cad cam,wit g code generation. regards n keep posting such info
7 years ago
Hi, can you post the gcode files too? I want quickly check my 3040 cnc router and see how it performs with engraving pcb's. Thank you very much!
8 years ago
hi I have a question, how do you control the axis z? my machine starts on and the axis z does not go up and then down instead just keep the same altitude and damage the PCB.
thanks
Reply 7 years ago
I zet my Z axe with a Probe witch i have made a tutorial about her
https://www.instructables.com/id/Mach3-Zero-Probe-Tool/
7 years ago on Step 2
I have create PCB by dip trace and convert it to g cord by copper cam
after that i was loaded the g code file to mach 3 and run the machine.
but drawing scale is wrong. what is the reason my mach 3 is licence version
please give me solution
Reply 7 years ago
It can be if ist in mm or inches its how your pcb software export the files and how you import and export it in CopperCam again.
7 years ago
How long did it take for you to receive your coppercam license once you sent payment? It's going on 5 days since I sent payment now and I don't get a response to emails from them either.
Reply 7 years ago
I got the Licens the day after i orderd it.
7 years ago
great work
7 years ago
great work