Author Topic: Getting a PCB right the first time  (Read 1124 times)

0 Members and 1 Guest are viewing this topic.

Offline ZeroResistanceTopic starter

  • Frequent Contributor
  • **
  • Posts: 585
  • Country: gb
Getting a PCB right the first time
« on: July 12, 2019, 01:08:42 pm »
How does one ensure that a PCB that is to be sent a board house is free of errors.
By errors, my main concern is if the footprints are of the correct dimensions and their pin layout is correct. I don't want to receive a board where an I package IC used like LQFP64 in not of proper size or maybe its inverted/mirrored and that renders the pcb useless.

I guess one way would be to print the board on a sheet of paper to 1:1 scale and actually place the real world footprint on it and eyeball it for correctness.

But I'd like to hear from the learned and esteemed members here what techniques they use so that these errors don't occur? Do you have any systems in place that ensure an error free pcb?

Of course in addition to incorrect footprints there would be a number of other issues like incorrect schematic symbol, or a  error in connection in the schematic, and I'm open to hear about how to prevent / detect these too.
 

Offline MagicSmoker

  • Super Contributor
  • ***
  • Posts: 1408
  • Country: us
Re: Getting a PCB right the first time
« Reply #1 on: July 12, 2019, 01:21:28 pm »
I have done exactly as you surmised: print the footprint on paper and place the component on top of it. After you've made a few dozen (to hundreds) of footprints you get confident enough to skip this step, but it still occasionally saves my bacon. For example, I recently made a footprint for a new high voltage TO-247 variant (I4 package) and printing it out before sending off the board caught a mistake in the pin offsets.

As for checking pin assignments for accuracy, this is somewhat more difficult because you are essentially proofreading your own work. If you don't have a colleague that can help (I don't) then the best advice I can give is to set it aside for a day or two so you forget the details then go back and double-check the datasheet against the library symbol.

 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4795
  • Country: pm
  • It's important to try new things..
Re: Getting a PCB right the first time
« Reply #2 on: July 12, 2019, 01:30:51 pm »
ALWAYS (!!) double-triple-check ALL your layers you are going to send with the "gerbview"..
It allows you to measure the distances on the layer pretty well.
« Last Edit: July 12, 2019, 01:33:19 pm by imo »
 

Offline ZeroResistanceTopic starter

  • Frequent Contributor
  • **
  • Posts: 585
  • Country: gb
Re: Getting a PCB right the first time
« Reply #3 on: July 12, 2019, 02:51:12 pm »
I have done exactly as you surmised: print the footprint on paper and place the component on top of it. After you've made a few dozen (to hundreds) of footprints you get confident enough to skip this step, but it still occasionally saves my bacon. For example, I recently made a footprint for a new high voltage TO-247 variant (I4 package) and printing it out before sending off the board caught a mistake in the pin offsets.

As for checking pin assignments for accuracy, this is somewhat more difficult because you are essentially proofreading your own work. If you don't have a colleague that can help (I don't) then the best advice I can give is to set it aside for a day or two so you forget the details then go back and double-check the datasheet against the library symbol.

Most of the times I don't have the physical part at hand, and so have to rely on the dimensions of the datasheet. However I think I may have to rethink that and probable get some samples of the critical parts, before sending the pcb for manufacture.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21701
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Getting a PCB right the first time
« Reply #4 on: July 12, 2019, 03:03:20 pm »
Us commercial designers often have access to review procedures (semi/automated DFM (design for manufacture) checks), which is a great help, but also still quite limited, depending on just how fully featured it is of course.  (For example, the one I use often, is really limited to checking footprints and spacing, and only those that are in the database.  Anything not in the database, basically comes back with a note "we couldn't tell, check this manually".)

There is value in mitigation.  Put 0-ohm jumpers on your RXD/TXD pins, you'll confuse them eventually and it's an easy hack to swap them back. :-DD
MCU pins with source-termination resistors are handy test points and for rewiring.
Use easy-to-handle parts (0805 chips?), leave enough space between components that you can hand-solder them (or whatever processes you have access to).
Use relatively large pads, so you can hand-solder them, or put on alternate parts if needed (say, replacing an 0805 resistor with a SOD-123 diode, or a 1206 chip?).
Prefer general-purpose parts, in widely available packages (SOT, SOIC, TSSOP..), and check the pinouts not just for your preferred parts but check for possible pin-compatible substitutes as well.
Download IPC-7351 (preferably a newer version (a or b), but any will do), read and understand how leads and pads are dimensioned, and check your footprints against them.  Tweak the dimensions to suit your process (e.g., extra toe length for hand soldering).

As for personal review -- when you don't have access to, or budget for, any of these services, you're just checking it yourself -- that's down to the user, obviously.  Some people are great at spotting a needle in a haystack.  Often it takes a lot of experience to spot these sorts of things.  You're literally inspecting thousands of objects.  Expect to make mistakes, but also take your time, and interact with your design.  "Handle" it, as well as you can with a CAD model; generate 3D views, get a feel for how the connections are routed in space.  Check your memory of the part pinouts, top and bottom; recheck them against the datasheet.

