Bird
0
0
PCB Designbi_tool~10 mins

Gerber file generation 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 specify the Gerber file format version.

PCB Design
gerber_file.set_format_version([1])
Drag options to blanks, or click blank then click option'
A"RS-274X"
B"RS-274D"
C"IPC-2581"
D"ODB++"
Attempts:
3 left
💡 Hint
Common Mistakes
Using RS-274D which is outdated.
Confusing Gerber format with other PCB file formats.
2fill in blank
medium

Complete the code to set the units for the Gerber file to millimeters.

PCB Design
gerber_file.set_units([1])
Drag options to blanks, or click blank then click option'
A"cm"
B"mm"
C"inches"
D"mil"
Attempts:
3 left
💡 Hint
Common Mistakes
Using inches instead of millimeters.
Using unsupported units like cm.
3fill in blank
hard

Fix the error in the code to correctly add a copper layer to the Gerber file.

PCB Design
gerber_file.add_layer([1])
Drag options to blanks, or click blank then click option'
A"drill"
B"solder_mask"
C"silkscreen"
D"copper"
Attempts:
3 left
💡 Hint
Common Mistakes
Adding solder mask instead of copper layer.
Using drill layer which is for holes.
4fill in blank
hard

Fill both blanks to set the aperture size and shape for the Gerber file.

PCB Design
gerber_file.set_aperture([1], [2])
Drag options to blanks, or click blank then click option'
A0.25
B0.5
C"circle"
D"rectangle"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing size and shape values.
Using unsupported aperture shapes.
5fill in blank
hard

Fill all three blanks to generate the Gerber file with correct filename, format, and precision.

PCB Design
gerber_file.generate(filename=[1], format=[2], precision=[3])
Drag options to blanks, or click blank then click option'
A"board_top.gbr"
B"RS-274X"
C4
D"board_bottom.gbr"
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong filename or extension.
Confusing format string with other formats.
Setting precision as string instead of number.