
5
4. Usage
The Servo has three wires: power, ground, and signal. The power wire is typically red, and should be
connected to the 5V pin on the Arduino/Seeeduino board. The ground wire is typically black or brown and
should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or
white and should be connected to Digital 9 on the Arduino board.You can change to the digital port as you
like. But don't forget to change the port number in the definition of the demo code at the same time.
Next sweeps the shaft of a servo back and forth across 180 degrees.This example makes use of the
Arduino servo library.
Connect the Servo to Seeeduino and connect Seeeduino to PC using a USB cable.
Restart the Arduino IDE, open one demo code you like, for example Sweep directly by the
path:File -> Example ->Servo->Sweep.
Upload the code.Please click here if you do not know how to upload.