Subject:
|
Re: Gp2D12 Distance Sensor interface to RCX
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 19 Oct 2001 15:53:52 GMT
|
Viewed:
|
636 times
|
| |
| |
They don't need to be all active, just appear that way.
I am assuming a dip switch to permanantly deactivate unused, ports.
Software control of connected ones would be nice.
Usage would go like this:
7 Global variables, a thread checks them on a continous loop and reacts.
Some other thread populates them from the actual sensors. (This should be a
cpu efficient as possible.)
Over all reaction time does not have to be that great, as the sensors have a
good range considering the speed of most of my robots.
Interference, hmm. Most sensor fields should not overlap, but you never know.
One solution would be to have the board store the values of each sensor, and
keep cycling through the sensors. The the RCX just has to ask fo rthe
information it wants. However, storing analog input would present some
interesting challenges:-)
In lugnet.robotics, edwards@cs.vt.edu writes:
>
> Do you want all of the sensors to be active at the same time, or do you
> want to be able to activate/disable them?
>
> If they are all simultaneously active, they draw a lot of power and there
> is a greater chance of interference. Allowing some to be disabled (by
> powering down, which is the only approach for the GP2D12s, I think) can
> fix both these disadvantages.
>
> If you want to think about selectively enabling sensors, do you want to be
> able to enable/disable each on an individual basis, or use a scheme where
> only one selected sensor can be active/read from at a time? Allowing only
> one to be active is simpler, but may also slow down response time. There
> is a time lag of approx 40-50 ms between powering on (i.e., "re-enabling")
> the sensor and getting a valid reading.
>
>
> -- Steve
>
> --
> Stephen Edwards 604 McBryde Hall Dept. of Computer Science
> e-mail : edwards@cs.vt.edu U.S. mail: Virginia Tech (VPI&SU)
> office phone: (540)-231-5723 Blacksburg, VA 24061-0106
> -------------------------------------------------------------------------------
|
|
Message has 1 Reply: | | Re: Gp2D12 Distance Sensor interface to RCX
|
| (...) Sounds like you have a fairly good idea of how you want to use it, and it all makes sense. The hardware can be simplified quite a bit if this is the typical usage pattern, though. (...) Since the RCX is already storing the values for use by (...) (23 years ago, 19-Oct-01, to lugnet.robotics)
|
Message is in Reply To:
| | Re: Gp2D12 Distance Sensor interface to RCX
|
| (...) Do you want all of the sensors to be active at the same time, or do you want to be able to activate/disable them? If they are all simultaneously active, they draw a lot of power and there is a greater chance of interference. Allowing some to (...) (23 years ago, 19-Oct-01, to lugnet.robotics)
|
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
|
|
|
Active threads in Robotics
|
|
|
|