Saturday, December 21, 2019

PROTOTYPE TO PRODUCTION: BUILDING YOUR FIRST PCB PROTOTYPE

This week, we’re excited to kick off a three part blog series about building your first PCB prototype. PCBs (printed circuit boards) are the heart and brains of every product that turns on, plugs in, or lights up. They contain electrical components that determine the behavior of your product, and come in all shapes and sizes. Reference
In this first post, we’re going to share some tips about defining and communicating PCB fabrication specifications, and creating gerber files for your prototype.

WAIT, WHAT ARE GERBER FILES?

Gerbers files are the digital blueprints that allow manufacturers to build your PCB, layer by layer. Many PCB design software packages have built-in tools for generating these kinds of files – at Particle, we use EAGLE, a free and powerful PCB design suite popular with engineers all over the world.
In this blog post, we’re not going to focus on how to create schematics and PCBs in EAGLE, since there are already several extraordinary tutorials on the web that do a great job. In our opinion, this three-part series by ] is among the best:
  1. How to Install and Setup EAGLE
  2. Using EAGLE: Schematics
  3. Using EAGLE: Board Layout
Instead, we’re going to focus on fabrication specifications – the design requirements that have less to do with defining the electrical function of your product, but have a tremendous affect on its cost, yield, supply chain, and manufacturability.
Keep in mind throughout this post that following common manufacturing standards is always the cheapest, fastest, and least complicated route through the prototyping process. The following design rules and standards are often overlooked until the price is too high or the yield is too low, so our hope is that this post will save you some valuable time along the already unpredictable road from prototype to production.

1. UNDERSTANDING PCB FABRICATION SPECS

  • Dimensions – Pretty simple, the size of your PCB. The key thing to keep in mind here is that the cost of a PCB scales with surface area, so be sure to use only the space that you need in order to minimize costs. Similarly, PCB board designs with irregular shapes that result in waste materials during fabrication will be more expensive the a smaller, rectangular footprint for the same board.
relay-shields
The first version of the Spark Relay Shield has a square footprint of nearly 74.5 cm^2, and lots of unused space. The second iteration (prototype!) has a reduced footprint of only 65.4 cm^2, and includes a large prototyping playground as a bonus.
  • # of Layers – The number of layers in a PCB is a basic indicator of its complexity (lower is simpler). You can think of additional PCB copper layers like highways stacked on top of one another – they provide new planes in which to route the traffic of electrons when the maze of electrical connections between components and pins start to overlap on one another.
  • Material Type – A standard multilayer PCB consists of several copper clad boards fused together on top of each other. The most common type of PCB material used these days is the glass epoxy or more widely know as the FR-4, where FR stands for flame retardant while the number denotes its flammability. About a decade ago, the more commonly used PCB material was the phenolic paper or the FR-2. This material was prone to chipping/cracking and not to mention, more toxic. Other less common PCB materials are polyimide, teflon, PEEK used in flexible boards. Most PCB manufacturers offer FR-4 as a default choice but care must be taken when designing high speed or RF boards where the dielectricity and thickness of the material becomes very important.
  • Board Thickness – This is a primary mechanical specification of your PCB, where 1.6mm thick seems to be the industry standard. Depending on the number of copper layers, the PCB manufacturer will choose PCB core dimensions that result in the desired board thickness. If your PCB is enclosed in a small space, you might desire a thickness like 1.0mm or less. Manufacturers can commonly accommodate thicknesses down to 0.4mm.
  • Plating Finish – Pad plating is a technique in which the exposed copper surfaces of a PCB are plated with another metallic material to improve solderability of the pads during assembly. The most common plating technique is leaded or lead-free HASL (Hot Air Solder Leveling), where solder is pre-applied to the board during PCB assembly. An alternate technique is ENIG (Electroless nickel immersion gold) plating. This is a more expensive plating technique, but offers improved resistance to oxidation and surface planarity (flatness). This makes it a great choice for large BGA components and exposed contact pads or test points.
enig-pcb

