Lesson 14 - Sensors with Multiple Conditions
Watch the video below about how to make your robot wait to perform an action until TWO sensors have the desired inputs.
Assignment 14:
On the table in the middle of the room:
Make the robot move forward from the end farthest from the box target. Program it to stop, then spin, when the
light sensor sees the black paper, and when the ultrasonic sensor is less than 30 cm from the obstacle at the end.
Make sure that the program works. Make sure it is annotated. Save it as a14Yourname.
To turn it in
- Go to Google Drive :
- Open the Class Assignments LEGO folder in 'Shared with me'
- Open your class folder and assignment folder
- Click on the "New" button on the top left
- Upload the program from your computer as a14Yourname.
|