Soarer Volume Control
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.
I thought about doing the same type of thing with the volume control in my Soarer back when i lived in Japan... Damn i loved that car... I had the twin turbo 2JZ version... Was perfect for drifting!!!
Definately like to see how this turns out. Nice set-up by the way... :)
That was me who figured out the wiring of the volume knob BTW :)
This is what I have been looking for! do you have any part of the java done or is this still in the starting stages?
pin 1 +5 ________________
pin 3 stick1x ____ |
| 100K |
pin 6 stick1y ___ |
| 100K |
pin 11 stick2x ___ |
| 100K |
pin 13 stick2y ___ |
| 100K |
pin 2 button1 ______o o_______
pin 7 button2 ______o o_______|
pin 10 button3 ______o o_______|
pin 14 button4 ______o o_______|
pin 4 GND ________________|
Ok so I use this circuit which is simple to setup but my question that I need is how do I watch the GamePort so when a button is pushed, it knows what to do in the windows inviroment? Is there basic programs on the net that can be downloaded? I dont know C that well to do this I dont think. Hell I know i dont know how. Has anyone else done this?
I found a program called "winstick" that allows you to assign functions to joystick actions, but it wasn't good enough for volume control.
I have some Java written & will complete soon. It will only do volume + mute but I'll release the source so others can customize it.
That is awesome man! Let me know when you get it up!
Also, Not to hijack your thread but let me tell you what I have found through some deeper research. You can use a standard remote to control many functions on the computer. This will be a typical setup if you want:
1. Purchase any basic remote. Hell use an old tv remote if you want. I will use a car CD player remote cause it will be some and have all the functions needed.
2. Build or purchase a Serial IR reciever. You can build your own for about 12 bucks or buy one cheap on ebay. VERY EASY TO MAKE!
3. Download a program called WinLIRC @ http://winlirc.sourceforge.net/
4. Install the software. It can be setup to sit in your startup tray in the background.
5. Set the program to be on receive mode and have it learn all the commands you want to use.
I've got a remote control here that I got with a haupaugge product. It's got a USB receiver. It presents itself as a HID keyboard device - dead easy to configure into just about anything. I may put it in the car at some point.
As far as writing the program for the joystick volume control... why reinvent the wheel? There is a program called Girder that can do just that. Plus many more things :)
I'll look into it, thanks for the tip. Believe it or not I did search around for about a week.