Data Sheet

ROBOT . HEAD to TOE
Product User’s Manual – Shield-Servo
6.2 Sample Program for 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 CT-UNO. 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 Shield-Servo's product page..
b. Download the file named “Shield-servo Sample Code”.
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, Arduino Uno compatible. 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. Please refer to section 5.4 for example
connection of Shield-Servo to microcontroller through UART interface.
f. Power indicator LED on Shield-Servo will turn ON when power is supply to board.
g. Please refer to protocol of Shield-Servo 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
http://www.arduino.cc
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved