Results 1 to 5 of 5

Thread: FAQ - Digital Inputs

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

    FAQ - Digital Inputs

    Many people have asked about using our digital inputs. The header is as follows:


    input---5vDC - edge of board
    input---5vDC - edge of board
    input---5vDC - edge of board
    input---5vDC - edge of board

    in order for the input to work correctly, a ~1,000 (1k) ohm resistor needs to be attached between the input pin and ground point on the board. You can use the ground on the analog pin headers. This will hold the pin low until it is raised high by a switch attached across the input pin and the 5vDC pin.

  2. #2
    Maximum Bitrate Woofnstuff's Avatar
    Join Date
    Oct 2007
    Location
    Auckland
    Posts
    570
    you need to manually add the code to the xml file, but save it somewhere in a txt file or something, the MDX config software removes things it dosn't know about, so would clear this out each time you click save

    2k1Toaster posted this in another link
    You will notice that it is the exact same syntax as the other channels. Only difference is the type.
    xml:
    Code:
    <iochannel id="ChannelID" port="0" brain="MyBrain" type="digital_input"></iochannel>

  3. #3
    Newbie
    Join Date
    Jul 2007
    Posts
    39
    Which is input 1 and which is 4? (Or 0 and 3 if you prefer)

  4. #4
    Maximum Bitrate Woofnstuff's Avatar
    Join Date
    Oct 2007
    Location
    Auckland
    Posts
    570
    can someone post up a complete page of code that does for eg:
    digital input 1, triggers a key press of w.

    there is something obvious im missing i know it. and once i have a working example i"ll be able to tweak it to anything else i need. after changing the FB id code of corse
    cheers

  5. #5
    Newbie
    Join Date
    Sep 2008
    Posts
    1

    Question Still a Little Confused

    After you manually add the digital input into the xml file how do you program the input to trigger an output. I have no experience in xml programming so if anybody could walk through with me the steps I need to take to actually get the digital input to be actually useful would greatly appreciated. Thanks.

Similar Threads

  1. SDPIF digital Coax into car audio pieces
    By RedGTiVR6 in forum Car Audio
    Replies: 34
    Last Post: 10-14-2008, 12:06 AM
  2. idea for digital inputs
    By wilgartw in forum Fusion Brain
    Replies: 11
    Last Post: 03-27-2008, 04:23 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
  •