Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain > FB Outputs


Reply
 
Share Thread Tools Display Modes
Old 04-03-2009, 03:13 AM   #1
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
Buttons on my dash to turn on my car amplifiers

Ok, so I am using the FB at the moment to trigger outputs (relays) for my amplifiers.

I want to use a spare switch in my car's dash to do the same thing (as if I were clicking the button on the screen to turn on/off an output).

The switch in my dash seems to only complete the circuit when the button is being pressed, once I stop pushing down the button, the circuit it broken.

So I want MDX to change the output status as if the button is like a "down click vote" and not change until the next "down click vote"

Hope this makes sense.
__________________
[H]
____╔══════╗____
OOO/ATT41\OOO
╚══════╝
ATT41 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 04-03-2009, 03:29 AM   #2
Variable Bitrate
 
Join Date: Mar 2009
Location: Kristiansand, Norway
Posts: 284
Crinos is an unknown quantity at this point
Not quite sure of what you are trying to do here...

Just to clearify...
You want a hardware button, to do the same task as a software button via FusionBrain does?

If so the case, you need a button that sends a puls signal while beeing pressed. then a system that register the puls, and have a memory of on/off state, and out of that a logic that sends a solid 12V to amp if "on" and cut the signal if "off".

Now.. This might seem a bit more complicated than it realy is... There are some stores where you can buy a logic relay that can do this task for you.

How this will work togeather with FusionBrain... I have NO clue off..
Crinos is offline   Reply With Quote
Old 04-03-2009, 03:54 AM   #3
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
hmmm... not quite.

I think what I am trying to say is, I want an output to be triggered by an input.

Once the input is active (lets say 12v) the FB will trigger an output.
__________________
[H]
____╔══════╗____
OOO/ATT41\OOO
╚══════╝
ATT41 is offline   Reply With Quote
Old 04-03-2009, 04:16 AM   #4
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
OK, I think I am getting somewhere now,

using a new root function that will trigger a predefined output if a certain input is greater than 5v (I now realise you can have a input with 12v)

gotta play around with it a bit though.
__________________
[H]
____╔══════╗____
OOO/ATT41\OOO
╚══════╝
ATT41 is offline   Reply With Quote
Old 04-03-2009, 09:52 AM   #5
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
Quote: Originally Posted by ATT41 View Post
(I now realise you can have a input with 12v)

do not do this. 5v is the max.
greenman100 is offline   Reply With Quote
Old 04-03-2009, 11:01 AM   #6
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
oh ****, I meant to say can't,

but it appears I have found a way to do it. I'm going to have an input logic "if > 2v, vote amp relay on",

and I will have a second button in may dash that will do the same, except amp relay will turn off.

just need to find a 5v source somewhere tho...
__________________
[H]
____╔══════╗____
OOO/ATT41\OOO
╚══════╝
ATT41 is offline   Reply With Quote
Old 04-03-2009, 11:03 AM   #7
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
Quote: Originally Posted by ATT41 View Post
oh ****, I meant to say can't,

but it appears I have found a way to do it. I'm going to have an input logic "if > 2v, vote amp relay on",

and I will have a second button in may dash that will do the same, except amp relay will turn off.

just need to find a 5v source somewhere tho...

take it off the FB analog inputs
greenman100 is offline   Reply With Quote
Old 04-03-2009, 11:08 AM   #8
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Quote: Originally Posted by ATT41 View Post
Ok, so I am using the FB at the moment to trigger outputs (relays) for my amplifiers.

I want to use a spare switch in my car's dash to do the same thing (as if I were clicking the button on the screen to turn on/off an output).

The switch in my dash seems to only complete the circuit when the button is being pressed, once I stop pushing down the button, the circuit it broken.

So I want MDX to change the output status as if the button is like a "down click vote" and not change until the next "down click vote"

Hope this makes sense.

The virtual button in MDX acts like a momentary, or the physical button?

If you want the button to act like a latch, then have the button input increment a variable. Set the minimum time between votes to something like a second or more. Then another logic that says if the variable is 1, turn on output. Another for if variable >= 2, variable = 0. That will latch.
2k1Toaster is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 04-04-2009, 12:14 AM   #9
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
Great!

Makes sense, but I'm having trouble making MDX do that.

The first input logic will be "if amp switch is > 2v, then change variable +1"

it seem that when I punch that it, it doesn't add 1 to the variable value, it replaces it with the number 1.

Or am I doing something wrong? - I can host the config file if it helps?
Attached Images
 
__________________
[H]
____╔══════╗____
OOO/ATT41\OOO
╚══════╝
ATT41 is offline   Reply With Quote
Old 04-04-2009, 01:36 AM   #10
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
Looks like I have figured out a way to do it

For anybody else trying the same thing, this is what I am going to test with my FB (seems to work fine with the virtual brain so far).

Only problem I forsee is holding the button down too long. but I shouldn't be holding the button for longer than 1 second I suppose.
Attached Images
  
__________________
[H]
____╔══════╗____
OOO/ATT41\OOO
╚══════╝
ATT41 is offline   Reply With Quote
Old 04-04-2009, 01:40 AM   #11
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
"value = +1" means "value equals positive 1"

"value = d+1" means "value equals value plus positive 1"
2k1Toaster is offline   Reply With Quote
Old 04-04-2009, 01:48 AM   #12
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
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
╚══════╝
ATT41 is offline   Reply With Quote
Old 04-04-2009, 01:51 AM   #13
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Old 04-04-2009, 02:00 AM   #14
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
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
╚══════╝
ATT41 is offline   Reply With Quote
Old 04-06-2009, 05:46 AM   #15
Newbie
 
ATT41's Avatar
 
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
ATT41 is an unknown quantity at this point
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
╚══════╝
ATT41 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2000 Mitsubishi Verada Car PC Install MitchellO Show off your project 17 03-25-2009 01:40 AM
car alarm remote to turn on computer rsx_03 Input Devices 9 08-28-2008 12:15 PM
I ditched the 2140 & made my own SSC... loginfailed Power Supplies 16 02-03-2008 01:03 PM
Lilliput buttons light up with car lights on? dtran01 LCD/Display 21 02-26-2005 06:25 PM
how can I wire up power inverter to secondary battery, but turn on when car starts? CrazyModGSR Power Supplies 4 10-29-2004 09:10 AM



All times are GMT -5. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics