PCB fabrication

An introduction to getting printed circuit boards (or PCB-type front panels) fabricated.

First someone needs to design the PCB. Let’s assume that’s done already. Then they have to produce the files known as Gerbers that describe the PCB for the fabricator (and the drill files, usually included with the Gerbers though technically they’re not Gerbers). Let’s assume that’s done already too. You’ve found a repository that has Gerbers for a PCB you want; what do you do?

Submitting Gerbers

In short, you need to compress the Gerber and drill files to .zip format, go to wherever you’re having the fabrication done (see below), upload the .zip file, choose a color and specify a quantity, and open your wallet.

In less short: For each PCB there needs to be a zipped Gerber folder. Some projects have more than one PCB and there needs to be a separate Gerber folder for each. Typically a Gerber folder for a single PCB will contain something like:

drill_report.rpt
herovco_back-CmtUser.gbr
herovco_back-CuBottom.gbl
herovco_back-CuTop.gtl
herovco_back-drl_map.pdf
herovco_back-EdgeCuts.gm1
herovco_back-MaskBottom.gbs
herovco_back-MaskTop.gts
herovco_back-PasteBottom.gbp
herovco_back-PasteTop.gtp
herovco_back-SilkBottom.gbo
herovco_back-SilkTop.gto
herovco_back.drl
herovco_back.gbrjob

(Not all of which actually are needed by the fabricator but it does no harm to include them all. Note that different fabricators have different requirements; Gerbers generated for upload to JLCPCB may not be what OSH Park needs, for example, so it’s best to be sure the Gerbers you’re using match up with your fabricator.)

All these must be put in a folder and compressed to a single zip file, and then likewise but separately for each PCB (or front panel) you want to order.

Beyond color and quantity, there are other options they give you but most you can ignore — the default is what you want. Most places have a minimum order of 5 copies of each board, and if you want more it has to be a multiple of 5.

Front panels

For front panels (faceplates) there are a couple of extra bits.

Aluminum?

Some vendors offer the option to use aluminum as a substrate instead of FR4, which can be an attractive option for front panels. There are some things to consider doing if you’re going to go with aluminum. Skip this section if you want FR4 panels.

Note that double sided aluminum is either (depending on the vendor) unavailable or staggeringly expensive. Fortunately single sided is fine, for most panels.

Not sure about other vendors, but for JLCPCB I have read that if you submit an order for an aluminum panel they will simply disregard the Gerber files for back copper and back mask, and will make all holes non plated through. So you can use the same Gerber/drill files as for two sided FR4 panels. But in the interest of clarity my practice is to delete (or just not generate) the back copper and mask files, and to submit only an NPTH drill file. If in the design all the holes are PTH, you can delete the NPTH file, rename the PTH file to NPTH, and use a text editor to change “PTH” to “NPTH” in the file contents. If in the design there are both PTH and NPTH, I find it easiest to tell KiCad to put both in a single drill file, then edit the file name and contents to make it clear it’s for NPTH holes.

You can and probably should (see below re: order number) include a back silkscreen layer for aluminum panels.

Front panel Gerber submission

If there’s an option to skip electrical testing, choose it. (At JLCPCB uncheck “flying probe test”.) Also add a note like:

This is a faceplate. There is no circuit, only copper fills. Ignore any electrical errors.

Fabricators usually want to silkscreen an order number on the product, and you probably don’t want that on the front of your panel. Request that they omit the order number or put it on the back of the panel. At JLCPCB you can check “Remove Order Number: Specify a location” but for this to work, the PCB design must include “JLCJLCJLCJLC” somewhere on the panel silkscreen to mark where the order number should go. You can tell them not to place the order number at all, but that costs extra.

Pro tip for JLCPCB

When you add a new board to an order it remembers the options you selected for the previous board. So if for example you want to order several PCBs and several front panels, do the PCBs all together, then do all the panels. Then for instance you only have to type in the “this is a front panel” note once (and you’re less likely to forget to check off “specify a location” on one of them).

Which fabricator?

As for which fabricator to use, it depends on what you’re looking for. Generally JLCPCB has the lowest prices, by a lot in many cases. Then again, several places offer a discounted price — around $5 for five boards — for anything less than 10 cm on a side (and no special options) that renders price considerations minor. PCBWay offers more options including more colors. OSH Park has a good reputation if you want to use a US based company, but at a significantly higher cost per unit area than most of the Asian companies, and with few color options. However, they have free shipping to US addresses and their per unit area price doesn’t bottom out at some minimum, so for very small boards, under a square inch maybe (good for e.g. SMD breakouts), they can be significantly cheaper than anyone else. If you want to check prices at a variety of companies you can use https://pcbshopper.com/ . Fill in the form with your PCB’s dimensions, how many you want, what color, and so on, and it does the comparison shopping for you. It misses some options, though, like OSH Park’s “Super Swift” service where you pay more for faster turnaround. There also are reviews of various companies, and some get very low ratings, so it’s worth looking at this site before choosing a fabricator.

Video

18 Likes

Some company links (see more at pcbshopper.com):

JLCPCB (EasyEDA) China
Elecrow China
Smart Prototyping China
PCBWay China
AISLER Netherlands, Germany, USA
Bittele (7pcb) Canada
Eurocircuits Belgium
BasicPCB USA
OSH Park USA

6 Likes

AISLER is in Europe (Germany, iirc).

EDIT: According to their imprint/impressum (a very German thing), company is Dutch but with logistics in Germany and maybe in the US, not entirely clear. They ship from Germany, but have 2 day delivery to the US so odds are they have some operations in the US as well.

