|
 |
|
04-03-2009, 03:13 AM
|
#1
|
|
Newbie
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
|
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
╚══════╝
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
04-03-2009, 03:29 AM
|
#2
|
|
Variable Bitrate
Join Date: Mar 2009
Location: Kristiansand, Norway
Posts: 284
|
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..
|
|
|
04-03-2009, 03:54 AM
|
#3
|
|
Newbie
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
|
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
╚══════╝
|
|
|
04-03-2009, 04:16 AM
|
#4
|
|
Newbie
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
|
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
╚══════╝
|
|
|
04-03-2009, 09:52 AM
|
#5
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 2,197
|
Quote: Originally Posted by ATT41 
(I now realise you can have a input with 12v)
do not do this. 5v is the max.
|
|
|
04-03-2009, 11:01 AM
|
#6
|
|
Newbie
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
|
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
╚══════╝
|
|
|
04-03-2009, 11:03 AM
|
#7
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 2,197
|
Quote: Originally Posted by ATT41 
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
|
|
|
04-03-2009, 11:08 AM
|
#8
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Quote: Originally Posted by ATT41 
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.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
04-04-2009, 12:14 AM
|
#9
|
|
Newbie
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
|
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?
__________________
[H]
____╔══════╗____
OOO/║ ATT41 ║\OOO
╚══════╝
|
|
|
04-04-2009, 01:36 AM
|
#10
|
|
Newbie
Join Date: Dec 2008
Location: Australia - Brisbane
Posts: 36
|
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.
__________________
[H]
____╔══════╗____
OOO/║ ATT41 ║\OOO
╚══════╝
|
|
|
04-04-2009, 01:40 AM
|
#11
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
"value = +1" means "value equals positive 1"
"value = d+1" means "value equals value plus positive 1"
|
|
|
04-04-2009, 01:48 AM
|
#12
|
|
Newbie
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
╚══════╝
|
|
|
04-04-2009, 01:51 AM
|
#13
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Quote: Originally Posted by ATT41 
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.
|
|
|
04-04-2009, 02:00 AM
|
#14
|
|
Newbie
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
╚══════╝
|
|
|
04-06-2009, 05:46 AM
|
#15
|
|
Newbie
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
╚══════╝
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:01 PM.
| |