
Robot Magic: Beginner Robotics for the Maker and Magician 31
CONNECTING THE SERVO
TO THE ARDUINO
You’ll see three wires coming out of your servomotor. Let’s
connect them to the Arduino using male-to-male jumper
wires. Plug the red wire to positive, 3.3V or 5V on the
board. Plug the black wire to GND on the board, and plug
and the orange/yellow wire to digital pin 8 on the board.
Now that the servo is connected to the board, let’s connect
the board to your computer again via USB. Then, open up
the Arduino application and open a new sketch by pressing
the square button that looks like a piece of paper, located
right next to the circular arr