 |
 |
|
|
|
|
|
| My NXT won't respond to my light sensor. |
| (1 ) |
100%
0%
|
Cause: The threshold value in the program is wrong. The light sensor works by measuring the amount of light that is reflected back at it. The threshold value triggers what is considered "light" and "dark." For instance, if the threshold is 30, then all values less than 30 return a value of "dark" and all values greater than 30 return as "light".
Solution: Change the threshold value of the light sensor in your program. This is done by clicking on the "wait for light" icon and adjusting the threshold value at the bottom-right of the screen.
Cause: The sign is wrong in the program. Along with the value is a sign (<,>), thus enabling the user to wait for light or to wait for dark.
Solution: If you are waiting for a darker value (ie. waiting until the robot drives over a black line, or until it gets very close to a wall, or something along those lines) then make sure that the sign is "<". If you are waiting for a lighter value, then use the ">"\nsign.
|