Qu-Bot, A Quickly Programmable Robot User’s Manual
Page
52
of
52
8.8. PC controlled Qu-Bot
Qu-Bot has a facility to communicate with PC through USB. Connecting the USB cable
creates a Virtual Serial Port on PC. Through this port serial communication can be
done with PC. This communication is called UART (Universal Asynchronous Receiver
Transmitter). There are different terminal software’s available for serial
communication like HyperTerminal and bray’s terminal. The QBVLab software itself
includes a terminal. In advanced applications it’s possible to control Qu-Bot from the
inputs of mouse, keyboard, webcam, internet or any other source available on PC.
However this needs a high level of programming and hardware knowledge on PC but
this sample code gives a demo on how to move Qu-Bot on commands taken from
keyboard.
•
In an infinite loop the robot seeks for UART input. When a key from A, S, D and W
is pressed terminal sends the characters to robot and it takes appropriate action
by moving itself to left, back, right or forward.