
Sensing
Forward Until Dark / Light • 4
©
Carnegie Mellon Robotics Academy / For use with LEGO
®
MINDSTORMS® Education NXT software and base set 9797
1. View the Reected Light values in View Mode.
Forward until Dark Thresholds 201
Reminder! Light sensor readings and other numbers used in this printed guide may
not be right for your environment. Your room’s lighting and the position of the sun and
shadows will cause light sensor readings to vary. Measure often!
So higher is brighter, and lower is darker, but if you remember from the last time we worked with
a large range of values, we set a threshold to separate the two values we care about. Before we
can set a threshold for the Light Sensor, we need to know what values mean ‘Light” and what
values mean “Dark.” Let’s take some readings to nd out.
In this lesson, you will learn how the Light Sensor works, and how its feedback compares to
the Touch and Ultrasonic Sonar sensors.
1a. Turn on NXT
Turn on your NXT if it is not already on.
1b. Navigate to View Mode
Use the left and right arrow buttons to nd
the View option, and press the Orange
button to select it.
1c. Select Reected Light
Use the left and right arrow buttons to nd the
Reected Light option, and press the Orange
button to select it.
Caution! Do not choose “Light Sensor*”!
Light Sensor* (and all sensors with a * at the
end of their names) refers to the old RCX-
generation Light Sensor, and will not provide
the correct readings for the NXT Light Sensor.
1d. Select Port 1
Make sure your Light Sensor is plugged into
Port 1 on the NXT. Select Port 1 on screen.
Comentarios a estos manuales