Using the CNC mill

From Interaction Station Wiki
Jump to navigation Jump to search
Warning Warning: Don't mill printed circuit boards made of "glass fiber epoxy resin" (FR4). Small pieces of milled glass fiber should not be inhaled. It may cause health problems.

1. Designing the PCB

There are several ways for designing PCB. For example you can use the following softwares:

Lets start with Fritzing.

Pcb.png

That looks already quite good. After you finished the PCBs you have to export it as a "Extender Gerber (RS-274X)"-Format! Select the folder where you would like to save it.

Gerber.png

2. Generating the G-code

In this step you have to generate G-code with the Gerber files. G-code or sometimes called nc-code (numeric controll code) tells the CNC mill when to turn on the spindle or to which position it should move.

We will use FlatCam (http://flatcam.org/) to generate the G-Code.

  • Start FlatCAM
  • Click on [File] -> [Open Gerber ...]
Flatcam.png
  • Select the ".gbl" (copper bottom) file
  • Now select the file in the Project list and click on [selected]
Selected.png

settings flatcam:

  • cut Z: -0.1 mm
  • feedrate: 30 mm (is slow try 90)

3. Using Mods

Alternatively we can use Mods (web based software from Fab Academy) to generate paths from .SVG or .PNG files
When using Kikad or Eagle it is relatively easy to export each layer as a .svg or .png file, when using Fritzing and having a through-hole component, we will use a slightly more bulky pipeline.

Mods project is a module based software with a web interface that already has a SRM-20 preset
Here is a good in depth tutorial how to use it but bare in mind that the interface has changed a bit and you may find differences
Here is an even longer tutorial including the finishing and soldering of a board

how to prep a file in eagle

4. Milling the PCB

Srm20.png

4.Trough-hole pcb with Fritzing for Mods

As mentioned, when using Kikad or Eagle it is relatively easy to export each layer as a .svg or .png file, when using Fritzing and having a through-hole component, we will use a slightly more bulky pipeline. In Fritzing it is all very straight forward if you have only surface mount components, but gets complex to export an image file with just holes.
Thus we go through a slightly more complex pipeline of two more pieces of software.
We will export gerber files from Fritzing
Fritzing export gerbers.png
Then we will use a gerber viewing software (Gerbv [1]) or gerberlogix (https://www.easylogix.de/products_detail.php?prog_id=1) to view our

  • top copper .gbl file
  • our contour .gml file
  • our drills .txt file


We will then export each layer we need as separate image files (.png or .svg)

Gerbv

And then last, before we can go to Mods we will use Gimp or Photoshop to convert images to black and white and also do some editing if we have a ground pour. Only then, we will move to Mods.