Page 12 of 13 FirstFirst ... 2345678910111213 LastLast
Results 111 to 120 of 124

Thread: Interest check: Camry/Scion Steering Wheel Control -> USB

  1. #111
    Constant Bitrate
    Join Date
    Dec 2008
    Posts
    186
    Quote Originally Posted by no2chem View Post
    but after looking at the AT90USB162, it looks like you have to install drivers and stuff to run DFU, which is hardly what I want. HID is nice in that you can use usermode drivers and such, not only that, it doesn't have an ADC, which is unfortunate, because many projects could use USB/ADC with USB full speed bandwidth (think a usb oscilloscope...). The lack of ADC also makes it impossible to use for this project without an additional ADC... which... just adds to the complexity, imo.
    Just to follow up on the suggestion to use a Teensy USB Development Board.
    In the meantime they have now made a Teensy++ USB Development Board which use an AT90USB646 with 8 ADC inputs: http://www.pjrc.com/teensy
    The price is $24.
    Would just be a matter of manually mount one or two leaded pull-up resistors from Vcc to the ADC ports and then mount 2-3 wires to the steering wheel control buttons. If moving to another car, a leaded resistor will also be easy to replace with another value for anyone who knows how to use a solder iron.







    Code:
    Specification    Teensy      Teensy++
    Processor        AT90USB162  AT90USB646
    Flash Memory       15872       64512
    RAM Memory           512        4096
    EEPROM               512        2048
    I/O                   21          46
    Analog In              0           8
    PWM                    4           9
    UART                   1           1
    I2C                    0           1
    Price                $19         $24

  2. #112
    Newbie
    Join Date
    Mar 2006
    Posts
    5
    Here is my code for running a Toyota with an Arduino
    http://www.arduino.cc

    Code:
    //calibrated voltage ranges for FJ cruiser with 3.3K ohm resistor inline
    //used +/- 20 steps to account for voltage fluctuations
    #define MODEMIN     0
    #define MODEMAX    20
    #define VOLDNMIN  475
    #define VOLDNMAX  515
    #define VOLUPMIN  215
    #define VOLUPMAX  255
    #define SEEKDNMIN  70
    #define SEEKDNMAX 110
    #define SEEKUPMIN   0
    #define SEEKUPMAX  20
    
    //use this same enum in software to read key values back out
    #define KEY_NONE    0
    #define KEY_MODE    1
    #define KEY_VOLDN   2
    #define KEY_VOLUP   4
    #define KEY_SEEKDN  8
    #define KEY_SEEKUP 16
    #define KEY_ALL    31
    
    int inputMode = 0; //analog inputs on physical board for mode button
    int inputVolSeek = 1; //combined inputs for volume and seek buttons
    
    int mode = 0;
    int volseek = 0;
    int lastkeycode = KEY_NONE;
    int keycode = KEY_NONE;
    
    void setup()
    {
      Serial.begin(57600); // initialize serial communication with computer
    }
    
    void loop()
    {
      mode = analogRead(inputMode); // read from the sensor
      volseek = analogRead(inputVolSeek);
      
      keycode = KEY_NONE; //reset keycode to nothing
    
      //binary OR any values found into single keycode output
      if (mode >= MODEMIN && mode <= MODEMAX) {
        keycode |= KEY_MODE;
      }
      if (volseek >= VOLDNMIN && volseek <= VOLDNMAX) {
        keycode |= KEY_VOLDN;
      }
      if (volseek >= VOLUPMIN && volseek <= VOLUPMAX) {
        keycode |= KEY_VOLUP;
      }
      if (volseek >= SEEKDNMIN && volseek <= SEEKDNMAX) {
        keycode |= KEY_SEEKDN;
      }
      if (volseek >= SEEKUPMIN && volseek <= SEEKUPMAX) {
        keycode |= KEY_SEEKUP;
      }
      
      //reduce amount of traffic, and keep events to a minimum
      if (keycode != lastkeycode) {
        Serial.println(keycode);
      }
      
      lastkeycode = keycode;
    }

  3. #113
    Constant Bitrate
    Join Date
    Jun 2006
    Posts
    188
    I built a voltage comparator for mine and interfaced it to a usb joystick. Works a treat!

  4. #114
    Variable Bitrate
    Join Date
    Jan 2006
    Posts
    345
    Blues: Hmmm the Teensy USB development board is a neat idea. I might tinker with one of those some time. I've grown accustomed to the idea of not being able to use my steering wheel controls but I'd still like to be able to use them

    So it that all that is required to run it? The board and some pull-up resistors?

  5. #115
    Constant Bitrate
    Join Date
    Dec 2008
    Posts
    186
    Quote Originally Posted by MeeM View Post
    So it that all that is required to run it? The board and some pull-up resistors?
    That's all the hardware you need yes. But of course you also need to program the microcontroller too.

  6. #116
    Variable Bitrate
    Join Date
    Mar 2006
    Posts
    351
    Blog Entries
    1
    I used an Arduino ATmega168 to decode my steering wheels inputs too. However it communicates through a serial port and not HID. I really want a HID interface and want it today so I purchased a "CarPC JoyCon" on ebay. I'll let ya know how that works out.





    $32+$5 shipping.
    http://cgi.ebay.com/ws/eBayISAPI.dll...m=220408430316

    This thread has been very informal read.

  7. #117
    Newbie
    Join Date
    Mar 2006
    Posts
    5
    Quote Originally Posted by BlackStealth View Post
    This thread has been very informal read.
    Me too, I read it in my underwear

  8. #118
    Constant Bitrate
    Join Date
    Dec 2008
    Posts
    186
    Quote Originally Posted by BlackStealth View Post
    I really want a HID interface and want it today so I purchased a "CarPC JoyCon" on ebay. I'll let ya know how that works out.
    CarPC JoyCon website: http://www.rcjoycon.com/base_3//menu...om_board_idx=9

  9. #119
    Low Bitrate sk8rjess's Avatar
    Join Date
    Nov 2007
    Posts
    92
    woooow. the famous no2chem right here glad to have you aboard(even if thread has been around for a while)
    they call me hack
    Independence Auto Tech
    http://ctxdesigns.com - web design :)
    "Let us search out and examine out ways, and turn back to the Lord; Let us lift our hearts and hands to God in heaven." - lamentations 3:40-41

  10. #120
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    so is there an ETA for a finished purchasable item?

Similar Threads

  1. StreetDeck Steering Wheel Control
    By Tokir in forum Newbie
    Replies: 0
    Last Post: 06-26-2007, 05:15 PM
  2. Replies: 6
    Last Post: 04-11-2005, 05:46 AM
  3. FS: FS: wireless G router and USB steering wheel
    By carabuser in forum Classified Archive
    Replies: 5
    Last Post: 10-10-2004, 05:25 PM
  4. Wireless control for steering wheel
    By DodgeCummins in forum General MP3Car Discussion
    Replies: 1
    Last Post: 02-15-2002, 01:14 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
  •