+ Reply to Thread
Results 1 to 3 of 3

Thread: HS1101 Humidity sensor calibration

  1. #1

    Default HS1101 Humidity sensor calibration

    HUMIDITY HS1101 4 30 2012.spinI have been testing the HS1101 humidity sensor. I am getting results that seem reasonable, but I am not sure
    if I have adjusted the math correctly. Has anyone got This sensor to work correctly with the propeller? If you have
    please share the program, The sensor is reading between 38 and 45% humidity.I have
    read most of the previous posts on this subject and this seems to be a common issue. I have attached the program I have been using
    Thanks for any help you may offer
    Larry


    Sorry I can't seem to attach code correctly, here is the program

    CON
    _clkmode = xtal1 + pll16x ' use crystal x 16
    _xinfreq = 5_000_000
    OBJ
    ser : "FullDuplexSerial"

    PUB main | humidity
    ser.start(31, 30, 0, 4800)
    ctra[30..26] := %01000
    ctra[5..0] := 2 '11
    frqa := 1

    repeat
    dira[2] := outa[2] := 1
    waitcnt(clkfreq/100_000 + cnt)
    phsa~
    dira[2]~
    waitcnt(clkfreq + cnt)

    humidity := (phsa - 12169)/3400 #> 0

    ser.tx(13)
    ser.str(String(" HUMIDITY = "))
    ser.dec(humidity)
    ser.str(string("%"))
    waitcnt(clkfreq/2 + cnt)
    Last edited by lfreeze; 04-30-2012 at 08:02 PM. Reason: no attachment

  2. #2

    Default Re: HS1101 Humidity sensor calibration

    Calibrating humidity sensors is not easy. The simplest method to verify the sensor and software is working properly is to compare it to one that is calibrated.

  3. #3

    Default Re: HS1101 Humidity sensor calibration

    Thanks for the response, I have ordered the sensirion module to use as benchmark for the correct humidity value. I will use this to modify the
    math in the hs1101 program. I'm not sure if this is the best approach, I have set up one hs1101 with a stamp and the program provided by parallax.
    I have set up a second hs1101 with a propeller and used the rcdecay counter program. I have tried many many variations of the propeller math but cannot
    get a valid numidity number that will track with changes in the humidity.

    Larry

+ Reply to Thread

Similar Threads

  1. [unsolved] Reading HS1101 Humidity Sensor with Propeller
    By bomber in forum Propeller 1 Multicore Microcontroller
    Replies: 6
    Last Post: 05-28-2014, 12:02 AM
  2. Prop Object for HS1101 Humidity Sensor
    By Jason Williams in forum Propeller 1 Multicore Microcontroller
    Replies: 1
    Last Post: 05-27-2014, 05:01 PM
  3. Humidity Sensor HS1101
    By sparks5 in forum Sensors
    Replies: 4
    Last Post: 03-15-2011, 10:37 PM
  4. HS1101 Relative Humidity Sensor
    By chris jones in forum Propeller 1 Multicore Microcontroller
    Replies: 11
    Last Post: 06-26-2010, 12:06 AM
  5. HS1101 humidity sensor code problem
    By Highlandtinker in forum Sensors
    Replies: 13
    Last Post: 05-12-2010, 10:23 AM

Bookmarks

Posting Permissions

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