Bird
0
0
PCB Designbi_tool~10 mins

Using built-in KiCad libraries in PCB Design - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to load a built-in KiCad library named 'Device'.

PCB Design
lib = pcbnew.LIB_ID('[1]')
Drag options to blanks, or click blank then click option'
ADevice
BFootprints
CSymbols
DModules
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Footprints' instead of 'Device' as library name.
2fill in blank
medium

Complete the code to add a symbol from the 'Device' library to the schematic.

PCB Design
symbol = sch.SCH_SYMBOL('[1]')
Drag options to blanks, or click blank then click option'
AL
BC
CQ
DR
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'C' for capacitor when resistor is needed.
3fill in blank
hard

Fix the error in the code to correctly load the 'Device' library symbols.

PCB Design
lib = pcbnew.LIB_ID('[1]')
symbol = lib.GetSymbol('R')
Drag options to blanks, or click blank then click option'
Adevice
BDevice
CDEVICE
Ddevices
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase 'device' causes load failure.
4fill in blank
hard

Fill both blanks to create a footprint from the 'Connector' library and add it to the board.

PCB Design
footprint = pcbnew.Footprint('[1]', '[2]')
board.Add(footprint)
Drag options to blanks, or click blank then click option'
AConnector
BConn_01x02
CDevice
DR
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Device' as library for footprint instead of 'Connector'.
5fill in blank
hard

Fill all three blanks to load a symbol from the 'Device' library, set its reference, and add it to the schematic sheet.

PCB Design
symbol = sch.SCH_SYMBOL('[1]')
symbol.SetReference('[2]')
sheet.Add(symbol)
Drag options to blanks, or click blank then click option'
AR
BR1
CC1
DC
Attempts:
3 left
💡 Hint
Common Mistakes
Setting reference to 'C1' when symbol is resistor.