Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: National Instruments DIO 24 Digital IO card to utilize steering wheel control

  1. #11
    Maximum Bitrate JimmyFitz's Avatar
    Join Date
    Nov 2005
    Location
    Austin, Texas
    Posts
    735
    Quote Originally Posted by jasonsjwou View Post
    Can I use 1N4004 (?) diode? I got dozens of these lying around. About 10 years ago, I was into building DIY HIFI amplifiers... Don't remember too much anymore, but I DO REMEMBER what it means to "PLUG and PREY".

    Oh BTW Can I use LED here? no wait that wouldn't work. LED will never turn on... Right?
    1N4004 is fine. Don't use an LED. The diode is to clamp the induced voltage caused by turning off the relay. An LED probably wouldn't survive the surge. Then the transistor would get taken out too.

    Are you using the standard NI drivers with this? How does your software read/write to the card?
    ~Jimmy

  2. #12
    Low Bitrate jasonsjwou's Avatar
    Join Date
    Sep 2006
    Location
    KOREA,USA,AUSTRALIA
    Posts
    104
    I used the NIDAQ legacy driver before. All you have to do is include the library file in the VB project setup, and you can call the DIO card specific functions.

    First, on the InitDiag routine, I setup Inputs and Outputs. What channels are used as inputs and outputs.

    Then I used a OnTimer to periodically monitor any activity on the input channels. There is a NIDAQ function that periodically returns an array (Index is CH number) with 0's and 1's. I call this timer every 20ms or so, so the response appears to be instantaneous. If none of the channels are being triggered, this array contains something like

    0000000000000000000.

    IF the array is

    0001000111000000000

    Then CH4,8,9,10 are trigerred. Then there is 20 or so IF-THEN statements that calls some other function that does something else.

    On Output side, there is a function that's like CHANNEL(CH,STATUS).... if I call CHANNEL(21,1) then it turns on the channel 21.

    It's pretty simple. I am not a computer programmer, and it took me a day to write a complete application. Jimmy you sound like you are an electrical engineer, it'll take less than 2 hours for you to figure it out.

    Thanks for the circuit info. Really appreciate it.








    There is one MAJOR problem though. The ISA version's driver does not support WinXP. It works with NT, 2000 and below, but not with WinXP.

  3. #13
    Maximum Bitrate JimmyFitz's Avatar
    Join Date
    Nov 2005
    Location
    Austin, Texas
    Posts
    735
    Thanks, Jason. I have one of those cards in my drawer. I just may have to see what I can do with it.
    ~Jimmy

  4. #14
    Constant Bitrate pate60's Avatar
    Join Date
    Jun 2004
    Location
    Auckland, New Zealand.
    Posts
    210
    so?

  5. #15
    Constant Bitrate
    Join Date
    Jun 2006
    Posts
    126
    How is this project going? Also could that circuit that you guys posted work with other usb controller boards too? Such as the IO-Warrior and Phidgets?

  6. #16
    Low Bitrate jasonsjwou's Avatar
    Join Date
    Sep 2006
    Location
    KOREA,USA,AUSTRALIA
    Posts
    104
    IF those USB controller provides logic level output (something like 5V 2mA which is nowhere enough to pull a relay) then you MUST use this circuit to pull the relay.

    I've wired up one channel on a breadboard and it's working fine.

  7. #17
    Constant Bitrate
    Join Date
    Jun 2006
    Posts
    126
    ok so this will be able to drive any other usb controller? i.e. IO-Warrior, Phidgets, etc...

  8. #18
    Low Bitrate jasonsjwou's Avatar
    Join Date
    Sep 2006
    Location
    KOREA,USA,AUSTRALIA
    Posts
    104
    Yes, it should be able to drive any USB controller whose output is only a very low power logic-level output.

  9. #19
    Maximum Bitrate JimmyFitz's Avatar
    Join Date
    Nov 2005
    Location
    Austin, Texas
    Posts
    735
    That circuit will work off any positive output of a couple of volts or more. It will work with parallel port lines also.
    ~Jimmy

  10. #20
    Constant Bitrate
    Join Date
    Jun 2006
    Posts
    126
    Ok, I know you guys have said that it works with everything that outputs a few volts etc... but just to make sure before I order it can it work with IO-Warrior?
    http://codemercs.com/E_index.html
    I just want to make sure before I waste 50 bucks. Thanks

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 77
    Last Post: 12-23-2008, 07:29 AM
  2. Steering wheel control and durability
    By bimmerpc in forum General Hardware Discussion
    Replies: 4
    Last Post: 11-01-2005, 02:01 PM
  3. Acura steering wheel volume control implementation
    By jayearl in forum Input Devices
    Replies: 10
    Last Post: 09-16-2005, 03:30 PM
  4. Using steering wheel controls to control mini mac?
    By brandondente in forum MacCar
    Replies: 7
    Last Post: 05-12-2005, 09:50 AM
  5. GM Steering wheel control interface
    By S7347H in forum Input Devices
    Replies: 1
    Last Post: 04-14-2005, 01:17 AM

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
  •