Page 95 - Ai Robogenius
P. 95
STEP - 7 Drag the drive forward block from the Drivetrain category and place it inside the
if section.
STEP - 8 Drag the turn right block from the Drivetrain category and place it inside the
else section.
STEP - 9 Click on the Start button to run the program.
The robot begins moving through the coral reef to collect trash. It uses its Front Distance Sensor
to detect objects and moves forward to pick them up. When no object is found, it turns right to
explore further. The Trash Collected display shows the total weight of debris gathered. The robot
runs on a battery and when the battery level becomes low, it automatically stops working until
recharged.
When the battery reaches 0%, a pop-up appears showing the total trash collected. It has
two buttons:
Get Certificate button is used to generate your certificate.
Sensors, Logic and Maze Navigation
93

