
70 Make: Robotic Arms
STEP 3
Next, mount servo 2 next to servo 1 in the third
position on the base plate. This time, the shaft
of the motor should face the left, opposite from
servo 1. Both motor shafts should be facing
inward, as show in the image (Figure
4-3
).
STEP 4
Now that both motors are mounted, we can wire
our two servo motors to our Arduino. Just as
we did with our first robotic arm, we’ll be using
digital pin 3 for servo 1 and digital pin 5 for servo 2
(Figure
4-4
).
STEP 5
Next, we need to program our servos to begin
at a specific starting position. This bit of code is
almost identical to our other basic servo code—
the only difference is ...