Professional Documents
Culture Documents
-) 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:
- 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.
-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