You are on page 1of 2

Element 2 : Making Sense

Module Objectives: I can…


…build and add touch, light/color, and gyro sensors to my basic robot using Lego
Mindstorms EV3
…program a robot to react to different sensors in different ways.
Challenge 1
___Challenge 1: Add your sensors
Use your building guide (instruction book). Build the sensors on Pg 48-52,
73-75, and 77-79.
When you are done, have your robot checked by Mr. L.

___Challenge 2: A touchy robot


Challenge: Make your robot drive toward the wall until it touches it. Then have it back up for 2
seconds and turn completely around to face the other direction.

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


-) Start a new program.

-) The key to the next four challenges will be successfully using the sensor “WAIT” function to tell
your robot what to do after something happens.

-) For this challenge, you will need to use the touch sensor. This will be very similar to your program
from the last challenge but using a different sensor. Here is what the touch sensor looks like:

-) Remember to think about this step-by-step:


1) Go forward
2) Wait until you touch the wall
3) Stop moving
4) Drive backwards for two seconds
5) Turn around to face the other way
Challenge 2
-) When you are ready, bring your robot to Mr. L in the test zone to
check off this challenge.
___Challenge 3: A Repetitive Robot
Challenge: Make your robot repeat the following actions forever: Make your robot drive FORWARD
until it hits the wall and activates the touch sensor. Then have it drive BACKWARDS until it is 30
centimeters from wall. Make your robot repeat this 5 times.

- For this challenge, you will need to use the ULTRASONIC SENSOR and the TOUCH SENSOR,
which use light blue SENSOR blocks. You will specifically need to use the “WAIT” brick a
couple times.

-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.

-The last time we used the ULTRASONIC sensor, we wanted to get no closer than 30 cm to the
wall. Because of that, we told the sensor to WAIT UNTIL the robot was LESS THAN (<) 30 cm
away from the wall before activating.

Now we want to get it to WAIT UNTIL the robot is NO MORE than 30 cm away Challenge 3
from the wall before activating. This means we want the robot to never be
GREATER THAN 30 cm away from the wall. What could we change on our WAIT
block to cause this to happen?

-) Finally, bring your robot to the testing zone. Have Mr. L test your robot.

___Challenge 4: Don’t Pass The Blue Line


Challenge: Make your robot drive toward a blue line, but make it stop before it goes over it, turn around, and
then drive forward for 2 seconds.

-For this one, you will need to use a SENSOR block, but program it to see a specific color. Play around
with the SENSOR block to see if you can figure out how to have it recognize the color blue.
-Here is what the Color Sensor block looks like.

Challenge 4

-Remember to think about this step-by-step:


1) Go forward
2) Wait until you see a blue line
3) Stop moving
4) Turn around to face the other way
5) Go forward for two more seconds
-Test your robot with the blue line. When you are ready, bring your robot to Mr. L to get checked off.

You might also like