pcb design process

31
How to Design Printed Circuits Boards ... and live to tell about it. Bob Kressin, Instructor Department of Electrical Engineering and Computer Science

Upload: anshu-stunning

Post on 18-Aug-2015

51 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Pcb design process

How to Design Printed Circuits

Boards... and live to tell about it.

Bob Kressin, InstructorDepartment of Electrical Engineering and Computer Science

Page 2: Pcb design process

Overview

•What is a Printed Circuit Board?

•How do you design a PCB?

•How do you order a custom PCB?

2

Page 3: Pcb design process

What is a PCB?A Mechanical Solution to an Electrical Problem

Photo from www.sparkfun.com

3

Photo from hephaestusaudio.com

Page 4: Pcb design process

What is a PCB?Layers, Traces, Planes, and Vias ... oh my!

Image from www.elkosoft.com

4

Page 5: Pcb design process

What is a PCB?

Image from www.gettyimages.com

Essentially, you’re job is this ...

5

Page 6: Pcb design process

Component Suppliers

•For the “weird & wonderful” -

•For the “inexpensive everyday” -

•For the board itself -

Where do we get the goods?

www.sparkfun.com

www.mouser.com

www.4pcb.com

Page 7: Pcb design process

The PCB Design ProcessFrom Vision To Reality

Eagle PCBwww.cadsoft.de

7

Place Place ComponentsComponents

Route TracesRoute Traces

Fab!Fab!

Iteration

Generate Generate GerbersGerbers

Schematic Schematic CaptureCapture

Page 8: Pcb design process

Eagle PCBA CAD Tool For Designing a Board

Schematic Schematic CaptureCapture LayoutLayout

Control PanelControl Panel

LibraryLibrary

Symbol Footprint

Project

8

Page 9: Pcb design process

Eagle PCBSymbol + Footprint + Device = Component

DeviceDeviceDevDev

SymbolSymbolSymSym

FootprintFootprintPacPac

9

Page 10: Pcb design process

Eagle PCB

•A Plan

•Block Diagram / Napkin Sketch

•Component Selection

•Connections and Testing Considerations

•Power and Performance Considerations

•A New Project

•Access to Libraries

Stuff I Need To Get Started

10

Page 11: Pcb design process

Eagle PCBIt’s all about the planning.

ComponentsComponents ConnectionsConnections Power & Power & PerformancePerformance

Passives: 0805, 0603,

etc.

IC Packages: QFN, TQFP,

etc.

Libraries

Mechanical Connections

Bus Connections

PC Connections

Power Ratings

Battery Performance

High-Speed / High-

Sensitivity

11

Page 12: Pcb design process

Eagle PCBCreating a New Project

•Launch Eagle

•File -> New -> Project

•Enter Project Name

•Directory structure taken care of automagically.

•Active project is shown with a green light.

12

Page 13: Pcb design process

Eagle PCBAccessing Libraries

•Full view of libraries available via Control Panel

•Download more from the web and place in the Eagle installation directory in /lbr

•Sparkfun has an incredible library of more advanced parts (accelerometers, etc.)

•Caution! Just because you see the library in Control Panel doesn’t mean you can access it in your schematic.

13

Page 14: Pcb design process

Schematic CaptureCreating a New Schematic

•File -> New -> Schematic

•Save it right away.

•Don’t worry about creating a Board just yet.

•Keep the 100-mil grid.

Schematic CaptureSchematic Capture

14

Page 15: Pcb design process

Schematic CaptureAdding Components•Click the Add

icon

•Find the component in the library

•Set values

•Don’t see the library? Try Use -> Library

Schematic CaptureSchematic Capture

15

Page 16: Pcb design process

Schematic CaptureAdding Global Symbols

•Click the Add icon

•Find the global symbol in the library (supply1)

•Place as if it were a component

Schematic CaptureSchematic Capture

16

Page 17: Pcb design process

Schematic CaptureAdding Traces (aka Wires)

•Click the Wire icon

•Have at it!

Schematic CaptureSchematic Capture

17

Page 18: Pcb design process

Schematic CaptureSome General Tips

• Avoid changing the grid unless absolutely necessary.

• Free Eagle version does not allow “sheets”.

• Free Eagle version requires that schematic drives the layout ... not vice-versa.

• Groups, Info, and Layers icons are useful.

• Pan, zoom, niceties easy to use.

• Really care about that “net”? Label it.

