NXT Light Sensor

Hello,

when i start my light measurement, the values are always betwaeen 9-30.

I have set the measurement range to 100 and threshold from 0-100. I've done this in the LegoNxtServiceFiles and the proper manifests.

Does someone have an idea whats wrong here or how i can fix this ?

I can't set the lightsensor to LightOff also, perhaps this is the same error. Perhaps I'm only looking in the wrong files/manifests ?

Thx and greets

[446 byte] By [Robotrock] at [2008-2-8]
# 1
A couple people are experiencing the same problem, check out the post titled "AnalogSensor State Not Accurate for Nxt Light Sensor." I can't get mine to work either, and it sounds like we're having the same issue. I hope somebody can help, I've tried just about everything to get the sensor to work correctly.
Kexyn at 2007-9-26 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 2
The NXT-G calibrate does not help this? Probably the first thing you tried, but just checking.
Rexex at 2007-9-26 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 3

The External Range checkbox simply activates filtering so that values are only returned when they are between Low and High Threshold.

The actual values are still those reported by the NXT and are not modified by MSRS.

Type
Low Threshold
High Threshold
External Range

DaveLee at 2007-9-26 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 4
Hmm. I've tried making my settings the same as those above, and it still only reports readings from 10-30. I've also tried making both thresholds the same, so that every value is reported, but the same thing happens. I've also tried setting all of the other sensors to null to free up NXT resources. I know my light sensor works because it gives accurate measurements when running the light sensor program directly from the NXT, but I don't know what else I could be doing wrong?
Kexyn at 2007-9-26 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 5

This was an example only. If you want to get all values, leave the checkbox off, or set it to a wide range like this:

Type
Low Threshold
High Threshold
External Range

The main point is that MSRS is returning the sensor value read from a LEGO program on the Brick itself, rather than polling through the PC API.

You might try writing a simple LEGO diagram with LEGO's software to read the light sensors and see if it returns the values you are expecting.

DaveLee at 2007-9-26 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...

Microsoft Robotics Studio

Site Classified