User`s manual

ROBOT . HEAD to TOE
Product User’s Manual – SC08A
6. INSTALLATION (SOFTWARE)
Cytron Technologies was provided a sample program for users understanding. The sample
program is using SK40C and PIC16F877A to control servo through SC08A.
6.1 Sample program for PIC16F877A
Most servo motor is being used as actuator for humanoid, legged mobile robot and many
other applications. All these developments are based on embedded controller, which is
microcontroller or microprocessor. Considering this reason, Cytron Technologies has also
developed a sample embedded program using PICC Lite for PIC16F877A. Following steps
will guide user to use the sample program.
1. The sample program (SK40C_16F877A_SC08A.zip) can be downloaded from Cytron
website (www.cytron.com.my), the link under SC08A page.
2. Extract the file into hard disc.
3. Ensure the hardware interface for microcontroller to SC08A is setup properly.
Besides, the power for servo motor is also needed. Please refer to section 5.3 for
example of schematic.
4. There are 2 files available for user, SK40C_16F877A_SC08A.c and
SK40C_16F877A_SC08A.hex. For fast testing, user may load SC08A+16F.hex to
PIC16F877A and plug into microcontroller board that was being completed in step 3.
5. The sample program is based on SK40C startup kit. Power up the board, it will further
power the SC08A.
6. If all connections and setups are correctly done, press SW1 to activate all servo motor
channel. Press SW2 and every servo on SC08A will turn from left to right and return
to left.
7. Please refer to SK40C_16F877A_SC08A.c for details on method to send command to
SC08A.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
20