Shop OBEX P1 Docs P2 Docs Learn Events
pressure transducer — Parallax Forums

pressure transducer

TobiasTobias Posts: 95
edited 2007-05-29 16:51 in BASIC Stamp
···· Hi I am working with the BS2 to use the voltage output on the tranducer I am charging a rctime circuit and measuring the time and taking the value of the time to refer to my pressure, but I am discovering that there is a curve in the output of the transducer, example converting the time to pressure value at virtually 100psi is different then at 40psi, do I need a lookup table? or how would you go about it?
Thanks for your reply: Toby

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-05-28 07:38
    Depending on the "curve" a lookup table or approximation would either work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • TobiasTobias Posts: 95
    edited 2007-05-29 06:54
    Where can I find info on a lookup table and how to make one?-Toby
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2007-05-29 15:33
    Make a table that has a sequence of pressures in column 1, the corresponding voltage from the transducer in column 2, and the RCTIME values in column 3. That will be the basis of the lookup table. Having that, you will enter the values in DATA statements in the PBASIC. There will either be an RCTIME value to go with each pressure, or, with a smaller table, PBASIC code can interpolate.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • bennettdanbennettdan Posts: 614
    edited 2007-05-29 16:51
    tobias,
    What are you using the pressure transducer for are you trying to have it readout on an LCD I dont understand why the curve matters?
Sign In or Register to comment.