network and systems laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16wireless sensor network and labs...

52
Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16 Wireless Sensor Network And Labs fall 2011 1

Upload: erica-marshall

Post on 26-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

zzz

2011/12/16Wireless Sensor Network And Labs fall 2011 1

Page 2: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Today’s ClassLast week

IntroductionCreate schematic libraryCapture schematic

Create PCB library (footprint)Layout

2011/12/16Wireless Sensor Network And Labs fall 2011 2

Page 3: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Through-hole PackagesSIP: single in-line packages

DIP: dual in-line packages

Through-hole package are old, their number decreased in modern design

2011/12/16Wireless Sensor Network And Labs fall 2011 3

Page 4: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

SMD PackagesChip resistors, capacitors, inductors

0402, 0603, 0805, … Represent size of the chip 0805 means 0.08” x 0.05” rectangle

2011/12/16Wireless Sensor Network And Labs fall 2011 4

Page 5: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

SMD Packages SO: Small outline

Usually refer to IC with two rows of leads

QFP: Quad flat package

2011/12/16Wireless Sensor Network And Labs fall 2011 5

Page 6: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

SMD Packages QFN: Quad flat package, no-leads

The packages we introduced just now are most commonly usedDevice datasheet should include the package

informationYou will need it for PCB layout

2011/12/16Wireless Sensor Network And Labs fall 2011 6

Page 7: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

SMD Packages BGA: Ball Grid Array

PGA: Pin Grid Array

These two are widely used in high end processor. They allow more pin-out from a single package. We seldom use ICs in these package, it is too difficult to solder by hand

2011/12/16Wireless Sensor Network And Labs fall 2011 7

Page 8: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Why To BuyVarious sources

Online retailers www.digikey.com www.mouser.com

Local distributorsThese are probably two of the world largest online electronic

components retailers. If the component you need cannot buy

from these two sources, you might want to consider the other

component!

2011/12/16Wireless Sensor Network And Labs fall 2011 8

Page 9: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Block Diagram

TarokoLocation node

TarokoControl node

Battery4 AA

6V output

Regulator

LM317L

Connector

3-PinInfrared

Connector

3-PinInfrared

Connector

3-PinMotor

Connector

3-PinMotor

3.3V

3.3V

6V

6V

2011/12/16Wireless Sensor Network And Labs fall 2011 9

Page 10: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

ComponentsBattery connector: 2-pin, Regulator: LM317L, 8-pin SOIC

Resistor, capacitorTaroko connector

Location node: 2x5 pin, 2x3 pin Control node: 2x5 pin, 2x3 pin

Infrared connector: 3 pin Motor connector: 3 pin

2011/12/16Wireless Sensor Network And Labs fall 2011 10

Page 11: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

PCB LayoutSoftware

We are using “Altium Design 6”There are many other software available

Process1.Initial setup2.Create schematic library3.Capture schematic4.Create PCB library5.PCB layout6.Output

2011/12/16Wireless Sensor Network And Labs fall 2011 11

Page 12: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

PCBcopper

copper

copper

1-layer board

2-layer board

Multi-layer board(Taroko is 4-layer board)

2011/12/16Wireless Sensor Network And Labs fall 2011 12

Page 13: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

TerminologiesTop layer: copper on top

Top overlay: white marks on top layer

Bottom layer: copper on bottomBottom overlay: white marks on Bottom layer

Keep out layer: defines the shape of the board

pads: holds the IC leads

vias: holes

2011/12/16Wireless Sensor Network And Labs fall 2011 13

Top paste: paste mask on top layerTop solder: solder mask on top layer

Bottom paste: paste mask on Bottom layerBottom solder: solder mask on Bottom layer

Page 14: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

PCB LibraryOnce you have every component you need on

the schematic library, you can start create PCB library

PCB library defines the footprint of the component

2011/12/16Wireless Sensor Network And Labs fall 2011 14

AD7798AD7798 LM317L

LM317L

Page 15: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

What Is Footprint

A footprint created in the software

After finish the layout and get the PCB board. This is how it look like.

AD7798 placed on the board

2011/12/16Wireless Sensor Network And Labs fall 2011 15

Page 16: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Dimension

Must follow the exact dimension Other wise the component cannot solder on the board

Leave some extra space for soldering

6.4mm

extra space for soldering

The basic idea is the footprint you defined can fits the chip

The basic idea is the footprint you defined can fits the chip

2011/12/16Wireless Sensor Network And Labs fall 2011 16

Page 17: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Simple Calculation4mm

