Robots for Kids Teaching Children How to Build and Program LEGO Robots

Basics: RCX Event Timing
RCX Operations | Event Timing | Event Repeating | Inputs | Links

A series of programming icons show how to turn a light on, then off, then on and off as in blinking.

Computers run so fast that we need to slow down their operations. We can see this in the simple lamp on-off program (program #1 on the left). The lamp actually turns on, then off in a thousandth of a second.

Program #2 adds some time between on and off. Now we can see the lamp turn on and then off. The time is adjustable.

Program #3 turns the lamp on, then off then on again. If we want to make the lamp blink, we shorten the time between on and off to about half a second (0.5 seconds).

Event timing applies to motors as well. We will use event timing when we build our first robot.

© 2004 M. Lichtenberg. Comments/questions: email is not affiliated in any way with The LEGO Corporation.
Home Basics First Robot Multisensor Communication Pneumatics Vision Lessons Classes