kicad, open source pcb design overview - rara home · schemac libraries: library editor l many...

36
KiCad, Open Source PCB Design Overview l Breadboard? Design your own PCBs like a Pro © Jamie Oliver, KF2B, 2017 Presentation to RARA, Rochester Amateur Radio Association, September 2017

Upload: others

Post on 01-Sep-2019

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

KiCad, Open Source PCB Design Overview

l  Breadboard? Design your own PCBs like a Pro

© Jamie Oliver, KF2B, 2017 Presentation to RARA, Rochester Amateur Radio Association, September 2017

Page 2: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Assumptions: Intended Audience

This presentation is a high level overview that assumes you have knowledge of:

l  General knowledge of electronics l  PC Boards and general construction of PCBs l  Electronic Components l  Schematics

© Jamie Oliver, KF2B, 2017 Presentation to RARA, Rochester Amateur Radio Association, September 2017

Page 3: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Assumptions: Intended Audience

This presentation assumes you have limited to no knowledge of:

l  The KiCad schematic tool (EESchema)

l  PC board design in general

l  PC board design tools

l  Making or knowing what component footprints are

l  Using a footprint editor

l  General PCB design flow and output files

l  How to get a board made for you

© Jamie Oliver, KF2B, 2017 Presentation to RARA, Rochester Amateur Radio Association, September 2017

Page 4: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Managing Expectations:

l  ThereisaBIGlearningcurvetoPCBlayoutl  Itisn'trocketsciencebutittakes:metolearn

thetoolandPCBlayout.Planforit.l  Makethelearningfun.l  Lost?Therearetonsofvideosshowinghowto

dojustabouteverythingl  SourcesofHelpareattheendofthe

presenta:on.l  Pa:ence,Prac:ce,andPersistence

© Jamie Oliver, KF2B, 2017 Presentation to RARA, Rochester Amateur Radio Association, September 2017

Page 5: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Recommended Equipment

Dualmonitors

Graphicscardforthesecondmonitorcanbe<$20

VernierCalipers(componentmeasurement)

Magnifierlight(surfacemountassembly)

© Jamie Oliver, KF2B, 2017 Presentation to RARA, Rochester Amateur Radio Association, September 2017

Page 6: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

KiCadisacollec,onofseveralprograms:

l  ProjectManager(InvokingKiCadstartstheprojectmanager)

l  KiCadisdesignedaroundworkingononeprojectata:me,eachPCBprojectiskeptinit'sowndirectory.

l  EESchemaistheSchema:cprogram

l  Schema:cLibraryEditor

l  PCBnewisthelayoutprogram

l  FootprintEditor

l  GerbViewistheGerberoutputfileviewer

l  PCBCalculator(Microstrip,Stripline,CoplanarWaveguide)

Page 7: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

ComponentsandbasicPCBterminology

l  copperlayersinpairs

l  primaryside/secondaryside(Front/Rear,Top/BoWom)

l  soldermask(thegreenorcoloredstuffonthePCB)

l  solderstencil(forsurfacemountsolderpas:ng)

l  Silkscreen(thewhitetextonaPCB)

l  netsortracks(the“wires”)

l  Symbol(schema:c)andFootprint(PCB)

l  Vias,Connec:onbetweentracksondifferentlayers

l  Platedholes,non-platedthroughholes“NPTH”and“SMD”pads

l  Netlist

l  BOM(BillofMaterials)

Page 8: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

ESCHEMA:Schema,cCapture,Makingaschema,c:

l  Flat or Hierarchical Schematics:

KiCad is Hierarchical by design Flat files can be done using global labels

l  BOM generators, “Plug-Ins” for customization.

l  The purpose of the schematic is to make the netlist

l  The netlist is required for PCB layout, or can be used for running simulations in SPICE.

Page 9: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

EESCHEMA:UIinvolvesusingkeyboard+mouse,you'llwanttolearnsomeofthekeyboardshortcuts.

Press “?” for Hotkeys, common ones are: l  ESC-normalcursor

l  Return-repeatlast

l  a-Addcomponent(defaultstolastused)

