The Toyota Soarer has a volume control knob mounted in the centre console surround. This usually plugs into the stock head unit & controls volume + on/off, however since putting my carputer in, this has done nothing.
Today, I decided to do something about it, so here are the results of my work.
The volume knob is just a variable resistor with a momentary on/off push button (normally off). The wiring for this as as follows (thanks to some chap on this forum):-
So, what can I use to measure a variable resistance and momentary push? Well, its easy - the game port. A joystick is just a couple of variable resistors and some momentary push buttons. The solution then is simple!!
15 pin game port -> Soarer volume knob
Pin 1 --> End
Pin 2 --> Push
Pin 3 ----------> resistor linked to Pin1
Pin 4 --> Ground
Pin 6 --> Middle
After hooking this up, you can go to the Windows control panel game controller setup screen. You can then add a "2 axis, 2 button Joystick". Then calibrate it. Obviously, only 1 axis will work when you rotate the volume knob and only 1 button will work when you press the knob, but it will work fine.
The only trick now is how to set the windows volume when you rotate the knob and how to mute when you press the knob? Well, I've written a quick Java program to do this & when its tidied up a bit & tested I'll release it, source n all. Shame I don't know c# or c++ or something so I can compile something small and tight, but this will work fine for now.
You can use the joystick port for 4 resistive inputs & 4 TTL digital inputs. Read more here
http://www.epanorama.net/documents/j...ml#temperature
Interestingly, I did notice that Maplin UK are selling a USB > gameport adapter for about £7 if you wanted a USB solution.