• Keep it clean - don’t be lazy.

• Document!

Schematic CaptureSchematic Capture

18

Page 19: Pcb design process

Place ComponentsBut before you do ...

• Passives - 0805 means 0.08” by 0.05”

• Connectors - beware of physical fit

• Actives - lots of packaging alternatives

• Give thought to testability and troubleshooting

Schematic CaptureSchematic Capture

DIP LQFP, QFP, TQFP QFN BGA

Thru-Hole (TH)Thru-Hole (TH) Surface Mount (SMT)Surface Mount (SMT)

Place ComponentsPlace Components

19

Page 20: Pcb design process

Place ComponentsCreating a new board design

• From the schematic, choose File -> Switch to Board.

• “Create From Schematic”? You bet!

• Board window automatically opens.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

20

Page 21: Pcb design process

Place ComponentsSome Common Tasks

• Right-click on top of component, select Move to reposition.

• While moving, right-click to Rotate.

• Use “Group” wisely.

• Right-click to Mirror (change to other side of board)

• Use Move to change outline

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

21

Page 22: Pcb design process

Place ComponentsThinking ahead

• Take your time.

• Untangle flight lines.

• Think about planes.

• Consider testability.

• Mechanical Fit?

• Hard stuff first.

• Keep silkscreen.

• Think hard about components on 2-sides.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

22

Page 23: Pcb design process

Place ComponentsSome General Tips

• Are your Design Rules setup correctly?

• Run the Design Rule Check (DRC) often.

• Run the Electrical Rule Check (ERC) often.

• Save a snapshot of your placement file.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

23

Page 24: Pcb design process

Route TracesAdding “Waaaahrs” To Your Layout

• You want to route, not wire.

• You want to ripup, not delete nets.

• Are you on the top or the bottom?

• Vias are on top and bottom. Easy to add.

• DRC often!

• Iterate like mad.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

Route TracesRoute Traces

24

Page 25: Pcb design process

Route TracesSome General Tips• Two layers? Have an

x-layer and a y-layer.

• Don’t forget mounting holes, other nice things.

• Add testability features.

• Do the “what if?” dance.

• Do the cardboard mockup.

• Pour Copper.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

Route TracesRoute Traces

25

Page 26: Pcb design process

Generating GerbersSome General Tips

• Using Advanced Circuits? Have I got a script for you ...

• This involves the “CAM Processor” ...

• Generate critical layers.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

Route TracesRoute Traces

26

Gen GerbersGen Gerbers

Easier than spit!

Page 27: Pcb design process

Generating GerbersSanity Checking The Result

• You’ll need an account with Advanced Circuits.

• Email will be sent confirming design rule checking.

• Advanced Circuits even gives you a discount.

• Squash any errors, review all warnings. Look for open vias, closed vias, etc.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

Route TracesRoute Traces

27

Gen GerbersGen Gerbers

freedfm.com

Page 28: Pcb design process

Generating GerbersReviewing The Result

• ViewMate - Free Gerber Viewer for Microsoft Windows (link on Dr. Wickert’s site).

• Review planes, drill holes, and “obvious” defects. Not usually any surprises here.

• Biggest error - not exporting the proper layers.

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

Route TracesRoute Traces

28

Gen GerbersGen Gerbers

Page 29: Pcb design process

FabBefore you hit “the button” ...

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

Route TracesRoute Traces

29

• Generate a Parts List (aka “The BOM”) using Export -> Partlist.

• Generate a Pin List (aka “The Netlist”) using Export -> Netlist.

• Sanity check both.

Gen GerbersGen Gerbers

Fab!Fab!

Page 30: Pcb design process

FabSome General Tips

• Do you have all of your components? Lead time?

• Find out what file format your PCB Vendor wants.

• Advanced Circuits - GERBER_RS_274X (no, really)

• Consider routing it yourself at UCCS.

• Consider barebonespcb.com. Really cheap.

• Sleep on it. Follow my tradition -

30

Schematic CaptureSchematic Capture

Place ComponentsPlace Components

Route TracesRoute Traces

Gen GerbersGen Gerbers

Fab!Fab!

Page 31: Pcb design process

The PCB Design ProcessA Summary of a Lot of Information

31

Place Place ComponentsComponents

Route TracesRoute Traces

Fab!Fab!

Iteration

Eagle PCBwww.cadsoft.de

Generate Generate GerbersGerbers

Schematic Schematic CaptureCapture