Going Independent

 

 

Problem from student activity sheets: Make Roverbot move until it hits something. Then have it move backwards for a bit, turn a little, and continue to move forward.

RCXamples: Here are some sample solutions:

 

Return to Top

 

Problem from student activity sheets: Connect two touch sensors to two long connector wires. Write a program that will let you use the touch sensors as remote controls to “take Roverbot for a walk.”

RCXamples: Here are sample solutions for the “remote control” problem:

 

Return to Top

 

Problem from student activity sheets: Write a program to have Roverbot zigzag as you press and release the touch sensor.

Important note: The programs ZigZag and the ZigZagRepeat do not use sensor input. Therefore, even though they result in Roverbot moving in a zigzag fashion, they do not provide a solution to the problem.

RCXamples: Here are sample solutions for the zigzag problem:

 

Return to Top

 

Problem from student activity sheets: Build the Table Bumper on page 90 of the Constructopedia. Attach it to Roverbot so that when it’s placed on a table, the bumper wheels touch the table (and the touch sensors are released). Write a program to make Roverbot move on the table and avoid falling off the edge.

Important note: As you try it out be sure to be prepared to catch Roverbot.

RCXamples: Note that the building directions in the Constructopedia are not detailed step-by-step, but the picture is clear enough. The challenge here is to write a program to have Roverbot move on a table and stop at the edge. When the bumper “feelers” go over the edge, the touch sensor is pressed.

Here are sample solutions for the “Don’t fall off the table!” problem:

Important Note: When a person is told to keep going until he or she hits something, it is obvious that he or she must then stop. That is not the case with a robot. In the programs Don’tFall3 and Don’tFall4, the instruction is to keep moving while or until the sensor is pressed. An explicit instruction is then needed to tell it what to do next. It is not obvious to a robot that the best next move is to turn off the motors and stop.

 Return to Top