Open Roberta Lab (Module)
Open Roberta Lab (Module)
Open
Roberta
Lab
module
1
Project 1: Moves and Turns
Learn how to execute control movements.
Block 6: Motor B (right) turns for 2.35 rotation at the speed of 60% which results in a
perfect U-turn.
2
Block 1: Press the START button.
Block 2: Robot turns a perfect 360-degree rotation for a distance of 41.8 cm at a motor
speed of 50%.
Block 4: Robot turns right at the speed of 50% for at a distance of 1380 degrees (wheel
rotation).
3
Simulation Map Project 1
4
Project 2: Objects and Obstacles
Learn how to use an Ultrasonic Sensor to detect an object and respond to it
Block 2 (forever): The program will continue to run until a STOP button is pressed.
Block 3 : The reading measured by the Ultrasonic will be displayed on the LCD screen at
the position of (2,1).
Block 4 (if) & block 5 (blue sensor block): If the sensor detects an object in a distance
less than 20 cm, then...
5
Reminder: Make sure the object is in-line with the robot for a better result.
Block 2: Robot starts to move straight at the maximum speed until the Ultrasonic Sensor
detects an object.
Block 3: The sensor (port 4) detects an object at a distance of less than 20 cm.
Block 7&8: When the distance between the sensor and the object becomes more than
60 cm, the robot will immediately stop.
6
Simulation Map Project 2
7
Project 3: Colors and Lines
Block 2 (Repeat until): The robot will continuously repeat the program until a particular
condition is met.
Block 5: Motor C stops right at the moment the Color Sensor detects black color.
8
Program a Color Sensor to follow a black line.
Block 2 (forever): The program will continue to run until the STOP button is pressed.
Block 3 (if) & block 4 (logic block): If the colour sensor detects a black colour, then...
Block 4 (do): Robot will move forward with the Left motor moving at 30% speed and Right
motor moving at 10% speed of distance 1 cm.
Block 5 (else): Robot will move forward with the Left motor moving at 10% speed and Right
motor moving at 30% speed of distance 1 cm.
9
Simulation Map Project 3
10
Project 4: Angles and Patterns
Program the robot to stop at a certain angle.
Block 5: Robot moves forward with the speed of 30% for 50cm
11
Program the robot to move at a certain angle and make a pattern.
Block 2: Robot moves forward with the speed of 30% for 50cm.
Block 4: Gyro sensor detects as the turning angle reaches exactly 120 degree.
Block 5: Robot moves forward with the speed of 30% for 50cm.
Block 7: Gyro sensor detects as the turning angle reaches exactly 240 degree.
Block 8: Robot moves forward with the speed of 30% for 50cm.
12
Simulation Map Project 4
13