User Manual

Copyright © Dr Robot Inc. 2005
14
Figure V.3 Using ActiveX module under VB Step 3
V.2 Sample Application 1 - WiRobot DRK8000 Controller (VB)
This sample application demonstrates the basic capabilities of the WiRobot DRK8000 using
Microsoft VB with source code provided. This program can read sensor data, obtain image and audio,
play wave file, set the LCD display image, and control the robot movement. The GUI of this program is
shown as follows:
Figure V.4 GUI of the WiRobot DRK8000 Controller (VB)
User can click the button on the interface to control the robot as long as the “WiRobot Gateway” is
connected to the robot.
The following are some functions used in this sample application for controlling the servos mounted on
the head:
WiRobotSDK1.EnableServo 0
WiRobotSDK1.ServoTimeCtr 0, 3800, 1000