PCB Milling

From RepRap
Revision as of 09:50, 19 September 2010 by Traumflug (talk | contribs) (GCAM: Installation hints)
Jump to: navigation, search
Crystal Clear action run.png
PCB Milling

Release status: Concept

No image available.png
Description
Collection of software helpful for milling PCBs and their application to RepRap
License
unknown
Author
Contributors
Based-on
Categories
Electronics, PCB/Circuitry Making
CAD Models
External Link


One obvious goal of making a RepRap replicatable is getting it to make it's own PCBs or other electronic circuitries. Recent firmwares understand a pretty standard flavour of GCode, opening the door to a lot of toolpaths already exiting. This page describes a few promising ones.

Software suites

While a gazillion of softwares for creating and manufacturing circuits and PCBs exists, it was surprisingly difficult to find a working combination. As RepRap is open source, we want also to use open source tools for designing RepRap stuff, of course.

All applications described claim to run on all major OSs: Linux, Windows, Mac OS X. Testing was done on Ubuntu 10.04, 64-bit version.

Eagle

While Eagle is a proprietary and closed source tool; an almost full functional, free evaluation version exists. The only limitation is the maximum size of the resulting PCBs. Eagle is widely used among hobbyists and currently most RepRap designs are made with it, too.

Eagle is helpful for

  • Schematic design.
  • PCB design.
  • Mill/Drill file creation (Gerber).

KiCad

KiCad is the rising star on the open source PCB creation sky. It's GPLv2 and in terms of features and user interface quite comparable to Eagle.

KiCad is helpful for

  • Schematic design.
  • PCB design.
  • Mill/Drill file creation (Gerber).
  • Creating offsets for isolation milling (HPGL).

Fritzing

Fritzing User Interface

Fritzing is finally(!) a schematic and PCB editor with a user interface for mere humans. As a highlight, you can pick and place electronic components just like you'd do this on a breadboard on your real desk. The schematic editor autoroutes connections similar to the PCB autorouter to tidy them up and all three parts - breadboard, schematic, PCB - are always kept in sync.

While this application is a very promising approach, it currently lacks a serious library. However, an Eagle to Fritzing converter is in the works, so this problem might be solved soon.

Fritzing is helpful for

  • Schematic design.
  • PCB design.
  • Mill/Drill file creation (Gerber).

Replath

Replath Isolation Path

Replath is RepRap's own effort to create a PCB manufacturing application. I'm not sure about it's status, as the last Wiki edit is from October 2008 and obviously the app's name got forgotten in the recent (September 2010) discussion about how to reprap PCBs.

Replath is helpful for

  • Creating offsets for isolation milling.
  • GCode isolation milling file creation.
  • Sending the GCode file to the RepRap machine controller.

hp2xx

hp2xx is a very basic tool which can create GCode from HPGL. This is useful in conjunction with KiCad's export to HPGL outline feature.

hp2xx is helpful for

  • GCode isolation milling file creation.

cam.py

cam.py is a single-file script by Neil Gershenfeld, capable of creating GCode files for isolation milling and drilling.

pcb-gcode

PCB-GCode is an add-on for Eagle, creating drill and isolation milling GCode files directly.

pcb2gcode

pcb2gcode is a command-line program that calculates machine toolpaths from given PCB layouts. Despite it's name, it does NOT accept unix "pcb" files, but standard gerber RS274-X and Excellon files, and creates fully EMC2-compatible RS274-NGC files.

cynbes-gcoder

Cynbe's GCoder is an early version of pcb2gcode which was found to actually work.

GCAM

GCAM Is a GUI-based tool claiming to handle Gerber files, and of course outputting GCode files.

Installation

For more detailed instructions, see [1].

Everybody except Windows and 32-bit Ubuntu users has to compile from source:

# probably apt-get install something, but here it compiled without any
wget http://gcam.js.cx/files/gcam-2010.07.27.tar.gz
tar -xvzf gcam*
cd gcam*
./configure --prefix=${PWD}/installation # install locally for now
make && make install
./installation/bin/gcam # test it!

gerbv

gerbv is part of the gEDA software suite and can view gerber files. This doesn't help directly, but is helpful in finding solutions and for troubleshooting.

gEDA is yet another software suite with schematic and PCB layout editor. It wasn't included in the set of preferred choices here because it requires hand-coding of text files in between usage of the different GUI tools.

Toolpaths found to work

Toolpaths found here give a full solution from the PCB editor to creation of RepRap firmware compatible GCode.

For sending GCode to the machine controller, on can use RepRap Host software or any terminal emulation software capable of connection to a real serial device in conjunction with a firmware capable of doing flow control, e.g. FiveD on Arduino.

Toolpaths found to work partially

Toolpaths which mostly work, but lack some needed features. One example would be generation of valid isolation mill paths, but no GCode for drilling.

Toolpaths found to NOT work

Toolpaths with major roadblocks. Usually cases where promises of one software package or another just don't hold true.

Example Circuits

  • Fabio: Arduino compatible microcontroller board.