Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Buttons on my dash to turn on my car amplifiers

  1. #11
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    "value = +1" means "value equals positive 1"

    "value = d+1" means "value equals value plus positive 1"
    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. #12
    Newbie ATT41's Avatar
    Join Date
    Dec 2008
    Location
    Australia - Brisbane
    Posts
    36
    thanks for that!

    I ended up just replacing the numbers with 1 or 0, rather than adding and then changing the variable.

    do you seem some flaw in the way I have done it?
    [H]
    ____╔══════╗____
    OOO/ATT41\OOO
    ╚══════╝

  3. #13
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by ATT41 View Post
    thanks for that!

    I ended up just replacing the numbers with 1 or 0, rather than adding and then changing the variable.

    do you seem some flaw in the way I have done it?
    nope that works fine as long as it stays synchronized which it should unless it glitches from what I can see.
    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

  4. #14
    Newbie ATT41's Avatar
    Join Date
    Dec 2008
    Location
    Australia - Brisbane
    Posts
    36
    well I'll see how it goes with the real thing, I just hope it doesn't miss a "then" statement.
    [H]
    ____╔══════╗____
    OOO/ATT41\OOO
    ╚══════╝

  5. #15
    Newbie ATT41's Avatar
    Join Date
    Dec 2008
    Location
    Australia - Brisbane
    Posts
    36
    So I have been testing it for a little while. Does seem to open the relay on every click, seems to not register some times. I may have my vote timings incorrectly. I noticed you can change the vote timing for the whole file, or you can change the timing for each logic. Any timers I should have specifically?

    seems the variable is always correct, and always changes. Sometimes the output isn't triggered through.
    [H]
    ____╔══════╗____
    OOO/ATT41\OOO
    ╚══════╝

  6. #16
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    How are you determining the variable is always correct? Are you using the variable debug window?

    The minimum vote time for each should be set low in your case since you are doing absolute values not increments.

    The main timer is how long before each output evaluates what to do. If you press the button twice before the main timer evaluates, your votes cancel eachother out, and no difference will happen.
    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. #17
    Newbie ATT41's Avatar
    Join Date
    Dec 2008
    Location
    Australia - Brisbane
    Posts
    36
    I'm showing a display showing the value of the variable.

    I've tried both ways, using increments and changing the value from -1 to +1. both ways always change the variable, but sometimes don't trigger the output.

    If I just leave the button pressed in (constant input is "on") the variable changes ever second, but every 3rd or 4th second, the output doesn't trigger. Changes each time, it isn't constant. Would it help if I sent you a copy of my config file?
    [H]
    ____╔══════╗____
    OOO/ATT41\OOO
    ╚══════╝

  8. #18
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    IO isnt continuous. When you press it, it triggers and registers the vote. The output averages the votes to determine what to do.

    If you are holding it down, you are essentially sending a random number of votes. Every so many milliseconds as said by the io timer, it then evaluates all the accumulated votes. Since you are sending off/on votes, it will be completely random on whether or not there are more on, or more off, or an equal amount (no change).

    So you are probably seeing the output change but it is more than likely random to what it changes or not changes to.
    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. #19
    Newbie ATT41's Avatar
    Join Date
    Dec 2008
    Location
    Australia - Brisbane
    Posts
    36
    OK, I am up to the stage of installing the the button in my dash, that will control the on/off for my amplifiers.

    I have 4 buttons on my dash:

    Button 1: Turn off 4 Ch amp
    Button 2: Turn off Mono amp
    Button 3: Turn on both amps
    Button 4: Turn off both amps

    This should work fine for me, the single button for on/off just wasn't working out.

    I need to know how to wire the FB to understand the button has been pressed. When, for example, Button 1 is pressed, it will complete the circuit for input #0 which should show in MDX the voltage being 5v, but this only requires 2 wires, but there are 3 on the board. Am I missing something?

    Note: I am using Ver3 FB but it looks like Ver4 has 3 pins as well.
    [H]
    ____╔══════╗____
    OOO/ATT41\OOO
    ╚══════╝

Page 2 of 2 FirstFirst 12

Similar Threads

  1. 2000 Mitsubishi Verada Car PC Install
    By MitchellO in forum Show off your project
    Replies: 18
    Last Post: 01-08-2010, 06:09 AM
  2. car alarm remote to turn on computer
    By rsx_03 in forum Input Devices
    Replies: 9
    Last Post: 08-28-2008, 11:15 AM
  3. I ditched the 2140 & made my own SSC...
    By loginfailed in forum Power Supplies
    Replies: 16
    Last Post: 02-03-2008, 12:03 PM
  4. Lilliput buttons light up with car lights on?
    By dtran01 in forum LCD/Display
    Replies: 21
    Last Post: 02-26-2005, 05:25 PM
  5. Replies: 4
    Last Post: 10-29-2004, 08:10 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
  •