Getting Started with Software-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 EMAX ES08A II servos are used to drive the joints of the robot.


1)    Find the rocker arm packaged with the servo, and plug it into the servo shaft. 

Servo Test

2)    Connect the battery holder and the servo. Make sure the power source is connected in the right way and that the power is kept off.

Plug the servo to the group of three pins marked with 1 beside 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. Pay attention not to get them wrong.

3)    Mount two 18650 batteries (please pay attention not to mount it inversely).


 Check again whether the battery holder and the battery are wired correctly. If everything looks good, switch it on. Then the blue LED on SunFounder Nano will light up. Keep the power on.

4)    Connect the SunFounder Servo Control Board to your PC with a USB cable.

5)    Open the Arduino Software (IDE), Select File->Open. On the pop-up window, go to the CD\code\1.Servo\Servo directory and find Servo.ino. Click it to open.

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

7)       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).

8)    Click the following button to upload.

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

10)  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.