Download presentation
Presentation is loading. Please wait.
1
The Corridor Challenge
The Corridor Challenge requires programming of a robot to negotiate obstacles and the corridor walls in order to reach the finish line. Finish Start
2
The Corridor Challenge
An Ultrasonic Sensor will need to be added to the EduBot to detect upcoming obstacles and walls. The addition is shown on pages of the NXT Building Guide Booklet that comes with the Education Kit. or You could add your own by free-building to the front of the EduBot.
3
The Corridor Challenge
This program is a start. What does it do? Try it out.
4
The Corridor Challenge
Finish The program should make the EduBot move forward until it gets close to an object and then stop. How would the program need to be changed to get past obstacles? Try a right and then a left turn before continuing forward in your program. …and again Start
5
The Corridor Challenge
Reverse a little for a clear turn. Turn Right Pivot turn. Forward to get out of obstacle path. Turn Left Pivot turn.
6
The Corridor Challenge
What’s the problem? The wall gets in the way!
7
The Corridor Challenge
This is a better path. But how to program? Clues: Why won’t two Switch blocks work? Try a Wait for block.
8
…For the teacher
9
The Corridor Challenge
The whole program is repeated. A possible solution: A left turn at the first obstacle. A right turn at the second obstacle. Wait for Ultrasonic block – until next obstacle approaches. Unlimited Forward Move block
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.