<?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=Joystick_port_as_GPI</id>
		<title>Joystick port as GPI - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.rivendellaudio.org/index.php?action=history&amp;feed=atom&amp;title=Joystick_port_as_GPI"/>
		<link rel="alternate" type="text/html" href="http://wiki.rivendellaudio.org/index.php?title=Joystick_port_as_GPI&amp;action=history"/>
		<updated>2026-05-01T21:04:17Z</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=Joystick_port_as_GPI&amp;diff=79&amp;oldid=prev</id>
		<title>Higgles: Created page with &quot;'''Q:''' I only need three GPI closures, is there a tutorial on using a standard serial somewhere?   '''A:''' Not a serial, but if you've got an old SoundBlaster card around w...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.rivendellaudio.org/index.php?title=Joystick_port_as_GPI&amp;diff=79&amp;oldid=prev"/>
				<updated>2018-03-12T15:22:27Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I only need three GPI closures, is there a tutorial on using a standard serial somewhere?   &amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Not a serial, but if you&amp;#039;ve got an old SoundBlaster card around w...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Q:''' I only need three GPI closures, is there a tutorial on using a standard serial somewhere? &lt;br /&gt;
&lt;br /&gt;
'''A:''' Not a serial, but if you've got an old SoundBlaster card around with a 15 pin joystick port, that'll get you four GPIs.  See [[GPIO.txt_-_GPIO_Notes_for_Rivendell|GPIO.txt]] for the details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Q:''' I did have a old SB card around and have it installed as per [[GPIO.txt_-_GPIO_Notes_for_Rivendell|GPIO.txt]] 47k resistors on the axis controls and all. &lt;br /&gt;
&lt;br /&gt;
Problem is if I run a joystick test in yast everything works it shows all axis at 50 and all buttons work. &lt;br /&gt;
If I run&lt;br /&gt;
&lt;br /&gt;
 jstest /dev/js0 &lt;br /&gt;
&lt;br /&gt;
from the command line everything works. &lt;br /&gt;
If I run &lt;br /&gt;
&lt;br /&gt;
 jstest /dev/input/js0 &lt;br /&gt;
&lt;br /&gt;
from the command line everything works. &lt;br /&gt;
&lt;br /&gt;
however after setting /dev/js0 or /dev/input/js0 up as a local gpio in rivendell with 4 inputs I get nothing. &lt;br /&gt;
&lt;br /&gt;
[[RDGpiMon]] shows the four inputs but no indication on closures.&lt;br /&gt;
&lt;br /&gt;
'''Response 1:''' Is rduser allowed to access that device? Also the device must be created before the daemons start.....&lt;br /&gt;
&lt;br /&gt;
'''Response 2:''' You may have the wrong device name entered for your joystick port  in the 'Device' field in your Local GPIO switcher description in rdadmin &amp;gt; Manage &lt;br /&gt;
Hosts &amp;gt; 'hostname' &amp;gt; edit &amp;gt; Switchers GPIO &amp;gt; Add &amp;gt; Local GPIO ... &lt;br /&gt;
&lt;br /&gt;
You obviously have your soundcard / joystick port / joystick port connector, (with it's pull-up resistors fitted) all working correctly. &lt;br /&gt;
&lt;br /&gt;
Try this to determine the device name, (openSuSE 10.2 / rd1.5.0) &lt;br /&gt;
&lt;br /&gt;
Power down the host and disconnect your adapter plug from the joystick port on your soundcard. &lt;br /&gt;
&lt;br /&gt;
Power up the host and then look in /dev/input and note what is listed there ... ( on the host beside me I get  /by-path, -event0, -event1, -event2, -mice, -mouse0 ). &lt;br /&gt;
&lt;br /&gt;
Power down the host and reconnect the joystick port adapter plug then power up again and have another look in /dev/input ... (I now get  /by-path, -event0, -event1, -event2, -event3, -js0, -mice, -mouse0 ). &lt;br /&gt;
&lt;br /&gt;
Note the appearance of -event3 and -js0 &lt;br /&gt;
&lt;br /&gt;
In the 'Device' field for your Local GPIO switcher description try using /dev/input/event3 ... set the number of GPI's and what action each one should take etc and see if the joystick GPI's now work. &lt;br /&gt;
&lt;br /&gt;
On the host beside me I am using /dev/input/event3 and have only 2 GPI's set, (we only use 2 inputs via the joystick port) ... one input fires a macro cart to stop the log while the other fires a macro cart to start the log.&lt;br /&gt;
&lt;br /&gt;
'''A:''' Well the user has permission for that group which appears to be game. I have tried to as su cat /dev/input/event1 2 3 4 5 6 7 8 9 and see nothing however cat /dev/js0 or cat /dev/input/js0 show activity on closures, but either of those devices placed in local gpio config don't work when using rdgpimon. Thanks for all the help and suggestions, I got it working. Even thought yast saw the joystick port and all tested well fot some reason Rivendell didn't until I deleted the SB audio card and reinstalled it.&lt;br /&gt;
&lt;br /&gt;
'''Followup:''' After all the experimenting and problems I had with the Sound Blaster card in my previous posts of &amp;quot;GPI Hell&amp;quot; and &amp;quot;audio pops and clicks&amp;quot; I have solved my problem very cheaply so I thought I would share. &lt;br /&gt;
&lt;br /&gt;
I purchased a $19 usb joystick, dismantled it and retrieved the 1.5 inch by 2 inch circuit board from inside and now have 11 gpi inputs. &lt;br /&gt;
&lt;br /&gt;
Rivendell saw the interface as /dev/input/event6 on my box and all works well. Doesn't do anything of course for outputs, but if all you need is inputs, what a cheap solution. Spent a couple of extra bucks on a little bud box to mount the board. :) The board contains a uart with a bcd input so if you wanted to extend the matrix you could go way beyond 11 GPIs. -- Tim Camp&lt;/div&gt;</summary>
		<author><name>Higgles</name></author>	</entry>

	</feed>