Programming With Robolab

Inventor Level 3

Inventor Level 3 has one new area of icons: Music. Level 3 also adds more structures for controlling program flow and multitasking.

The icons at the top are used to provide a fork or an if..then or selection operation based on values from the two types of sensor. The first icon looks for an input from the push switch and allows two paths of execution, finished by the fork.

There are five jump and land pairings with colour coding to help with identification. The black and white arrows are used to set up loops (use a numeric modifier to specify the number of loops) ad the single brown icon is used to create parallel multitasking.

This is the music palette for level 3.

Notice that it has modifiers for pitch (an octave up, an octave down) and note length. This program uses some techniques from level 3 to play a modal scale:

(Locrian mode is TSTTSTTT.)

The begin loop and end loop icons are used along with a modifier of 4 to create a 'for..do' loop. Inside the loop is a sequence of musical notes. Try placing some light signals between each note!

You could use a section of code like this to accompany some other activities by using the multitask icon.

The reflectivity sensor detects light levels in the range 0-100. In this example the light sensor test icon is used to select between light reflections of value 50 - greater than this and the top part of the code is executed, less than or equal to this and the lower part is executed.

The level 3 modifiers are identical to those found in level 2.

Use of the light sensor or push switch in this way can lead to a number of robotics projects, for example keeping a robot on a sheet of paper or inside a line or removing all objects from within a designated area. With two light sensors it is possible to program a robot to follow a line.

Back to Inventor Home Page