Cedrus logo
Click on icon to search our website (not including the store).

Support    RB-x20 Series   Interfacing With the Accessory Connector

Summary

In response to customers’ feedback, the RB-x20 response pads now include an Accessory Connector that offers up to six limited functionality I/O (input/output) lines. These I/O lines can be used to connect external peripherals such as additional keys or a foot pedal, or to obtain a TTL output of the built-in keys. They cannot be used for general purpose output. This document describes the software and electrical features of Accessory Connector.

Features

The Accessory Connector uses an RJ45 jack. This is the same type of jacks used in Ethernet wiring, making it easier for find and buy matching cables in a wide variety of lengths and colors.

The RB-x20 models do not have their own power supply. They draw just enough power from the computer’s serial port to be able to operate. For this reason, we recommend that you do not attempt to draw any power at all from the Accessory Connector. If you must, you should limit power consumption to a maximum of 2 milliamps.

The RJ45 jack has eight pins. One is ground. Another is positive voltage. The remaining six are I/O lines. The table below describes the pin assignments. Pin 1 is the leftmost pin when you are looking at the connector.

Pin

Line

1

Line AC1 (leftmost pin)

2

Line AC2. Not debounced; see note below.

3

Line AC3

4

Line AC4

5

Line AC5

6

Line AC6

7

5.4V while experiment is running on RB-520 and RB-820; see note below. Not connected on RB-420 and RB-620.

8

Ground (rightmost pin)

Accessory Connector

All I/O pins are pulled high via a 100K resistor. A number of the I/O pins overlap with the built-in push buttons as illustrated in the following diagrams:

RB-420

I/O lines AC1 and AC2 do not overlap with any of the built-in push buttons.


RB-620

Only I/O line AC2 does not overlap with any of the built-in push buttons. The leftmost push button does not have a corresponding I/O line on the Accessory Connector.

RB-520

I/O line AC1 does not overlap with any of the built-in push buttons.

RB-820

The leftmost and rightmost push buttons (the pinky fingers) do not have corresponding I/O lines on the Accessory Connector.

If you connect an external key or switch to an I/O pin that overlaps with a built-in push button, the result becomes an “either or” key: the host computer that is connected to the response pad via the serial port cannot distinguish between the two.

Important Note About Pin 7

This pin is not connected on the RB-420 and RB-620 models. The discussion below applies only to the RB-520 and RB-820 models.

Nearly all stimulus presentation software such as SuperLab “open” the serial port just before running an experiment, keep it open for the duration of the experiment, and then close it when done. The RB-x20 response pads have a built-in voltage regulator that keeps the voltage fairly steady at around 5.4 volts while an experiment is running.

But since the response pad does not have its own power supply and depends for its power on the computer’s serial port, what happens when an experiment is not running is entirely up to the computer and the way that it is designed. For example, on an HP Pavilion N5270 laptop, the measured voltage dropped to 5.16 volts. On a DELL Precision PWS420 workstation, the voltage even turned negative.

Conclusion: if you are going to rely on the voltage supplied by pin 7, it is a good idea to measure the voltage available both when an experiment is running and when it is not.

Building Your Own Switch

The RB-x20 response pads use an “active low” logic. In other words, when the voltage on an I/O pin is around 5 volts, the line is considered OFF. When the voltage is near zero, it is considered ON. Therefore, your own switch should connect between the desired I/O line and ground (pin 8). An active low approach may seem upside down to some, but it is a common practice in electronics.

Debouncing

If you are planning on connecting a switch, it is important that you become aware of debouncing issues.

What is it?  When a key is pressed once on the keyboard, we take it for granted that one and only one letter is typed. In reality, closing a switch causes the two metal contacts to touch each other several times over a period of time. This is called bouncing.

Debouncing is a method used to recognize the first switch closure but ignore the subsequent bounces. This can be done using either hardware or software. The RB-x20 response pads have a built-in microprocessor, so debouncing is implemented using software. The basic software method is to simply ignore subsequent bounces for a certain amount of time. There is no delay between the key press and the information about it being sent to the computer.

In the RB-x20 models, the timeout is 5 milliseconds. It is applied intelligently. For example, if the user presses a switch at time T, then all subsequent input on this switch is ignored until time T+5 milliseconds, but meanwhile input on all the other switches is still detected even at time T+1.

Debouncing affects you in two ways. First, it is important to realize that we have deliberately left one input line on the Accessory Connector (AC2) without any debouncing on these two models: the RB-420 and the RB-620. This is convenient if, instead of a switch, you are connecting a signal generator, an I/O line from a computer, or any other input source that does not bounce.

Second, if you decide to connect a switch, it must be a good quality one because the debouncing time in the response pads is a short 5 milliseconds. Some switches have a bounce time that runs over 200 milliseconds. Also, on the RB-420 and RB-620, avoid connecting a switch to line AC2 since it is not debounced at all.

Last revision: March 19, 2004

PRODUCTS

SUPPORT

STAY IN TOUCH

© Copyright 2024 Cedrus Corporation, P.O. Box 6309, San Pedro, CA 90734 - USA

Phone: +1-310-548-9595. Send us an email. See privacy policy.

qwerasdf