English (United Kingdom) Hebrew

is a programming environment for learning and programming the robot. applies a visual drag-and-drop programming style, easy and intuitive for learning. Full window...
Contents

Shapes Programming Application

The full application contains the following parts:
  • Editing area (in the center of the application window): this is the main window, where instructions are dropped and edited. The program written here will be uploaded to the robot when hitting the "Upload to Robot!" button.
  • Instruction menu: the instruction menu contains several menus to select from: robot, control, logic, etc. These menus contain instructions which the user can drag and drop into the editing area.

Sample Programs

Hello world

This program does a simple printing of "Hello world!" to the robot screen.

Blink

The program cause the led on the robot controller to blink. The blinking is implemented by turning the led on for 1 second (by writing 1 to it), then turn it off for 1 second. Selecting the infinite loop (top right on the toolbar) causes the continued blink. The delay instruction sets a time (in seconds) to wait before executing the next instruction.

Blink in a loop

In this program we cause the led to blink 4 times only, using the repeat instruction: the number set at the top part states how many times to execute the instructions contained within the repeat instruction block.

Print channel value

Print channel 1 value to the robot screen.

Turning on the motors: forward

Moving forward by giving both motors - motor 1 and motor 2 - same value: 100 (electrical power percentage).

Turn left

Turn left by turning on the right motor only - the robot will turn around its left wheel.

Turn right for 5 seconds

This program uses the delay instruction - the robot turns right in place for 5 seconds by setting opposite values to both motors, and by using a delay instruction for 5 seconds. The motors then are sopped by setting their values to 0.

Move forward and stop on obstacle

The robot moves forward and stops when an obstacle is detected. A proximity sensor is set in front of the robot and connected to channel 1.
The program checks in an infinite loop ("while true") the value of the sensor - if its value is 0 (obstacle detected) then stop the robot, otherwise move forward in full power (100 percents power).

Math: a robot quiz

This program displays the user several math questions, letting him a short time to answer, and then displays the right answer.

Variables

A variable is a memory cell where values can be stored. Variables are used to store values for later use, and to ease the editing of programs with repeating values. In this program, the value of channel 1, to which a light sensor is connected, is read into a variable, which is then printed to the robot screen. Then, if the value is less than the darkness value (set in another variable), print "It's dark!".

Functions

Functions let the user write modular programs. The program part within a function can be executed from anywhere in the program by calling that function.
In this program a function named "left" is defined with 1 parameter - speed, and turns left by setting motor 1 to "speed" and motor 2 to "-speed". The function the is called with value 75, which causes the robot to turn left in place with speed 75.