Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to place a component at the origin on the PCB.
PCB Design
component.place(x=[1], y=0)
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-zero x coordinate places the component away from origin.
✗ Incorrect
The component should be placed at x=0 to start at the origin.
2fill in blank
mediumComplete the code to rotate the component by 90 degrees before placing.
PCB Design
component.rotate([1]) component.place(x=10, y=5)
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 45 degrees which is uncommon for standard component placement.
✗ Incorrect
Rotating by 90 degrees is common to orient components correctly on PCB.
3fill in blank
hardFix the error in the code to correctly place the component with offset.
PCB Design
component.place(x=base_x [1] offset_x, y=base_y) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-' subtracts offset which may place component incorrectly.
✗ Incorrect
To add an offset to base_x, use the plus (+) operator.
4fill in blank
hardFill both blanks to place a component with rotation and mirrored flag.
PCB Design
component.rotate([1]) component.set_mirror([2])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Setting mirror to False when flip is needed.
✗ Incorrect
Rotate by 90 degrees and set mirror to True to flip component.
5fill in blank
hardFill all three blanks to place a component with position, rotation, and layer.
PCB Design
component.place(x=[1], y=[2]) component.rotate([3]) component.set_layer('Top')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 45 degrees rotation which is less common for standard placement.
✗ Incorrect
Place component at x=15, y=20 and rotate by 90 degrees on top layer.