Got a bullshit datasheet that's showing the footprint backwards, or not labeling things, or the drawing is full of fuck?  Ask, maybe someone has experience with that part, or can look it up in a database. :)

Personally, I do a lot of faffing around on PCB layouts, idly shoving traces, prettying things up.  This mitigates the fatigue of staring at thousands of objects, and provides a different way to interact with and inspect them.  This also gives me the time and perspective to contemplate other issues, like circuit strays, EMC performance, DFM, DFT (design for test), and so on.  (Besides the value this faffing actually generates, I do -- if I do say so myself, and based on others I've seen -- do the actual layout work very quickly, so I have plenty of time to spend in this way, compared to the average service.)

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: Buriedcode, ZeroResistance, Mr. Scram

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Getting a PCB right the first time
« Reply #5 on: July 12, 2019, 08:29:21 pm »
Also, after you've gotten the footprints and pinouts all correct, you'll still screw up the mechanical part. Does it fit into the box? Are the mounting holes and connectors and such in the right place? Did the mechanical drawing of the enclosure front panel make any sense? Did you pay attention to the keepouts so that parts aren't butting up against the metalwork?
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7392
  • Country: nl
  • Current job: ATEX product design
Re: Getting a PCB right the first time
« Reply #6 on: July 12, 2019, 08:39:59 pm »
It doesnt need to be perfect as first try. That's what the prototype is for. I always schedule a prototype into the project plan, no matter how much management is screaming because of it. In fact, you should make a huge bone-headed mistake that ensures that they dont send the prototype into production, so all the other small mistakes can be corrected. If you dont have one, they will send it into production, the first time they see an LED blink on a board.
 
The following users thanked this post: MagicSmoker

Online djacobow

  • Super Contributor
  • ***
  • Posts: 1153
  • Country: us
  • takin' it apart since the 70's
Re: Getting a PCB right the first time
« Reply #7 on: July 12, 2019, 09:43:14 pm »
It doesnt need to be perfect as first try. That's what the prototype is for. I always schedule a prototype into the project plan, no matter how much management is screaming because of it. In fact, you should make a huge bone-headed mistake that ensures that they dont send the prototype into production, so all the other small mistakes can be corrected. If you dont have one, they will send it into production, the first time they see an LED blink on a board.

Yeah, I'm happy if my prototype can be *made* to work, or at least prove out the parts of the design that had "worried me." If that means some cut traces, added bodges, and parts flipped upside down, that's fine.

When I make a board and find lots of errors and things I want to fix to make the board better, more manufacturable, etc, it doesn't upset me too much. When my board has ONE such error, that actually ticks me off more. I guess that may or may not be logical, depending how how much time I spent on the board trying to get it "perfect".  :-//
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4106
  • Country: us
Re: Getting a PCB right the first time
« Reply #8 on: July 12, 2019, 09:52:25 pm »
Quote
the footprints are of the correct dimensions
Recommended footprint mechanical drawings are almost always included in the datasheet for a component.

Quote
maybe its inverted/mirrored and that renders the pcb useless.
I don't think there's a cure for dyslexia.  >:D

There are only a couple or regular gotcha's I can think of that are always on my checklist for Eagle, aside from obvious ERC and DRC's.
View the unrouted signals layer by itself (to make sure it's completely empty, of course) in case there are any almost-connected signals that leave tiny gaps.
Check clearances and soldermask to make sure vias are tented/untented as intended.
« Last Edit: July 12, 2019, 10:02:03 pm by KL27x »
 
The following users thanked this post: ZeroResistance

Offline tautech

  • Super Contributor
  • ***
  • Posts: 28398
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Getting a PCB right the first time
« Reply #9 on: July 12, 2019, 10:22:12 pm »
All of the above plus a few little things gleaned from many SS home etched PCB's without overlays.

Component orientation markings.
Amend IC and active component footprints for the copper to show pin 1 or add an adjacent copper dot as a pin 1 signifier.
Same for polarized caps, make one pad square and/or add a + into the copper closeby.
Diodes often have a polarized footprint but adding a K in copper closeby never hurts.
Mark polarized headers, just a + and GND/Neg/- is plenty.
Unconnected copper = No Net.

Measurements
Double check scaling of prints and final artwork is correct, if you haven't got calipers......GET SOME !
Don't skimp on TH drill hole size, anyone that reworks your board will thank you.
Annular rings, make them as large as is practical and when clearance is a problem elongate them.
Watch for insufficient trace clearances when using elevated voltages....overlays and conformal coatings can help manage this.
Always consider rework when laying out a PCB so that some poor bugger doesn't have to remove 1/2 the components from the PCB to remove just the one they want. Particularly important for SMD PCB's !
Use medium or low density class passive footprints for anything that might be hand soldered or reworked.

Finally, does the PCB make sense in that are polarities to each and every polarized component are correct.

Oh, and DRC !



« Last Edit: July 12, 2019, 10:29:15 pm by tautech »
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf