Subject:
|
Re: IR Proximity Detection Problem
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Thu, 16 Jan 2003 15:18:11 GMT
|
Viewed:
|
3284 times
|
| |
| |
In lugnet.robotics.rcx, Dirk Schlei writes:
> I have tried to get proximity dectection via RCX emitting IR
> (SendMessage/NQC) and Light Sensor (mounted on top of the RCX's IR unit).
> But the raw values seemed to be the same with/without emitting IR. Average
> value was 725. Went up to 800 (black paper) at the maximum or down to 650,
> respectively. Never got a difference bigger than 100. Any idea?
>
> Dirk
Dirk,
I had a similar problem when I first tried, eventually determining that I
wasn't measuring the light sensor value while the message was being sent.
You have to wait a little bit after sending the message before reading the
peak light sensor value. I monitor the sensor in a little loop right after
sending the IR message. This ensures that I capture the peak value.
Dean
|
|
Message has 1 Reply: | | Re: IR Proximity Detection Problem
|
| Dean, Philo, Thank you both very much: Including the sensor monitoring in a "repeat"-loop brouhgt the solution. Works quite perfect. I guess "SendMessage" is somewhat slow, i. e. the IR-emission/reflection. Now I am going to even improve the (...) (22 years ago, 17-Jan-03, to lugnet.robotics.rcx)
|
Message is in Reply To:
| | IR Proximity Detection Problem
|
| I have tried to get proximity dectection via RCX emitting IR (SendMessage/NQC) and Light Sensor (mounted on top of the RCX's IR unit). But the raw values seemed to be the same with/without emitting IR. Average value was 725. Went up to 800 (black (...) (22 years ago, 16-Jan-03, to lugnet.robotics.rcx)
|
5 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
|
|
|
|