Step 4 of 9

Step 4: Code the arms

Put set servo 1 to central position and set servo 2 to central position from Servo into on start. Drag in on button A pressed from Input, put repeat 4 times from Loops inside it, and build the blocks in the picture. When servo 1 has 30, servo 2 has 150: the servos face opposite ways, so both arms swing up together.

The blocks: on start holding set servo 1 and set servo 2 to central position, and on button A pressed, holding repeat 4 times; inside the loop, set servo 1 angle to 30 and servo 2 to 150, a pause of 500, then servo 1 to 150 and servo 2 to 30, and a pause of 500; after the loop, set servo 1 and servo 2 to central position