2015-09-21 11:14 PM
I am using HTS221 , and I am taking value from
HTS221 via I2C.
Here i was successful to get correct temperature data you can see in attach .txt file.But for Humidity i am getting values but they are not as per environment.
Here i have made following settings in control register.Read HTS221 AV_CONFIG: 0x10 value is 0x1B
Read HTS221 CTRL_REG1: 0x20 value is 0x80
Read HTS221 CTRL_REG2: 0x21 value is 0x01
Read HTS221 CTRL_REG3: 0x22 value is 0x00
In Humidity registers i get the following values listed below,H_OUT(s16) = -32768H0_rH_x2(u8) = 33H1_rH_x2 (u8) = 72H0_T0_OUT(s16) = 10H1_T0_OUT(s16) = 12504Now putting above values in below linear interpolation formula,hum_f (s16) = (H0_rH + (hum_out - hum0_t0_out) * (H1_rH - H0_rH) / (hum1_t0_out - hum0_t0_out));I am gettinghum_f = -70
which is not correct , now as i increase humidity the value changes but is goes above 100 and keeps on increasing which is not practical. Has any body configured this sensor and took data then plz help me out in this...
#hts2212015-10-02 10:16 AM
Hello,
as specified in the datasheet, HTS221rh value needs to be quantified bytwo point interpolation after whichthe result needs to be clipped to0 or 100as it gets outside the range of physicallymeaningful values. I'm providingin attachment more details on the procedure (check HTS221_Get_Measurement). If you still have issues after that, it's possible thatthere is a calibration issuein the sensor, in that case I also suggest testing with a different sensor and comparing results. Regards, Adalberto ________________ Attachments : example.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hz3K&d=%2Fa%2F0X0000000bJu%2Ffs8Iv.1fF_Kc_n2HpUk5YgaZoBlO2PZK1HkCp2XA6RA&asPdf=false2016-02-10 11:40 PM
2016-02-11 12:56 AM
Hi,
If you can assure me that your calibration is right, can you please provide me typical calibration data's so i can check if my data's are making sense.2016-02-11 06:48 AM
Hello Raphael,
I'm providing register data in attachment as you requested. If this does not help you to clarify you can feel free to send us calibration data from your parts in order to doublecheck. Regards, Adalberto ________________ Attachments : HTS221_REGS.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hz0O&d=%2Fa%2F0X0000000bJx%2F21kbHB4NlIxQGwDNpWGt7VEGNUO17HTH4xVFXm2uzGg&asPdf=false2018-09-15 06:18 AM
Hi!
I have same behavior with this sensor: right temperature but wrong humidity.
Just wash it in ultrasonic cleaner to solve this!