520 likes | 733 Views
Simple Layout Class 1. Making A Hardware Board. Define system requirements. Finding components and design circuit. PCB board. Capture Schematic. Professional PCB manufacturers. Soldering Components. Printed Circuit Board (PCB) layout. Home made PCB prototype. Testing. Typical Process.
E N D
Simple Layout Class 1 Wireless Sensor Network And Labs fall 2011
Making A Hardware Board Define system requirements Finding components and design circuit PCB board Capture Schematic Professional PCB manufacturers Soldering Components Printed Circuit Board (PCB) layout Home made PCB prototype Testing Wireless Sensor Network And Labs fall 2011
Typical Process • Define requirements • Get the circuits • Design from scratch • Google • Ask some one who know • Find components • Which IC you want to use • Create component libraries in the PCB software • Capture schematic • Draw the circuit on the PCB software • Layout • Decide the shape of the board • Placing components • Make connections • Make the hardware board • Export layout to manufacturer output, send to PCB manufacturer • Home made PCB Wireless Sensor Network And Labs fall 2011
Today’s Class • Introduction • Create schematic library • Capture schematic • Next week • Create PCB library (footprint) • Layout Wireless Sensor Network And Labs fall 2011
First Of All -- Schematic Rectangle with numbers are usually connector Rectangle with pin names are usually components Usually on the schematic or their description, they will tell you what component it is (part number). You can find the datasheet of the component from Internet Wireless Sensor Network And Labs fall 2011
Taroko Schematic Switches LEDs Light sensors Wireless Sensor Network And Labs fall 2011
Real Device And Schematic There will be a designator for each component on schematic. And it is 1-to-1 map to the PCB board Wireless Sensor Network And Labs fall 2011
Map to Real Device Wireless Sensor Network And Labs fall 2011
Map to Real Device Wireless Sensor Network And Labs fall 2011
Map to Real Device Wireless Sensor Network And Labs fall 2011
Resources Available On Internet • Books • Google • Application notes • A document which gives more specific details on using a component in a specific application • Provided by IC manufacturers • Example: TI MSP430 application notes • Reference design • Especially RF IC • Example: CC2420 reference design Wireless Sensor Network And Labs fall 2011
Search For Datasheet • M25P80 • Datasheet • 8 Mbit, low voltage, serial Flash memory with 75 MHz SPI bus interface • It is a flash memory • SHT11 • Datasheet • SHT1x / SHT7x • Temperature and Humidity Sensor Wireless Sensor Network And Labs fall 2011
What To Look In Datasheet • Functionality • What does this IC do • Electrical Characteristic • Supply voltage • Current consumption • Etc • Application Information • How to make it work • Packages • What is the IC looks like • Shape, size, pins design, pitch, etc. Wireless Sensor Network And Labs fall 2011
M25P80 Datasheet SPI interface Wireless Sensor Network And Labs fall 2011
M25P80 Signal Description SPI interface Wireless Sensor Network And Labs fall 2011
Connect M25P80 and MSP430 Pin 2, 5, 6 is SPI interface on M25P80, connected to SPI interface of MSP430 Chip select and Hold pin connected to GPIO pins on MSP430 Write Protect is connected to Vcc, that means we are not using write protect function GPIO on MSP430 SPI interface on MSP430 The SPI interface is shared with radio chip Wireless Sensor Network And Labs fall 2011
M25P80 Datasheet • Usually at the end of the datasheet, there will be some section call “Packaging information”, “Package”, …… • This section contain the information about how the chip looks like • Lets take a look at the common packages Wireless Sensor Network And Labs fall 2011
M25P80 Packages • A chip may have more than one package • M25P80 has three • Package information gives you the footprint of the chip Wireless Sensor Network And Labs fall 2011
SO8W • We use M25P80 SO8W package on Taroko e b E E1 A dot here defines pin #1 Wireless Sensor Network And Labs fall 2011
Through-hole vs SMD • Through-hole • A mounting scheme • Pins inserted into holes drilled in PCB and soldered to pads on the opposite side • Expansion connector on Taroko • Light sensor on Taroko • SMD: surface mounted device • Components are mounted directly onto the surface of PCB • Many devices on Taroko are SMD • Resistor, capacitor, MSP430, and more. Wireless Sensor Network And Labs fall 2011
Through-hole Packages • SIP: single in-line packages • DIP: dual in-line packages Through-hole package are old, their number decreased in modern design Wireless Sensor Network And Labs fall 2011
SMD Packages • Chip resistors, capacitors, inductors • 0402, 0603, 0805, … • Represent size of the chip • 0805 means 0.08” x 0.05” rectangle Wireless Sensor Network And Labs fall 2011
SMD Packages • SO: Small outline • Usually refer to IC with two rows of leads • QFP: Quad flat package Wireless Sensor Network And Labs fall 2011
SMD Packages • QFN: Quad flat package, no-leads • The packages we introduced just now are most commonly used • Device datasheet should include the package information • You will need it for PCB layout Wireless Sensor Network And Labs fall 2011
SMD Packages 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 • BGA: Ball Grid Array • PGA: Pin Grid Array Wireless Sensor Network And Labs fall 2011
Power what about Power? ? Power USB is 5V, MSP430 operating range is 1.8V ~ 3.6V. How to get supply power from USB? MSP430 CC2420 Radio USB Sensors, memory, LEDs, switches, expension Wireless Sensor Network And Labs fall 2011
Regulator • A semiconductor device that converts an input DC voltage (usually a range of input voltages) to a fixed-output DC voltage • Many types of regulators, most commonly used • Linear regulators • Switching regulators • You might accept power supply from various sources with different voltage, but you need a stable voltage for your system • Use a regulator output input Regulator 3.3V (fixed) (5V ~ 40V) Wireless Sensor Network And Labs fall 2011
Linear Regulator Switching Regulator can step up the voltage input output (3.3V) Linear regulator 5V • Output voltage < input voltage • All linear regulators require an input voltage at least some minimum amount higher than the desired output voltage • This minimum amount is called drop-out voltage • You can only step down the voltage • Inefficient, power dissipated as heat Power provided at the output = 5V * 60mA = 300mW Power provided at the output = 3.3V * 60mA = 198mW output input Regulator 3.3V (fixed) (5V ~ 40V) Power dissipated on regulator = 300mW – 198mW = 102mW Taroko Taroko current consumption=60mA Wireless Sensor Network And Labs fall 2011
Key Parameters of Regulators • Input voltage range • A range of possible input voltage • Output voltage • Fixed to some value • Adjustable • Can be adjust by some external resistors • Maximum output current • Maximum current allowed • Drop-out voltage Wireless Sensor Network And Labs fall 2011
Linear Regulator ICs U25 on Taroko • MCP1700T-3302TT (on Taroko) Wireless Sensor Network And Labs fall 2011
Typical Application Circuit • Usually the datasheet has the typical application circuit Wireless Sensor Network And Labs fall 2011
Why To Buy • You have a schematic, and already found out what is the components on it • But, where to buy? • Various sources • Online retailers • www.digikey.com • www.mouser.com • Local distributors These 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! Wireless Sensor Network And Labs fall 2011
Putting Things Together • Hardware prototyping • Breadboard • Printed Circuit Board Wireless Sensor Network And Labs fall 2011
Breadboard • Fast and easy • Signal unstable and inaccurate • Ugly! • Un-professional Wireless Sensor Network And Labs fall 2011
Printed Circuit Board • Take some time • Professional • Signal is more stable Home made PCB Industry fabrication PCB Wireless Sensor Network And Labs fall 2011
Goal • Design a term project control board • Replace the Breadboard • Place on you robot car • Has Connectors to connect two Taroko’s • Location node • Control node: receive infrared, control motor, receive location • Provide power supply for Taroko • Has connectors to connect two infrared sensors • Has connectors to connect two motor (PWM output) Wireless Sensor Network And Labs fall 2011
Block Diagram Connector 3-Pin Infrared 6V Connector 3-Pin Infrared Taroko Location node 3.3V Regulator LM317L Taroko Control node 3.3V Battery 4 AA 6V output 6V Connector 3-Pin Motor Connector 3-Pin Motor Wireless Sensor Network And Labs fall 2011
Components • Battery connector: 2-pin, • Regulator: LM317L, 8-pin SOIC • Resistor, capacitor • Taroko connector • Location node: 2x5 pin, 2x3 pin • Control node: 2x5 pin, 2x3 pin • Infrared connector: 3 pin • Motor connector: 3 pin Wireless Sensor Network And Labs fall 2011
PCB Layout • Software • We are using “Altium Design 6” • There are many other software available • Process • Initial setup • Create schematic library • Capture schematic • Create PCB library • PCB layout • Output Wireless Sensor Network And Labs fall 2011
Tools • Altium Designer • http://www.altium.com/products/altium-designer/en/altium-designer_home.cfm • Trial version • https://trial1.altium.com/?lang=us#:1sy923989 Wireless Sensor Network And Labs fall 2011
Altium Designer 6 • Electronic product development solution • Schematic capture • PCB Board design • Simulation • FPGA design • etc. • We will use it to do the PCB layout Wireless Sensor Network And Labs fall 2011
Schematic And PCB Layout Create Schematic Wireless Sensor Network And Labs fall 2011
Beginning Empty layout Blank schematic sheet Wireless Sensor Network And Labs fall 2011
Create Components (Library) 1. Create schematic components 2. Create PCB footprint 3. Link schematic and PCB components Wireless Sensor Network And Labs fall 2011
Capture Schematic 1. Place components on sheet 2. Make connection Net_A1 Net_A1 Wireless Sensor Network And Labs fall 2011
Compile And Export According to you schematic, export footprint to PCB Wireless Sensor Network And Labs fall 2011
Layout Polygon Pour Define outline Make connection Place components Wireless Sensor Network And Labs fall 2011
PCB Layout Process • Process • Initial setup • Create design workspace • Create PCB project • Add new “Schematic”, “PCB”, “Schematic library” and “PCB library” • Create schematic library • Capture schematic • Create PCB library • PCB layout • Output Wireless Sensor Network And Labs fall 2011
Schematic Library • Component list (what components you need) • LM317L • Miscellaneous components • Resistor • capacitor • connectors • Schematic library contain the components you will use • Altium Designer has a collection of libraries • Search the libraries • If the components you want is not in the libraries provide, you have to create one (both AD7798, ADXL330 was not found) • Create library components for AD7766 and ADXL330 • Copy Miscellaneous components Wireless Sensor Network And Labs fall 2011
Capture Schematic • Schematic library are ready • Capture Schematic • 01 • 02 Vcc Vcc GND Vcc Give every power supply line a 0.1 μF capacitor Xout 2 4 6 8 Yout Zout REFIN(-), AIN1(-), AIN2(-), AIN3(-) connect GND Vcc Wireless Sensor Network And Labs fall 2011