Page 4 of 5 FirstFirst 12345 LastLast
Results 31 to 40 of 41

Thread: Connecting resistive "steering wheel media buttons"

  1. #31
    Newbie
    Join Date
    Dec 2007
    Location
    Victoria, Australia
    Posts
    21

    Question

    Does this look right?
    Have I missed something, as its not working?
    thanks again

    Code:
    	<io>
    		<brain id="MainBrain">USB\VID_04D8&amp;PID_000C\5&amp;1507E3A6&amp;0&amp;1</brain>
    
                             <timer id="logic" interval="65"></timer>
    		<timer id="gui" interval="30"></timer>
    		<timer id="output" interval="100"></timer>
    		<timer id="input" interval="50"></timer>
    
        <iochannel id="SteeringWheel_Sence" port="1" brain="MainBrain" type="analogue_input">
          <options history="100" auto_average="false"></options>
        </iochannel>
    	</io>
    	<logic>
    		<all_variables>
    		</all_variables>
        
        <all_logging>
        </all_logging>
    
        <all_statements>
        
          <!-- **   Button UP   ** -->    
              <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>.1</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>.5</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="centrafuse" vote_opinion="CTRL::F" vote_priority="medium"></do>
            </then>
          </if>
          <!-- **   Button DOWN   ** -->    
              <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>.6</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>2.9</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="centrafuse" vote_opinion="CTRL::B" vote_priority="medium"></do>
            </then>
          </if>
                <!-- **   Button MODE   ** -->    
              <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>3.0</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>3.5</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="centrafuse" vote_opinion="F8" vote_priority="medium"></do>
            </then>
          </if>
                <!-- **   Button VOLUME UP   ** -->    
              <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>3.6</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>4.2</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="centrafuse" vote_opinion="F10" vote_priority="medium"></do>
            </then>
          </if>
                <!-- **   Button VOLUME DOWN   ** -->    
              <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>4.3</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="SteeringWheel_Sence" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>4.6</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="centrafuse" vote_opinion="F9" vote_priority="medium"></do>
            </then>
          </if>
        </all_statements>
    	</logic>

  2. #32
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,052
    1) Centrafuse's window could be wrong
    2) You are sending "ctrl" and then "f" , on a button press, not CTRL and F at the same time. Currently CTRL and another key at the same time doesnt work. Simple 1 key commands are best.

    And to find Centrafuse's Window or class, a program like Spy++ is helpful. Or a quick PM to David would be good.

    I dont have Centrafuse or StreetDeck, so I cannot help with that part.

    But other than that, everything looks good.

    If you try with title of "winamp" (and of course have winamp running" the keypresses should work.

    And the only titles that work with 1 liners is "winamp" for Winamp, and then "wmp" and "windows media player" for windows media player.

    Otherwise it is "title:class" or if there is a subclass/subwindow it is "title:class:subtitle:subclass". THey dont all have to be equal, but if you only have the title, then you have to put "title:" (notice the colon after it), and it will disregard the class. But if it cannot find the window based off of that title, then it will error out of the command, and just do nothing. Make sense?
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #33
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221

  4. #34
    CwF
    CwF is offline
    Newbie
    Join Date
    Jun 2008
    Location
    Denver(ish)
    Posts
    30
    I've read thru it all and think I might be missing something. Where do we tale into account the varied vehicle voltage? would not the voltage the FB reads need to be a small range to trigger and not a specific voltage? Normal range for my truck running can drop from a no load 14+ to high 12. Off could be 12.8-12.0, lower under auxiliary batteries.
    wondering...
    06 Silverado LBZ wants onboard everything...

  5. #35
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    you'd need to install a voltage regulator or a vehicle voltage sensing circuit that changed the setpoints in the MDX logic

  6. #36
    Variable Bitrate
    Join Date
    Dec 2005
    Location
    Raleigh, NC
    Posts
    325
    Here's the diagram for my steering wheel (steering wheel in upper left corner):


    I'm a mechanical engineer and I'm a little rusty on my e-sci. Would I end up needing to hook power to the steering wheel control (A3 GRN/Red - remote) and then hook (A14 brown - steering wheel ground) to the FB? The pins for A3 and A14 are in the harness and the rest of the stuff is the stock stereo which is coming out. I could get 5v from the power supply in the computer but I'd prefer to stick with not having to do that if I can get away with it.
    Nick - 08 GG Element
    Custom 3D-CAD Design, Reverse Engineering and Fabrication

  7. #37
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    you'll want to disconnect A3 and A14, then follow the instructions for 2-wire controls in the documentation section of this forum.

  8. #38
    Variable Bitrate
    Join Date
    Dec 2005
    Location
    Raleigh, NC
    Posts
    325
    Thanks greenman. I looked at the tutorials and since it's not powered I think I'll need to measure the maximum resistance and then use solution D. I guess the next step is to buy one and play around with it.
    Nick - 08 GG Element
    Custom 3D-CAD Design, Reverse Engineering and Fabrication

  9. #39
    Variable Bitrate
    Join Date
    Dec 2005
    Location
    Raleigh, NC
    Posts
    325
    So if I understand things correctly here is what I think I need to do:

    1. Measure maximum resistance from steering wheel (have 4 buttons so need to test them)
    2. Buy a resistor of similar value
    3. Connect ground from steering wheel to ground on FB
    4. Connect signal from steering wheel to input on FB
    5. Use the resistor I bought and jump from the +5v to the input on the FB (also connected to steering wheel output).


    Then hook it up as follows:


    Does this sound correct?
    Nick - 08 GG Element
    Custom 3D-CAD Design, Reverse Engineering and Fabrication

  10. #40
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    yup.

Page 4 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Indexing music in 1.0.9.8 Failed
    By hovalistic in forum StreetDeck
    Replies: 0
    Last Post: 07-07-2007, 11:19 AM
  2. Software Review: Windows XP Media Center 2005 Edition!
    By nFiniteTuning in forum The Review Palace
    Replies: 180
    Last Post: 05-01-2007, 11:54 AM
  3. Windows Vista W/nView!
    By 97GST in forum Operating System Optimization
    Replies: 8
    Last Post: 04-01-2006, 08:46 PM
  4. Beyond Media out tomorrow!!!
    By Defiler in forum Software & Software Development
    Replies: 27
    Last Post: 12-04-2004, 01:27 AM
  5. neocar media center EN version, here it is :)
    By netsuo in forum NeoCar Media Center
    Replies: 34
    Last Post: 10-04-2004, 12:36 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
  •