In this lesson you’ll be challenged to program your robot through a series of challenges
There And Back Challenge
Now that we have built a library of subroutines we can take what we have learned to perform a simple task. This lesson will allow the students to become more familiar with the material taught in the last few weeks and give them an objective to work towards. The ‘obstacle course’ they will be navigating is very simple, they will get more complicated in coming weeks. This week we will simply navigate around a cone (or similar obstacle) as shown below.
Some things to keep in mind during this lesson:
- The delay in your forward subroutine probably will not move the robot forward the exact distance needed. You will either need to adjust that delay or use the forward subroutine multiple times.
- The turn will likely need to be two separate 90 degree turns.
Have your robot travel around the box until it reaches its starting location.
Things to consider
- Like the other challenges the appropriate delays for forward and turn will take experimentation to find.
- There are multiple ways to complete this challenge. For example, you can closely follow the outside of the box and make sharp turns, or you can create a large arcing circle around the box that doesn’t come remotely close to it.