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 / 39
38  |  40
Subject: 
Re: Light sensor initialization?
Newsgroups: 
lugnet.robotics.rcx
Date: 
Wed, 14 Jul 1999 00:16:11 GMT
Reply-To: 
mattdm@mattdm./IHateSpam/org
Viewed: 
1645 times
  
Tim Rueger <rueger@io.com> wrote:
I'd like my 'bot to measure ambient light levels, and make light/gray/dark
decisions based on those levels. • [snip]
I'd like to avoid hard-coding these numbers. Has any one done this?

Yes -- check out my RoboTag program at
http://www.mattdm.org/mindstorms/robotag.shtml

In RoboTag, the sensor is pointing at the ground, which is probably
grey/brown/white, with black border lines. My program reads the light level
at start, and assumes that it isn't on a line. This works well enough,
assuming the operator knows this. (If you wanted to make it smarter, you
certainly could.)

--
Matthew Miller                      --->                  mattdm@mattdm.org
Quotes 'R' Us                       --->             http://quotes-r-us.org/



Message has 1 Reply:
  Re: Light sensor initialization?
 
Matthew's program takes one reading at initialization time to determine a baseline value. Any reading that falls 7 units below this is assumed to be a dark line. I take a somewhat more conservative approach, taking 10 readings over one second and (...) (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)

Message is in Reply To:
  Light sensor initialization?
 
This should be an FAQ at this point, but I'm having trouble tracking down an answer in the LUGNET archives. I'd like my 'bot to measure ambient light levels, and make light/gray/dark decisions based on those levels. For instance, Dave Baum's line (...) (25 years ago, 13-Jul-99, to lugnet.robotics.rcx)

10 Messages in This Thread:




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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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