Help with pressure sensor.


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I have a similar problem, I got everything to work, except translating the math.

    My lowest ADVAL is 0 and it's also the HIGHEST pressure.

    I saw how the math worked out for him, but I am lost.

  2. #2
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    AD Res 1024

    Lowest voltage = .085v = 100psi = ADVal 18

    Highest voltage = .999v = 10psi = ADVal 205

    In order to switch everything around all I did differently was subtract my highest voltage (1volt) from lowest voltage (.085volt) and went from there!

  3. #3
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    So then I thought it out a little more, and instead of converting to voltage etc.. ADVal represents that value...

    SO

    highest ADVal = 205

    205 - whatever the adval is at for the input from the sender = x

    x * .5347 = pressure

    on my 187 resolution scale here.

  4. #4
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    didnt work very well... lost again

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by erice1984 View Post
    AD Res 1024

    Lowest voltage = .085v = 100psi = ADVal 18

    Highest voltage = .999v = 10psi = ADVal 205

    In order to switch everything around all I did differently was subtract my highest voltage (1volt) from lowest voltage (.085volt) and went from there!
    Can you give the make and model or data sheet for the sensor?

    Maybe show your code too.

    If that voltage range is correct I would go with 8 bit resolution and a reference voltage. Are you really getting a lower reading with a higher pressure?
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    yes, its an autometer 2242 pressure sender unit. its really annoying.

    all I have is
    15 ohms = 100psi
    175 ohms = 10psi


    What I am doing right now is using regulated current. ~5mA

  7. #7
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    reason why I am not using the 8bit adc is because I would have to use a lot more current to get it up out of the 19mV range, and not really wanting to do that since it seems to vary more, its probably my hardware tho, LM317T current reg.

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I think I see the problem.

    The ADC is for measuing a voltage.

    Use the sensor for R1 of a voltage divider and a fixed resistor for R2. The feed that output to the PIC.

    http://en.wikipedia.org/wiki/Voltage_divider
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Need a cheap touch sensor idea.. here it is
    By mister_e in forum Code Examples
    Replies: 20
    Last Post: - 16th April 2016, 22:42
  2. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  3. PICBASIC PRO-coding for wireless sensor node
    By syazila in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2009, 00:05
  4. Replies: 6
    Last Post: - 18th January 2008, 08:17
  5. 1-Wire Pressure Sensor
    By Mith in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th August 2005, 00:32

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts