Getting Started-Servo

Share for us

Description

Servo is a set of automatic control system composed of DC motors, reduction gear set, sensors and control circuits. The output shaft can be rotated to a certain angle by sending signals. The servo can only rotate in a certain range, for example, 180°. It cannot rotate any circles like the DC motor. The servo enables you to easily rotate an object in a certain angle, so it is widely used in model planes and robot joints.

 In this kit, twelve 9 micro servos are used to drive the joints of the robot.


Servo Test 

1)    Find the rocker arm packaged with the servo, and mount it onto the servo.

2)    Connect the battery holder with the servo control board and the servo, then insert two batteries into the battery holder correctly.

Plug the servo to the pins marked with 1 on the SunFounder Servo Control Board. The name of the pins and the color of the wires are marked on two sides of all the pins.

 Connect to the red wire of the battery holder to “+” of the power switch, the black wire to the “-”. Pay attention not to connect them inversely; otherwise it may cause a short circuit and burn the board.

3)    If everything looks good, connect the SunFounder Servo Control Board to your PC with a USB cable, then the blue LED on SunFounder Nano board will light up.

4)    Open the Arduino Software (IDE), Select File->Open. On the pop-up window, go to the Quadruped Crawling Robot Kit V2.0 for Arduino\code\1.Servo\Servo directory and find Servo.ino. Click it to open.

5)    Select a board. Here we select Arduino Nano.

6)    Go to Tools -> Serial Port to select the port. Your serial port may be different from what’s shown here (right-click My Computer on desktop, click Properties>Device Manager>Ports).

7)    Click the following button to upload.

8)    Wait for a moment until the following information appears at the bottom of the window, which indicates it is uploaded successfully.

9)    Remove the USB cable, switch on the power. Now, the rocker arm will sway continuously. So the servo test is done. Test all the 12 servos in the same way if necessary. If you find some jitters at 0 degree of a few servos, it’s fine. The point here is to check whether the servo can work.