Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute...

21
Designing a PCB EE155/255 - Fall 2015 Ned Danyliw

Transcript of Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute...

Page 1: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Designing a PCBEE155/255 - Fall 2015

Ned Danyliw

Page 2: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Why a PCB?

• Permanent, repeatable (hopefully) circuit

• Lower parasitics

• Necessary for high speed designs

• Smaller form factor

Page 3: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Cross-section of a PCB

Page 4: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Designing a PCB• Design the schematic

• Select the components

• Place components on PCB

• Route signals and power planes

• Send design to manufacturer

• Assemble

Page 5: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Software• Free software

• Eagle

• Probably the most popular

• Free

• Huge library of pre-made components

• Free version - 2 layer and limited PCB size

• FreePCB

• KiCAD

• Paid software

• Altium

• Prohibitively expensive for personal projects

• Much easier to route large designs

Page 6: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Schematic Design• Flexibility is good. You don’t need to populate every

component.

• Make sure components are properly bypassed

• Typically a .1µF capacitor on their supplies

• Clearly label parts

• Named nets are good

• Organize schematic logically

Page 7: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Component Selection• Build bill of materials with components supplier

• Preferably a single supplier

• Digikey, Mouser, Jameco, etc.

• Be aware of package size/code

• Always check the datasheet

• Order typically 3x

Page 8: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Board Layout Pt. 1• Most important step in designing a PCB

• Intelligent placement makes routing easy

• Typically can place circuit in “blocks”

• Keep components close together (shorter traces typically are better)

• Keep power dissipation in mind (spacing/trace widths)

• Clearance for connectors

• Separate “noisy” and “quiet” signals

• Add test points

Page 9: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Board Layout Pt. 2• Route the critical signals (critical power loop, high speed

digital, analog signals, etc.)

• Don’t autoroute*!!!!!!

• Often power signals should use polygons

• In general traces should be as wide as they possibly can

• Run DRC (design rule check) often!

• With multiple layers, map what each layer (generally) is for

*can use autoroute tools for some signals but you need to know what you are doing

Page 10: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Design Example• Microcontroller board for littlebox

• STM32 microcontroller

• Instrumentation amplifiers for sensors

• Boost converter

• Interface with 3 other boards

Page 11: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Schematic

Page 12: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Boost Schematic

Page 13: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

µC Schematic

Page 14: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Planning• Mechanical considerations for component placement

• Account for connectors and required positions

• Mounting holes

• Heat sink placement

• Low inductance switching loop

• High current traces

• Noisy/quiet power planes

Page 15: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Component Placement

Page 16: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Route Signals

Page 17: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Add Polygons

Page 18: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Critical Loop

Page 19: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Many Iterations

Page 20: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

Combining Grounds

Page 21: Designing a PCB - Stanford University · Designing a PCB • Design the ... *can use autoroute tools for some signals but you need to know what you are doing. Design Example • Microcontroller

General Hints• Design in stages

• Frequently review layout and check for errors

• Keep notes

• Leave testpoints

• If possible leave pads for circuit adjustments