Darrel has the basic formula here: http://www.picbasic.co.uk/forum/showthread.php?t=182
Darrel has the basic formula here: http://www.picbasic.co.uk/forum/showthread.php?t=182
http://www.scalerobotics.com
It's been a few years since that thread. Don't even remember doing it.
However, I think pt3rg asked the wrong question back then.
I'm sure he also wanted to convert the A/D reading from the sensor to a pressure value.
May be why he never came back.
With the formula for Vout ...
Vout = Vs*(0.009*P - 0.095)
For 10-bit A/D and 1 decimal, the reverse would be
P = ADC * 0.1086 + 10.6
-- OR --
hth,Code:ADCIN 0, ADval P = ADval * 1086 P = DIV32 1000 P = P + 106 LCDOUT "P=",DEC P/10,".",DEC P//10,"kPa"
DT
In case you didn't want 10-bit A/D with 1 decimal place in kPa ...
This should cover the other possibilities.
http://www.pbpgroup.com/Calculators/...A/MPX4115A.htm
<br>
DT
Thanks Darrel for your very professional reply on the matter.
I saw your last post just now.
I think your assistance is great for all people in the forum.
Regards,
Ambrogio
IW2FVO
North Italy
Bookmarks