|
Re: pressure sensor
You'll see an analog input value of from ~100 to ~920 based on the pressure
Analog reading = (0.625*Pressure psi +10) / 100 * 1023
or in integer math terms:
Pressure = ((long)analog value * 100,000 / 1023 - 10,000) / 625
or somewhat simplified:
Pressure = (((long)analog value * 98) - 10,000) / 625
you get the picture.
Here are the specs and the voltage vs. pressure charts from the original Texas Instruments presentation.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 04-12-2007 at 10:51.
|