Download Building Custom PCBs

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Surface-mount technology wikipedia , lookup

Printed circuit board wikipedia , lookup

Transcript
Building Custom PCBs
A PCB is a Printed Circuit Board
• Early circuits were
“Point-to-Point”
• Then “Wire Wrapped”
• Now PCB
– Largely thanks to low
cost, high-resolution
printing
2
The Board is a Sandwich
• Base material (substrate)
– Usually fiberglass. (“FR4”)
– Rigidity and thickness
– Flexible (e.g. Kapton)
• Many different thickness
– 1.6mm (0.063") – Most Common
– 0.8mm like LilyPad and Arudino Pro Micro
• Cheaper PCBs and perf boards
– Epoxies: melt
– Phenolics: delaminate, smoke and char when the
soldering iron is held too long on the board.
– You will know when you solder to it - bad smell
3
The Copper Layer Will Become
the Wires
• Bonded to the substrate
• 1 or 2 sided or more (16+ in layers)
– Two-sided is the practical limit for hobby circuits
• Different thicknesses available
– Specified by ounces per square foot
– One ounce per square foot:
• about 35 micrometers or 1.4 thousandths of an inch thick
– Most boards have 1 ounce of copper per square foot
– Some that handle very high power may have 2 or 3
Oz/ft2
• This is important in predicting when the etching
solution is used up!
4
The Soldermask Protects the
Circuit
• On top of the copper foil is the soldermask
• Gives the PCB its green color
– Any color really …
• Insulate and protects the copper traces
and prevent solder jumpers
• That is another presentation
5
Silkscreening Adds Labels
• Applied on top of the soldermask
• Most commonly white but any ink color
can be used
• I don’t do this …
6
Surface Mount or Through-Hole
7
Motion Sensors on Robot
• 4 PIR (Motion) Sensors
– HC-SR505 Mini PIR Motion
Sensor
– $1.44 on Ebay (From China)
• Technical parameters:
–
–
–
–
–
–
DC4.5-20V
<60uA
Output: High 3.3V / Low 0V
Dimensions: 10mm * 23mm
Angle: <100 degree cone
Induction distance: 3 meters
Pin 1: V+
Pin 2: Signal
Pin 3: Ground
8
Two Options Considered
Connect all sensors
individually
•
•
•
•
4 Input Pins
More wires
More Code
Easy to expand
Cluster the Sensors
•
•
•
•
•
I2C Bus
Modular
Harder to expand
Must build custom PCB
Must program the PIC too
I2 C
9
Use the PIC12F1840 & I2C
Stuff We’ll Use
Stuff we won’t
•
•
Purchased from Microchip
– http://www.microchip.com
– About $1.25 each (+ Shipping)
•
•
•
•
•
•
•
•
31kHz - 32MHz
125nS per instruction @32MHz
49 Assembly Instruction
“C” or Assembly Programmable
Operating Voltage: 1.8V – 5.5V
5 I/O Pins; 1 Input-Only Pin
Flash Program Memory with self
read/write capability
MI2C, SPI, EUSART w/auto baud
•
Comparator with selectable Voltage
Reference
4 Channel 10b ADC with Voltage Reference
•
•
25mA Source/Sink current I/O
Two 8-bit Timers (TMR0/TMR2)
•
One 16-bit Timer (TMR1)
•
•
•
•
Extended Watchdog Timer (EWDT)
Enhanced Power-On/Off-Reset
Brown-Out Reset (BOR)
In Circuit Serial Programming (ICSP)
On Board In-Circuit Debug
•
Capacitive Sensing Module
•
•
Data Signal Modulator Module
Enhanced/Capture Compare PWM
(ECCP)
•
10
EasyEDA Schematic
https://easyeda.com
• Not the “Best”
• Easy
• Well supported
• Gets the job done
• There are a lot of other
options
• Choose the one that
suits you the best
11
Get Started …
• Demo EasyEDA
12
Make Registration Marks on
Board
1. Make a copy on plain paper
2. Drill mounting holes in board
3. Makes it easier to align stencils
top/bottom
13
Cut Out the Board
• Leave some room around the edges
14
Remove all Burrs
• Iron must rest tight against the board
15
Supplies
•
Etching Solution
– Ferric Chloride
•
•
Etches about 25 in2 of 1 oz. board
per oz. of solution
~$17 for 33 oz.
– Copper Chloride in Aqueous
Hydrochloric Acid Solution
•
•
•
Unlimited use
~$10
http://www.instructables.com/id/Stop
-using-Ferric-Chloride-etchant!--Abetter-etc/
– Ammonium Persulfate
•
~$8 for 4 oz. dry makes 12 oz. liquid
(3:1 mix)
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Copper Clad Board
Tape
Acetone (Optional)
Steel Wool (00 & 000)
Soap & Water
Isopropyl Alcohol (or water)
Clothes Iron (or modified
laminator)
Water (Distilled optional)
Laser Jet Printer or Copy Machine
Containers (NO METAL! – Plastic
or Glass ONLY!)
News Paper
Gloves
Eye Protection
Permanent Marker
16
Print the Stencils
• Commercial Product
– Print on the dull side
• Use Photo Paper
– Print on the glossy side
• Use a Laser Printer or Photo Copier
– NO INK JETS!
17
Transfer Stencil to the Board
• Clean with Steel Wool (00 & 000)
• Clean with Soap & Water
• Rinse with any of these:
– Isopropyl Alcohol
– Acetone
– Water
• Tape down the stencils
– Align with drilled holes
• Iron
–
–
–
–
–
NO STEAM!
Temperature is CRITICAL
275-325 Deg F (acrylic-polyester)
Board should reach same temperature
1.5 – 4 minutes
• Quench the board/film in water
18
Peel Off the Film
• For the Blue Film
– Gently peel back the film
– Blue should stick to circuit
– Remove any small “fills” using tape
• For Printer Paper
– Soak in water until the backing is saturated
– Rub the paper away
19
Finish Prep the Board
• Trim the board to final size (if necessary)
• Wash with Soap & Water (No Solvents!)
• Touch up any missing parts
– Permanent Marker
20
Etch the Board
• Cover the area with
• Warm the Solution
– 125 Deg F
• Put the board in the solution
• Agitate constantly
– There are machines to do this for you
• Check in 5-6 minutes (warm) or 30
minutes (cold)
21
Finish Up
• Scrub with Steel Wool
– Under Running Water
– Remove the stencil
• Silver the board
–
–
–
–
–
Put the Silvering Solution in a plastic container
Put the board in the solution
Silvering should be done in 5-10 seconds
Remove the board & Rinse
Put the silver back into the bottle
• Drill Holes
• Apply the Solder Mask
– For another day if you are interested …
• Stuff & Solder
22
The Practical Side
• Find a CAD package
– Things to consider:
• Community support: are there a lot of people using the
package?
• Ease-of-use
• Capability: limitations on your design
–
–
–
–
–
number of layers
number of components
size of board
etc.
Portability: can you export or convert your designs?
• Practice, practice, practice.
• Maintain low expectations
– Your first board will have problems
– Your 20th board will have fewer
• Schematics are important
23
24