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?
"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
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
╚══════╝
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
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
╚══════╝
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
╚══════╝
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
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
╚══════╝
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
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
╚══════╝
Bookmarks