SlideShare une entreprise Scribd logo
1  sur  55
Télécharger pour lire hors ligne
Designing, Fabricating, and Building an Electronic Badge
B-Sides DFW 2017
Jim Apger
Apger Bio
Electrons
Packets
Analytics
CareerADDPersona
Agenda
Why ?
Prototype
Microcontroller
Schematic/Layout
Manufacture
-
+
Why ?
Prototype
Microcontroller
Schematic/Layout
Manufacture
Vendor Specific CTF Competition
Complexity given 60 days
Project consideration/requirements:
Complexity – audience is Blue
My 1st badge - KISS
Low cost – my $
Identify STAFF during event
Identify EXEC for sponsoring
Awesome WINNER giveaway
Self Solder kits for enthustasts
Include a clever easter egg
Badge Concept
LEDs to spell something with swipe
Artwork to match storyline
Simple crypto message
Solder time < 10 minutes
Low Failure rate
Multiple LED patterns
7 LED high chars
1 button
Microchip with mem and GPIO
Battery (after verify general power calcs)
Why ?
Prototype
Microcontroller
Schematic/Layout
Manufacture
Prototyping - Design
Notice the use of a decoupling cap
Needed a 5 pin Programming Port
- troubleshooting
- programming port for microchip
Prototyping - Power
Examine the universal CR2032 battery (3.0V at 225mAH to 2V)
LED
FV=2.2V
current = (3.0V-2.2V)/1kΩ = .8 mA
* decent R – below forward DC current max of 30 mA
* below GPIO max amperage of 20 mA
All LED ON Consumption = 5.6 mA (7*.8mA)
Microcontroller consumption = 8 µA (negligible)
CR2032 Power is 225mA Hrs
* 225 mAH / 5.6mA = 40.1 Hours operation time
***Almost exactly matched “All On” QA test
3.0V
GPIO
output
FV=2.2V
Prototyping - SMDs
* Testing multiple SMD R/LEDs: Color, Lumens,
Viewing Angle , Curent
* Circuit Board Thermal Transfer Paper A4 size
Transfer Paper DIY Circuit Board Special Paper
Prototyping
Inexpensive and Sturdy
SOIC->DIP board
May still need a solution for
programming multiple
microcontrollers
Schmartboard 204-0004-01 Protoboard, Soic To Dip, 1.27 mm
Pitchannel for 8 18 and 28. $13.09
Prototyping
14SO15-D3-ZO 14 Pin SOP open top ZIF 1 $ 65.00
socket adapter with round pins. $ 65.00
Expensive
ZIF Socket (SMD)->DIP board
Easy to batch program
microcontrollers
Useful if you are going to
provide DIY kits
Prototyping
Test init of GPIO
Code the
microprocessor
Confirm Power
Break out the breadboard
Prototyping
Do yourself a favor and grab a decent programmable power supply.
DP20V2A 30V5A 50V5A DPS3003 DC32V/3A Step down Programmable Power Supply Module - $17.85
Why ?
Prototype
Microcontroller
Schematic/Layout
Manufacture
Microcontroller PIC16F15325
Chose Microchip largely because of the Integrated Dev
Environment (IDE) providing:
C Compiler – keep me out of assembly
Programmer/Debugger
Code Configurator – GUI into init and objects
Microcontroller
http://ww1.microchip.com/downloads/en/DeviceDoc/40001865B.pdf
Need 8 IO ports
I’m lazy – gimme lots of program memory
Chose PIC16F15325 because:
http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=PG164130
Microcontroller – MPLAB X IDE
Microcontroller Loaded
XC Complier Installed
Visibility into mem usage
Debug/Programming tool
Microcontroller Where did the pin names
come from?
Set PIN GPIO to input/outputSelect IC Package Type
Microcontroller
Select Pin Module
Internal Weak Pull Up Resistor
Microcontroller
Init is done in a header file!
Microcontroller
main loop and system init are
waiting for me in main.c
Microcontroller
Looping forever in the ‘while (1)’
Button push steps through state
machine
Microcontroller
Microcontroller
Why ?
Prototype
Microcontroller
Schematic/Layout
Manufacture
Version 4.0.6
Schematic/Layout
Electronic Schema Editor
Schematic Library Editor
PCB Footprint Editor
PCB Editor
Bitmap2Component
Electronic Schema Editor
1. Place Schematic Symbols
2. Use symbols from my Custom Library
* Create custom symbols in Library Editor later
* We will deal with physical footprints later
Symbols in a custom
Library
Electronic Schema Editor
1. Place Schematic Symbols
2. Use symbols from my Custom Library
3. Connect the pins with wires
4. Use “No Connects” on pins with no connection
5. Use VDD and GND labels – cleaner than wires
Electronic Schema Editor
1. Place Schematic Symbols
2. Use symbols from my Custom Library
3. Connect the pins with wires
4. Use “No Connects” on pins with no connection
5. Use VDD and GND labels – cleaner than wires
6. Perform Electrical Rules Check
7. Finally, Generate a netlist
Where did those Symbols come from?
Schematic/Layout
Electronic Schema Editor
Schematic Library Editor
PCB Footprint Editor
PCB Editor
Bitmap2Component
Schematic Library Editor
The only symbols in the middle pane
that needed to be custom created
were:
KiCad ships with a massive collection of
symbols and footprints
DNP U1
Schematic/Layout
Electronic Schema Editor
Schematic Library Editor
PCB Footprint Editor
PCB Editor
Bitmap2Component
PCB Footprint Editor
Each symbol needs to have an associated footprint
Symbol->Footprint
PCB Footprint Editor
Only 2 custom footprint2 needed
The red objects represent exposed pads
on the PCB
Schematic/Layout
Electronic Schema Editor
Schematic Library Editor
PCB Footprint Editor
PCB Editor
Bitmap2Component
PCB Editor
1. Import the netlist
PCB Editor
1. Import the netlist
2. Alilgn the footprints to the F.Cu and
B.Cu layers
PCB Editor
1. Import the netlist
2. Alilgn the footprints on the F.Cu and
B.Cu layers
3. Lay your tracks and vias
PCB Editor
1. Import the netlist
2. Alilgn the footprints to the F.Cu and
B.Cu layers
3. Lay your tracks and vias
4. Draw your board cutlines on the
Edge.Cuts layer
PCB Editor
1. Import the netlist
2. Alilgn the footprints to the F.Cu and
B.Cu layers
3. Lay your tracks and vias
4. Draw your board cutlines on the
Edge.Cuts layer
5. Add to the F.SilkS and B.SilkS layers
Where did the art come from?
Schematic/Layout
Electronic Schema Editor
Schematic Library Editor
PCB Footprint Editor
PCB Editor
Bitmap2Component
3D Viewer
Final Step – Plot Gerber Files
The Gerber format is an open ASCII vector format for 2D
binary images.[1] It is the de facto standard used by printed
circuit board (PCB) industry software to describe the
printed circuit board images: copper layers, solder mask,
legend, etc.
https://en.wikipedia.org/wiki/Gerber_format
Why ?
Prototype
Microcontroller
Schematic/Layout
Manufacture
Manufacture
1. Provide your PCB dimensions
2. Provide the Quantity
3. Click Calculate button
4. Complete Shipping
5. Add to Cart
Manufacture
1. Provide your PCB dimensions
2. Provide the Quantity
3. Click Calculate button
4. Complete Shipping
5. Add to Cart
6. Upload your Gerber Files
* An Engineer will review your
design within an hour and approve
for payment
Manufacture
1. Provide your PCB dimensions
2. Provide the Quantity
3. Click Calculate button
4. Complete Shipping
5. Add to Cart
6. Upload your Gerber Files
7. Watch them make your PCB
Completed PCBs
Assembly
Hutchins BBQ
Beer!
CoWorker
(Kovar)
Daughter
Decent Tools
Always make a
few DIY kits
Costs
70 PCB avg cost (inc ship & fees) $2.73
Switch tactile (732-7042-1-ND) $0.54
Battery Holder (36-3002CT-ND) $0.81
Battery (P189-ND) $0.23
Capacitor (587-5517-1-ND) $0.04
LED (754-1792-1-ND) $0.28 x8
Resistor (311-1.0KARCT-ND) $0.003 x8
Microchip PIC16F15325 $0.80
TOTAL Per board cost: $7.41
* Assembled manually
Feel free to reach out
Jim Apger - @jimapger
QUESTIONS?

Contenu connexe

Similaire à Designing, Fabricating, and Building an Electronic Badge

EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docxEELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docxtoltonkendal
 
Electronic manufacturing v3.0 - Fab Academy 2016
Electronic manufacturing v3.0 - Fab Academy 2016Electronic manufacturing v3.0 - Fab Academy 2016
Electronic manufacturing v3.0 - Fab Academy 2016seeedstudio
 
The Process of Shipping Hardware Products
The Process of Shipping Hardware ProductsThe Process of Shipping Hardware Products
The Process of Shipping Hardware ProductsOmer Kilic
 
Altium PCB Design Course Syllabus (T2P Skills) .pdf
Altium PCB Design Course  Syllabus (T2P Skills) .pdfAltium PCB Design Course  Syllabus (T2P Skills) .pdf
Altium PCB Design Course Syllabus (T2P Skills) .pdfT2P Skills
 
Electronic circuit design and component selection.pptx
Electronic circuit design and component selection.pptxElectronic circuit design and component selection.pptx
Electronic circuit design and component selection.pptxmaheshmp16
 
esp32-complex-waveform-generator-v3.pdf
esp32-complex-waveform-generator-v3.pdfesp32-complex-waveform-generator-v3.pdf
esp32-complex-waveform-generator-v3.pdfDaniel Donatelli
 
