你好。我有湿度测量的问题。尽管温度适当,但湿度总是超过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_DeAc
tivate(); 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