This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pressure

hi sir

i need one help

now iam doing project on 89c51 using C51 Evaluation Software

i converted 0-5 analog volatge to 0-5 digital voltage .

now i want convert digital data to pressure

my output should be like this

0v 1.1E-1 3v 4.1E-4
0.1 1.2E-1 4v 5.1E-5
1v 2.1E-2 5v 6.1E-6
2v 3.1E-3

i want 500 values in between 0 to 5 volts
how to calibrate the voltage interms of preesure
what logic i want use to convert Voltage to pressure
my C51 not taking floting oparations

please help

regards
chandra sri

Parents
  • "i converted 0-5 analog volatge to 0-5 digital voltage"

    What do you mean by that?
    What is a "digital voltage"?

    "now i want convert digital data to pressure"

    Then you need to know the relationship between your sensor's output and the measured pressure:
    If it's linear, this is simply a matter of scaling (plus, perhaps, an offset);
    If it's non-linear, a lookup table is probably easiest.

    "my output should be like this

    0v 1.1E-1 3v 4.1E-4
    0.1 1.2E-1 4v 5.1E-5
    1v 2.1E-2 5v 6.1E-6
    2v 3.1E-3"


    I have no idea what that's supposed to mean - please explain!

    "i want 500 values in between 0 to 5 volts"

    So, you have a range of 5V in 500 steps;
    therefore the step size is simply one-fivehundredth of 5V;
    ie, step size = 5V/500 = 0.01V

    "how to calibrate the voltage interms of preesure"

    Apply known pressures across the range of interest, and measure the corresponding voltages!

    "my C51 not taking floting oparations"

    Of course not - it's the evaluation version!

    Instead of using 0.01V, just think of it as 10mV (or whatever) - then there's no decimals required!

Reply
  • "i converted 0-5 analog volatge to 0-5 digital voltage"

    What do you mean by that?
    What is a "digital voltage"?

    "now i want convert digital data to pressure"

    Then you need to know the relationship between your sensor's output and the measured pressure:
    If it's linear, this is simply a matter of scaling (plus, perhaps, an offset);
    If it's non-linear, a lookup table is probably easiest.

    "my output should be like this

    0v 1.1E-1 3v 4.1E-4
    0.1 1.2E-1 4v 5.1E-5
    1v 2.1E-2 5v 6.1E-6
    2v 3.1E-3"


    I have no idea what that's supposed to mean - please explain!

    "i want 500 values in between 0 to 5 volts"

    So, you have a range of 5V in 500 steps;
    therefore the step size is simply one-fivehundredth of 5V;
    ie, step size = 5V/500 = 0.01V

    "how to calibrate the voltage interms of preesure"

    Apply known pressures across the range of interest, and measure the corresponding voltages!

    "my C51 not taking floting oparations"

    Of course not - it's the evaluation version!

    Instead of using 0.01V, just think of it as 10mV (or whatever) - then there's no decimals required!

Children