You are on page 1of 1

Programming Bootcamp

Task 2
Moving and Sensing
Challenge: Make your robot drive FORWARD until it is 30 centimeters from the wall. Then
make it drive backwards for 2 seconds.

-) Open “Lego Mindstorms Education” App on your iPad

-) Start a new program.

-) For this challenge, you will need to use the ULTRASONIC SENSOR and its
controls, which use light blue Scratch blocks. You will specifically need to use
an ULTRASONIC SENSOR block.

This tell you what This tells use where This part controls if This tells the robot
sensor is being that sensor should we want to get close what distance to
used. be plugged in. to (less than) of far look for.
from (greater than)
the object.

-) Remember that when you program the robot, you must tell it every step that it
must do. It only does what you say, so if it needs to STOP doing something, you
must program that in as well. So, think about it step-by-step:
1) Go forward
2) Wait until you are 15 cm
3) Go backwards for 2 seconds
4) Stop

-) Finally, bring your robot to the testing zone. Have Mr. L test your robot.
Remember Challenge 2 needs your robot to also reverse for exactly 2 seconds.
When you pass your challenge, you will get my initial on your passport.

You might also like