by Danny Staple

Even though I have used the RCX for many years, there are still new things I am learning about it.

In a recent discussion on lugnet.robotics, the original touch sensors for the RCX are revealed as not being entirely binary but actually having an analogue range of values.

This in an interesting development. It may be that this is simply an accident caused by the switches manufacture, and that it should be just on or off, but Philo (Phillipe Hurbaine) has actually put together an experiment to test its sensitivity. Note that this is a bit speculative, the discussion was about multiplexing them based on resistance.

The touch sensor test RIG
The touch sensor test RIG

This test allowed Philo to gain fine control of the placement of the threaded axle. Note there is a manual handle, linked to one worm gear, which turns a pinion (8t gear) which is linked to a further worm gear, giving a massive gear reduction. While this may allow fine control, at this level of granularity gear lash (the amount of “play” you have between the gears where the teeth do not entirely meet) can be a major problem.

A Closeup of the RIG
A Closeup of the RIG

If you look at the closeup, there is a nut (threaded bush) on the threaded axle here, and this can be adjusted to a point where it is just touching, but not yet compressing the switches actuator.

Graph of results
Graph of results

It is a neat setup, and allowed Philo to generate a graph, showing the results of the experiment, with different switches used in the rig. It is interesting to note that the different sensors for cybermaster have very varied ranges, these are the sensors which each included a resistor which gave them different values.

What would equally interest me would be if the sensitivity of these would appear different on different RCX models, and also the other programmable bricks with compatible ports, and how much the port setup affects the sensitivity. Note also that two RCX switches were tested, with slight different results. This means that to use them effectively, you may have to calibrate individual switches.

The sensitivity curve here shows clearly that the Red Cybermaster switch has the best curve, and would be easiest to calibrate. There is sensitivity in all of them to detect pressure changes, although sometimes it is too minimal to be useful. You would need some clever mechanical linkages to scale movements down enough to make these into serious analog sensors, but it certainly could be done.

On this note, I may revisit my Lego scales, and see if they can be built to take advantage of this, it would be interesting to be able to create a set of sensitive digital scales with the basic RIS kit.

On a further note, Philo also has his own observations on this at http://news.lugnet.com/robotics/rcx/?n=2191.

(paid links)