l  m-Moveobject(breaksconnec:ons)

l  g-Grabobject(movesconnec:ons,TABforgroups)

l  p-Powernode

l  v-Valueofthepart

l  w-Wire

Page 10: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Goodprac,ces:(you'llthankmelater)

l  Label all nets, Helps in layout. l  Associate footprints in the schematic will make

the transition to layout easier. l  No crossing nets, “T” them.

Page 11: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

EE Schema: Top Panel

Page 12: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

EE Schema: Right Panel

Page 13: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Schema,cLibraries:LibraryEditor

l  Manycommonsymbolsexistontheweb.Youhavetoverifythem.

l  Pinnumberschangedependingonthepackagechosen,becareful.

l  Makeyourownschema:csymbollibraries.

l  Copyotherpartscloseandmodifythemasnecessary

l  NotelogicofpinsasInputsandoutputsonyourpartsfordesignrulechecking.

l  Assignand/ormakethefootprintwhenyoumakethesymbol.

Page 14: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

SymbolProper,esontheSchema,c

l  Theseareproper:esassignedontheschema:c.

l  Makeoneandcopyitforward.

l  Assignthefootprint,package,yourpartnumber,MFGRpartnumber,andanyotherper:nentaWributeslikeLEDcolor.

l  Notevisibility(on/off)

Page 15: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Prepara,onforLayout:

l  Automatic Annotation (assign reference designators, R1, R2, etc.)

l  Electrical Rule Checking (ERC) See Rule table at right

l  BOM: Bill of Materials (many plug-ins for customization)

l  Netlist generation (standard format is sufficient)

Page 16: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

DesignyourboardwiththePCBvendorlimita,onsinmind

l  Notreallyanissueforindustrialorvolumeapplica:onsbuthobbyrunsaredifferent.

l  IteadStudioandOshParkarepopularandIhavehadgoodresultsbutyoushouldknowtheirlimita:ons.

l  Keydifferencescanbelimita:onsof:boardsizeandthickness,slots,largeholes,copperthickness,minimumtracethicknessandclearance,minimumviasize,etc.

Page 17: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

PCBVendors:OSHPark

2Layers:$5/squareinch(perboard)forasetof3boards

4Layers:$10/squareinch(perboard)forasetof3boards

FR4,0.062thick,10miltraceandspacing,coppertoedge>0.3mm,0.012minvia,0.25inch,aspectra:o8to1,silkscreenlinewidthof6mil.

Page 18: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

PCBVendors:ITEADStudio

Qty of 10 5cm x 5cm, 2 sided boards, 2 sided, dual silkscreen, $9.90, $5 shipping.

Qty of 5 10cm x 10cm, 2 sided boards, 2 sided, dual silkscreen, $38, ~$5 shipping.

Specs to consider in board selection for this price:

FR4, 0.062 thick, 10 mil trace and spacing, copper to edge > 0.3mm, 0.012 min via, 0.25 inch, aspect ratio 8 to 1, silkscreen line width of 6 mil.

Page 19: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Pcbnew and the Footprint Editor

The footprint editor is to Pcbnew as the symbol editor is to EESchema.

A footprint is the arrangement of pads (in surface-mount technology) or through-holes (in through-hole technology) used to physically attach and electrically connect a component to a printed circuit board. The footprint on a circuit board matches the arrangement of leads on a component.

Pcbnew takes in the netlist (pin connectivity information), mechanical component footprint definitions, and your design criteria and then you connect the pads and you have a PCB.

Page 20: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Datasheet to Footprint

You translate the datasheet footprint to the necessary information for generating the outline and pad locations.

Use the custom grid to your advantage: here the X grid should be 0.264 and the Y grid should be 0.050 inches.

Make 1 pad then place them all.

Make the PCB outline by changing the user grid to X 0.300 and Y 0.300.

Page 21: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

TheFootprintEditor:Defines(foreachcomponent)

l  Surfacemountpads

l  Throughholepads

l  Slots:Platedornon-plated

l  Slots:Cau:on:differentvendorshandleslotsdifferently.Readtheirwebsitesandverifyyourfileformats.

l  Silkscreen

l  Deviceoutline

l  Footprintproper:es(lockposi:on,3DModel,Rota:on,etc)

l  Tomaketextorcopperonanotherlayer,makeitontheac:velayerandmoveittoanyotherlayerasnecessary.

Page 22: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Footprint Editor

.

Page 23: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Grids, English and Metric Switching

Page 24: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Layers of a Board

Main Layers:

Copper layers for connectivity.

Silkscreen for reference designators, part outlines, pin 1 references and any of your special text information.

Dwgs.User for your dimensioning.

Edge.Cuts for your board outline.

Page 25: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Enter the Board Outline and Dimension the PCB

Page 26: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

PCBNEW Top Row

Page 27: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

PCBNEW Left Nav Bar

Page 28: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

PCBNEW Right Nav Bar

Page 29: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

PCBNEW Stat/Info Bar

Page 30: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

ReadingintheNetlist,theRatsnest,ComponentManipula,on

l  Movingcomponents

l  Rota:ngComponents

l  Flipcomponenttotheotherlayer

l  MakingPlanesand“floods”

l  DesignRuleEditor

l  Netclasseditor

l  Globaldesignrules

Page 31: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Routing

l  SwitchtoDefaultCanvas,F9

l  SwitchtoOpenGLCanvas,F11

l  SwitchtoCairoCanvas,F12

l  Moving,placing,flipping,rota:ngcomponents

l  Placingtracksandzooming

l  PushandShoverou:ng,OpenGL“F11”,“X”then“E”formodesenng.

l  hWps://www.youtube.com/watch?v=fdfz_c5Mbrc

Page 32: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Cross Probing

CrossProbing:taggingapinontheschema:cwillhighlightapadonthelayoutandviceversa.

Page 33: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

3-D Viewer

l  Seewhatyourboardlookslike,allexternalviewablelayers.

l  Footprintproper:es(3DModel(file),Rota:on,Scale,Offset)

l  Mul:tudeof3Dmodelsavailableontheweb.

l  Youcanalsomakeyourown3DmodelswithFreeCAD

l  Shortcuttoviewis<ALT3>

Page 34: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

DesignRulesCheck:ChecksFor:(Needtobeindefaultcanvas,F9)

•  Padclearances

•  Trackclearances

•  Unconnectedpads

•  Keep-Outareas

•  FilledZones

Page 35: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

Outputfiles“GerberFiles”

l  1gerberfileperlayer

l  Commonlayersare:Silkscreen,copper,soldermaskorsolderstencil,edgecuts,innerlayers,drillfile.

l  KNOWyourPCBmanufacturer,many:mestheyneedyoutoconformyourfilestotheirnamingconven:onsforautoma:onandcost.

l  Adrillfileisusuallyseparate.Slotsanddrillfilesmayneedtobecombined,readthePCBvendor'sinstruc:onsforKiCadoutput.

l  DrillfilesareploWedinasecondstepbutthesamedialogwindow.

Page 36: KiCad, Open Source PCB Design Overview - RaRa Home · Schemac Libraries: Library Editor l Many common symbols exist on the web. You have to verify them. l Pin numbers change depending

HELP !!! There is PLENTY of help

l  Thereareawesomemanualsforeachtool.Theyaregreatforgenngyoustarted.

l  TherearemanyKiCadvideosonthewebbutthebestformewereChrisGammel's“ContextualElectronics”page.Hispresenta:onisclear,tothepoint,perfectspeed,withdetailandcommentary.Subscribetohispagetoseethem.

l  KiCadForum.Justabouteverythingyoucanthinkofwasaskedalreadyandyoucanfindtheanswershere.

l  PleaseDON'Tpostques:onsunlessyouareSUREwhatyouaredoinghasnotbeenaskedbefore.Itprobablyhas.Researchitfirst.Peoplearevolunteersmanagingthisontheirspare:me.hWps://forum.kicad.info/

l  GO HAVE FUN!

© Jamie Oliver, KF2B, 2017 Presentation to RARA, Rochester Amateur Radio Association, September 2017