Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: light sensor, etc -> game port inputs

  1. #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…

  2. #2
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    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.
    Attached Images Attached Images  

  3. #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

  4. #4
    Registered User mpattonm's Avatar
    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?

  5. #5
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    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.

  6. #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.

  7. #7
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    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.
    Attached Images Attached Images  

  8. #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).

  9. #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).

  10. #10
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    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.

Page 1 of 2 12 LastLast

Similar Threads

  1. serial port to game port adapter wiring
    By asif in forum General Hardware Discussion
    Replies: 5
    Last Post: 08-17-2006, 04:47 PM
  2. output software program for the game or LPT port???
    By 2k1civic in forum Software & Software Development
    Replies: 43
    Last Post: 11-21-2005, 02:04 PM
  3. WIP: new skin for NMC -> Light
    By netsuo in forum NeoCar Media Center
    Replies: 28
    Last Post: 11-15-2004, 02:36 PM
  4. car audio wiring harness -> computer speaker port ??
    By nadir_s in forum General MP3Car Discussion
    Replies: 11
    Last Post: 01-07-2004, 09:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •