Subject:
|
Re: light sensor
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 30 Dec 1999 20:51:43 GMT
|
Viewed:
|
749 times
|
| |
| |
In lugnet.robotics, Bertil Boers writes:
> Can you make the lightsensor do more then act on 'more' or 'less' light
> (0-50 do this, 51-100 do that.
> Or can you let it do this to:
> 0-10 do this
> 10-20 do something else
> 20-30 do something else,
Can't you just drag multiple light sensing blocks onto your workspace? I know
that it works for counters.
If you have expectations of seeing results so neatly spread out across the
range from 0-100, prepare to be disappointed. It's hard to get a difference of
100 in RAW mode, were the sensor varies from 0..1023! In percentage mode it
seems to hover around 50-60 all the time. The only way I've found to break out
of this range is with a lot of IR. IR LEDs are on my shopping list today.
--Ben
|
|
Message has 1 Reply: | | Re: light sensor
|
| Ben Jackson <ben@ben.com> wrote in message news:FnKnA7.J93@lugnet.com... (...) know (...) Yes, I believe that works in RCX, though I do most of my programming in RoboLab because my intent is to work with an elementary school. (...) difference of (...) (25 years ago, 31-Dec-99, to lugnet.robotics)
|
Message is in Reply To:
| | light sensor
|
| Can you make the lightsensor do more then act on 'more' or 'less' light (0-50 do this, 51-100 do that. Or can you let it do this to: 0-10 do this 10-20 do something else 20-30 do something else, etc. Is it posible in RCX code or only in NQC. I am (...) (25 years ago, 29-Dec-99, to lugnet.robotics)
|
3 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
|
|
|
|