Hi,

I am playing with a pressure transducer. It has a capacity of 0 to 2.5 bar. the output is 0 to 5vdc proportional to the pressure.

Here is what I get using RA0 of 16f877.

At no load.... somewhere around 1.095vdc
With max load (1.5Bar) .... 2.4985vdc

Here is the question:

How can i convert it to percentage.
1v = O% and 2.5v=100%

Thanks!
Brenda