Worksheet 3: Lego Mindstorms EV3
Worksheet 3: Lego Mindstorms EV3
Worksheet 3: Lego Mindstorms EV3
Activity 3
GRADE: Year 4
Scenario. Working with the Riley Rover which has been already built. Practicing with
ultrasonic sensor, switch and loop blocks. Make your robot stop when it detects an object
that is less than 30 cm away.
Make your robot move forward Use Move Steering Block
Use Switch block and make your robot detect a) Use Switch Block
obstacles using ultrasonic sensor. If there is b) For the first parameter of Switch
an obstacle in distance less than 30cm stop block, choose the Ultrasonic Sensor
the robot Compare Distance
c) For the Compare Type parameter
(Tip: use Loop Block also)
choose Less Than (4)
d) Type 30 to the Threshold Value
e) If distance <30 stop robot
f) Else move forward
Change your program and make your robot a) Use a negative number for speed in
go back for 3 rotations when there is an Move Steering Block (if the
obstacle in distance less than 30cm distance<30)
Change your program and make your robot a) Use a positive number for steering in
turn right and move forward when there is Move Steering Block (if the
an obstacle in distance less than 30cm distance<30)
GRADE: Year 4
Scenario. Working with the Riley Rover which has been already built. Practicing with
ultrasonic sensor, switch and loop blocks. Make your robot stop when it detects an object
that is less than 30 cm away.
Make your robot move forward