|
 |
|
12-18-2004, 05:59 AM
|
#1
|
|
Newbie
Join Date: Jun 2004
Posts: 30
|
light sensor, etc -> game port inputs
Hello
My name is Alexandre and I’m from Portugal.
I’ve been reading these posts for about 5 months, collecting ideas (while I get all the money for a “decent” project.
I have almost all the software that I need.
Since we have Grider and a plugin for connect a resistor variable command like the steering wheel control or a Sony rm-x4s remote, we can use the other axis and make a multi-input port (whith resistors) that can be used for other events like a light sensor (so it can automatic dim the screen), a cam switch (for the rear/side cam), radar detector (it could display a flash message when a signal comes in from the radar device), a door opened, buttons on the dashboard, …etc.
we just have to use a game port and a simple resistor connections.
And we just have to use the serial port to trigger the vis/dvd lock in Frodo, and we would have it all integrated.
What do you think about this??!!
Alex.
Ps: sorry for my English…
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
12-18-2004, 03:20 PM
|
#2
|
|
What can I say? I like serial.
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 2,158
|
Yep. You can use the gameport or a gamepad for just about any basic input, but I wouldn't suggest it for output of any kind or an accurate analog input. It's quite susceptible to RFI. For 12V detection I use a resistor and transistor, and for buttons it's just direct. I wouldn't use a photo resistor for dimming the screen, but all you need to do is calibrate by holding your finger over it and shining a light at it to get a good range. For dimming, what I have is a connection to the instrument panel dimmer that came off the HU connector. Here's a pic of what it looked like at first. Jjust think of it as a normally closed relay because it's kinda backward, and that white thing is a 2-pin connector to the dimmer line. Without power to the relay, the backlight inverter is powered by the lilliput, and when the lights are on they power the backlight through the 33 ohm resistor.
|
|
|
12-22-2004, 04:09 PM
|
#3
|
|
Newbie
Join Date: Jun 2004
Posts: 30
|
Hello.
Sorry but I was out these days.
I wasn't talking on using direct conections. For the dimming I could use a photo resistor but whith its own circuit trigering a relay, that would make grider to activate 'gama control'.
All the conections can be made through relay's.
But, of course, it would be easier to simply conect it to the instrument panel dimmer.
Thanks
|
|
|
12-22-2004, 04:41 PM
|
#4
|
|
Registered User
Join Date: May 2003
Location: Czech rep.
Posts: 655
|
I am thinking about pretty same. Have you guys considered using LPT port for ON-OFF like events?
|
|
|
12-22-2004, 08:10 PM
|
#5
|
|
What can I say? I like serial.
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 2,158
|
The hard-wired backlight thing keeps the dark colors from looking grey and lighting up the inside of the car at night so I like part of it. Dark and somewhat adjustable.
I've been playing with voltage comparators recently and saw a good circuit for using a photodiode here on page 16 I think. R2 should be variable though, and using an LM311 you can reverse the output easier because it has a built in output transistor.
mpattonm, I don't have an LPT port, but I hear it's hard to read it on XP.
|
|
|
12-23-2004, 09:04 AM
|
#6
|
|
Newbie
Join Date: Jun 2004
Posts: 30
|
yeah, but we dont need a Lpt port. we can do it all with a joystick port.
with one axis we can use for the steering well or other remote like sony, and with the other axis we can put diferent resistors in paralel each one with a mini relay to act like a input port. that's what I was talking about.
Alex.
|
|
|
12-23-2004, 10:05 AM
|
#7
|
|
What can I say? I like serial.
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 2,158
|
It's actually real easy to do all this without relays. The first circuit is a photoresistor, variable resistor, and a comparator (LM339). The joystick button goes on or off when the photoresistor's resistance goes above or below the variable one. The second one goes on/off when the 12V input goes on/off.
|
|
|
12-23-2004, 03:38 PM
|
#8
|
|
Newbie
Join Date: Jun 2004
Posts: 30
|
yes, thats a good option, but that is for a button connection.
I think it has to be with a relay if I want to use it with an x axis or a y axis (using grider with the joypad plugin) because I need to put several inputs on a single axis (the other will be used for the sony remote that acts also like a variable resistance on key press).
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
12-23-2004, 03:44 PM
|
#9
|
|
Newbie
Join Date: Jun 2004
Posts: 30
|
For the inputs conection I will need 2 120K resistors. Connecting those between 5V and the X and Y input (even without the sony stick) will supply somewhere around 2.5V to X and Y and act as a basic joystick to make the windows driver see a valid 2 axis joystick connected and centered (sort of) so it will load. Then with the sony stick connected and a button pressed it's like the 120K + another resistor in parallel lowering the resistance (each button is a different value and no press = open or 120K).
|
|
|
12-23-2004, 04:31 PM
|
#10
|
|
What can I say? I like serial.
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 2,158
|
Right. But if you connect a relay and resistor to the X input and that's the same as the steering wheel, it would change that value and all the steering wheel values would be offset at night (or day, depending). I don't know if the plugins handle it, but having button on or off for light/dark would be simpler.
|
|
|
12-23-2004, 04:43 PM
|
#11
|
|
Maximum Bitrate
Join Date: Feb 2004
Location: Omaha, NE
Posts: 777
|
Get a Directed Electronics 545T for people who don't want to build a circuit themselves. http://www.audioallies.com/getitem.asp?Item=545T&Sys=FR Just bought one of them for my wife's car for Xmas.
__________________
7" Lilli TS, Soyo K7VME, Semperon 2200, 160GB Maxtor, 512mb PC3200, Deluo GPS, Panasonic Slim DVD/CD RW, Linksys WMP545G , Opus 150w, XMDirect, XP Pro, FP, IG [XXXXXXXXX-] 90%
ATVMS.com
|
|
|
12-26-2004, 10:42 AM
|
#12
|
|
Newbie
Join Date: Jun 2004
Posts: 30
|
Curiosity,
no, because it will be connected to the y axis, when the seetring weel (or sony remote) will be connected to the x axis. the plugin work with both.
I need to try to see if it works with the button lines (joystick fire buttons). but I think it will.
|
|
|
12-26-2004, 11:04 AM
|
#13
|
|
Newbie
Join Date: Jun 2004
Posts: 30
|
You are right in one thing. With the same axis won't work becaus sony remote uses multiple resistor values (I'm showing here a table that I found for the rm-x2s). But it will work with the other y axis. However, If the plugin works with the fire buttons It would be better because that way we can use multiple inputs at the same time (whith the resistores on the y axis we won't be able to do it
0 Ω Off
2.2k Ω Source
4.4k Ω Mute
6.6k Ω List(Disp)
8.8k Ω Seek up
12.1k Ω Seek down
16.8k Ω Volume up
23.6k Ω Volume down
33.6k Ω Select
48.6k Ω Mode
I think the plugin will work with the fire buttons because they madethe plugin when there was a circuit with a conection to a fire button (for the Sift button).
I need to try but I dont have yet the game port-> usb (I've just tried with a usb game pad.) I'm waiting for it and for the sony remote.
|
|
|
12-26-2004, 06:49 PM
|
#14
|
|
What can I say? I like serial.
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 2,158
|
Well, mine doesn't have events for just button up/down but I could easily add them. It just isn't as nice as the other girder plugins for the Sony remote.
|
|
|
12-26-2004, 07:03 PM
|
#15
|
|
Low Bitrate
Join Date: Dec 2004
Location: Alabama
Posts: 78
|
Why not just use the parallel port, you can have up to 8 inputs and control 8 devices at the same time...with some creative sofware you can control your windows, door locks, hell even start your car (if you wanted to)...
I built a circuit board just for this (actually was a home automation project) but the board that connects to the parallel port is the same, its all opto-isolated to protect the pc's motherboard from over-voltages. I'll have to dig around and find the backup cd with all of my pictures on it. Its really an awesome setup
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:12 AM.
| |