General Notes:
The PCB design should not only be about connecting the pads together. This is the end goal, but reaching this goal should be done following guideline instructions.
- Professional PCB designs are almost always aesthetically pleasing. This is not to be taken slightly when designing a PCB. The design should be clean and neat.
- No matter how good you are in PCB design, there is always room for enhancements. That is why design review is a must every-time. The reviewer shouldn't necessarily have a bigger experience, actually reviewing someone else's work is a great way to gain experience.
- Contrary to popular belief, sharp right angle corners on tracks don’t produce measurable EMI or other problems. Nevertheless, tracks should only have 45 degrees angles. Avoid the use of right angles, and under no circumstances use an angle greater than 90 degrees. The reason is because these angles just don't look good and they might cause manufacturing problems.
Zoning and Placing:
A good component placement will yield a good PCB layout. Defining the general location of all the components on the blank PCB should be done before drawing any trace. Since this is not enough, zoning should take care of grouping together components that have similar functionalities. The figure below from the TI PCB Design Guidelines For Reduced EMI shows a good component placement.
As we can see from the image, high speed logic including the microcontroller are placed next to the power supply. As we move away we start placing slower components. And at the far end we have the analog components. This will keep the analog signals clean, grouped and isolated from any interference caused by the digital signal.
Zoning and placing is not only about components. It should also be applied to power planes and signals. The power planes on a 4 layer PCB should be consistent. It is possible to divide the planes into multiple ones (for example digital and analog) but the areas should be predefined. Also the designer should make sure that the signals do no cross from one plane to another. All digital traces should go on top of the digital ground plane and similarly all analog traces should run over the analog ground plane.
As a general rule the bypass capacitors should be placed as close as possible to the corresponding pin. Series resistors should also be placed next to the micro-controller pin that they connect to. And to reduce manufacturing time and thus the cost, component orientation should be consistent for neighboring components. In polarized components, try to keep the polarity in the same direction.
Constraints:
PCB constraints are not there to make your life harder, actually setting up all the constraints upfront will make the design easier.
- Keep a big clearance between PCB edge and the components/copper. All components and traces should have be spaced at least 20 mils away from PCB edge. Failing to do so might cause undesired shorts between power planes.
- Traces should have a standard width across the whole design. Smaller traces can be used in particular areas if need be. A typical trace width would be 8 mils, this can be changed according to the design. Traces connecting power signals should be of higher width, the length-to-width ratio should not exceed 3:1 for any traces between the IC and voltage source. Typically a 10 to 15 mil trace can be used for normal power signals. For high current traces, the width should be calculated depending on the PCB copper thickness.
- Clearance between traces should also be kept high. This will reduce cross talk and interference between traces running close to each other. Again the clearance between traces should be kept standard across the design, in my work I tend to use 8 mils clearance for traces and 10-15 mils clearance for shapes (copper pours).
- Minimum width for silkscreen text should be set as per manufacturer standards. A good practice is to keep all silkscreen width greater than or equal to 10 mils.
- Once the constraints are set, keep...
I found something interesting when reflow soldering. Don't allow solder paste to get inside drill holes that aren't copper filled (for example tabs with drill holes on panelised boards). It turns out the solder hardens on the exposed sections of the holes and the internal unflown solder explodes out and sprays onto the surrounding parts from the expanding flux gases. The casualty radius was about an inch around from a small 0.3mm hole.
So if you get solder paste in there (I got it in there when cleaning off smudged solder), clean it out thoroughly. A piece of thin wire should get most of it.
If you don't, you will have spotted solder all over the place on parts and pads.