Lab 5: Light My Way
Due Friday, December 7, 2001 (after lab - 2:30pm)
Because I wish to post a solution to this lab as soon as lab is
over on the 7th; no labs will be accepted late.
Program (20 points)
Write a program for your car that when placed on a black line can
follow the line to an intersection, turn right and get onto another black
line and then stop.
1) Given no intersection, the car will continue to follow
the black line (use the analog port with light sensors).
2) Given when you find the intersection, turn right so that your
car is now following the new black line.
3) Once you have made it back on to the black line, stop
the car.
Notes:
- You should write your code so it is well-structured.
It should be possible to easily break it
down into the structures described in the
book and class.
- You must use at least one procedure or function (you may use more)
to retrieve and analyze your analog port data.
-
Use appropriate comments to describe what your program is
doing. Writing proper comments is an art; you need to
describe what your code is doing, not restate the lines of
code.
- Each lab partner must turn in a copy of the assembly language
program.
- The comments at the top of the program should indicate:
- Who the author is of the program
- Who you worked with on the program
Demonstration (10 points)
You may demonstrate the car as a partnership
or alone, but both partners must be present to demonstrate as a partnership.
For this lab,
- you must hand in the assemby language
file (.asm) using the Web Submission
page. Note: You will receive no program points for
a program that does not assemble.
- you must
demonstrate your program works on your car to either the
Instructor or TA, and you must follow the Lab Guidelines.