Subject:
|
Light sensor initialization?
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Tue, 13 Jul 1999 20:10:46 GMT
|
Viewed:
|
1525 times
|
| |
| |
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 follower 'bot
code defines gray and dark thusly:
#define CUTOFF 55
#define STOP 48
I'd like to avoid hard-coding these numbers.
Has any one done this?
Thanks,
-Tim
|
|
Message has 2 Replies: | | Re: Light sensor initialization?
|
| I haven't done that yet. But if you're doing a line follower, I would suggest the following: 1. First, build the line follower in such a way that it can rotate in place and make the light sensor sweep out a circle on the ground as it rotates. 2. (...) (25 years ago, 13-Jul-99, to lugnet.robotics.rcx)
| | | Re: Light sensor initialization?
|
| (...) [snip] (...) Yes -- check out my RoboTag program at (URL) 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 (...) (25 years ago, 14-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
|
|
|
|