The Complete Hardware Crash Course
-
Upload
denis-bohm -
Category
Design
-
view
2.256 -
download
0
description
Transcript of The Complete Hardware Crash Course
![Page 2: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/2.jpg)
Team
• Denis Bohm
• Andrew Sanderson
• Kyle Bohm
![Page 3: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/3.jpg)
HO: Hands On
• Follow the tiny URL for details.
• Start anytime. Feel free to jump ahead.
• This is a workshop, so please ask questions.
• Keep it casual. Help each other out. Share what you are doing with others.
• Introductions.
![Page 4: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/4.jpg)
Introduction
• Why use open source?
• Overview of how to leverage open source hardware & software.
• Tips to save iterations.
• Walk through the typical steps from concept to production…
![Page 5: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/5.jpg)
Our Focus
• Quantity matters (1,000 is hard)
• Starting from scratch vs iterating
• Production has unique requirements
![Page 6: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/6.jpg)
Open Source Checklist
• Hardware (electronics, mechanicals)
• Firmware (RTOS, driver, app)
• Software (API, apps, storage, sites)
• Production (sourcing, fixtures, program & test, FCC testing)
• Tools (IDE, SCM, eCAD, mCAD)
![Page 7: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/7.jpg)
Firefly Ice Project
• Wearable & Internet of Things Platform
• ARM Cortex M3, Bluetooth 4.0 LE Radio, USB, Accelerometer & Magnetometer, Rechargeable Battery, etc…
• Open source hardware, firmware, software, production (and a couple of handy tools)
• 1,500 Units for First Customer
![Page 8: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/8.jpg)
HO: Try It Out
• Instructions @ http://tinyurl.com/loc4qne
• Open the Firefly Utility app
• Wake & connect to the Firefly Ice in your parts kit
• Play with the LEDs, check the battery level, and name it
![Page 9: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/9.jpg)
Process
• Now we are going to walk through the process of designing a product.
• Normally, things happen intertwined and in parallel… But we will discuss them as separate items (industrial design, mechanical design, electronic design, etc)
![Page 10: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/10.jpg)
HO: View Mechanicals
• Instructions @ http://tinyurl.com/kx9nel5
• git clone https://github.com/denisbohm/firefly-ice-mechanical.git
• open firefly-ice.3dm in Rhino3D
![Page 11: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/11.jpg)
Industrial Design
• Materials, finishes, colors
• Shape, locations of all visible features: LEDs & USB Connector, impact on PCB
• Markings: Logo, Word-marks, FCC ID, etc
• Mechanical considerations: seams, mold lines, etc…
![Page 12: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/12.jpg)
Mechanical Considerations
• Design for ease of assembly (no rework)
• Design for molding (price, 4 pieces)
• Robust design (drop test, USB wrenching)
![Page 13: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/13.jpg)
Mechanical Design
• Light pipes, color mixing, isolation, co-molding
• USB opening (robustness, splash proofing)
• Battery swell (add battery to 3D model)
• Wire management (photos)
• Mold design, surface finishes (draft, add plastic), thickness (drop test, opaqueness)
![Page 14: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/14.jpg)
HO: Edit Mechanicals
• Instructions @ http://tinyurl.com/l38r5az
• Increase the post length
• Export to STL for prototyping
![Page 15: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/15.jpg)
Mechanical Prototyping
• 3D Printing (Price vs Time) (Personal & Outsourced)
• Milling (Personal & Outsourced)
• Sections vs whole parts
• Production materials vs prototyping
• Colors & Finishes (sand, plate, paint, etc)
![Page 16: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/16.jpg)
Mechanical Future
• Band-Aid: Thinness & Flexibility
• Waterproof: Charging
• Clothing: Power & Communication
![Page 17: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/17.jpg)
Software
• CoreBluetooth, USB HID Manager
• SDK API: detour, executor/observable, manager, sync
• App: discovery, connect, communicate, active/inactive, background/foreground
![Page 18: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/18.jpg)
HO: Using the API
• Instructions @ http://tinyurl.com/knmmxod
• git clone https://github.com/denisbohm/firefly-ice-api.git
• open MacOSX/FireflyGame/FireflyGame.xcode
![Page 19: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/19.jpg)
Q & A
• And now for a short intermission…
![Page 20: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/20.jpg)
Production
• Manufacturing Plastic Parts (Molds (time) + sampling and tuning, then production run)
• Sourcing Components (BOM Tool)
• PCB Fabrication & PCB Assembly
• Programming & Test (Fixture + Firefly Tool)
• Final assembly (PCBA + Battery + Plastics)
![Page 21: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/21.jpg)
Test Fixture
• Mechanical design - spring pins for test points
• Electrical design - PCB for mounting spring pins and eliminating wire management
• Connectors (SWD, USB, battery, etc…)
• Software design - program & test software using SWD
![Page 22: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/22.jpg)
HO: Program & Test
• Instructions @ http://tinyurl.com/ls7yt33
• Connect Test Fixture to laptop
• run FireflyTool
• press PCBA into fixture until complete
• connect and uniquely name your device
![Page 23: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/23.jpg)
Firmware
• Source code: src/*.c,h
• Boot loader, main firmware, test firmware, SWD programming firmware
• Memory map & placement, startup code
• Bluetooth Profile / nRFgo Studio
• Hex & Elf
![Page 24: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/24.jpg)
HO: Firmware Development
• Instructions @ http://tinyurl.com/lyp6p3b
• Debug hardware: JTAG, SWD, Cables
• Target hardware: Firefly Ice PCBA
• Tool Chain: gcc, gdb, FireflyFlash
![Page 25: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/25.jpg)
Q & A
• And now for a short intermission…
![Page 26: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/26.jpg)
HO: Electronics
• upverter @ http://tinyurl.com/mx8lv55
• PDF @ http://tinyurl.com/m9rcju5
• Schematics & Board Eagle files on GitHub
• Multiple sheets & 4 signal layers
• CadSoft EAGLE Layout + Schematic (Hobbyist $169, Standard $575)
![Page 27: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/27.jpg)
Electronics
• Eagle 6
• Firefly Ice: firefly-ice.sch,brd
• Fixture: firefly-ice-fixture.sch,brd
• Parts Library: firefly.lbr
• Sourcing attributes on each component
![Page 28: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/28.jpg)
Schematic Considerations
• Power domains (voltage, switchable, translation)
• Busses (pin count, speed, power, robustness)
• Probe points (SWD, switches, USB, etc)
• Wires vs SMT (motors, batteries, etc)
• Power, availability, dimensions, fine pitch
![Page 29: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/29.jpg)
Layout Considerations
• Power planes, RF clearances, crystals
• Probe pads (SWD, clearances, 1 sided)
• Layers, pitches, in-pad/micro/blind/tented vias
• Markings (copyright, model, revision, pads, placement)
• Panelization (milling, mouse bites, fiducials)
![Page 30: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/30.jpg)
Expansion Connector
• 6-pin low profile SMT connector (2.25 mm + 2.5 mm = 4.75 mm)
• 3 power pins: unregulated voltage (5V to 3.5V), system voltage (2.2V), ground
• 3 data pins: I2C SDA, SCL, INT (or UART, or Low Energy Sense, or analog comparator, or GPIO)
![Page 31: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/31.jpg)
HO: Sourcing & BOM
• Instructions @ http://tinyurl.com/lhmx5ha
• A prebuilt BOM release is in the GitHub firefly-production-tools/releases repository
![Page 32: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/32.jpg)
BOM Tool
• Reads sourcing attributes from schematic
• Gets pricing information via OctoPart
• Generates Bill Of Materials
• Generates purchasing quantity for each distributor
![Page 33: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/33.jpg)
HO: PCB To 3D
• Instructions @ http://tinyurl.com/k9ualyy
• A prebuilt PcbTo3D release is in the GitHub firefly-production-tools/releases repository
![Page 34: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/34.jpg)
PCB to 3D
• Reads printed circuit board layout
• Writes Rhino 3D script
• Script creates PCB and places Rhino components
• Useful for checking PCBA with enclosure
![Page 35: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/35.jpg)
HO: Bluetooth Direct Test Mode
• Instructions @ http://tinyurl.com/kqvtjhe
• Use one firefly in direct test mode to send test packets.
• Use another firefly in direct test mode to receive test packets.
![Page 36: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/36.jpg)
FCC
• Preparing a test device with SMA connector
• Complete sample device
• Using a computer w/ USB for testing
• Documentation
• Markings
![Page 37: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/37.jpg)
HO: Final Assembly
• Instructions @ http://tinyurl.com/lzxkkpk
• final assembly into plastics (snap fit)
![Page 38: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/38.jpg)
Main Costs
• Electronic Components 100 $50, 1,000 $25
• PCB Fabrication & assembly (10 $250, 100 $50, 1,000 $25)
• Milling a plastic part $250+ ea @ FirstCut
• Mold $3,500+ ea, $1 per set MOQ 1k
• FCC Testing $6,500+ (w/radio, US only)
![Page 39: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/39.jpg)
10 100 1,000
Components $50 $35 $25
Milled Parts $1,000 $0 $0
Molds $0 $14,000 $0
FCC $0 $6,500 $0
PCBA $250 $50 $25
Cost Each $1300 $290 $50
Total Cost $13000 $29000 $50000
Cost Progression
![Page 40: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/40.jpg)
Manufacturing Vendors
• Component Sourcing (meet, bundles)
• PCB Fabrication (local low volume)
• PCB Assembly (right fit local, similar projects & tools)
• Plastics Manufacturer (right fit)
• Final Assembly & Test (self, interns) [learn & improve the design]
![Page 41: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/41.jpg)
Design Vendors
• Product Design (everything in parallel)
• Industrial & Mechanical
• Electronics & Layout
• Firmware
• Device API (iOS & Mac OS X, Android, Windows, etc)
![Page 42: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/42.jpg)
What’s on my Bench?
• CNC Milling Machine
• Microscope w/ Light, Camera, and Vise
• Oscilloscope with uA Current monitor
• Soldering Station with SMT tweezers
• Power Supply (on/off), Multi-Meter (uA), Wire Stripper, …
![Page 44: The Complete Hardware Crash Course](https://reader033.fdocuments.in/reader033/viewer/2022052522/54823724b479590a0d8b4748/html5/thumbnails/44.jpg)
How was the session?
FeedbackSXSW App Session Feedback
1. Express yourself 2. Help us get better
3.Earn rewards {Daily SXSW Posters + Grand Prizes}
In 1 minute