|Materials:||LEGO DACTA Cities and Transportation
or similar LEGO elements
Instruction book #2
RoboLab 2.0 or 2.5 Investigator
|Program:||Add 1 to counter each time car passes light sensor on input 1.|
|Upload:||Data and compare with actual count.|
|The LEGO CITY is set up much like the
speed trap in instruction booklet #2 of the Cities and Transportation sets.
Instead of having many cars pass in front of the light sensors, one car
is continually circling around so that it passes through the photo gate
of a light sensor and a lamp.
Build a similar set up using the pictures.
Program the RCX to gather light sensor readings.
Write and run a program to save to add 1 to the red container each time there is a decrease in light sensor reading.
Pictures of example programs
LEGO Links of Linda Hamilton