-
Simple Math
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
-
A simple suggestion
1v =1000 mv
2.5 v =2500 mv
2500 -1000=1500
1500 /100 =%1
i hope it will work :)
-
Off topic slightly but I have a silly question, I thought at 2.5 bar it should output 5V, not 2.5V? Either way the math still works.
-
hi,
many many thanks
brenda