<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Question about connect arduino primo to BMI160 using SPI..</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29138/question-about-connect-arduino-primo-to-bmi160-using-spi</link><description>Hi l trying to hookup arduino primo and BMI160,but recently my develop is in a strange situation,that i sent 0x00 and others register but alway return 0xff, here shows the pin connection and my test code, any suggestion would be thankful.. 
 
 .#include</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jan 2018 10:27:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29138/question-about-connect-arduino-primo-to-bmi160-using-spi" /><item><title>RE: Question about connect arduino primo to BMI160 using SPI..</title><link>https://devzone.nordicsemi.com/thread/115763?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 10:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820da712-b07a-4294-8758-567c5cc45a61</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;Yes,this case just check the concept is workable. Now i&amp;#39;m using nrf52 DK to productize our conecpt, so this problem may be solved in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about connect arduino primo to BMI160 using SPI..</title><link>https://devzone.nordicsemi.com/thread/115764?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2018 13:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8499cfc-f7ca-49e4-883c-bd10c441e83b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Does that mean you can get it to work sometimes, but not all the time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about connect arduino primo to BMI160 using SPI..</title><link>https://devzone.nordicsemi.com/thread/115762?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 11:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cdead2e-ce52-4b2c-af52-921c929800bc</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;The connection is right, the problem seems the mcu sometimes do not initialize well, so can&amp;#39;t connect to the sensor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about connect arduino primo to BMI160 using SPI..</title><link>https://devzone.nordicsemi.com/thread/115761?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 11:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b304747f-4951-4f28-a59c-228672795975</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Did you figure out the problem? Does the SPI communication work with the BMI160 IMU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about connect arduino primo to BMI160 using SPI..</title><link>https://devzone.nordicsemi.com/thread/115760?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 07:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d36fea4-24e7-4883-b29b-a50fd3533a27</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;thanks for your reply. I try to do some example to make sure my realization on SPI is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about connect arduino primo to BMI160 using SPI..</title><link>https://devzone.nordicsemi.com/thread/115759?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 13:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09572e5-ac46-4751-9f4c-519ea324f45c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi TTN, I am pretty sure you have connected the wires correctly (&lt;a href="https://github.com/hanyazou/BMI160-Arduino"&gt;see this link here&lt;/a&gt;, see Section Wiring, SPI Mode). I&amp;#39;m guessing you have already taken a look at the Arduino SPI library, but it might be a good idea to double check (&lt;a href="https://www.arduino.cc/en/Reference/SPI"&gt;see this link&lt;/a&gt;). On the bottom of that page, two different examples with code are given for a &lt;a href="https://www.arduino.cc/en/Tutorial/BarometricPressureSensor"&gt;barometric pressure sensor&lt;/a&gt; &amp;amp; &lt;a href="https://www.arduino.cc/en/Tutorial/DigitalPotControl"&gt;digital potentiometer control&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Comparing your code to the barometric pressure sensor, I can see there are a few differences. Let me test your code &amp;amp; the example code on my Primo first. I will get back to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>