|
ANY-maze Help > I/O devices supported by ANY-maze > The ANY-maze interface device family > The ANY-maze Digital interface > The ANY-maze Digital interface photobeam ports The ANY-maze Digital interface photobeam ports
ContentsThis topic contains full details about ANY-maze Digital interface photobeam ports and covers:
An introduction to the photobeam portsThe ANY-maze Digital interface photobeam ports allow ANY-maze to detect breaks of a photobeam. Up to six photobeams can be connected to a single ANY-maze Digital interface (each beam uses two digital ports). The ANY-maze Digital interface includes some intelligent features which eliminate common problems with photobeams.
The photobeams consist of two parts: an infrared LED (the emitter), which shines infrared light on an infrared-sensitive photo-transistor (the detector). These connect to an ANY-maze Digital interface photobeam port as shown in figure 1 (counting left to right, looking into the port).
Figure 1. Conceptual internal circuit of an ANY-maze Digital interface photobeam port.
Configuring a photobeam portTo configure a port as a photobeam, you should open the ANY-maze Digital interface configuration window, select the appropriate port and then select Photobeam from the Use this port as a drop down list. This is described in detail here.
Figure 2. The photobeam port options.
Specifying the beam separationIf the emitter and detector of a photobeam are separated by 10cm or less, then you may find that when the animal interrupts the beam, it is not reported as 'broken'. This is most likely to occur in nose poke holes, where just the animal's nose interrupts the beam - which may not be enough to block all the infrared light from the emitter reaching the detector. To address this, you can specify that the beam separation is 'Narrow'; this causes the port to report a beam break when the amount of infrared light reaching the detector drops, even by a small amount. If you're not sure what to specify for separation, use 'Wide' (the default); you should only change the setting to 'Narrow' in the circumstance described above. Connecting a photobeam to a photobeam portA photobeam uses both of the digital ports on a single ANY-maze Digital interface connector. The specific connections are as follows (counting left to right, looking into the port):
The emitter should be an infrared LED. The cathode should be connected to pin 1 and the anode should be connected to pin 2 (which will be at 5V). The photobeam port includes a 160 ohm current-limiting resistor, so most LEDs can be connected directly to the port (the typical forward voltage of an IR LED is around 1.5V, so the forward current will be (5 - 1.5) / 160 = 22mA). You should try to use an LED with a narrow beam angle as this will improve the range of the photobeam. The detector should be an infrared photo-transistor (note that the ANY-maze Digital interface photobeam ports do NOT work with photo-diodes). The collector should be connected to pin 3 and the emitter should be connected to pin 4. The photo-transistor you use should be spectrally matched to the LED (i.e. it should be sensitive to the infrared wavelength that the LED emits). As an alternative to using your own LED and phototransistor, you can use the AMi photobeam, pictured below.
Figure 3. The AMi photobeam. The threaded case makes it simple to mount the beams in a hole.
The AMi photobeams have a grey cable to the emitter and a black cable to the photo-transistor. These connect to the ANY-maze Digital interface connector as follows:
Testing a photobeam portAfter you have connected your photobeam, you will of course want to test it. This is easily done using the I/O page.
Figure 4. Testing the ANY-maze Digital interface photobeams on the I/O page. Here the photobeam connected to ports 1-2 is broken.
If you find that the beam isn't shown with a line then you should:
Beam intensity feedbackYou'll notice in figure 4 that there's a red bar shown below the photobeam. This shows the beam intensity and can be very useful when aligning the beams. As the beams become aligned you'll find that the bar grows from the left to the right, so when aligning beams your aim is to make the bar go as far to the right as possible. When the beam separation is small, the bar will usually go all the way to the right (as is the case for the photobeam on ports 3-4, in the image), but as the separation increases so the intensity will decrease, so you may find that even when the beam is perfectly aligned the bar only goes halfway - this is normal and provided the overall status of the beam (represented by the graphic above the bar) is shown as not broken then the beam will still work correctly. Photobeam port specification
See also:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T1063 |