Subject:
|
Re: light sensor problem?
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 24 Jul 2000 00:21:48 GMT
|
Viewed:
|
2357 times
|
| |
| |
> I've not fixed the scaling factor, because I can't figure why Markus used
> these lines to define upper and lower limits for raw readings... I've also
> asked for it but I got no reply as usual nowadays...
>
> Please, feel free to change, or investigate these values to fix light
> reading...
To achive scaling of light sensor reading from 0..100 the following
theoretical formula should be used:
light = 146 - scaled / 7,
where scaled is the reading of AD_X >> 6.
I found this at http://www.plazaearth.com/usr/gasperi/lego.htm, this
page contains a lot of electrical background.
Eddie C. Dost
ecd@skynet.be
|
|
Message has 2 Replies: | | Re: light sensor problem?
|
| (...) It doesn't surprise me that someone has already worked this out. (...) It really, really doesn't surprise me that Michael was the one who worked it out. If no one thinks it is too big an overhead, I can put it in in an hour or so when I do a (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
| | | Re: light sensor problem?
|
| (...) That's good. Now I wonder about some other questions: - Will it get the same value as the original firmware? - Will be influenced by offset (eg. from battery voltage)? In other words, do you think that the settle time is enough? I've tested (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: light sensor problem?
|
| (...) I'm the one that fixed active sensor reading... :-) Settle time is one of mine... Kekoa msg about this problem (a very old one in this ng if I remember) helped me to solve things. (...) I patched the reading routine in ds_handler to fix a vary (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
26 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
|
|
|
|