User`s manual
ROBOT . HEAD to TOE
Product User’s Manual – SKPS
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
25
c. Function to read SKPS and control the joystick. Below are examples of UART function
and SKPS function. Comments explain each command. UART function controls process
of sending and receiving data via UART while SKPS function is to read information on
PS2 controller including function to read button and joystick and control the vibrator
motor.
d. Below are sample on how to use those function that mentioned above. For first command,
when L1 is pressed, buzzer will beep. Second command is to test if there is any obstacle
in front. For PR23 we use ultrasonic sensors to detect the obstacles. If obstacle is
detected, motor in PS2 controller will vibrate.
NOTE: User may download this sample source code from product page of SKPS.