Inside of the servo there is a gearbox connected to a motor that drives the shaft. There is also a
potentiometer that gives feedback on the rotational position of the servo, which is then compared to
the incoming PWM signal. The servo adjusts accordingly to match the two signals.
In this experiment, the servo is powered through 3.3 volts on the red wire and ground on the black
wire; the white wire is connected to pin P0.
Hardware Hookup
Ready to start hooking everything up? Check out the wiring diagram below to see how everything is
connected.
Polarized
Components
Pay
special
attention
to
the
component’s
markings
indicating
how
to
place
it
on
the
breadboard.
Polarized
components
can
only
be
connected
to
a
circuit
in
one
direction.
Connect 3x jumper wires to the female 3-pin header on the servo. This will make it easier to
breadboard the servo.
Wiring Diagram for the Experiment
Having a hard time seeing the circuit? Click on the wiring diagram for a closer look.