完善资料让更多小伙伴认识你,还能领取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 |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2725 浏览 1 评论
3237 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3646 浏览 6 评论
6034 浏览 21 评论
1337浏览 4评论
197浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
273浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 20:53 , Processed in 1.029698 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号