|
ANY-maze Help > I/O devices supported by ANY-maze > Legacy I/O devices > The ANY-maze interface (AMi) > The AMi ports > The AMi General Purpose I/O ports > Connecting photobeam arrays to the GPIO ports Connecting photobeam arrays to the GPIO ports
IntroductionAMi photobeam arrays are an AMi add-on which consist of multiple beams arranged close together, creating a 'photo-curtain'. Arrays are ideal for detecting such things as rearing, as they will detect any break in the plane of the 'curtain'. Photobeam arrays connect to AMi GPIO ports.
Connecting a photobeam array to AMiA photobeam array connects to a single AMi GPIO port. The arrays are supplied with a connector already attached to their cable, so you need do nothing more than plug the cable into the port you wish to use. Although photobeam arrays connect to AMi's GPIO ports, they're a little different to other devices in that arrays wider than 20cm 'use' multiple ports. This doesn't mean that you need to connect them to multiple ports, but rather that when such an array is connected to a GPIO port some other ports will automatically be disabled. Specifically, a 40cm photobeam array uses two GPIO ports and a 100cm array uses five. Thus, if you connect a 40cm array to GPIO port 1, port 2 will automatically be disabled, making it unavailable for other devices. This multi-port usage is automatically managed by the GPIO port configuration (see the next section) so you don't have to do anything about it other than make sure you connect the array to the correct port - in the case of the 40cm array, this means connecting to port 1, 3, 5 etc. and for the 100cm array, connecting to ports 1, 6 or 11. Note that the 20cm photobeam arrays don't use multiple ports, so you can connect up to 16 of them; one to each of AMi's GPIO ports. Configuring a GPIO port for use with a photobeam arrayBefore you can actually use a photobeam array, you need to configure the GPIO port to which it is connected as a 'photobeam array port'. You can do this using the General Purpose I/O page of the AMi configuration window. Disabling individual beams in an arraySometimes you might not want all the beams in an array to be functioning. For example, imagine you have a 30cm wide Perspex cage and you place a 40cm array around it in order to detect rearing. Clearly, some of the beams will not actually be passing through the cage and may perhaps be blocked by things attached to it, for example a pellet dispenser. The problem with this is that if any beam in an array is blocked then the entire array is considered to be 'broken', and so in this example, ANY-maze will think the animal is rearing. Clearly, what you need to do in this case is to tell ANY-maze to 'ignore' some of the beams, and this is what disabling a beam will do. To disable a beam you simply need to select the photobeam array in the list on the left of the I/O page, and then in the image shown on the right, click the beams you want to disable - see figure 1. To re-enable a beam, just click it again.
Figure 1. Clicking an individual beam will disable it, so its state is ignored when determining whether the overall array is blocked or not. In this example, the two beams at either end of the array have been disabled.
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T1165 |