Motors turn on and a beep sounds. Motors continue to run while beeping and continue after the beep ends. Motors run for 2 seconds and stop, then a beep sounds. There is no command that tells the motors to stop. Motors turn on and continue to run. While the wait command runs, there is no change in behavior. Note that there is no command that tells the motors to stop. Motors turn on and a beep sounds after 2 seconds. This is an example where the Wait For delays the beep. Note that there is no command that tells the motors to stop, therefore, they Motors run for 2 seconds and stop. The program waits for 3 seconds, which has no effect on behavior. Note that the motors turn off in the first block. Motors run for 3 seconds and stop. The program waits for 2 seconds before it beeps. This is an example of Wait For resulting in a pause. continue to run. © 2002 The LEGO Group. Used here with permission. Transparency # 1. To be used with M. Pathfinder activity. Motors A and C are on. They remain on for 3 seconds after the touch sensor is pressed, moving in the opposite direction, then they turn off. To turn the motors Motors A and C are on. They turn off when the touch sensor is on again, an On AC command is needed. pressed. Motors A and C are on. They stay on when the touch sensor Motors A and C are on. They stay on when the touch sensor is pressed. is pressed. © 2002 The LEGO Group. Used here with permission. Transparency # 2. To be used with Working with Touch Sensors activity. Motors A and C turn on Roverbot goes backwards for 3 seconds Turning off one motor makes it turn for 1 second because only motor C is on. A was turned off; it must be turned on again. Now motors A and C are on. Roverbot moves forward. Since we press and immediately release, the program has the motors reverse direction and then go on with the release stack. What will Roverbot do if the sensor is never pressed? © 2002 The LEGO Group. Used here with permission. Transparency # 4. To be used with Touch and Go! activity Don’t Fall Off the Table – Touch Sensor Don’t Fall Off the Table – Light Sensor © 2002 The LEGO Group. Used here with permission. Transparency # 6. To be used with Lighten Up! activity. Sender Receiver If you don’t clear the message, the program will not accept additional messages. © 2002 The LEGO Group. Used here with permission. Transparency # 9. To be used with RCX to RCX Communication activity. Motors A and C turn off for 2 seconds when the sensor is pressed. An On AC block is used to turn them on again. © 2002 The LEGO Group. Used here with permission. It takes the program 5 seconds before it gets to the Yes or No block. Transparency # 3. To be used with Working with Touch Sensors activity. In this example, the Wait For and Beep blocks are not part of the repeating pattern. Therefore, they should not be included in the repeat block. Wait For and Beep are executed before the program carries out the repeat block. Therefore, Wait and Beep will run once. Wait For and Beep are erroneously included in the repeat pattern. © 2002 The LEGO Group. Used here with permission. Transparency # 10. To be used with Additional Programming Highlights. © 2002 The LEGO Group. Used here with permission. Transparency # 7. To be used with Lighten Up! activity. Turning on motors A and C © 2002 The LEGO Group. Used here with permission. Transparency # 5a. To be used with Touch and Go! activity. Moving in the opposite direction © 2002 The LEGO Group. Used here with permission. Transparency # 5b. To be used with Touch and Go! activity. Turning motors on Moving backwards for 3 seconds then turning off motor A. (Motor C stays on) © 2002 The LEGO Group. Used here with permission. Transparency # 5c. To be used with Touch and Go! activity. Turning motors on Moving backwards for 3 seconds Turning off motor A for 1 second. Motor C continues to run. Roverbot turns. Motor A turn on again. Motor C is already on. Motors reverse direction. Roverbot moves forward. © 2002 The LEGO Group. Used here with permission. Transparency # 5d. To be used with Touch and Go! activity. Here the program executes the On AC block Here the program doesn’t leave the On AC in a fraction of a second and immediately moves block for 2 seconds, only then it drops to the next to the next block, Beep Motors A and C turn on. They block, Beep. Motors A and C turn on for 8 turn off when the touch sensor is seconds. If the sensor is pressed pressed. The motors do not turn within these 8 seconds, the motors on again. stop briefly and immediately turn on again for 8 seconds. © 2002 The LEGO Group. Used here with permission. Transparency # 2A. To be used with Working with Touch Sensors activity. For the program to follow the Yes branch, the light sensor must detect a light value between 90 and 100. The On AC block takes ‘no time’ to execute. The program drops immediately to the Yes or No block. © 2002 The LEGO Group. Used here with permission. Here on AC for 3 takes 3 second to execute. It takes 3 seconds for the program to get to the Yes or No block. Transparency # 6A. To be used with Lighten Up! activity. Here a message is sent once. Here a message is sent repeatedly. In this program, a message is sent each time a bright light is shined at the light sensor. © 2002 The LEGO Group. Used here with permission. Transparency # 8. To be used with RCX to RCX Communication activity.