<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.rivendellaudio.org/index.php?action=history&amp;feed=atom&amp;title=GPIO.txt_-_GPIO_Notes_for_Rivendell</id>
		<title>GPIO.txt - GPIO Notes for Rivendell - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.rivendellaudio.org/index.php?action=history&amp;feed=atom&amp;title=GPIO.txt_-_GPIO_Notes_for_Rivendell"/>
		<link rel="alternate" type="text/html" href="http://wiki.rivendellaudio.org/index.php?title=GPIO.txt_-_GPIO_Notes_for_Rivendell&amp;action=history"/>
		<updated>2026-05-01T21:39:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.4</generator>

	<entry>
		<id>http://wiki.rivendellaudio.org/index.php?title=GPIO.txt_-_GPIO_Notes_for_Rivendell&amp;diff=190&amp;oldid=prev</id>
		<title>Higgles: Created page with &quot;=GPIO Notes for Rivendell=  Rivendell supports the following General Purpose Input/Output (GPIO) devices:  Gameport Joystick Buttons  USB Joystick Buttons  Measurement Computi...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.rivendellaudio.org/index.php?title=GPIO.txt_-_GPIO_Notes_for_Rivendell&amp;diff=190&amp;oldid=prev"/>
				<updated>2018-03-13T10:46:15Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;=GPIO Notes for Rivendell=  Rivendell supports the following General Purpose Input/Output (GPIO) devices:  Gameport Joystick Buttons  USB Joystick Buttons  Measurement Computi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=GPIO Notes for Rivendell=&lt;br /&gt;
&lt;br /&gt;
Rivendell supports the following General Purpose Input/Output (GPIO)&lt;br /&gt;
devices:&lt;br /&gt;
&lt;br /&gt;
Gameport Joystick Buttons&lt;br /&gt;
&lt;br /&gt;
USB Joystick Buttons&lt;br /&gt;
&lt;br /&gt;
Measurement Computing PCI-PDIS08 Board (Only in systems with old Kernels)&lt;br /&gt;
&lt;br /&gt;
Measurement Computing PCI-PDIS16 Board (Only in systems with old Kernels)&lt;br /&gt;
&lt;br /&gt;
Measurement Computing PCI-DIO24 Board (Only in systems with old Kernels)&lt;br /&gt;
&lt;br /&gt;
Several supported switcher devices feature GPIO capabiities as well, see the file '''SWITCHERS.txt''' for more info.&lt;br /&gt;
&lt;br /&gt;
==JOYSTICK DEVICES==&lt;br /&gt;
Joystick support utilizes the Linux Input Device subsystem.  Inputs are active-low, and should be wired as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
02: Input 1&lt;br /&gt;
04: Ground&lt;br /&gt;
&lt;br /&gt;
07: Input 2&lt;br /&gt;
05: Ground&lt;br /&gt;
&lt;br /&gt;
10: Input 3&lt;br /&gt;
12: Ground&lt;br /&gt;
&lt;br /&gt;
14: Input 4&lt;br /&gt;
12: Ground&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition, you will need to connect 47 kohm resistors between the following pins:  1-3, 6-8, 9-11 and 13-15.  While not strictly needed for the GPI portion of the interface to work, the kernel's analog joystick driver will refuse to initialize the port if these resistors (or a real joystick) are not present.&lt;br /&gt;
&lt;br /&gt;
The device name of the joystick will be one of the '''/dev/input/event&amp;lt;n&amp;gt;''' devices.&lt;br /&gt;
&lt;br /&gt;
'''NOTE: There have been reports that some port models do not internally connect pin 12 to ground.  The symptom of this situation will be that Inputs 1 and 2 work, but not Inputs 3 and 4.  If this is the case, connecting the ground for Inputs 3 and 4 to pins 04 or 05 should remedy the problem.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==MEASUREMENT COMPUTER GPIO BOARDS==&lt;br /&gt;
To configure one of the supported Measurement Computing GPIO boards, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
1) Install the card(s) in the computer.  In the case of the PCI-DIO24,two cards may be necessary, as each seperate card is entirely utilized as either inputs or outputs. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) Test it out.  &amp;lt;s&amp;gt;Two programs exist for this purpose:  '''gpitest''' tests GPI inputs, and '''gpotest''' tests GPO outputs.  These programs come with the 'libradio' package.&amp;lt;/s&amp;gt;  '''NB There is now one program rdgpimon.'''&lt;br /&gt;
&lt;br /&gt;
3) Define a GPIO device in '''RDAdmin-&amp;gt;Stations-&amp;gt;Switcher/GPIO'''.  Use a device type of '''Local GPIO'''.&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
==GPIO BOARD-SPECIFIC NOTES==  (NB These only work with old Kernels)&lt;br /&gt;
&lt;br /&gt;
The Measurement Computing PCI-PDIS08 and PCI-PDIS16 boards feature floating, opto-isolated inputs.  The inputs are not polarity sensitive and may be driven by either AC or DC.  The outputs are electro-mechanical relays with dry contacts.  Connector pinouts are as follows:&lt;br /&gt;
&lt;br /&gt;
===PCI-PDIS08 -- DB37 Male Connector===&lt;br /&gt;
&lt;br /&gt;
===PCI-PDIS16 -- DB37 Male Connector (using C50F-37F Cable)===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pin  Signal&lt;br /&gt;
----------------&lt;br /&gt;
  1  Input 8/16&lt;br /&gt;
 20  Input 8/16&lt;br /&gt;
&lt;br /&gt;
  2  Input 7/15&lt;br /&gt;
 21  Input 7/15&lt;br /&gt;
&lt;br /&gt;
  3  Input 6/14&lt;br /&gt;
 22  Input 6/14&lt;br /&gt;
&lt;br /&gt;
  4  Input 5/13&lt;br /&gt;
 23  Input 5/13&lt;br /&gt;
&lt;br /&gt;
  5  Input 4/12&lt;br /&gt;
 24  Input 4/12&lt;br /&gt;
&lt;br /&gt;
  6  Input 3/11&lt;br /&gt;
 25  Input 3/11&lt;br /&gt;
&lt;br /&gt;
  7  Input 2/10&lt;br /&gt;
 26  Input 2/10&lt;br /&gt;
&lt;br /&gt;
  8  Input 1/9&lt;br /&gt;
 27  Input 1/9&lt;br /&gt;
&lt;br /&gt;
  9  Output 8/16 C&lt;br /&gt;
 28  Output 8/16 N/O&lt;br /&gt;
&lt;br /&gt;
 10  Output 7/15 C&lt;br /&gt;
 29  Output 7/15 N/O&lt;br /&gt;
&lt;br /&gt;
 11  Output 6/14 C&lt;br /&gt;
 30  Output 6/14 N/O&lt;br /&gt;
&lt;br /&gt;
 12  Output 5/13 N/C&lt;br /&gt;
 13  Output 5/13 N/O&lt;br /&gt;
 31  Output 5/13 C&lt;br /&gt;
&lt;br /&gt;
 14  Output 4/12 C&lt;br /&gt;
 32  Output 4/12 N/C&lt;br /&gt;
 33  Output 4/12 N/O&lt;br /&gt;
&lt;br /&gt;
 15  Output 3/11 N/C&lt;br /&gt;
 16  Output 3/11 N/O&lt;br /&gt;
 34  Output 3/11 C&lt;br /&gt;
&lt;br /&gt;
 17  Output 2/10 C&lt;br /&gt;
 35  Output 2/10 N/C&lt;br /&gt;
 36  Output 2/10 N/O&lt;br /&gt;
&lt;br /&gt;
 18  Output 1/9 N/C&lt;br /&gt;
 19  Output 1/9 N/O&lt;br /&gt;
&lt;br /&gt;
 37  Output 1/9 C&lt;br /&gt;
----------------------&lt;br /&gt;
C = Common&lt;br /&gt;
N/O = Normally Open&lt;br /&gt;
N/C = Normally Closed&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
The Measurement Computing PCI-DIO24 board features TTL logic-level connections, which can be configured to operate either as inputs or outputs.  Connector pinouts are as follows:&lt;br /&gt;
&lt;br /&gt;
===PCI-DIO24 -- DB37 Male Connector===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pin  Signal&lt;br /&gt;
---------------------&lt;br /&gt;
 37  Input/Output 1&lt;br /&gt;
 36  Input/Output 2&lt;br /&gt;
 35  Input/Output 3&lt;br /&gt;
 34  Input/Output 4&lt;br /&gt;
 33  Input/Output 5&lt;br /&gt;
 32  Input/Output 6&lt;br /&gt;
 31  Input/Output 7&lt;br /&gt;
 30  Input/Output 8&lt;br /&gt;
 10  Input/Output 9&lt;br /&gt;
  9  Input/Output 10&lt;br /&gt;
  8  Input/Output 11&lt;br /&gt;
  7  Input/Output 12&lt;br /&gt;
  6  Input/Output 13&lt;br /&gt;
  5  Input/Output 14&lt;br /&gt;
  4  Input/Output 15&lt;br /&gt;
  3  Input/Output 16&lt;br /&gt;
 29  Input/Output 17&lt;br /&gt;
 28  Input/Output 18&lt;br /&gt;
 27  Input/Output 19&lt;br /&gt;
 26  Input/Output 20&lt;br /&gt;
 25  Input/Output 21&lt;br /&gt;
 24  Input/Output 22&lt;br /&gt;
 23  Input/Output 23&lt;br /&gt;
 22  Input/Output 24&lt;br /&gt;
&lt;br /&gt;
 11  Ground&lt;br /&gt;
 13  Ground&lt;br /&gt;
 15  Ground&lt;br /&gt;
 17  Ground&lt;br /&gt;
 19  Ground&lt;br /&gt;
 21  Ground&lt;br /&gt;
&lt;br /&gt;
 18  +5 VDC&lt;br /&gt;
 20  +5 VDC&lt;br /&gt;
&lt;br /&gt;
 16  +12 VDC&lt;br /&gt;
&lt;br /&gt;
 14  -12 VDC&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''WARNING: The +5 VDC, +12 VDC and -12 VDC pins are connected directly to the power supply buss of the host PC.  Improper use of these pins can cause serious damage to your computer!'''&lt;br /&gt;
&lt;br /&gt;
= Other GPIO wiki pages =&lt;br /&gt;
&lt;br /&gt;
[[RDGpiMon|RDGpiMon - GUI Utility Program for monitoring GPI and GPO status]]&lt;br /&gt;
&lt;br /&gt;
[[Troubleshooting_GPIs_and_GPOs|Troubleshooting GPIs and GPOs from the command line]]&lt;/div&gt;</summary>
		<author><name>Higgles</name></author>	</entry>

	</feed>