Lab 4 Tuesday, September 14, 2021
Topic: Loops, Selection, and Parallel Programming
Description: This lab session will focus on getting your vehicle to drive itself around a track and make adjustments based on sensor feedback.
Details:
- The track is a path drawn on the large roll of paper taped to the floor in the professors office. You need to move counterclockwise around the track.
Components:
- Go to Units and select Robot Trainer. Complete the Colors and Lines tutorial.
- Use the color sensor you added during the tutorial to guide the vehicle along the path. If the sensor goes off the path, the vehicle should turn until it finds the path again and then continue along the path (similar to the tutorial).
- Your vehicle should stop if the center brick button is pressed.
Extra Credit:
- Add a touch sensor to stop if the vehicle runs into something.
- Minimize the amount of zig-zaging as much as possible to ensure a smooth trajectory around the track.