esp32-complex-waveform-generator-v3 (1).pdf
esp32-complex-waveform-generator-v3 (1).pdfesp32-complex-waveform-generator-v3 (1).pdf
esp32-complex-waveform-generator-v3 (1).pdfDaniel Donatelli
 
arduino-esp32-projects.pdf
arduino-esp32-projects.pdfarduino-esp32-projects.pdf
arduino-esp32-projects.pdfDaniel Donatelli
 
Designing process of printed circuit boards
Designing process of printed circuit boardsDesigning process of printed circuit boards
Designing process of printed circuit boardselprocus
 
Ecd302 unit 01(investigate ecad systems)
Ecd302 unit 01(investigate ecad systems)Ecd302 unit 01(investigate ecad systems)
Ecd302 unit 01(investigate ecad systems)Xi Qiu
 
PCB Business Card
PCB Business CardPCB Business Card
PCB Business Cardyeokm1
 
PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)yeokm1
 
Larson and toubro
Larson and toubroLarson and toubro
Larson and toubroanoopc1998
 
laptop repairing course in delhi
laptop repairing course in delhilaptop repairing course in delhi
laptop repairing course in delhiAmit Gupta
 
Power Over Fiber_PCBProject
Power Over Fiber_PCBProjectPower Over Fiber_PCBProject
Power Over Fiber_PCBProjectInbar Kinarty
 
PCB Design and Layout - Checklist of What You Need Before You Start
PCB Design and Layout - Checklist of What You Need Before You StartPCB Design and Layout - Checklist of What You Need Before You Start
PCB Design and Layout - Checklist of What You Need Before You StartEpec Engineered Technologies
 

Similaire à Designing, Fabricating, and Building an Electronic Badge (20)

EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docxEELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
 
Electronic manufacturing v3.0 - Fab Academy 2016
Electronic manufacturing v3.0 - Fab Academy 2016Electronic manufacturing v3.0 - Fab Academy 2016
Electronic manufacturing v3.0 - Fab Academy 2016
 
PCB and their Designs
PCB and their DesignsPCB and their Designs
PCB and their Designs
 
Poster
PosterPoster
Poster
 
The Process of Shipping Hardware Products
The Process of Shipping Hardware ProductsThe Process of Shipping Hardware Products
The Process of Shipping Hardware Products
 
Altium PCB Design Course Syllabus (T2P Skills) .pdf
Altium PCB Design Course  Syllabus (T2P Skills) .pdfAltium PCB Design Course  Syllabus (T2P Skills) .pdf
Altium PCB Design Course Syllabus (T2P Skills) .pdf
 
Electronic circuit design and component selection.pptx
Electronic circuit design and component selection.pptxElectronic circuit design and component selection.pptx
Electronic circuit design and component selection.pptx
 
esp32-complex-waveform-generator-v3.pdf
esp32-complex-waveform-generator-v3.pdfesp32-complex-waveform-generator-v3.pdf
esp32-complex-waveform-generator-v3.pdf
 
esp32-complex-waveform-generator-v3 (1).pdf
esp32-complex-waveform-generator-v3 (1).pdfesp32-complex-waveform-generator-v3 (1).pdf
esp32-complex-waveform-generator-v3 (1).pdf
 
