# ** NEW Fusion Brain Version 6, Pre-Order NOW **

Show 40 post(s) from this thread on one page
• 06-06-2011, 03:47 PM
rEegLer
Any new updates with FuseGL? I played around with it a little bit but only to the point of adding inputs and outputs and not figuring out why I could only have one output switched at a time. I really want to switch my system over to the V6 but I can't until it can do variables and logic.
• 06-09-2011, 02:58 PM
Sonicxtacy02
Hey 2k1Toaster (or anyone else who may know)... Is this the right formula to convert analog voltage(0v-5v) to the number that used to be returned by SendAndReceiveViaInterruptTransfers?

conversion formula
Code:

`ConvertedValue = 1023 * (AnalogVoltage) / 5`
• 06-09-2011, 03:52 PM
2k1Toaster
The number returned is between 0-1023 scaled linearly to the reference voltage. So for the FBv3 and FBv4 that is 5.0v. For the FBv6, that is 3.3v.

It is ( digital reading / max digital reading ) * reference voltage

So ((Analogue ADC Value) / 1023) * Vref | Vref = 5.0 for FBv3 and FBv4 and Vref = 3.3 for FBv6
• 06-09-2011, 04:15 PM
Sonicxtacy02
Quote:

Originally Posted by 2k1Toaster
The number returned is between 0-1023 scaled linearly to the reference voltage. So for the FBv3 and FBv4 that is 5.0v. For the FBv6, that is 3.3v.

It is ( digital reading / max digital reading ) * reference voltage

So ((Analogue ADC Value) / 1023) * Vref | Vref = 5.0 for FBv3 and FBv4 and Vref = 3.3 for FBv6

great.. hoping RRFusion v6 support is updated tomorrow!
• 06-09-2011, 04:23 PM
2k1Toaster
Quote:

Originally Posted by rEegLer
Any new updates with FuseGL? I played around with it a little bit but only to the point of adding inputs and outputs and not figuring out why I could only have one output switched at a time. I really want to switch my system over to the V6 but I can't until it can do variables and logic.

If the same one comes on with all buttons, then it is sending the same port each time. There is a new version but it does not have the same variables/logic as MDX yet. I have literally been working 18-20 hours a day for the past month and just haven't had the time.

I did find out the problem with older hardware showing things as blank boxes. It is because it is not a power of 2 sized image, and older video cards don't like that. So Either all the images need to be power of 2 sized, or I need to pad them with garbage, then crop them down again. I have not done this yet.

I really need a code lacky or something. Maybe like the dictabird from the Flintstones but one that types code not just slates... :)
• 06-09-2011, 07:52 PM
Sonicxtacy02
having trouble with the formula you posted, i have my v6 and temp sensor right next to a thermometer reading 96 degrees. The voltage reported by the port is 0.987v. With that said, here's how the formula as you posted works out

(.987 / 1023) * 3.3 = 0.003~, which obviously doesnt convert to 96 degrees

however, if i use the formula i posted with vref = 5 it works out perfectly

(.987 * 1023) / 5 = 201 = 96deg f

what am i missing here?
• 06-09-2011, 08:44 PM
UniqelyCommon
Quote:

Originally Posted by Sonicxtacy02
Hey 2k1Toaster (or anyone else who may know)... Is this the right formula to convert analog voltage(0v-5v) to the number that used to be returned by SendAndReceiveViaInterruptTransfers?

conversion formula
Code:

`ConvertedValue = 1023 * (AnalogVoltage) / 5`

I'd try
Code:

`ConvertedValue = 1024 * (AnalogVoltage) / 3.3`
1024* (.987 / 3.3) = 306.3

hmm... where's the 0.987V coming from? Is the sensor using the 3.3V off the FBrain6 board?
• 06-09-2011, 10:22 PM
2k1Toaster
Quote:

Originally Posted by Sonicxtacy02
having trouble with the formula you posted, i have my v6 and temp sensor right next to a thermometer reading 96 degrees. The voltage reported by the port is 0.987v. With that said, here's how the formula as you posted works out

(.987 / 1023) * 3.3 = 0.003~, which obviously doesnt convert to 96 degrees

however, if i use the formula i posted with vref = 5 it works out perfectly

(.987 * 1023) / 5 = 201 = 96deg f

what am i missing here?

No way is it returning 0.987. If it is returning 0.987, then that is already transformed into voltage. Are you using the high level classes to read the ports?

When you get the data back from the usb function it comes in a n*64 byte long array. So the ONLY values you can get are whole integer numbers between 0 and 255 for each byte. Doing the bit shifting to get 10bits out of 2bytes you get a whole number between 0 and 1023.

To get voltage from this number (N), you do: (N/1023)*VREF.
• 06-10-2011, 09:10 AM
Sonicxtacy02
I'm using the VCP on the v6 to communicate. That is the only way these plugins are going to work unfortunately. CF is incompatible with plugins built against .net4.0, and RR people dont want to have to download it.

So, using "aa?" returns 0.987v for port 0. What i'm trying to do is convert this voltage into its corresponding 0-1023 value, so all of the formulas i have stored for v3/v4 brain analog sensor conversion will work for a v6 brain.
• 06-10-2011, 11:46 AM
2k1Toaster
Quote:

Originally Posted by Sonicxtacy02
I'm using the VCP on the v6 to communicate. That is the only way these plugins are going to work unfortunately. CF is incompatible with plugins built against .net4.0, and RR people dont want to have to download it.

Just because they don't want to download it, doesn't make it the correct way of doing it. The VCP port is and will always be an "extra" and not the main way of communicating.

Quote:

So, using "aa?" returns 0.987v for port 0. What i'm trying to do is convert this voltage into its corresponding 0-1023 value, so all of the formulas i have stored for v3/v4 brain analog sensor conversion will work for a v6 brain.
If you want the integer values, then use A? instead of a?. Converting back and forth makes for inaccurate data. But if you want the integer from the analogue value, then you just do the inverse.

0.987/3.3*1023 = 305.97. So it is either 305 or 306 depending on how the ALU decided to round that number.
Show 40 post(s) from this thread on one page