Intro CS Assignments
Assignments by week:
Fall Term:
Winter Term:
Spring Term:
Monday, February 11
Description
SlowBot Build
Homework
Tuesday, February 12
Description
SlowBot Race
Homework
  • Read the RegulatedMotor API Documentation from the leJOS site. It will probably be a little difficult to understand at first, but try to pick up on the parts that sound useful. We'll discuss this in class tomorrow.
Thursday, February 14
Description
Object-Oriented Programming
Homework
  • During the next class you'll begin work on the Distance Challenge. The idea is to create a robot that drives in a straight line for a specific distance. Give some thought to how you're going to make this happen. Should you use a certain type of motor? Wheels? Gearing? Should the motor (or motors) run at a certain speed? How accurate are they (this information is available online)? Come to next class prepared to build.
Friday, February 15
Description
Construction Hints and Distance Challenge
Homework
  • Work on the Distance Challenge. The classes we worked on today are available for download: DistanceBotRunner.java and DistanceBot.java. You'll need to modify DistanceBot's travel() method to do the actual work of moving the robot, and you'll want to put the correct parameters into DistanceBotRunner's main() method to tell the robot which motors to use and how far to travel.

    The rules of the challenge:

    1. You must build a robot that travels a precise distance. The robot should have a point where we can easily measure a distance (something that's close to the ground and sticks away from the robot). No sensors are allowed to be used.
    2. I will give you a distance (in millimeters) for the robot to travel. This distance will be between 100 and 10000. You will input this distance into your program, and the robot must travel that distance. To do this, you'll need to figure out the relationship between the motor movement and the distance travelled by the robot. You should test it with various distances.
    3. We'll run 3 heats of different distances. The first heat will eliminate the bottom third of the class. The second will eliminate all but the top 3. The final heat will determine the winner.
    4. If two robots are tied (within 1mm of each other), then the robot that travels the fastest wins.

    Remember to check out the RegulatedMotor interface, where you might find useful information...