To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1747
1746  |  1748
Subject: 
Re: RCX Sensors
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 25 Jul 2002 20:42:28 GMT
Reply-To: 
jp_prongs@yahooNOSPAM.com
Viewed: 
2719 times
  
Gaurav Bhatnagar wrote:

Hello, I was wondering if anyone out there has information about the RCX
sensors (touch, light) and how they communicate/interface with the RCX
itself. Perhaps schematics.

Many of the links out there right now do not work.  Any help would be
appreciated.

Thank You.

They all have a current run through them, and their resistance is then
turned into a 10-bit number by the RCX's ADC. 0 = no resistance, 1023 =
infinite resistance. Normally, this is a small current. However, for light
sensors to have the LED on, or for rotation sensors to work at all, they
need to have a large current most of the time, and a small current only
when reading the value.

The value read directly from the ADC registers is shifted left 6 bits.
Shift right 6 bits to get the 0-1023 values.

Touch sensors have low resistance when pressed, high resistance otherwise.
Light sensors have resistance inversely related to brightness. Maximum
brightness is approximately 322, minimum about 1023. To convert to a scale
of 0 (black) to 100 (white), use 147 - raw_value / 7.
Temperature sensors are also inversely related. Celsius temperature is
93.8136 - 0.122241 * raw_value.
Rotation sensors are very confusing. You'll have to get someone else to
explain them. <g>



Message is in Reply To:
  RCX Sensors
 
Hello, I was wondering if anyone out there has information about the RCX sensors (touch, light) and how they communicate/interface with the RCX itself. Perhaps schematics. Many of the links out there right now do not work. Any help would be (...) (22 years ago, 25-Jul-02, to lugnet.robotics.rcx)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR