User manual
30l
Robotics experiment with PIC microcontroller
Activity 1
Write programs for testing
RBX-877 V2.0 Controller board
Procedure
For all activities of the programming development for Robo-PICA robot kit have
the summary of steps are as follows :
1. Create the C project file with mikroC IDE software.
2. Compile the project file.
3. If any error happens, edit the C program to fix the error and compile the
project file until all are correct.
4. The HEX file would be created after the compilation is completed.
5. Connect the USB programmer with USB port and connect the ICD2 cable
between the USB Programmer and the RBX-877 V2.0 Controller board at ICD2 jack.
R
o
b
o
-
P
I
C
A
R
R
o
b
o
t
R
P
I
C
R
M
i
c
r
o
R
o
b
o
t
i
c
ICD2
4.8-6V
BATT
ON
M-1 M-2
RESET
RA4 RB0
RB0/INT RA0 RA1 RA2 RA3 RA5 RE0 RE
RC3
SCL
RC4
SDA
RC6
TxD
RC7
RxD
LCD
DOWNLOAD
POWER
ON
#1
#2
#3
SERVO
S+
ICD2 cable
USB Programmer
USB port
6. Open the PICkit2
TM
Programming software and checking the connection.
7. Download the HEX file to the PIC16F887 on the RBX-877 V2.0 Controller
board of Robot-PICA.
8. Run the program and check the hardware operation. If it is not correct,
go back to edit the C program, compile and download again. Do these steps unitl the
operation are complete.