ANY-maze Help > I/O devices supported by ANY-maze > The ANY-maze interface device family > The ANY-maze Touch switch interface > Configuring an ANY-maze Touch switch interface

Configuring an ANY-maze Touch switch interface

Introduction

The ANY-maze Touch switch interface configuration window shows information about your device, and allows you to adjust its sensitivity, change its ID and update its firmware.

 •Accessing the ANY-maze Touch switch interface configuration window 
 •Adjusting the ANY-maze Touch switch interface thresholds 
 •Suppressing the LED on the ANY-maze Touch switch interface front panel 
 •Changing the device ID 
 •Updating the device firmware  

Accessing the ANY-maze Touch switch interface configuration window

To access the ANY-maze Touch switch interface configuration window, select your ANY-maze Touch switch interface in the list on the left side of the I/O page and then click the Configure this device button in the ribbon bar.

  

  

Figure 1. The ANY-maze Touch switch interface configuration window.

Adjusting the ANY-maze Touch switch interface thresholds

The ANY-maze Touch switch interface works by detecting a voltage at the signal input whenever the animal touches it. This voltage is usually around 6V or more and so, by default, the interface will consider the animal is 'touching' whenever it detects a voltage in excess of 4V at the input. However, depending what part of the animal touches, the voltage might be less and therefore you may need to decrease this threshold so that the interface considers the animal is touching when the voltage is, for example, in excess of 3V, rather than 4V. This is what the On threshold slider in the configuration window is for.

You might think that it would be a good idea to simply make the device as sensitive as possible by reducing the on threshold to its minimum value, 0.5V. This would indeed make the device very sensitive, but then you'd run the risk of detecting 'electrical noise' as well as real touches. The touch switch can be affected by the electrical noise generated by other devices in your lab - for example, an air conditioning unit or a centrifuge. This noise can cause the baseline (no-touch) input voltage to increase substantially from its normal value of under 0.5V. This isn't a problem, provided the on threshold is greater than the noise level. So, for example, if the noise in your lab causes the base voltage to be a maximum of 3V then setting the on threshold to be 5V will still allow you accurately detect touches.

You'll notice that as well as an on threshold, the configuration window also includes an Off threshold. This is always less than (or the same as) the on threshold and is the value that the signal must go below before the interface will consider the animal is no longer 'touching'. For example, if the thresholds are 4V and 2V (the default values) then for a touch to be detected the signal must go above 4V; once it does that then it must go below 2V for the touch to end. This is useful because the signal will always include some noise, so for example, when the animal touches the signal might go from 0.5V to 4.1V, but then drop slightly to 3.9V because of noise. If there were just a single 4V threshold value then this small drop would mean the switch would turn off, then if the signal went back to 4.1V, it would switch back on - if the noise was causing the signal to oscillate between 4.1V and 3.9V then the switch would count lots of touches. The fact that there are two thresholds fixes this, because after switching on at 4V the signal has to drop all the way down to 2V before the switch will turn off again.

In fact, the default thresholds of 4V and 2V will usually work fine and you may well find that you don't need to adjust them at all. However, if you want to check whether they need adjustment (and if they do, determine what values you should use) then there's an easy way to do it: On the I/O page select your ANY-maze Touch switch interface and then select the Analogue inputs - on the right-hand side of the screen you will see the input signal for the four Touch switch ports, as in figure 2 below. Here the thresholds are shown as two red lines.

  

  

Figure 2. Selecting the analogue ports of the ANY-maze Touch switch interface on the I/O page shows the actual voltage at each of the inputs. The red lines indicate the on (top line) and off (bottom line) thresholds.

Assuming nothing is touching the input then each port will be showing its baseline voltage, and if there is any source of noise affecting the input then you'll see this. For example, in figure 2, Port 1 is being affected by some noise, which is causing the input to oscillate between 0V and 3V - see figure 3.

  

  

Figure 3. Port 1 of this ANY-maze Touch switch interface is being affected by some noise which is causing the input to oscillate between about 0V and 3V.

Next, you should place an animal in your apparatus and see what sort of signal you get when the animal makes a touch. Figure 4 shows this in the case of the noisy Port 1. In this situation you should set the on threshold to be a little below the average of the signal when the animal is touching and the off threshold a little above the average of the signal when the animal is not touching. This will work even if the noise means the extremes of the signals overlap, i.e. the maximum signal when the animal is not touching is greater than the minimum signal when the animal is touching.

  

  

Figure 4. Despite the noise on Port 1, thresholds of 7.5V and 2.5V will correctly detect touches.

This example was constructed to show what happens when the input signal is affected by noise, but you're more likely to find that your input looks like the one in figure 5 (below), where there's little noise and a very clear 'touch' signal.

  

  

Figure 5. A more typical touch signal, with almost no noise. However, in the case the touch only causes the signal to rise to around 4V, so the on threshold has been reduce to 2.5V in order to correctly detect touches.

As mentioned above, it's possible that the animal's touch won't cause the input signal voltage to rise above 4V (the default sensitivity threshold) and this is the case of the signal shown in figure 4. To address this, you would need to reduce the threshold - here thresholds of 2.5V and 1.5V would work well.

Suppressing the LED on the ANY-maze Touch switch interface front panel

The ANY-maze Touch switch interface has an LED on the front panel which shows the status of the device; red when connected to the PC and green when communicating with ANY-maze.

If the interface will be visible to the animal during a test, then you may wish to suppress this LED - perhaps the test should be performed in darkness, or you're concerned that the LED could provide visual cues to the animal. To suppress the LED, you simply need to check the Suppress LEDs on this device button in the Device information section of the configuration window.

Changing the device ID

The method of changing the device ID is the same for all ANY-maze interface devices. Full details, including what the device ID is and why you might want to change it, can be found here.

Updating the device firmware

The process of updating the firmware is the same for all ANY-maze interface devices. Full details can be found here.

See also:

 •Setting up the ANY-maze Touch switch interface 
 •Connecting the ANY-maze Touch switch interface to your apparatus and testing it 
 •Using the ANY-maze Touch switch interface in tests 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T1077