arduino-esp32-projects.pdf
arduino-esp32-projects.pdfarduino-esp32-projects.pdf
arduino-esp32-projects.pdf
 
Designing process of printed circuit boards
Designing process of printed circuit boardsDesigning process of printed circuit boards
Designing process of printed circuit boards
 
How To Design PCB
How To Design PCBHow To Design PCB
How To Design PCB
 
Ecd302 unit 01(investigate ecad systems)
Ecd302 unit 01(investigate ecad systems)Ecd302 unit 01(investigate ecad systems)
Ecd302 unit 01(investigate ecad systems)
 
PCB Business Card
PCB Business CardPCB Business Card
PCB Business Card
 
PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)
 
IOT
IOTIOT
IOT
 
Larson and toubro
Larson and toubroLarson and toubro
Larson and toubro
 
laptop repairing course in delhi
laptop repairing course in delhilaptop repairing course in delhi
laptop repairing course in delhi
 
Power Over Fiber_PCBProject
Power Over Fiber_PCBProjectPower Over Fiber_PCBProject
Power Over Fiber_PCBProject
 
PCB Design and Layout - Checklist of What You Need Before You Start
PCB Design and Layout - Checklist of What You Need Before You StartPCB Design and Layout - Checklist of What You Need Before You Start
PCB Design and Layout - Checklist of What You Need Before You Start
 

Designing, Fabricating, and Building an Electronic Badge

Notes de l'éditeur

  1. Current flows top to bottom The flow of electrons is termed electron current. Electrons flow from the negative terminal to the positive. Conventional current or simply current, behaves as if positive charge carriers cause current flow. Conventional current flows from the positive terminal to the negative.
  2. DNP = Do Not Populate
  3. MG Chemicals Ferric Chloride Liquid, 1 Quart Bottle, Dark Brown 10 PCB Circuit Board Thermal Transfer Paper A4 size Transfer Paper DIY Circuit Board Special Paper SUNNYSIDE CORPORATION 84032 1-Quart Acetone Teenitor Top Quality 20Pcs 100x70x1.5mm Single Sided Copper Clad Laminate PCB Circuit Board
  4. The constant voltage and constant current programmable control power supply module is cabinet and delicate, and it put the collection of analog integration and digital control functions in one. Its adjustable output voltage range is 0-20.0V, step by 0.1V. Its adjustable output current range is 0-2.00A, step by 0.01A. Boot voltages can be stored freely and the model has two groups of quick storage voltage. Compared with the traditional analog power supply, it is more convenient to quickly extract the voltage or current required. LCD display on the model has the function digital voltmeter and ammeter. You can view the preset voltage, input voltage, output voltage, the preset current, output current, output power and LCD brightness. 2.Technical parameters Weight: 59g/piece Dimension: 79mm*42mm*26mm (L*W*H) Open size: 71mm*39mm Input positive: IN+ Input negative: IN- Output current: 0-2.00A Output power: Maximum 40W Output positive: OUT+ Output negative: OUT- Ripple frequency: About 330 KHz Input voltage range: 4.5-23V(23V is the limiting highest voltage. When you use it, make sure input voltage below 23V) Output voltage range: 0V-20.0V(In step down voltage mode, input voltage must be higher than 3V),the control button can fast draw up 2 sets data. Ripple peak to peak value: 50mv (typical value) 3. Direction for use 3.1:Display introduction: U-IN:input voltage U-SET:preset voltage U-OUT:output voltage I-SET: Preset current I-OUT:output current POWER:output power M-PRE:shortcut store LED:background brightness M1:shortcut store1 M2:shortcut store 2 S-MD:setting the mode R-MD:normal operation ON/0FF: open/shut down the module output 3.2key function instruction: SET:Function setting, function confirmation; m1 :Shortcut extract M1 stored data/Upturning to choose/shortcut store. m2:Shortcut extract M2 stored data/Page down to choose/shortcut store ON/OFF:open or close voltage output.
  5. Netlist is a collection of connections and objects that will get imported into the PCB Editor. Next Step will be to Perform Part Associations.
  6. KiCad ships with multiple Libraries containing tons of symbols and footprints. DNP=Do not Place
  7. KiCad ships with multiple Libraries containing tons of symbols and footprints. DNP=Do not Place
  8. KiCad ships with multiple Libraries containing tons of symbols and footprints. DNP=Do not Place