ST意法半导体
直播中

李亮涟

7年用户 167经验值
私信 关注
[问答]

在HTS221传感器中没有得到正确的湿度数据

我正在使用HTS221,我从中获取价值
HTS221通过I2C。

在这里,我成功地获得了您在attach .txt文件中可以看到的正确温度数据。
但是对于湿度,我正在获得价值,但它们并不符合环境。


在这里,我在控制寄存器中进行了以下设置。

读取HTS221 AV_CONFIG:0x10值为0x1B

读取HTS221 CTRL_REG1:0x20值为0x80

读取HTS221 CTRL_REG2:0x21值为0x01

读取HTS221 CTRL_REG3:0x22值为0x00


在Humidity寄存器中,我得到以下列出的值,

H_OUT(s16)= - 32768
H0_rH_x2(u8)= 33
H1_rH_x2(u8)= 72
H0_T0_OUT(s16)= 10
H1_T0_OUT(s16)= 12504

现在将上面的值放在下面的线性插值公式中,
hum_f(s16)=(H0_rH +(hum_out - hum0_t0_out)*(H1_rH - H0_rH)/(hum1_t0_out - hum0_t0_out));

我得到了hum_f = -70
这是不正确的,现在随着我增加湿度值变化但是超过100并且继续增加这是不实际的。有没有任何机构配置这个传感器并采取数据然后PLZ帮助我在这...



#hts221

以上来自于谷歌翻译


以下为原文





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)  = -32768
H0_rH_x2(u8)  = 33
H1_rH_x2 (u8) = 72
H0_T0_OUT(s16)  = 10
H1_T0_OUT(s16)  = 12504

Now 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 getting hum_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...


  
#hts221

回帖(4)

袁声瑜

2018-9-26 18:03:06
你好,
 
 
 如数据表中所述,HTS221 rh值需要通过两点量化
 插值后,结果需要在外出时剪裁为0或100
 物理上有意义的价值范围。
 我在附件中提供了有关程序的更多详细信息(请参阅HTS221_Get_Measurement)。
 如果此后仍有问题,传感器可能存在校准问题,
 在这种情况下,我还建议使用不同的传感器进行测试并比较结果。
 
 问候,
 阿达尔韦托

以上来自于谷歌翻译


以下为原文





Hello,


as specified in the datasheet, HTS221 rh value needs to be quantified by two point
interpolation after which the result needs to be clipped to 0 or 100 as it gets outside
the range of physically meaningful values.
I'm providing in attachment more details on the procedure (check HTS221_Get_Measurement).
If you still have issues after that, it's possible that there is a calibration issue in the sensor,
in that case I also suggest testing with a different sensor and comparing results.

Regards,
Adalberto
举报

高桂清

2018-9-26 18:13:15
你好,
 
是否知道校准问题?我们的传感器确实存在错误的湿度值。我已经写信给你了,但我还是等了一个多星期才得到答案。能否请你提供一些信息。

以上来自于谷歌翻译


以下为原文







Hello,

Are there know issues with the calibration? We do have wrong humidity values with lots of our sensors. I was already writing to your support but i still wait for the answer since more then one week. Can you please provide me some information.
举报

高桂清

2018-9-26 18:29:53
嗨,
 
 
如果你可以向我保证你的校准是正确的,那么请你给我提供典型的校准数据,这样我就可以检查我的数据是否有意义。

以上来自于谷歌翻译


以下为原文





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.
举报

袁声瑜

2018-9-26 18:48:07
拉斐尔你好,
 
 
 我按照您的要求提供附件中的注册数据。
 如果这不能帮助您澄清,您可以随时向我们发送校准数据
 零件以便进行双重检查。
 
 问候,
 阿达尔韦托

以上来自于谷歌翻译


以下为原文





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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分