User's Manual
At the upper string motors A and C turn clockwise, wait for two seconds, fl ip direction, wait for another two seconds and
then jump back to the yellow arrow and repeat the task. The lower string continues to play six notes. The program must be
stopped by pressing the Run button. The vehicle will drive forward and backward while playing a melody.
Introducing touch sensor fork and merge and a specifi ed number of loops
1. Use your two motored vehicle as in Inventor level 1. Attach a touch sensor, making sure it is correctly connected to Port 2
with a long wire.
2. Delete the program on the screen and copy the program string below. You will need the Touch Sensor Fork icon to tell
the vehicle how to distinguish between pressed and released.
Touch Sensor Fork
3. Download and run the program illustrated here. Try estimating how long the program will last.
The loop will be repeated 30 times. The Touch Sensor Fork determines the direction of the motor. If the yellow touch button
is released (upper fork) Motor A and C will turn clockwise (backwards arrow), then the program waits for 0,5 of a second
before playing a C-note and returns to the Touch Sensor Fork icon. The same will happen again until the touch sensor is
pressed in. The string below is now activated—motors A and C will be turned on counter clockwise (forward arrow), wait for
0,5 of a second; play an F-note and return to the Touch Sensor Fork. You can activate or release the touch sensor as often
as you wish, to observe how it changes direction After the upper or lower strings have been repeated 30 times the RCX will
play a sound indicating that the program is complete.
Loop Icon set at 30
19