|
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 TTL input ports The ANY-maze Digital interface TTL input ports
ContentsThis topic contains full details about ANY-maze Digital interface TTL input ports and covers:
An introduction to the TTL input portsThe ANY-maze Digital interface TTL input ports allow ANY-maze to read the state of a TTL signal generated by some other device. For example, a vibration monitor might output a TTL signal whenever it detects that an animal is scratching. The interface device checks a TTL input 10,000 times each second and whenever it changes state it sends a message to ANY-maze. The 'pin-out' of the ANY-maze Digital interface ports is as follows (counting left to right, looking into the port):
A TTL signal simply connects to a digital port and GND. So it could be connected to pins 1 and 2 or pins 3 and 4. Internally, ANY-maze Digital interface digital ports are 'pulled-up' to 5V via a 15K resistor and include a 160 ohm series resistor; however in practice the port can be viewed as a direct TTL input.
Figure 1. Conceptual internal circuit of an ANY-maze Digital interface TTL input port. The same circuit applies to pins 3 and 4 as well.
Configuring a TTL input portTo configure a port as a TTL input, you should open the ANY-maze Digital interface configuration window, select the appropriate port and then select TTL input from the Use this port as a drop down list. This is described in detail here. When a port is configured as a TTL input, some additional options are available in the configuration window - see figure 2, below:
Figure 2. The TTL input port options.
Changing the port's active stateAs you'd probably expect, the ANY-maze Digital interface will consider that a TTL input is active when it is HIGH and inactive when it is LOW. This is usually correct, but you may find that the equipment that is creating the TTL signal is 'active low', that's to say when it is active it outputs a LOW and when inactive a HIGH. If this is the case then you can use the port's Active state options to change the input's configuration accordingly. Connecting devices to a TTL input portThe 'pin-out' of the ANY-maze Digital interface ports is as follows (counting left to right, looking into the port):
You should connect the TTL signal to either pin 1 or 3, and GND to either pin 2 or 4. The two GND pins (2 and 4) are the same, so you can connect to either of them (this is important if you change Pin 2 to be 5V). Note that you MUST connect BOTH the TTL signal line and the GND line from the equipment that is generating the signal. Testing a TTL input portAfter you have connected your equipment to a TTL input port, you will of course want to test it. This is easily done using the I/O page.
Figure 3. Testing the ANY-maze Digital interface on the I/O page. Here the equipment connected to port 1 is active.
If you find that the port seems to be shown as active (green) when the equipment is inactive and inactive (red) when the equipment is active, then you probably need to change the port's active state. If you find that the port doesn't register as active (green) when the equipment is active, you should check the wiring and also double check that the port the equipment is connected to is indeed configured as a TTL input and that you're testing the correct port. TTL input port specification
See also:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T1061 |