Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 50

Thread: HOw to hook up an input to the FB

  1. #21
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    First I would change that instance id to the correct one and see if the Brain picks anything up. If it does, then no need for further multi-metering... (is that a word?!)
    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

  2. #22
    Low Bitrate bigbuffs's Avatar
    Join Date
    Nov 2007
    Posts
    109
    First of all I just want to say thank you guys for helping me with this, I'm kind of an idiot some times with this stuff.

    I think theres probably some simple thing that I'm doing wrong here. I put the coding in the xml file that I created using the FCC configurator program. I changed the "mainbrain" to "Grand Prix Brain" like you said. Then I slected the xml file and right clicked it and selected open with, then I manually chose the uber mdx program but when I opened it only the one window opens and again the window is blank.

    When I installed the program two shortcuts were on my desktop. One was the uber mdx with the logo and the other was the configurator. Again when I open the uber mdx shortcut three windows appear. One is the blank or clear uber mdx where only the title bar displays, the second is a window that has a picture of the fusion brain and it is called fusion brain mainbrain. This window also has a list of all the analog inputs and outputs and the value of each. The third window is a small debugging window that lists like 7-8 different things and then some number after them.

    I still get readings from the SWC wire. They are as
    NO BUTTONS PRESSED 0
    SEEK UP 2.92
    SEEK DO 2.32
    PRESET 0.88
    AM/FM 1.65
    VOL UP 4.74
    VOL DOW 4.30
    PLAY 3.87
    MUTE 3.41

    Again thanks for the help guys I'm just not sure how to run this stuff.
    [||||||----] - 60% Complete

  3. #23
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    Quote Originally Posted by bigbuffs View Post
    First of all I just want to say thank you guys for helping me with this, I'm kind of an idiot some times with this stuff.

    I think theres probably some simple thing that I'm doing wrong here. I put the coding in the xml file that I created using the FCC configurator program. I changed the "mainbrain" to "Grand Prix Brain" like you said. Then I slected the xml file and right clicked it and selected open with, then I manually chose the uber mdx program but when I opened it only the one window opens and again the window is blank.

    When I installed the program two shortcuts were on my desktop. One was the uber mdx with the logo and the other was the configurator. Again when I open the uber mdx shortcut three windows appear. One is the blank or clear uber mdx where only the title bar displays, the second is a window that has a picture of the fusion brain and it is called fusion brain mainbrain. This window also has a list of all the analog inputs and outputs and the value of each. The third window is a small debugging window that lists like 7-8 different things and then some number after them.

    I still get readings from the SWC wire. They are as
    NO BUTTONS PRESSED 0
    SEEK UP 2.92
    SEEK DO 2.32
    PRESET 0.88
    AM/FM 1.65
    VOL UP 4.74
    VOL DOW 4.30
    PLAY 3.87
    MUTE 3.41

    Again thanks for the help guys I'm just not sure how to run this stuff.
    did you get those numbers with the multiumeter? What numbers come up in the debug screen? Can you take a screenshot?

  4. #24
    Low Bitrate bigbuffs's Avatar
    Join Date
    Nov 2007
    Posts
    109
    ya those are the numbers from my multimeter, for some reason the debug screen is not showing up anymore. I changed my xml file so that it had some buttons to display but it still shows a blank screen. And actually both the main brain screen and the debug screen stopped showing up. so I added the debug code that 2k1 gave me and that brought back the mainbrain screen but not the debug screen.
    [||||||----] - 60% Complete

  5. #25
    Low Bitrate bigbuffs's Avatar
    Join Date
    Nov 2007
    Posts
    109
    Alright, so with a lot of monkeying I figured out the display driver on my computer sucked so I got an updated one and now I can get graphics to show up. I was also able to run the debug and get some readings from the screen. For some reason the readings stopped after I monkeyed with the xml file some more. Here is the code I used

    <?xml version="1.0" encoding="utf-8" ?>
    - <FusionControlCentreConfiguration version="3.0.0.0" author="Me" date_created="Friday, June 13, 2008 at 11:12:49 PM" last_modified="Friday, June 13, 2008 at 11:52:56 PM">
    - <require>
    - <!-- Begin Function Instances
    -->
    - <!-- End Function Instances
    -->
    - <!-- Begin Fusion Font Instances
    -->
    - <!-- End Fusion Font Instances
    -->
    </require>
    - <general>
    - <debug status="on">
    <virtual_brain id="mainbrain" />
    </debug>
    </general>
    - <graphics>
    - <!-- Begin Global Graphic Settings
    -->
    <main_display designed_for_size="800,600" show_at_size="800,600" menubar="Sizeable" RunInSystemTray="False" MinimizeToSystemTray="True" />
    - <!-- End Global Graphic Settings
    -->
    - <!-- Begin Background Images
    -->
    <background_image style="centre" imagefilepath="content\images\background_images\gr adient_01.png" page="0" />
    - <!-- End Background Images
    -->
    - <!-- Begin Static Images
    -->
    - <!-- End Static Images
    -->
    - <!-- Begin Variable Location Images
    -->
    - <!-- End Variable Location Images
    -->
    - <!-- Begin Graph Instances
    -->
    - <!-- End Graph Instances
    -->
    - <!-- Begin Display Buttons
    -->
    - <!-- End Display Buttons
    -->
    - <!-- Begin Multi Images
    -->
    - <!-- End Display Buttons
    -->
    - <!-- Begin Text Labels
    -->
    - <!-- End Text Labels
    -->
    </graphics>
    - <io>
    - <!-- Begin Fusion Brain Instances
    -->
    <brain id="mainbrain">usb\vid_04d8&pid_000c\6&3ab92d65&0& 4</brain>
    - <!-- End Fusion Brain Instances
    -->
    - <!-- Begin Timer Setup
    -->
    <timer id="input" interval="75" />
    <timer id="output" interval="100" />
    <timer id="gui" interval="50" />
    <timer id="logic" interval="50" />
    - <!-- End Timer Setup
    -->
    - <!-- Begin Digital Output Instances
    -->
    - <!-- End Digital Output Instances
    -->
    - <!-- Begin Analogue Input Instances
    -->
    - <iochannel id="SWC" port="9" brain="mainbrain" type="analogue_input">
    <options history="100" auto_average="false" />
    </iochannel>
    - <!-- End Analogue Input Instances
    -->
    </io>
    - <logic>
    - <!-- Begin Logging Setup
    -->
    <all_logging />
    - <!-- End Logging Setup
    -->
    - <!-- Begin Variable Declarations
    -->
    <all_variables />
    - <!-- End Variable Declarations
    -->
    - <!-- Begin Logic Declarations
    -->
    - <all_statements>
    - <if fire_on="logic" minimum_delta_vote_time="100">
    - <boolean_operation type="equal to">
    - <parameter1>
    <analogue id="SWC" time="0" />
    </parameter1>
    - <parameter2>
    <number>4.5</number>
    </parameter2>
    </boolean_operation>
    - <then>
    <do function="Send Key" functionTargetID="" vote_opinion="E" vote_priority="Medium" />
    </then>
    </if>
    </all_statements>
    - <!-- End Logic Declarations
    -->
    </logic>
    </FusionControlCentreConfiguration>

    Port 9 seems to be the correct port as I did have it set to 8 and the readings were very small, but they come through strong on 9. Now I just need to get them to translate to key presses. I'm not sure if I'm using the configurer correctly but I tried to follow 2k1's example here
    [||||||----] - 60% Complete

  6. #26
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Check the brain id. I see a space between the & and the 4 at the end.

    Also just looking at your code, nothing is going to happen when you press your button. It has no where to send the key stroke. You want to send "E" but where? You need to tell it the title and/or class name of the window that will use the E key.
    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

  7. #27
    Low Bitrate bigbuffs's Avatar
    Join Date
    Nov 2007
    Posts
    109
    OK I'll check on it tomorrow, is there a way to get it to send the keypress to all programs just like a keyboard would or do I have to specify a program.
    [||||||----] - 60% Complete

  8. #28
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    You need to specify a program.
    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

  9. #29
    Low Bitrate bigbuffs's Avatar
    Join Date
    Nov 2007
    Posts
    109
    I'm getting everything workin much better but I cant get mdx to send keystrokes. Here is the code I'm using

    <?xml version="1.0" encoding="utf-8" ?>
    - <FusionControlCentreConfiguration version="3.0.0.0" author="Me" date_created="Saturday, June 14, 2008 at 1:28:05 PM" last_modified="Saturday, June 14, 2008 at 2:02:13 PM">
    - <require>
    - <!-- Begin Function Instances
    -->
    - <!-- End Function Instances
    -->
    - <!-- Begin Fusion Font Instances
    -->
    - <!-- End Fusion Font Instances
    -->
    </require>
    - <general>
    - <debug status="on">
    <virtual_brain id="mainbrain" />
    </debug>
    </general>
    - <graphics>
    - <!-- Begin Global Graphic Settings
    -->
    <main_display designed_for_size="800,600" show_at_size="800,600" menubar="Sizeable" RunInSystemTray="False" MinimizeToSystemTray="True" />
    - <!-- End Global Graphic Settings
    -->
    - <!-- Begin Background Images
    -->
    <background_image style="centre" imagefilepath="content\images\background_images\gr adient_01.png" page="0" />
    - <!-- End Background Images
    -->
    - <!-- Begin Static Images
    -->
    - <!-- End Static Images
    -->
    - <!-- Begin Variable Location Images
    -->
    - <!-- End Variable Location Images
    -->
    - <!-- Begin Graph Instances
    -->
    - <!-- End Graph Instances
    -->
    - <!-- Begin Display Buttons
    -->
    - <!-- End Display Buttons
    -->
    - <!-- Begin Multi Images
    -->
    - <!-- End Display Buttons
    -->
    - <!-- Begin Text Labels
    -->
    - <!-- End Text Labels
    -->
    </graphics>
    - <io>
    - <!-- Begin Fusion Brain Instances
    -->
    <brain id="mainbrain">usb\vid_04d8&pid_000c\6&3ab92d65&0& 4</brain>
    - <!-- End Fusion Brain Instances
    -->
    - <!-- Begin Timer Setup
    -->
    <timer id="input" interval="75" />
    <timer id="output" interval="100" />
    <timer id="gui" interval="50" />
    <timer id="logic" interval="50" />
    - <!-- End Timer Setup
    -->
    - <!-- Begin Digital Output Instances
    -->
    - <!-- End Digital Output Instances
    -->
    - <!-- Begin Analogue Input Instances
    -->
    - <iochannel id="swc" port="9" brain="mainbrain" type="analogue_input">
    <options history="0" auto_average="false" />
    </iochannel>
    - <!-- End Analogue Input Instances
    -->
    </io>
    - <logic>
    - <!-- Begin Logging Setup
    -->
    <all_logging />
    - <!-- End Logging Setup
    -->
    - <!-- Begin Variable Declarations
    -->
    <all_variables />
    - <!-- End Variable Declarations
    -->
    - <!-- Begin Logic Declarations
    -->
    - <all_statements>
    - <if fire_on="logic" minimum_delta_vote_time="100">
    - <boolean_operation type="equal to">
    - <parameter1>
    <number>4.6</number>
    </parameter1>
    - <parameter2>
    <analogue id="swc" time="0" />
    </parameter2>
    </boolean_operation>
    - <then>
    <do function="Send Key" functionTargetID="MediaMonkey:TFMainWindow" vote_opinion="N" vote_priority="Medium" />
    </then>
    </if>
    - <if fire_on="logic" minimum_delta_vote_time="100">
    - <boolean_operation type="equal to">
    - <parameter1>
    <analogue id="swc" time="0" />
    </parameter1>
    - <parameter2>
    <number>4.7</number>
    </parameter2>
    </boolean_operation>
    - <then>
    <do function="Send Key" functionTargetID="MediaMonkey:TFMainWindow" vote_opinion="n" vote_priority="Medium" />
    </then>
    </if>
    - <if fire_on="logic" minimum_delta_vote_time="100">
    - <boolean_operation type="equal to">
    - <parameter1>
    <number>4.5</number>
    </parameter1>
    - <parameter2>
    <analogue id="swc" time="0" />
    </parameter2>
    </boolean_operation>
    - <then>
    <do function="Send Key" functionTargetID="MediaMonkey:TFMainWindow" vote_opinion="N" vote_priority="Medium" />
    </then>
    </if>
    - <if fire_on="logic" minimum_delta_vote_time="100">
    - <boolean_operation type="equal to">
    - <parameter1>
    <number>4.8</number>
    </parameter1>
    - <parameter2>
    <analogue id="swc" time="0" />
    </parameter2>
    </boolean_operation>
    - <then>
    <do function="Send Key" functionTargetID="MediaMonkey:TFMainWindow" vote_opinion="N" vote_priority="Medium" />
    </then>
    </if>
    </all_statements>
    - <!-- End Logic Declarations
    -->
    </logic>
    </FusionControlCentreConfiguration>

    I'm trying to get it to send and N in media monkey which will make it play the next track. Here is the readings that I'm getting from each button press

    SEEK UP 2.8
    SEEK DO 2.2
    PRESET 0.85
    AM/FM 1.6
    VOL UP 4.5
    VOL DOW 4.1
    PLAY 3.75
    MUTE 3.75

    I just rounded them off. And they do fluctuate a bit but I want mdx to send a certain key everytime each button is pressed.
    [||||||----] - 60% Complete

  10. #30
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    You have "equal to" in your logic. So it will only work when it is equal to 4.5 or equal to 4.8. So if it is 4.800000000001 it is not equal to, and will not work.

    Sot sure where you even got 4.5 or 4.8 since you said PLAY is 3.75, it doesnt make any sense, and of course will not send anything.

    It should be 1 block statement of "if swc > 3.6 and swc < 3.9 then send N to the mediamonkey program".
    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

Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Pioneer AUX input problem
    By grunar in forum General Hardware Discussion
    Replies: 9
    Last Post: 12-02-2008, 02:43 AM
  2. Replies: 10
    Last Post: 06-07-2006, 09:13 AM
  3. Problems with XM input thru any front end
    By CyberLogic in forum Software & Software Development
    Replies: 10
    Last Post: 05-07-2006, 01:49 PM
  4. 8" touchscreen Lcd input question?
    By kitt350 in forum LCD/Display
    Replies: 0
    Last Post: 04-02-2006, 03:10 PM
  5. can I use an amplifier for rca input??
    By sheriff in forum General Hardware Discussion
    Replies: 1
    Last Post: 03-23-2001, 08:03 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
  •