Writing Programs - Thames & Kosmos 620380 Experiment Manual

Robotics smart machines rovers & vehicles
Table of Contents

Advertisement

WRITING PROGRAMS

PROGRAMMING MODE
Press the gear icon (D) to enter the programming
mode. When you press the icon, a list of programs
appears. You can save up to sixteen programs. The
app comes with demo programs preloaded in
Programs 1-16. You will be using programs 9-16 in
this kit.
UNDERSTANDING THE ULTRASONIC
DETECTION INTERVALS
1. Enter Program 8 (the blank program). The
programming screen appears.
2. The Go button (E) runs the program. When it is
pressed, the number in the upper left (F) will start
indicating the distance to the object that the
sensor is detecting.
3. After you press the Go button, it becomes a Stop
button (G) and the program runs. You can see in
this example that the sensor is reading a distance
of "21." This equates roughly to a distance of 21
centimeters. Press the Stop button.
4. The sensor distance indicator line (H) has
adjustable ranges. Different program segments
can run in each of these ranges. By default, there
are three ranges. The first range marker (I) is set
at 30 and the second marker (J) at 50. This means
there are four program segments by default:
• The "Opening" program segment (K) runs once at
the beginning when the Go button is pressed.
• When an object is detected between 0 and 30, the
blue 0-30 segment (L) runs.
• When an object is detected between 30 and 50, the
green 31-50 segment (M) runs.
• When an object is detected between 50 and 100,
the purple >51 segment (N) runs.
You can slide the range markers to change the
distance ranges. You can also increase the number
of distance range segments by pressing the add
range marker button (O). You can delete a segment
with the delete button (P).
Range markers must be a minimum of 5 distance
units apart. You cannot add a new range marker if
there is another marker at 90 or higher.
8
F
H
I
O
K
L
M
N
D
E
G
J
P

Advertisement

Table of Contents
loading

Table of Contents