完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在使用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个回答
|
|
|
你好,
如数据表中所述,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 |
|
|
|
|
|
你好,
是否知道校准问题?我们的传感器确实存在错误的湿度值。我已经写信给你了,但我还是等了一个多星期才得到答案。能否请你提供一些信息。 以上来自于谷歌翻译 以下为原文 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. |
|
|
|
|
|
嗨,
如果你可以向我保证你的校准是正确的,那么请你给我提供典型的校准数据,这样我就可以检查我的数据是否有意义。 以上来自于谷歌翻译 以下为原文 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. |
|
|
|
|
|
拉斐尔你好,
我按照您的要求提供附件中的注册数据。 如果这不能帮助您澄清,您可以随时向我们发送校准数据 零件以便进行双重检查。 问候, 阿达尔韦托 以上来自于谷歌翻译 以下为原文 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 |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 10:05 , Processed in 1.117847 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2209