7.7mm

These are pads, they use to hold the lead of the IC. You can define the length you want. You must leave some space for soldering

These are pads, they use to hold the lead of the IC. You can define the length you want. You must leave some space for soldering

(0.3* 1.85) mm

2011/12/16Wireless Sensor Network And Labs fall 2011 17

Page 18: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

The Footprint You NeedLM317L Regurator

SOIC 8 (Check datasheet)Power Connector (端子台 )

Pitch 5.08mmInfrared proximity connector

Pitch 2.0 mmConnector: 2x5 pin, 2x3 pin, 3 pin

Pitch 2.54mmChip capacitor, resistor

0805

2011/12/16Wireless Sensor Network And Labs fall 2011 18

Page 19: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

LM317L Physical Dimension

2011/12/16Wireless Sensor Network And Labs fall 2011 19

Page 20: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Create Footprint – By WizardBy wizard (old version altium)Tool -> IPC Footprint Wizard

2011/12/16Wireless Sensor Network And Labs fall 2011 20

Page 21: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Step 1

2011/12/16Wireless Sensor Network And Labs fall 2011 21

Page 22: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Step 2

2011/12/16Wireless Sensor Network And Labs fall 2011 22

Check datasheet for

correct number

Page 23: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Step 3 – No Need Thermal Pad

2011/12/16Wireless Sensor Network And Labs fall 2011 23

Page 24: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Step 4 – Use Default

2011/12/16Wireless Sensor Network And Labs fall 2011 24

Page 25: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Step 5 – Low Density

2011/12/16Wireless Sensor Network And Labs fall 2011 25

You can use large Toe Fillet, hand soldering will be easier

You can use large Toe Fillet, hand soldering will be easier

Page 26: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Use Default

2011/12/16Wireless Sensor Network And Labs fall 2011 26

Page 27: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Step 7 – Use Default

2011/12/16Wireless Sensor Network And Labs fall 2011 27

Page 28: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Give It A Name

2011/12/16Wireless Sensor Network And Labs fall 2011 28

Page 29: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

SOIC-8 Footprint

2011/12/16Wireless Sensor Network And Labs fall 2011 29

Page 30: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

X,Y Coordinate

1 4

58

(0,0)

(1.27,0)

(0,5.2)

2011/12/16Wireless Sensor Network And Labs fall 2011 30

(2.54,0)

(3.81,0)

Page 31: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Create FootprintManual edit

Place padsPlace overlay

The white mark

2011/12/16Wireless Sensor Network And Labs fall 2011 31

Page 32: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Power ConnectorCreate Footprint

2011/12/16Wireless Sensor Network And Labs fall 2011 32

Page 33: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Infrared Connector

2011/12/16Wireless Sensor Network And Labs fall 2011 33

millimetersmillimeters

Page 34: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Copy Footprint Copy miscellaneous component’s footprints

In you are using Win 7 Copy “Miscellaneous Connectors.IntLib” and

“Miscellaneous Devices.IntLib” to another directory In C:\Program Files\Altium Designer 6\Library

Open and extract these two libraryCopy following footprint

Miscellaneous Devices.PcbLib 2012[0805]

Miscellaneous Connectors.PcbLib HDR1x2, HDR1x3, HDR2x3, HDR2x5

2011/12/16Wireless Sensor Network And Labs fall 2011 34

Page 35: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

The Footprint You NeedLM317L Regurator

SOIC 8 (Check datasheet) Create by wizard

Power Connector (端子台 ) Pitch 5.08mm Manual create

Infrared proximity connector Pitch 2.0 mm Manual create

Connector: 2x5 pin, 2x3 pin, 3 pin Pitch 2.54mm Copy from miscellaneous component’s footprints

Chip capacitor, resistor 0805 Copy from miscellaneous component’s footprints

2011/12/16Wireless Sensor Network And Labs fall 2011 35

Page 36: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Link Schematic Library And PCB LibraryAfter create all the footprint need, linking

with the schematic librarylink schematic library and PCB library Update schematic

NotesPins on the schematic library must map to the

pins on PCB library, which is identical to real chip.

2011/12/16Wireless Sensor Network And Labs fall 2011 36

Page 37: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Pin To Pin Mapping

2011/12/16Wireless Sensor Network And Labs fall 2011 37

Page 38: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Pin To Pin Mapping

2011/12/16Wireless Sensor Network And Labs fall 2011 38

Page 39: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Check Schematic And Choose FootprintChoose Footprint

2011/12/16Wireless Sensor Network And Labs fall 2011 39

Page 40: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Normal Procedure

2011/12/16Wireless Sensor Network And Labs fall 2011 40

1. Create component libraries in the PCB software

Schematic library PCB library Link PCB and Schematic

library2. Capture schematic

Draw the circuit on the PCB software

Choose footprint when you place components

3. Layout1. Decide the shape of the board2. Placing components3. Make connections

4. Make the hardware board Export layout to manufacturer

output, send to PCB manufacturer

Home made PCB

1. Create component libraries in the PCB software

Schematic library2. Capture schematic

Draw the circuit on the PCB software

3. Create PCB library Link PCB and Schematic

library Update schematic Choose footprint

4. Layout1. Decide the shape of the

board2. Placing components3. Make connections

5. Make the hardware board Export layout to

manufacturer output, send to PCB manufacturer

Home made PCB

Procedure we took

Procedure we took

Normal procedure

Normal procedure

Is better to follow this one

Page 41: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

NowCreate your footprintChoose correct footprintCheck schematic

2011/12/16Wireless Sensor Network And Labs fall 2011 41

Page 42: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Export to PCBCompile the schematic and export the

components to PCB design documentCompile

Project -> Compile Document xxxxx.SchDocExport the footprints to PCB

Design -> Update PCB Document xxxxx.PcbDoc

2011/12/16Wireless Sensor Network And Labs fall 2011 42

Page 43: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Environment And Keep-OutSetup the layout environment and defines the

keep out layerEnvironment (optional)

(Right click) Option -> Board Options Metric or Imperial Snap grid

Define Keep-out Define the shape of your PCB board

2011/12/16Wireless Sensor Network And Labs fall 2011 43

Page 44: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Component PlacingPlace the component 01 02

Component placing is importantCarefully place the component according to the

signal pathFrequency used quick key

Dragging the component, press “space” to rotate Dragging the component, press “l” to place at the

other sizePlace the bypass capacitor as close to the

power pin as possible

2011/12/16Wireless Sensor Network And Labs fall 2011 44

Page 45: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Design RulesEditing design rules

It defines the rules that your PCB board must follow

Frequently used rules Clearance – minimum distance between traces Routing Width – minimum and maximum allowable

trace width Routing Vias – minimum and maximum via size

(diameter and hold size)At least you need to change “routing width”

2011/12/16Wireless Sensor Network And Labs fall 2011 45

Page 46: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

PCB LayoutRouting 01 02 03 04

My way Route the power line first, route them at the edge

Make the track width wider for power line Route the signal line on the top layer as much as

you can Make the bottom layer as a continuous ground

plane

2011/12/16Wireless Sensor Network And Labs fall 2011 46

Page 47: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Place Some SignatureJust for fun

You can put some text on the “Overlay layer” Either “Top Overlay” or “Bottom Overlay”

Text can be Team name Members name Date Whatever you want

2011/12/16Wireless Sensor Network And Labs fall 2011 47

Page 48: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Design Rules Check (DRC)This function check everything

According to the rules you setupRun Design Rules Check (DRC)

If errors found, must fix itClearance Constraint Broken-Net Constraint Fix errors and run DRC again

2011/12/16Wireless Sensor Network And Labs fall 2011 48

Page 49: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Ground (GND) Polygon PourPolygon Pour is a large area of copper

Usually use for GNDRoute signal on one side, place GND polygon

pour on the other sideConnect every GND through a via to another

sidePlace GND polygon pour

And run DRC again

2011/12/16Wireless Sensor Network And Labs fall 2011 49

Page 50: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Fabrication OutputsExport the layout to fabrication outputs

1. Export Gerber files2. Export NCdrill file3. Pack all files in project output directory

Send these files to PCB manufacturer wait for about 1.5 weeks cost about NT4000 ~ NT6000 you will get a professional PCB board

2011/12/16Wireless Sensor Network And Labs fall 2011 50

Page 51: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Send FilesSend me the whole project files

Whole project directoryOne layout for each teamBefore next Friday (12/23)

I will check the files and send to manufacturer by Wednesday

2011/12/16Wireless Sensor Network And Labs fall 2011 51

Page 52: Network and Systems Laboratory nslab.ee.ntu.edu.tw zzz 2011/12/16Wireless Sensor Network And Labs fall 20111

Network and Systems Laboratorynslab.ee.ntu.edu.tw

Will it work? We’ll see

2011/12/16Wireless Sensor Network And Labs fall 2011 52