Bird
0
0
PCB Designbi_tool~10 mins

Solder mask expansion 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 set the solder mask expansion value to 0.1 mm.

PCB Design
solder_mask_expansion = [1]
Drag options to blanks, or click blank then click option'
A0.1
B1.0
C0.01
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using too large a value like 10 mm
Using zero which disables expansion
2fill in blank
medium

Complete the code to calculate the adjusted pad size by adding solder mask expansion.

PCB Design
adjusted_pad_size = pad_size [1] solder_mask_expansion
Drag options to blanks, or click blank then click option'
A-
B/
C*
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using subtraction which reduces size
Using multiplication or division which changes scale incorrectly
3fill in blank
hard

Fix the error in the code to correctly apply solder mask expansion only if the expansion is positive.

PCB Design
if solder_mask_expansion [1] 0:
    apply_expansion()
Drag options to blanks, or click blank then click option'
A<=
B>
C==
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<=' which includes zero and negatives
Using '==' which only checks zero
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps pad names to their adjusted sizes only if expansion is positive.

PCB Design
adjusted_sizes = {pad: size [1] solder_mask_expansion for pad, size in pads.items() if solder_mask_expansion [2] 0}
Drag options to blanks, or click blank then click option'
A+
B-
C>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-' which subtracts expansion
Using '<' which checks for negative values
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps pad names in uppercase to their adjusted sizes only if expansion is positive and size is above 0.5 mm.

PCB Design
adjusted_sizes = [1]: size [2] solder_mask_expansion for pad, size in pads.items() if solder_mask_expansion [3] 0 and size > 0.5
Drag options to blanks, or click blank then click option'
Apad.upper()
B+
C>
Dpad.lower()
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pad.lower()' instead of uppercase
Using '-' instead of '+' for addition
Using '<' instead of '>' for positive check