Step 1: Introduction, Part 1 - My Gripe
Likewise, there are are a number of Computer Aided Design packages (CAD) designed to help create PCB designs, possibly with accompanying schematics. Some of these have low-cost versions aimed at students and hobbyists.
But I see on various web pages PCBs created with these CAD packages, by hobbyists, that are not "friendly" to actually being fabricated by hobbyists using the methods described on the PCB pages. A lovely published PCB is not nearly so useful if it requires the $50+ typical minimum price from a professional board maker.
I don't have any doubt that with the right equipment, and supplies, and some practice, you can get good enough at home PCB fabrication techniques (take your pick) to produce high quality board of significant complexity, with fine traces, small holes, and so on. But a lot of PCBs don't really need that complexity, and it would be nice if they were DESIGNED in such a way that you didn't NEED a lot of experience in PCB making to get a working PCB.
This document contains some hints on configuring a CAD package to create boards that are easier to manufacture in a hobbyist environment. It's based around Cadsoft's Eagle CAD package, but the principles are relatively general and should be applicable to other CAD packages as well.
Step 2: Intro, Part 2 - Cadsoft EAGLE
Cadsoft is a German company that is a veritable mecca of software distribution enlightenment. In addition to the reasonably-priced professional PCB design packages ($1200), they have freeware, lite, non-profit, and other intermediate licenses. Their software runs under windows, linux, and MacOSX. It's slightly quirky, with a steep (but not too high) learning curve on the front end, but from most reports it is not any more so than other professional CAD packages. They have online support forums that are active from both the company and other users, the package is under current development and gets better with each release. A number of PCB fabricators will accept their CAD files directly. It's good stuff.
Use it. Propagate it. Buy it when you "go pro."
This document is not a tutorial on how to use EAGLE, although it'll probably be somewhat useful in that role. It's more about how to configure and customize an Eagle installation to better suit the hobbyist.
Create PCB from schematic
Creating Library parts
Design rule modification
Send CAD Files to manufacturers
Step 3: Our Sample Circuit: Blink Some LEDs.
(If you decide to actually build this, the transistors can be any general purpose silicon NPN types like
2n4401, 2n2222, 2n3904.) The ON time for each LED is about R*C (one second for the values here.)
The battery can be 3V up to ... whatever, although you may need to adjust the current limiting resistors
for higher voltages.) The caps should have a voltage rating a bit higher than the power source you intend
to use. For a 9V battery, I used 16V caps. Resistors are 1/4 watt. )
Step 4: Placing the Parts
Step 5: Autorouted Using the Defaults, and What's Wrong With It...
That actually looks pretty nice. So what's the problem? The problem is that if you try to make that board in your kitchen, you'll probably be in for a lot of frustration. There are two main issues:
1) Trace width. The default trace width is 10mil (a mil is 1/1000 of an inch) or about 0.2mm That's fine for most professional PCB fabricators; most can routinely and reliably make boards down to 6mils. But it's VERY fine to accomplish using something like toner transfer (recall that a fine-lead mechanical pencil is 0.5mm - nearly 3 times bigger!)
There's a similar problem with the amount of pad left around the holes; while it's fine for a fancy CNC-drilling machine, if you try to drill the holes with typical home equipment you'll probably end up removing the whole pad.
2) Clearance. This is the space left between tracks (or between tracks and pads.) Like the trace width, it defaults to a small number: 8 mils. that's just not a realistic value for a hobbyist...
Step 6: Let's Fix the DESIGN RULES
The DRC panel is usually used to do a design rule CHECK. After a board is laid out (usually with significant hand routing) you'd click the "CHECK" button and Eagle would go and make sure that what you've done conforms to the design rules you've specified. However, the autorouter also pays attention to the design rules you've set; it wouldn't be a very useful feature if the autorouter created boards that were "illegal."
As you can see, there are LOTS of parameters you can change. We're only interested in a few of them. (the individual parameters usually are illustrated with a nice picture showing the object you're actually changing.
A nice help feature...)
Step 7: Modifying the CLEARANCE Rules
At some point you need to decide what you want the values to be. This is just an example, so I get to pick. I like 0.8mm, which is very close to 1/32 inch. So we can set a bunch of the clearance values to 0.8mm:
The "same signal" clearances can stay at small numbers; we don't care a lot about that. The PAD to PAD clearance has to be a significantly smaller 0.5mm; more about that later...
Step 8: Modifying the SIZES Rules
We don't have to worry about micro or blind vias, cause they're not appropriate to hobbyists in the first place, and not supported by the freeware Eagle in the second place. We can set the minimum width and minimum drill to
(again) 0.8mm (incidentally, .8mm is about a number 68 drill.)
Step 9: Changing Pad Sizes With the RESTRING Rules
pads. So I'll use 0.6mm here, and I'll still have to use the smaller clearance values between pads that I mentioned above. I'll still have problems with PADs that are much bigger than .8mm (it takes about a 1mm hole
to hold a .025inch square post as found on many connectors.) You can trade off pad-pad clearance against pad diameters forced by the restring settings, depending on where you have more problems with whatever PCB technique you're using. One advantage of a large pad is it makes you less sensitive to the drill you actually use; even if the library is set up for a .6mm drill and you use a .8mm drill, you should have enough copper left so that you won't have a big problem. You don't need to set inner layer or micro-via values:
Step 10: Optional: Adjust Pad SHAPES
Step 11: Save Your Chosen Rules, and Autoroute Again
When creating future boards, you can use the FILE panel of the DRC window to read in the hobbyist-friendly parameters instead of having to retype them all. (Or just get the honny.dru file from the top page.) You can even suck them in you your init file.
Getting back to the circuit, if I run the autorouter NOW, I get a much more reasonable looking result...
Step 12: But Why Stop There?
another DRC file with different parameters. In fact, this board can have it's trace width increased to 1.4mm without violating our clearance rules:
Step 13: Finalizing the PCB Design
Step 14: But Did It WORK?
Scrap of board, magazine paper/toner transfer; looks not so wonderful at this point. Touch up with a sharpie.. etch, drill, clean... More toner transfer for the "silkscreen", add components and power it on...
Step 15: Summary
that the wider your traces, and the more space between them, the easier your
board will be to fabricate by hobbyists. And most PCB packages have settings
that can be modified so that they'll do most of the work for you...