1 Like

Been using JLC since march and well happy.

pcbshopper.com says USA for Aisler, FWIW. This suggests production facilities in Germany and USA.

I once had a couple of orders from JLCPCB with some defective boards (1 out of 5 for three designs)




I’ve had numerous other orders with no similar problems.

I’ve also done business with PCBWay and been satisfied with their quality.

If I were ordering only small (<10 cm on a side) boards I’d go with PCBWay. But usually I save up several boards to order at once, and if any are much more than 10 cm, it becomes so much more expensive at PCBWay (or anywhere else with a decent rating) that for my purposes — hobbyist stuff — JLCPCB’s prices win out over the occasional bad board. If I were producing for commercial sales, it’d be different.

1 Like

One photo of the fault to jlbpcb and they replace or refund. They take their qc very seriously.

2 Likes

Yes, they scratched a big order of panels I made. Replaced within 3 days, and the replacements were stunning.

I find that if I pay for “paper between pcbs” in the packing (adds about $3) they pay far more attention to handling.

I tried PCBGOGO because they can do aluminum core boards…it was 4x the cost, and the silkscreens were wonky on every one. Thankfully they refunded my money when I sent pix, but stated that they could not meet my QC goals. Disappointing because they are the only outfit I’ve found that does matte black soldermask on aluminum core boards.

FYI black soldermask on 2 sided boards is now the same price as green at JLC.

6 Likes

Nice thread to start into Dan. Welcome.

I’ve tried to get PBCs made from gerbers before but I’ve always run into some problem or another.

So it’s nice to see that it can be done by mere mortals - I know…“RTFM, MArc” :slight_smile:

3 Likes

I had not done PCB work since doing photo resist and etching at school in the late 80’s

But Feb/March time I had AO’s MikroKosmo and one of my own very simple designs made up and have flown from there.

3 Likes

Except that if you’re in the US they offer free USPS shipping, and their $5 per square inch (for 3 boards) price doesn’t bottom out at $5 (so for instance 0.5" by 1.0" is $2.50), so teeny boards smaller than about a square inch are cheaper from them than anyone else.

2 Likes

I’d love it if somebody could write up a JLCPCB how-to guide, there are lots of options and I don’t want to make any mistakes for my order!

Specifically:

  • What are castellated Holes and do I need them?
  • Do I submit the front panels as separate "PCB"s?
  • Are all of the default (cheap) thicknesses okay?
  • What are stencil “Electropolishing” and “Framework”?
  • Do I have to order 5 of every PCB? What are you guys doing with all the extras?
  • Would it be cheaper to just jam a bunch of modules (like the 2.5s) together rather than making lots of individual ones?

Cheers from a noob!

3 Likes

Several of your questions are covered by:

Google for the answer on castellated holes if you like, but the answer is, you don’t need them.

Every individual object (panel, PCB) is a separate submission.

Default thickness is fine.

I don’t know what stencil “Electropolishing” and “Framework” are but am confident they are not needed.

If I have leftover PCBs/panels of my own design I sell them on Tindie (see BST topic). If it’s someone else’s design it depends on whether they made it open source or more generally how they feel about it. Trading for others’ extras is also an option.

(I even order more sometimes if I think others will want them. For small boards, under 10 cm each way, ten boards cost only a dollar more than five.)

JLCPCB will charge you extra if they think a “board” you submit is really two or more boards to be cut apart. It might still be cheaper.

3 Likes

Castellated holes : NO (that’s the holes at the bottom of these : https://fr.aliexpress.com/item/32264795859.html)

Front panels are separate PCBs.

Defaults are OK, but you may want to change :

  • PCB Color (obviously !)
  • Surface Finish (your choice… lead is bad, but if you can’t touch it because it’s hidden behind the knobs…)

No need for any stencils

Yes, 5 of everything… (I keep one unbuilt just in case I need another one, and maybe try sell the others at cost)

Cheaper for many modules ?
It depends… usually what you want is called panelling, so the PCBs are easy to take appart, but that costs extra. So you have to try both every time and compare, it may be cheaper, or not…

For the panels, you can “Not test” the “Flying probe test” because there is nothing to test…

Also, for panels (not regular PCBs), you don’t want the order number right in the middle of it !
For “Remove Order Number” you want “Yes” (or “Specify a Location” IF the panel (gerbers) are designed to support it (you’ll have to check with the author for that…)). Yes is $1.5, “Specify…” is free.

3 Likes

Thanks guys!

Is that true? Isn’t that the labels on the PCBs for which parts are which? I think I’ll want those.

2 Likes

To be more definite, last night I ordered some boards and panels. For each PCB I uploaded, glanced at the Gerber viewer to make sure nothing was grossly wrong, changed the solder mask color, changed the quantity for the ones I wanted 10 of, and clicked Order. Everything else was default.

For the panels I also clicked “Not test” for Flying Probe Test and “Specify a Location” for Remove Order Number (both panels had the requisite “JLCJLCJLCJLC” on the rear silkscreen), and added a note, “This is a front panel. There is no electrical circuit, only fills. Ignore electrical errors.” Otherwise, again, everything else was default.

3 Likes

No. Stencils are actual stencil sheets for SMD reflow assembly.

3 Likes

Ooooh, okay, great. That lowers the cost significantly.

2 Likes

And, remember, you’ll get at least 5 of the bunch of modules…
That’s so many more to find a home for…

1 Like

Right, if you’re jamming together several of the same board, but if you’re paneling a bunch of different ones, like the 2.5 cm set, then either way you end up with five of each.

2 Likes