Subject:
|
Re: is it possible to use a polarity switch with a RCX input?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Mon, 25 Mar 2002 17:03:52 GMT
|
Original-From:
|
T. Alexander Popiel <popiel@wolfskeep.#NoSpam#com>
|
Viewed:
|
699 times
|
| |
| |
In message: <GtJ9sq.HBC@lugnet.com>
"Nickle, Steven (2511)" <Steven.Nickle@esavio.com> writes:
>
> Use a resistor to make one of the states of the switch read less than a full
> short. Setup as a light sensor. 0 means off 50~ means one state and 100
> means another.
Actually, you want it to be unpowered instead of powered; giving the
sensor power will just waste your batteries heating up the resistors.
Setting it up as SENSOR_TYPE_NONE and SENSOR_MODE_PERCENT (or
SENSOR_MODE_RAW) under NQC would be much better than setting it up
as a light sensor.
- Alex
|
|
Message is in Reply To:
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|