The PCB on the left is ENIG plated while the one on the right is standard HASL. Observe how the HASL pads are uneven while the ENIG ones are perfectly flat.

  • Impedance Control – If your PCB has a radio on it (Wi-Fi, Bluetooth, etc.), you may need to specify impedance control. Impedance control means that a set of specified traces (usually the RF net) present a known resistance to all signals traveling within them. Impedance is affected by a variety of factors including the dielectric of the pre-preg material, trace width, and soldermask. Carefully controlled impedance is important for optimizing wireless antenna performance. For example, Wi-Fi antenna circuits are typically controlled to 50-ohm impedance. Impedance control requires expensive equipment, and not all manufacturers are capable of ensuring controlled impedances. Expect this to add to your fabrication costs, and to add more if your tolerances for controlled impedances are relatively strict (< 5% variance from spec. 10% variance typical).
  • Minimum Width/Spacing – This is a measure of the minimum width of the copper traces on your PCB, as well as the minimum distance between individual traces. 6 mil spacing is very safe for most fab houses, while some manufacturers can handle down to 3-4 mil spacing. It’s a great accomplishment to route out 64 or 128 pins of a microcontroller, but only if there’s sufficient spacing to actually fabricate it. So, pick out a spacing requirement that aligns with your manufacturer’s minimum specifications, and stick to it!
pcb-comparison

A board on the left uses default width and spacing tolerances while the one on the right asks for more. Observe how the holes on the vias aren’t exactly centered. This becomes a problem when your PCB manufacturer cannot stick to their tolerances. So try to be more generous with your copper wherever possible.

  • Hole Sizes – The size of the holes and vias (which create vertical electrical connections between copper layers) on your board. Specifying small pads and vias on your PCB is a great way to save space, but also makes it more difficult for your fab house to manufacture. Smaller holes mean tighter tolerances on your manufacturer’s drilling process, a greater likelihood of missing or landing outside the pad, and the creation of scrap and wasted material. 0.2 – 0.3mm vias sizes are typical.
  • Solder mask – A solder mask is a lacquer-like layer of polymer usually applied to the copper traces of a PCB. It helps prevent solder bridges from forming and potentially causing short circuits. Many manufacturers will give you a choice of solder mask color, which is fun! Beyond the standard green, you can oftentimes choose red, yellow, blue, black, or white. Two tips about solder mask selection:
    1. Many quick turn fab houses optimize their manufacturing processes for standard specifications, which include green solder masks. If you want a cheaper, faster turn time, pick green!
    2. White solder masks are awesome and unique, but hard to keep pristine-looking during assembly. The picture below is an example of a pre-production sample of the Spark Core, which occasionally became discolored during high-temperature reflow and wave solder steps. We ultimately chose to switch to a black solder mask in order to avoid the costs associated with cosmetic defects.
photon-discoloration

Pink discoloration (left) on a white soldermask caused by residual chemicals left over from the PCB fabrication process, and agitated by the high heat of reflow and wave solder. Normal sample on the right.

  • Silkscreen – Silkscreens are the final layer applied to your board: the text, graphics, and designators that help to document and annotate your PCB. The correct term for this process is actually “legend printing”, but everyone calls it the “silkscreen” because silk screen printing with epoxy ink is the most common method for creating PCB legends. A more accurate alternative to silk screen printing is LPI printing (Liquid photo imaging) which creates a much higher resolution silkscreen at a slightly higher price point.
silkscreen-comparison

Comparison of LPI (left) versus traditional silk screen legend printing (right) at equal magnification.

  • Minimum Pitch – In the world of PCBs, “pitch” refers to the distance between adjacent pins on an electrical component. If your product requires a complicated part with lots of pins and a very fine pitch, your manufacturing options may be limited to higher cost assembly houses with modern equipment. Aggressive pitch requirements often result in decreased yield, so it’s reasonable to add the projected cost of scrap (expected scrap rate % * scrap cost) to the price of whatever component is driving the complexity of your PCB. A 0.3mm minimum IC pitch seems to be common for most standard PCB assembly houses.
integrated-circuit.jpeg

Modern integrated circuits are now available in almost indefinite number of packages and pitches. The QFN and BGA packages tend to be more challenging when prototyping or hand assembling the boards.

  • Castellated Holes – If you’re making a module or PCB that mounts to another PCB, you might consider adding castellated pads to your design. Castellated holes are essentially vias or thru holes that have been cut down a diameter to expose copper along the side face of the PCB (see the picture below). These are super useful in particular use cases, but not all manufacturers can build PCBs with castellated holes, so make sure to do your research.

No comments:

Post a Comment