User`s manual
ROBOT . HEAD to TOE
Product User’s Manual – SD02B
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
26
7.2 Using SD02B with microcontroller
This section will show the example of using PIC18F4520 as host to control two SD02Bs
through UART interface. The sample program is based on SK40B startup kit. This sample
program is developed for PIC18F4520. If user uses different PIC microcontroller, user may
need to modify the sample program based on that particular microcontroller by referring to its
datasheet released by Microchip Technology Inc. This sample program will control 2 SD02B
through 1 X hardware UART and 1 X software UART.
a. Since the sample program will control 2 SD02B, so two SD02Bs are used. Other
devices are: 1 x SK40B, 2 x stepper motor.
b. Setup SK40B with PIC18F4520.