Académique Documents
Professionnel Documents
Culture Documents
Activity 2
GRADE: Year 4
Scenario. Working with the Riley Rover which has been already built. Practicing with
ultrasonic sensor and wait block. Make your robot stops when it detects an object that is
less than 30 cm away.
Make your robot:
a) move a) Use Move Steering Block and set the first
parameter On
b) forward
b) Set the steering parameter to 0
c)set the speed of the robot to 60 c) Set the speed parameter to 60
Use the appropriate block to make your Use the wait block
robot detect obstacles using ultrasonic Choose the ultrasonic sensor for the first
sensor parameter of the wait block
Make your robot stop when it detects an First parameter of wait block: ultrasonic
obstacle in distance less than 30 cm away sensor Compare Distance Centimeters
Set the value < (4) to the second parameter
of wait block, Compare Type.
Set the value 30 to the third parameter of
wait block, Threshold Value
Add the Move Steering Block and set the
first parameter Off
Change your program to use inches instead Set the first parameter of the wait block to
of centimeters Distance inches
Make your robot stops when it detects an Set the value < (4) to the second parameter
obstacle in distance less than 12 inches of wait block, Compare Type.
away
Set the value 12 to the third parameter of
wait block, Threshold Value
Add the Move Steering Block and set the
first parameter Off
GRADE: Year 4
Scenario. Working with the Riley Rover which has been already built. Practicing with
ultrasonic sensor and wait block. Make your robot stops when it detects an object that is
less than 30 cm away.
Make your robot:
a) move
b) forward
c)set the speed of the robot to 60