To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 2491
2490  |  2492
Subject: 
Re: Light Sensor question
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 15 Jul 2004 19:46:57 GMT
Viewed: 
4103 times
  
In lugnet.robotics.rcx, Sam Kabra wrote:
I'm new to mindstorms so I have a simple question. At work, we're trying to
measure the light tightness of rings. Basically this involves observing how much
light passes through the outside edge of a ring. Is there any way a mindstorm
light sensor or vision command can do this for us?

Sam,

  By default programming when you configure a sensor input to be a light sensor,
it gives you back readings in the 0-100 range (i.e. percentage of the maximum
possible reading).  To get better resolution (which I expect you might want),
you could consider setting up the sensor input as a raw input.  Raw inputs have
a minimum reading of 0, and a maximum reading of 1023.  Raw sensor readings can
give at most about 10 times the reading resolution as non-raw light sensor
readings.

I think that raw light sensor readings are smaller for more light, and larger
for less. I'd guess this is correct because of the way photo-ransistors work.
I'd also expect that you can get a reading of 1023 if the sensor is in complete
dark, but that you can never get a reading of zero.

Kevin



Message is in Reply To:
  Light Sensor question
 
I'm new to mindstorms so I have a simple question. At work, we're trying to measure the light tightness of rings. Basically this involves observing how much light passes through the outside edge of a ring. Is there any way a mindstorm light sensor (...) (20 years ago, 8-Jul-04, to lugnet.robotics.rcx)

6 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR