ST意法半导体
直播中

潘福乔

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

如何将X-NUCLEO-IKS01A1与arduino UNO接口

嗨,
我有X-NUCLEO-IKS01A1有4个MEM传感器,我看到这个板与arduino UNO兼容,我已经连接了与ST核板相同的板,但我找不到传感器给arduino UNO输出代码。我还将电路板连接到英特尔爱迪生,但我无法检测到传感器的地址。可以告诉我硬件的连接情况。

带有arduino UNO的X-NUCLEO-IKS01A1。我提供5V输入(Vin)并添加了上拉电阻。
感谢致敬,
拉迪卡

以上来自于谷歌翻译


以下为原文




Hi,
I have X-NUCLEO-IKS01A1 having 4 MEM sensors ,I have seen that this board is compatible with arduino UNO,I have connected the board same as like the ST nucleio board,but I couldn't find the sensors giving output with arduino UNO code . I have also connected the board with Intel edison,but I couldn't detect the addresses of the sensors.Can you please let me know the hardware connection of

X-NUCLEO-IKS01A1 with arduino UNO .I'm providing 5V as input (Vin) and added pullup resisters too.

Thanks and Regards,

Radhika

回帖(6)

张茜

2018-10-10 15:58:32
你好,
我建议从产品页面开始:
http://www.st.com/en/ecosystems/x-nucleo-iks01a1.html
 向下滚动到文档部分,您将看到一个
http://www.st.com/content/ccc/resource/technical/document/user_manual/59/c5/45/7f/22/3d/4e/76/DM00134912.pdf/files/DM00134912.pdf/jcr:内容/翻译/ en.DM00134912.pdf
 。它还包括一个原理图,显示所有传感器共享I2C总线。我建议也为所有单独的传感器下载数据表。每个传感器都有自己的地址,这些信息在数据表中提供。请注意,传感器需要的电压介于1,7 V(一个传感器1,9 V)和3,6 V之间,因此请确保您不要尝试用5 V电源供电。同时检查上拉电阻是否连接到3.3 V而不是5 V.否则可能会损坏芯片。

以上来自于谷歌翻译


以下为原文




Hello,
I suggest starting on a product page:
http://www.st.com/en/ecosystems/x-nucleo-iks01a1.html
Scroll down to the documents section and you will see a
http://www.st.com/content/ccc/resource/technical/document/user_manual/59/c5/45/7f/22/3d/4e/76/DM00134912.pdf/files/DM00134912.pdf/jcr:content/translations/en.DM00134912.pdf
. It also includes a schematics revealing that all sensors are sharing an I2C bus. I would recommend downloading datasheets for all the separate sensors as well. Each sensor has it's own address and this information is provided in the datasheets.Please note that the sensors expect power supply between 1,7 V (one sensor 1,9 V) and 3,6 V so make sure you don't try to power them with 5 V. Also check that the pull up resistors are connected to 3,3 V and not 5 V. Otherwise you can damage the chips.
举报

张茜

2018-10-10 16:17:47
还有一件事:传感器板上提供的Arduino Uno R3连接器是“标准化的”。如果您使用相同的电压电平(如我之前的评论中所述),电路板可以简单地连接到带有这些扩展连接器的任何微控制器电路板,并可以通过I2C总线使用。

以上来自于谷歌翻译


以下为原文




One more thing: the Arduino Uno R3 connector provided on the sensor board is 'standardized'. If you use the same voltage levels (as mentioned in my previous comment), the board can simply be connected to any microcontroller board with these expansion connectors and is ready to be used over an I2C bus.
举报

潘福乔

2018-10-10 16:32:54
嗨大卫,
感谢您的回复,我已经将arduino uno board连接到了
X-NUCLEO-IKS01A1如图所示。我也连接了电路板
X-细胞核 - IKS01A1
对于Vin作为5V。我已经通过给SCL和SDA提供3.3V来增加上拉电阻。但是在arduino控制台中我无法看到任何输出。即使我也尝试过英特尔爱迪生,设备地址也没有检测到。我用来检查的代码是
https://github.com/ControlEverythingCommunity/LPS25HB/blob/master/Arduino/LPS25HB.ino
 
https://github.com/ControlEverythingCommunity/HTS221/blob/master/Arduino/HTS221.ino
 
请你需要。我也不知道跳线设置。我不知道错误在哪里?!!
感谢致敬,

dhika

以上来自于谷歌翻译


以下为原文




Hi David,
Thanks for the reply,I have connected the arduino uno board with
X-NUCLEO-IKS01A1 as shown in the image.I have also connected the board
X-NUCLEO-IKS01A1
for Vin as 5V.I have added pull up resisters too by giving 3.3V to SCL and SDA.But in arduino console I'm unable to see any output. Even I have tried in Intel edison too,the device address is not detecting.The codes I'm using to check is

https://github.com/ControlEverythingCommunity/LPS25HB/blob/master/Arduino/LPS25HB.ino


https://github.com/ControlEverythingCommunity/HTS221/blob/master/Arduino/HTS221.ino

Please do needful.I'm not knowing the jumper settings too.I'm not knowing where the mistake is?!!
Thanks and Regards,

Ra
dhika
举报

张茜

2018-10-10 16:43:01
你好,
如图所示,所有跳线应保持在原位。如果断开连接,则断开它们的电源。
请再次阅读上面的评论。
1)确保传感器的电源为1,9 - 3,6 V,而不是更多!否则他们可能会被损坏。 (你有万用表吗?)
2)传感器板上已有4k7上拉电阻!
3)您是否有任何仪器(逻辑分析仪等)来验证传感器是否在没有Arduino板的情况下工作?

以上来自于谷歌翻译


以下为原文




Hello,
all the jumpers should remain in position, as the schematics suggests. If you disconnect them, it disconnects power from them.
Please, read my comments above, one more time.
1) Make sure the sensors are powered with 1,9 - 3,6 V, not more! Otherwise they can be damaged. (Do you have a multimeter?)
2) There are already 4k7 pull-up resistors on the sensor board!
3) Do you have any instrument (logic analyzer etc.) to verify the sensors are working without the Arduino board?
举报

更多回帖

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