ST意法半导体
直播中

吴立节

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

HTS221湿度超过100%

你好。我有湿度测量的问题。尽管温度适当,但湿度总是超过100%。我正在使用官方的ST软件。我想知道这是硬件问题吗?
初始化如下:
...
HTS221_Init_st cfg_struct;


cfg_struct.avg_h = HTS221_AVGH_4;
cfg_struct.avg_t = HTS221_AVGT_2;
cfg_struct.odr = HTS221_ODR_1HZ;
cfg_struct.bdu_status = HTS221_ENABLE;
cfg_struct.heater_status = HTS221_DISABLE;
cfg_struct.irq_level = HTS221_LOW_LVL;
cfg_struct.irq_output_type = HTS221_PUSHPULL;
cfg_struct.irq_enable = HTS221_DISABLE; HTS221_Get_DeviceID(& deviceID);

HTS221_Set_InitConfig(& cfg_struct); / *它实际上是激活函数!!! * /

HTS221_DeActivate(); while(true)

{
HTS221_Get_Measurement(&湿度,温度); ...一些延迟和读取数据
}

#humid#hts221 #humidity #sensor

以上来自于谷歌翻译


以下为原文




Hello. I have a problem with humidity measurement. Despite the proper value of temperature, te humidity is always over 100%. I'm using the official ST software. I'm wondering if it is a hardware problem ?
The initialization is as following:
...
HTS221_Init_st cfg_struct;

  
cfg_struct.avg_h = HTS221_AVGH_4;
cfg_struct.avg_t = HTS221_AVGT_2;
cfg_struct.odr = HTS221_ODR_1HZ;
cfg_struct.bdu_status = HTS221_ENABLE;
cfg_struct.heater_status = HTS221_DISABLE;
cfg_struct.irq_level = HTS221_LOW_LVL;
cfg_struct.irq_output_type = HTS221_PUSHPULL;
cfg_struct.irq_enable = HTS221_DISABLE;HTS221_Get_DeviceID(&deviceID);

HTS221_Set_InitConfig(&cfg_struct);/* it is activation function in fact !!! */

HTS221_DeActivate();while (true)

{
          HTS221_Get_Measurement(&humidity, &temperature);         ... some delay and read data
}

#humid #hts221 #humidity #sensor

回帖(9)

张茜

2019-5-28 14:52:31
你好,
如果粘贴设备的寄存器内容,则更容易提供帮助。
我们可以快速排除故障设备。
大卫

以上来自于谷歌翻译


以下为原文




Hello,
it is easier to help if you paste the device's register contents.
We can quickly rule out a faulty device.
David
举报

吴立节

2019-5-28 15:00:35
如果以下注册内容就足够了?
AV_CONF(10h)
CTRL_REG1(20h)
CTRL_REG2(21h)
CTRL_REG3(22h)

以上来自于谷歌翻译


以下为原文




If the following register contents will be sufficient ?
AV_CONF (10h)
CTRL_REG1 (20h)
CTRL_REG2 (21h)
CTRL_REG3 (22h)
举报

张茜

2019-5-28 15:10:11
为了能够计算输出,需要输出值+校准值。
请粘贴以下所有寄存器的内容:

以上来自于谷歌翻译


以下为原文




To be able to count the output, output values + calibration values are needed.
Please paste the content of all the registers below:
举报

吴立节

2019-5-28 15:20:19
以上来自于谷歌翻译


以下为原文
举报

更多回帖

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