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

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

Graphic of icon programming steps used in detecting a barrier, backing away from it, and stopping.  To illustrate the program, a robot hits a brick wall, backs up and stops.

Sensors, attached to input ports, bring information from the outside world to the RCX.

There are many different sensors. The most popular are touch, light, and rotation.

The example at the left uses a touch sensor. It signals the robot when it has bumped into something.

The program tells the RCX to wait for the touch sensor button to be pressed. When that event happens, the next part of the program follows: (the robot reverses its motor and backs away from the wall).


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