Robot Communication

This activity is extra and will not be graded. Although, it is pretty fun to program.

You will need two robots for this activity. One of your robots will be tasked with staying inside a circle made out of a black line.

The second robot will mimic the movements of the first robot without being inside the circle.

How To

First, program your first robot to stay within a black line. Follow the pseudo-code below:

  1. Turn on line tracker
  2. If line tracker is on black then transmit data, move backwards, and then turn a bit to the right or left.
  3. Else, go forward
  4. Loop steps 2 and 3

Next, program your second robot to move forward unless it receives data from the first robot. Follow the pseudo-code below:

  1. Receive data
  2. If data says there is a black line then, move backwards, and then turn a bit to the right or left. Make sure it is the same movement the first robot does.
  3. Else, go forward. Make sure it is the same speed as the first robot.
  4. Loop steps 1-3