完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
嗨,
我正在使用带有arduino uno的X-NUCLEO-IKS01A1,我正在使用代码获取HTS221的输出 https://github.com/ControlEveryt ... b/master/C/HTS221.c ,连接似乎是正确的,但当我试图从代码https://github.com/ControlEveryt ... Arduino/LPS25HB.ino获取LPS25HB的输出 我总是得到输出为0 hpa。即使我在传感器上施加压力。在数据表中,CS应该连接到VddIO,我认为它是内部连接的,因为X中的所有传感器-NUCLEO-IKS01A1属于I2C线路。请注意。我需要LPS25HB与arduino UNO配合使用。 感谢致敬, 拉迪卡 以上来自于谷歌翻译 以下为原文 Hi, I'm using X-NUCLEO-IKS01A1 with arduino uno,I'm getting the output for HTS221 with the code https://github.com/ControlEveryt ... b/master/C/HTS221.c ,the connections seem to be correct but when I'm trying to get the output for LPS25HB from the code https://github.com/ControlEveryt ... Arduino/LPS25HB.ino I'm always getting the output as 0 hpa only.Even when I'm applying the pressure at the sensor.In the datasheet it is there that CS should be connected to VddIO ,I think it is internally connected as all the sensors in X-NUCLEO-IKS01A1 are in I2C line.Please do needful.I need LPS25HB working with arduino UNO. Thanks and Regards, Radhika |
|
相关推荐
7个回答
|
|
|
你好,
我认为这与您之前的帖子中的问题相同: https://community.st.com/0D50X00009XkdtdSAB 该电路板上的所有传感器都使用I2C总线,并且ST已经通过I2C与它们进行通信所需的所有连接。 请回到之前的主题并验证您的传感器是否先工作。然后专注于您使用的固件/驱动程序。一步一步就能让你更进一步。 大卫 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Hello, I think it is the same issue as in your previous thread: https://community.st.com/0D50X00009XkdtdSAB All the sensors on this board use an I2C bus and all the necessary connections to communicate with them over I2C have already been made by ST. Please, get back to your previous thread and verify that your sensor works first. Then focus on the firmware / drivers you use. One step at a time will get you much further. David Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
|
|
好大卫,谢谢你的回复。从温度传感器我得到输出但不是来自压力传感器.. !!!请做好。
感谢致敬, 拉迪卡 以上来自于谷歌翻译 以下为原文 Ok David,thanks for the reply.From temperature sensor I'm getting the output but not from the pressure sensor..!!! Please do needful. Thanks and Regards, Radhika |
|
|
|
|
|
你好,
你的意思是你能够从压力传感器(LPS25HB)或温度/相对湿度传感器获得温度( HTS221)?我问,因为X-NUCLEO-IKS01A1板上的所有传感器都有温度传感器。 以上来自于谷歌翻译 以下为原文 Hello, Do you mean that you are able to get the temperature from the pressure sensor (LPS25HB) or the temperature / relative humidity sensor ( HTS221)? I am asking, because there is a temperature sensor in all of the sensors on X-NUCLEO-IKS01A1 board. |
|
|
|
|
|
嗨,
我从HTS221获取数据但不是从LPS25HB获取数据。我正在使用代码 /external-link.jspa?url=https%3A%2F%2Fgithub.com%2FControlEverythingCommunity%2FLPS25HB%2Fblob%2Fmaster%2FArduino%2FLPS25HB.ino 我用于HTS221的连接与LPS25HB相同。 感谢致敬, 拉迪卡 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Hi, I'm getting the data from HTS221 but not from LPS25HB..I'm using the code /external-link.jspa?url=https%3A%2F%2Fgithub.com%2FControlEverythingCommunity%2FLPS25HB%2Fblob%2Fmaster%2FArduino%2FLPS25HB.ino The connections what I used for HTS221 is same as LPS25HB. Thanks and Regards, Radhika Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
|
|
好吧,让我们假设电路板已正确连接且传感器已通电 - 其插头已插入。
一些检查: 你能阅读传感器的WHO-AM-I登记册吗? 你能告诉我们发送什么配置和寄存器吗? (您是使用一次拍摄还是自动测量,以及您多久阅读一次数据?) 你能调试主机MCU吗?要验证数据,传感器会给您什么输出? 注意:如果在完成第一次测量之前读取输出寄存器值,则可能会给出一些无效输出。 大卫 以上来自于谷歌翻译 以下为原文 OK, let's suppose the board is properly connected and the sensor is powered on - its jumper is plugged in. A few checks to make: Can you read the WHO-AM-I register of the sensor? Can you tell us what configuration is sent and to what registers? (Do you use one shot or automated measurement and how often do you read the data?) Are you able to debug your host MCU? To verify the data, what output does the sensor give you? Note: If you read the output register values before completing the first measurement, it can give you some non-valid output. David |
|
|
|
|
|
谢谢大卫,我得到了arduino uno的输出
以上来自于谷歌翻译 以下为原文 Thanks David,I have got the output in arduino uno |
|
|
|
|
|
你好,
很高兴听到。有什么问题? 大卫 以上来自于谷歌翻译 以下为原文 Hello, good to hear that. What was the problem? David |
|
|
|
|
只有小组成员才能发言,加入小组>>
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 13:40 , Processed in 1.355921 second(s), Total 86, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2269