|
ANY-maze Help > I/O devices supported by ANY-maze > Test equipment designed specifically for ANY-maze > The Repeated Acquisition and Performance Chamber (RAPC) > Connecting and testing RAPC apparatus > Connecting and testing version 1 RAPC apparatus that connects via an AMi device
Connecting and testing version 1 RAPC apparatus that connects via an AMi device

Introduction
Version 1 of RAPC, the Repeated Acquisition and Performance Chamber, connects to your computer via two ANY-maze Digital interfaces.
 | It is also possible to connect RAPC to your computer using a legacy ANY-maze interface. Where relevant this topic documents the differences between using ANY-maze Digital interfaces and a legacy ANY-maze interface (AMi) to connect to RAPC. |
Each RAPC consists of 12 doors, which connect to the ports of the first ANY-maze Digital interface, and 2 photobeams which connect to the ports of the second. You can also connect the RAPC speaker, which can play white noise during tests, to either your PC's headphone connector or to an ANY-maze Audio interface (not supplied).
Connecting the doors
A RAPC box has 12 doors, each of which is equipped with a sensor that can determine whether the door is open or closed. These sensors connect to the GPIO ports of the first ANY-maze Digital interface, as follows:
Figure 1. RAPC door numbering used in this document.
The ANY-maze Digital interface has two ports on each connector, with the first port being on pin 1 (counting from the left) and the second on pin 3. So, this means that the wire from Door 1a goes to pin 1 on the connector labelled '1 - 2' and the wire from Door 1b goes to pin 3. The full wiring scheme wiring scheme for the entire RAPC device can be found at the end of this topic.
If you are wiring to an older ANY-maze interface device then the connections are almost the same, just that each connector of the ANY-maze interface only has a single port, which is on pin 3. So in this case Door 1a will be wired to Pin 3 of the connector labelled '1', Door 1b will be wired to Pin 3 of the connector labelled '2', etc. Again, full details can be found at the end of this topic.
Connecting the photobeams
RAPC is fitted with two photobeams; one detects when the animal leaves the start box and the other detects when the animal reaches the 'reward' compartment.
The photobeams connect to the connectors labelled '1-2' (for the start beam) and '3-4' (for the end beam) on the second ANY-maze Digital interface. The specific wiring is as follows:
| | • | Connector pin 1 : Grey cable, silver wire | |
| | • | Connector pin 2 : Grey cable, gold wire | |
| | • | Connector pin 3 : Black cable, silver wire | |
| | • | Connector pin 4 : Black cable, gold wire | |
If you are connecting to a legacy ANY-maze interface device, then the same wiring applies, but the connectors plug into GPIO Port 13 (start beam) and GPIO Port 14 ('reward' beam).
Connecting the speaker
The RAPC speaker can be used to play white noise during a test. If you want to do this then you need to connect the speaker either to the headphone connector of your PC, or one of the ports of an ANY-maze Audio interface. In either case you simply connect the two wires from the speaker to the two terminals of the connector - there is no 'right way round'.
If you are using the legacy ANY-maze interface device then you can connect the speaker to one of the interface's speaker ports - again the two wires from the speaker simply connect to the two wires of the speaker connector.
Connecting power
As well as connecting the door data lines to the ANY-maze Digital interface, you also need to connect the 5V and GND lines. 5V lines can be connected to pin 2 on any port, and GND lines can be connected to pin 4 on any port.
The same wiring applies to the legacy ANY-maze interface, where 5V lines should connect to pin 2 on any GPIO port and GND lines to pin 4.
Connecting the interface to your computer
The ANY-maze Digital interfaces simply connect to USB ports on your computer, there's no need to connect them to DC power as they will be powered from the USB port.
If you are using the legacy ANY-maze interface and you intend to connect the RAPC speaker to the interface, then you must connect the interface to both USB and DC power. If you don't intend to use the speaker then there's no need to connect DC power.
Testing the connections
Having connected the RAPC to the interfaces and the interfaces to the PC, you are almost ready to test that everything is working correctly, but first you will need to configure the interfaces to work with RAPC. The easiest way to do this is to set up a RAPC protocol, which is described in detail here. Having set up the protocol, you can test the connections using the I/O page:
| | 3. | Select the first ANY-maze Digital interface in the list on the left side of the page | |
| | 4. | The interface will 'open' and show a sub item of Input switches, select it | |
| | 5. | On the right-hand side of the page, you will see a graphical representation of each of the ports used for the doors. They should all be shown 'red' - which means the ports are 'inactive'. Push a door open with your hand, and it should be shown 'green'; closing it again should cause it to return to 'red'. Test all the doors to make sure they are working correctly. | |
| | 6. | Next, click the second ANY-maze Digital interface in the list, which will open it, and the select the sub entry for Photobeams | |
| | 7. | The right-hand side of the page will now show the state of the two RAPC photobeams; these should be shown with a red 'beam' indicating that the beam is not broken. Break each beam with your hand, and confirm that the beam is shown on the screen as broken. | |
| | 8. | Finally, if you have connected the RAPC speaker, then, in the list on the left side of the I/O page, click the device you connected it to (either an ANY-maze Audio interface, the PC's speakers or a legacy ANY-maze interface) and select the sub entry for Speakers. | |
| | 9. | The right-hand side of the page will show the relevant device's speaker ports. Click the port you connected the speaker to and it should play a 2000Hz tone; click it again to switch the tone off. | |
Having tested everything you are ready to use the RAPC in an experiment.
RAPC to AMi wiring summary
The table below summarises all the wiring from RAPC to AMi.
See also:

© Copyright 2003-2026 Stoelting Co. All rights reserved
ANY-maze help topic T1240
|