ROBOT . HEAD to TOE
Product User’s Manual –
Shield-Servo
6.2 Sample Program for Arduino UNO/CT-UNO
Driving Servo motor is common necessity in most robotic project based on the embedded system
which uses microcontroller. Considering this reason, Cytron Technologies has also developed
the sample source code for Arduino. This sample program is developed for
. If user
uses different microcontroller, user may need to modify the sample program based on that
particular microcontroller by referring to its datasheet released by manufacturer.
The sample program will control Shield-Servos.
a. We have created a sample sketch for Arduino to communicate with Shield-Servo
through software UART. The sample code can be downloaded from
b. Download the files and extract the zipped file.
c. There are 1 files available for the user;
Shield Servo Example.ino.
For immediate
testing, user may load the sketch into Arduino board.
d. The sample program is based on CT-UNO, an Arduino UNO compatible board. We will
discuss about how to control Shield-Servos and Servo motor using a CT-UNO through
UART interface.
e. Ensure the hardware interface for microcontroller to Shield-Servo is setup properly. The
power for Servo motor is also needed.
f. Power indicator LED on Shield-Servo will turn ON when power is supply to board.
g. Please refer to
for details on method to send/receive
command to Shield-Servo.
h. User must install Arduino IDE if user wants to modify and compile this sample program.
The free Arduino IDE can be obtained from Arduino official website. You can download
Arduino Software (IDE) from
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
17