CSE 494 Building and programming mobile robots

Exercise # 1
September 5, 2000
Return
Objective: To familiarize with the Handy Board microprocessor and with the IC language.

Your mission:
Write a program that allows a robot to follow a black line.

If time allows, modify your program so that the robot can change its course every time it bumps on an obstacle.

You can either use your own robot or use one of the ready made robot assigned to you by the TA.

Use the specifications below to know which ports to use in your programs.

THE RED GRASS-HOPPER

  • Motors: Left is port 0, right is port 1.
  • Bumpers: Left is port 7, right is port 8.
  • Light sensors : Left is port 0, right is port 1.
  • THE SCORPION
  • Motors: Left is port 0, right is port 1.
  • Bumpers: Left is port 15, middle is port 13, right is port 14.
  • Light sensors : Middle sensor is port 6.
  • Note: If you're using this robot start with part two of the mission, since this robot can't follow a line. If you finish this part, program the robot to tell you which color the obstacle is every time it hits one.

    You are not allowed to modify the robot's body in any way.