The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-08-2007, 03:17 PM   #1
Constant Bitrate
 
Beezer's Avatar
 
Join Date: Oct 2006
Posts: 178
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):-

Name:  volume_knob.jpg
Views: 26
Size:  8.4 KB

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.

Last edited by Beezer; 09-14-2008 at 05:51 AM.
Beezer is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 03-08-2007, 03:54 PM   #2
Variable Bitrate
 
david69leonard's Avatar
 
Join Date: Oct 2006
Location: missouri
Posts: 279
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...
david69leonard is offline   Reply With Quote
Old 03-08-2007, 05:21 PM   #3
My Village Called
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 10,763
Nice writeup!

That was me who figured out the wiring of the volume knob BTW
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 03-11-2007, 12:57 PM   #4
Newbie
 
mr9802's Avatar
 
Join Date: Jan 2005
Location: Rifle, CO
Posts: 36
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?
mr9802 is offline   Reply With Quote
Old 03-12-2007, 09:10 AM   #5
Newbie
 
mr9802's Avatar
 
Join Date: Jan 2005
Location: Rifle, CO
Posts: 36
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?
mr9802 is offline   Reply With Quote
Old 03-12-2007, 04:14 PM   #6
Constant Bitrate
 
Beezer's Avatar
 
Join Date: Oct 2006
Posts: 178
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.
Beezer is offline   Reply With Quote
Old 03-12-2007, 10:37 PM   #7
Newbie
 
mr9802's Avatar
 
Join Date: Jan 2005
Location: Rifle, CO
Posts: 36
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!
http://www.irblaster.info/receiver.html
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.
6. USE!

Last edited by mr9802; 03-12-2007 at 11:46 PM. Reason: add info
mr9802 is offline   Reply With Quote
Old 03-13-2007, 08:15 AM   #8
Constant Bitrate
 
Beezer's Avatar
 
Join Date: Oct 2006
Posts: 178
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.
Beezer is offline   Reply With Quote
Old 03-15-2007, 09:04 PM   #9
My Village Called
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 10,763
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
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 03-16-2007, 05:28 AM   #10
Constant Bitrate
 
Beezer's Avatar
 
Join Date: Oct 2006
Posts: 178
I'll look into it, thanks for the tip. Believe it or not I did search around for about a week.
Beezer is offline   Reply With Quote
Old 04-05-2007, 11:38 AM   #11
Newbie
 
Join Date: Jul 2005
Location: netherlands
Posts: 26
I try it myself if I can get it work.
Ralphie is offline   Reply With Quote
Old 04-28-2007, 05:58 AM   #12
Constant Bitrate
 
Beezer's Avatar
 
Join Date: Oct 2006
Posts: 178
Ok, finally I've been bothered to get some software written and released. It's a RoadRunner plugin & you can find the details here http://www.mp3car.com/vbulletin/rr-p...ol-plugin.html

Last edited by Beezer; 04-29-2007 at 06:53 AM.
Beezer is offline   Reply With Quote
Old 04-28-2007, 10:00 AM   #13
MGD
FLAC
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,471
Try this.
http://www.mp3car.com/vbulletin/road...-released.html
MGD is offline   Reply With Quote
Old 04-28-2007, 12:25 PM   #14
Constant Bitrate
 
Beezer's Avatar
 
Join Date: Oct 2006
Posts: 178
I did. For a start, it doesn't work with game ports & secondly its digital not analogue. Take a read through this thread & see what I'm trying to achieve.
Beezer is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change behaviour Volume control DbXL Centrafuse 0 07-09-2006 12:09 PM
Roadie Volume Control tjp12100 FrodoPlayer 0 06-21-2006 04:30 PM
External volume control, knob, powermate, or something else? stimps Input Devices 3 12-10-2005 02:12 AM
Volume control in Xenarc 700TSV BMW-7 LCD/Display 3 04-07-2005 12:08 AM
hardware volume control ODYSSEY General Hardware Discussion 18 04-20-2001 11:43 AM


All times are GMT -5. The time now is 04:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics