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 / 2191
2190  |  2192
Subject: 
Multiplexing 4 touch sensors on an RCX input port
Newsgroups: 
lugnet.robotics.rcx
Date: 
Fri, 5 Sep 2003 06:32:18 GMT
Viewed: 
4170 times
  
You can use four touch sensors per input port on the RCX.

The Cybermaster touch sensors have resistors in parallel, and this is how the
Cybermaster knows which implement is attached to the tracked robot.

It uses its sensor input as a temperature sensor reader in order to read the
resistance value on the input, which is different for each switch.

If you use the same method on the RCX (after enabling the temperature sensor in
the advanced control page) you can use four touch sensors like this:
Put resistors of 82k, 56k, 47k and 39k in series with the four switches.

Cut in half some short 9Volt leads and put 12Volt plugs on them.  Then use choc
block (barrier strip) for the resistor assembly, with 1/0.6 bell wire protruding
- shove these wires into the middle of the 12V plug pins.  One wire goes to the
RCX port and one to each switch.

Alternatively use Veroboard for a tidier solution, but I haven't got round to it
yet.

You can determine which of the four (and every combination of 2, 3 or 4 of them)
has been triggered by testing for temperature sensor values.  This is great for
robots with multiple bumpers.

I picked the resistor values to make all combinations line up on the linear part
of the value vs resistance graph (the linear region is in the middle).

Of course you can also put a light sensor in parallel as is done on the soccer
robots.  So now you have 15 sensors on your RCX!!

Happy sensing!

Mark Bellis



Message has 2 Replies:
  Re: Multiplexing 4 touch sensors on an RCX input port
 
(...) LEGO purists use LEGO light bricks as resistors. I created potentiometer bricks, where the resistance is variable for each brick. Two stacks of 4 potentiometer bricks can be seen to the left of the RCX. In this case each stack puts the (...) (21 years ago, 9-Sep-03, to lugnet.robotics.rcx)
  Re: Multiplexing 4 touch sensors on an RCX input port
 
(...) While in theory, this sounds very cool, in pratice, I doubt it will work quite that well. The biggest problem will be that the standard touch sensors may not be 100% on when you press it. This means the sensor itself can provide some (...) (21 years ago, 9-Sep-03, to lugnet.robotics.rcx)

13 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