<?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>NRF52 SDK 16 Communicating with MPU6050</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61792/nrf52-sdk-16-communicating-with-mpu6050</link><description>Hello, 
 I&amp;#39;m trying to get the PCA10056 to communicate with the MPU6050 Motion Processor (I think that&amp;#39;s what it&amp;#39;s called), but still in the very starting point. 
 1 - I&amp;#39;ve found the example on Github, but it&amp;#39;s for SDK 14 only. Is there an updated version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 May 2020 18:24:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61792/nrf52-sdk-16-communicating-with-mpu6050" /><item><title>RE: NRF52 SDK 16 Communicating with MPU6050</title><link>https://devzone.nordicsemi.com/thread/252485?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 18:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b3172ed-fe2c-4fda-aee0-7d696f64135c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Check out the &lt;a href="https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-6000-Datasheet1.pdf"&gt;MPU6050 Datasheet&lt;/a&gt;, there you should find sufficient information on how to communicate with it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK 16 Communicating with MPU6050</title><link>https://devzone.nordicsemi.com/thread/252062?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 02:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c82ed7cc-7b76-4ea4-953a-d0b6a3c2f9c9</guid><dc:creator>ThienVu</dc:creator><description>&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;I was able to replicate the project using SDK 16. I also have an idea of how to use GPIOTE to read an interupt, it was included in the example project also.&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t know how to activate and use MPU6050 Digital Motion Processing. What register do I need to write or read to get the processed value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK 16 Communicating with MPU6050</title><link>https://devzone.nordicsemi.com/thread/251795?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 21:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b81957cb-5890-44e8-845c-592938bc21ba</guid><dc:creator>Simon</dc:creator><description>[quote user=""]1 - I&amp;#39;ve found the example on Github, but it&amp;#39;s for SDK 14 only. Is there an updated version to use with SDK 16?[/quote]
&lt;p&gt;&amp;nbsp;To&amp;nbsp;adapt a sample built using SDK 14 to SDK 16 do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Migrate from SDK 14 to SDK 15 using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fmigration.html"&gt;this guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Migrate from SDK 15 to SDK 16 using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fmigration.html"&gt;this guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
[quote user=""] Is there a way to activate and use MPU6050 Digital Motion Processor with the INT pin? Even the Github example doesn&amp;#39;t use this.[/quote]
&lt;p&gt;You could use the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fgpiote.html&amp;amp;cp=4_0_0_5_9"&gt;GPIOTE peripheral&lt;/a&gt;, which makes it possible to generate an event on a pin state change. Take a look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fnrf_gpiote_example.html&amp;amp;cp=7_1_4_6_14"&gt;GPIOTE&amp;nbsp;example&lt;/a&gt;&amp;nbsp;to get an idea of how to achieve this. Then connect the INT pin of the MP6050 to the nRF52 pin generating the event. You can have a handler(function) that is called when the event is triggered, and inside that function, you should initiate&amp;nbsp;a TWI read to get the new data in the MPU6050.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I was able to find SCL and SDA pin on the PCA10056 using the datasheet, and found the MPU6050. However, if there&amp;#39;s only 1 SCL and 1 SDA pin on the PCA10056, then how do I add another TWI device, or use more than 1 TWI devices?[/quote]
&lt;p&gt;Why do you need more than one TWI device? You can communicate with several TWI slaves from the TWI master on the nRF52 by using different addresses.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>