I'm trying to display the atmospheric pressure value on a 44780 LCD.
The Motorola MPX4115A pressure sensor is connected to pin2 (RA0/AN0) to make use of the built-in ADC of the 16F87X.
Is there anyone who can show me how to write the code to perform this operation?
MPX4115A voltage output:
Vout = Vs*(0.009*P - 0.095) P = Pressure in kPa
Vs = 5V
Thank you very much.
pt3rg.
Bookmarks