I want to calculate relative humidity to absolute humidity. result in g/kg


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2013
    Location
    Netherlands
    Posts
    1

    Default I want to calculate relative humidity to absolute humidity. result in g/kg

    Hi,

    with the formula Av = (Rv * 1325,3 * 10^(7,5892 * T / (T+240,71)))/(T+273,15)

    it should be possible to calculate the absolute humidity.

    RV = relative humidity
    T = temperature in degrees.

    As you see, lots of huge numbers, comma's and even an
    exponentiation

    Is a wizkid out there how knows to calculate this in PBP3? I'm using a PIC16F1936

    Many thanks

  2. #2
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: I want to calculate relative humidity to absolute humidity. result in g/kg

    It's not to hard to do that...
    Create lookup table in flash memory for this
    1325,3 * 10^(7,5892 * T / (T+240,71))
    for range you need, and step 1-10 degrees, depending on accuracy. Scale it to get most of byte, or word range. Then use interpolation to get more precise result.
    Then just multiply Rv and value from lookup table. After that divide with absolute temp.
    That way I have done this calculation http://www.picbasic.co.uk/forum/showthread.php?t=18483
    Last edited by pedja089; - 29th November 2013 at 00:46.

Similar Threads

  1. DHT11 Temperature/Humidity sensor
    By mircogomiero in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th January 2013, 13:37
  2. Humidity problem with ping sensor
    By celequanta in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th July 2012, 04:06
  3. Sensirion humidity sensor
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 7th October 2008, 16:48
  4. Replies: 10
    Last Post: - 4th September 2008, 18:55
  5. thermometer and humidity sms
    By elektoro2009 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 19th April 2008, 13:00

Members who have read this thread : 1

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