Think Integer !!!
Hi,
At First :
Vout = Vs* (0.00369*P + 0.04) ± Error
..Wich I thought would be the same as
calcpress = ((( pressure / Vs ) - 0.04 ) / 0.00396 )
Don't you see something strange ??? ...
I want the value in kPa or Bar.
You will display Bars or KPa ... but certainly not calculate with Bars or KPa ...
May be calculate with Pa ... will give a decent result.
BUT ... wouldn't it be best to work with ADC Units ( 0 -1023 ...) and ONLY convert to Pressure for display purposes.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks