ST意法半导体
直播中

潘福乔

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

LPS25HB不能与X-NUCLEO-IKS01A1和Arduino uno一起使用

嗨,
我正在使用带有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)

张茜

2018-9-25 17:31:00
你好,
我认为这与您之前的帖子中的问题相同:
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
举报

潘福乔

2018-9-25 17:49:27
好大卫,谢谢你的回复。从温度传感器我得到输出但不是来自压力传感器.. !!!请做好。
感谢致敬,
拉迪卡

以上来自于谷歌翻译


以下为原文




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
举报

张茜

2018-9-25 18:08:53
你好,
你的意思是你能够从压力传感器(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.
举报

潘福乔

2018-9-25 18:19:37
嗨,
 
我从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
举报

更多回帖

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