Worksheet 3: Lego Mindstorms EV3

You are on page 1of 2

ERASMUS Mindstorms NAME: Greek Team

Activity 3

GRADE: Year 4

DIFFICULTY FROM 1 TO 10: 2

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)

CHALLENGE: Program your robot go forward


with speed 50, decrease speed to 10 when
there is an obstacle in distance less than 20
cm and stop when it detects an obstacle in
distance less than 10cm
(Tip: Use nested switches)

Ralleia Experimental Primary Schools – Evangelia Petraki


ERASMUS Mindstorms NAME: Greek Team
Activity 3

GRADE: Year 4

DIFFICULTY FROM 1 TO 10: 2

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 Switch block and make your robot detect


obstacles using ultrasonic sensor. If there is
an obstacle in distance less than 30cm stop
the robot
(Tip: use Loop Block also)

Change your program and make your robot


go back for 3 rotations when there is an
obstacle in distance less than 30cm

Change your program and make your robot


turn right and move forward when there is
an obstacle in distance less than 30cm

CHALLENGE: Program your robot go forward


with speed 50, decrease speed to 10 when
there is an obstacle in distance less than 20
cm and stop when it detects an obstacle in
distance less than 10cm
(Tip: Use nested switches)

Ralleia Experimental Primary Schools – Evangelia Petraki

You might also like