qfix crash-bobby Instructions Manual page 35

Table of Contents

Advertisement

APPENDIX D. DEMO PROGRAMS
35
buttonTest
With this program, pressing one of the buttons will cause the corresponding LED to light
up.
digitalTest
This program tests all four digital inputs and when a voltage is applied it will cause the
corresponding LED to light up.
lcdTest
This program demonstrates the usage of the qfix LC-display.
lcdChangeID
With this program it is possible to change the logical ID of a LC-display. This is needed
whenever multiple display are connected to the controller board.
ledTest
This program causes the four LEDs to flash in similar fashion to the Knight Rider automo-
bile.
lineFollow
This program uses the qfix line sensor to move along a line.
For this, the line sensor must be connected to analog input 3.
After program start, place the robot next to the line and press button 0. Then, place the
robot exactly on the line and press button 1. Now, button 2 starts the robot.
While moving, the robot can be stopped by pressing button 0. Button 1 starts again.
motorTest
This program controls both motors at 4 different speeds in both directions. The 4 possible
choices can be selected via the buttons.

Advertisement

Table of Contents
loading

Table of Contents