Going Independent

 

 

 

Problem from student activity sheets: Recreate the sender program from the previous page. Change it so that it will send a message only after a touch sensor has been pressed or a light is shined on a light sensor. Have the receiverís group program the robot to receive your message. (Itís okay for the receiver to recreate the programs from Programming Highlights.)

RCXamples: Here are some solutions to the problem.

Senderís programs

 

 

Receiver's programs

 

 

Return to Top

 


 

Problem from the student activity sheets: Write a program that has a robot return a message to the sender, making the sender do something. (A sender can also be programmed to be a receiver.)

RCXample: Here is a program where the Receiver sends a message after it has received one

Return to Top

 

Problem from the student activity sheets: Write a program that has the receiving robot respond to a message only after its touch sensor was pressed (or a light shined on its light sensor).

RCXamples: Here is a sample solution.

 

Important note: Because the Yes or No Stack Decision Maker will look for a message only onceóimmediately after the sensor condition was metóthe Sender must send the message repeatedly (i.e., in a Repeat Forever block). This will ensure that whenever the touch sensor is pressed or a light is shined at the light sensor a message will be coming.

 

 

 

Return to Top