<?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>mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10603/mpu6050-on-nrf51822</link><description>Hello 
 Is there any example or tutorial on how to use the mpu6050 library?
I just started to program the nrf51822 and hope to find some helpful clues to get me going. 
 Any suggestion would be appreciated. 
 Nick 
 Update:
I got the mpu-6050 working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 11 Sep 2021 15:13:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10603/mpu6050-on-nrf51822" /><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/329106?ContentTypeID=1</link><pubDate>Sat, 11 Sep 2021 15:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a04eaf60-af28-4c5f-9e6f-703fb01e4c57</guid><dc:creator>Mikebrb</dc:creator><description>&lt;p&gt;Hello. I&amp;#39;ve recently found this thread.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m struggling to use DMP functions (inclination).&lt;/p&gt;
&lt;p&gt;Could you share the code of this hobby project?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/328859?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 13:53:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad16c72-d7ac-42fa-a4e7-cf9889915aa1</guid><dc:creator>Mikebrb</dc:creator><description>&lt;p&gt;Hello. Thank you for great&amp;nbsp;examples!&lt;br /&gt;I&amp;#39;m struggling to find a way to get Yaw/Pitch/Roll data from MPU6050.&amp;nbsp;&lt;br /&gt;I know that I have to use DMP data for this.&lt;br /&gt;I know that in your examples you don&amp;#39;t work with DMP.&lt;br /&gt;However I also found some example on Chinese website, very similar to your initial example, and it has the files related to DMP. But I don&amp;#39;t know how to use it.&lt;br /&gt;Maybe there is already a code that works with DMP?&lt;/p&gt;
&lt;p&gt;I would appreciate any hints on that. &lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39492?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2017 02:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a54bc51e-b714-40e2-be06-d1c314975f3b</guid><dc:creator>harlek</dc:creator><description>&lt;p&gt;Whoops, I found the rootcause. I mistakenly register the wrong SCL and SDA pin. Thank you so much for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39489?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 05:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:577a54cb-171c-47ca-bbf2-ed86adb113a4</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;That is very strange. Are you sure that the read/write functions are being called successfully? Have debugged?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39488?ContentTypeID=1</link><pubDate>Sun, 16 Jul 2017 09:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1426c9ff-6c35-4f74-b512-f23adabc3256</guid><dc:creator>harlek</dc:creator><description>&lt;p&gt;Hi
I am using your repo at &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples/tree/master"&gt;HERE&lt;/a&gt; however nrf_drv_mpu_twi_event_handler seems never been called when I use mpu_read/write register. Do you know why?&lt;/p&gt;
&lt;p&gt;I am using SDK 12.03&lt;/p&gt;
&lt;p&gt;Thank you,
Harlek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39490?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 11:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b89a0aed-f029-4ca2-a688-a478ea5903e1</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi @Rajat. I assume you got your answer here: &lt;a href="https://devzone.nordicsemi.com/question/150724/mpu6050-init-failed-when-integrated-with-pca-10028-nrf51822/"&gt;MPU6050 Init failed when integrated with PCA 10028 (nrf51822)&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39491?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 11:45:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50c227a-f38d-4027-bd7f-c403be90bf14</guid><dc:creator>Rajat</dc:creator><description>&lt;p&gt;Hi..! I am getting mpu6050 test
mpu6050 init fail
mpu6050 id is 0 on UART in the project NRF51-MPU6050.RAR and o values of accelerometer and gyrometer please someone help how to debug it. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39487?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2017 09:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d92989f-b799-48ed-936f-eebf139c8294</guid><dc:creator>Hermes Trismegistus</dc:creator><description>&lt;p&gt;Hello there, I have a new question regarding these examples in &lt;a href="https://devzone.nordicsemi.com/question/128503/sending-char-data-via-ble-wmpu6050-nrf51822/"&gt;here&lt;/a&gt;. Can you (or anyone else) please take a look at and respond to it? Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39486?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2017 16:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5546762-a3da-4349-abab-31819dfb65ae</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;I found it. For the magnetometer, I couldn&amp;#39;t get the 100 Hz continuous to work. Switched to 8Hz and it works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39485?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2017 03:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a6d9875-9621-4572-9d4e-5fdc8004427f</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;Hi Martin  - Just wanted to see if you have confirmed if this works with the magnetometer example? Can&amp;#39;t get mine to work - all the others work great. Just trying to narrow down the problem. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39484?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 00:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a7f9bf-d4b9-4dc2-952d-b3b52d444eed</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;Sorry for false alarm. Erased the sd and re-loaded - working now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39483?ContentTypeID=1</link><pubDate>Sat, 31 Dec 2016 22:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9e37fcb-f5e7-4bde-8169-20f6fd41a1e3</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;Hi - Trying to get the ble_mpu_simple to send the values to iOS device (I don&amp;#39;t have a dongle). The service and characteristic UUIDs are coming thru as 180D and 2A37, respectively, not the 0xF00D and 0xACCE that are clearly set up in the program. I completely erased everything with nRF Studio and started fresh. It works if I use the former UUIDs but I&amp;#39;d like to understand why the stated UUIDs are not coming through as expected or what I might be doing wrong. Any guidance would be greatly appreciated. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39482?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2016 07:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e9225f9-f8b2-437a-824c-ffa299012ad5</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi @ndr. I have fixed it now. Of some reason the example used the wrong UART library. It should have used app_uart_fifo.c to be to enable the use of printf and print strings, but it didn&amp;#39;t. I don&amp;#39;t know how I didn&amp;#39;t catch that when testing the example. Anyway, it should be fixed now. I tested in on a PCA10040 and it worked. I have not tested it on a PCA10028, but I made the same changes to both examples, so it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39481?ContentTypeID=1</link><pubDate>Sat, 22 Oct 2016 18:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf3d95b-5325-47b9-bef2-e3171860047b</guid><dc:creator>ndr</dc:creator><description>&lt;p&gt;Hi, thank you for the great examples.
I am using the nRF51 DK with MPU6050 and I tried nrf5-mpu-simple and nrf5-mpu-data-ready-interrupts and it works great.
But I want to transmit the collected data over the BLE and I am trying to use your example
(nrf-mpu-ble-simple) but somehow it doesn&amp;#39;t work as excepted (I think).
I tried running the nrf-mpu-ble-simple as is and the program starts and the following is printed on the termite: [1B]El@8
after that it stops.
After this I tried connecting from Master Control Panel with nrf51 dongle. As soon as it connects, in the termite A00000 is printed repeatedly.
I checked the bound rate but no luck. Am I missing something?&lt;/p&gt;
&lt;p&gt;Looking forward hearing from you.&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39480?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 07:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3e1c3a7-fdf6-43d2-9f6a-596db0c0e4bb</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Removed some stuff now and got it down to ~27k, which is still way more than it should have to be, but I don&amp;#39;t have time to look into it now. You can save ~3k extra if you remove the references to printf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39479?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 16:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed21959-0a79-4fe3-a318-03520375727a</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;I tried the ble-mpu example but it was over the 32K limit. Guess I had to move to Eclipse/GCC at some point!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39478?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 18:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d88739-0b7b-44f0-b9c3-f22f96588d46</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;My mistake. I saw the pins 1/2 in the 10040 file. Works as you mention.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39477?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 07:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:328745a8-6ae5-41a8-bd1f-84a5f3af8b82</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;How did you get to that conclusion? Are you using an Arduino shield? In general you are free to use whatever pins you like. I don&amp;#39;t use a shield, just a MPU break out board hooked up to the PCA100xx with some jumper wires. I usually use pin 3 and 4 on the PCA10040 and 1 and 2 on PCA10028 simply because they are closest to the headers with GND and VDD, not used for e.g. LEDs or buttons, and due to old habits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39476?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 16:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a43795-8325-4b9e-b558-c2773bcd47d8</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;Just a minor note. Just upgraded to the nRF52 kit and SCL / SDA pins need to be 27 / 26, respectively (I think 1 and 2 are in the code)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39499?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 14:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5370f865-840f-471c-aacd-db5ed6e3e528</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Looks like JLinkRTTClient doesn&amp;#39;t know how to format the data properly. I have no experience with Segger Studio. What function do you use to print to the JLinkRTTClient?&lt;/p&gt;
&lt;p&gt;You should see something like:&lt;/p&gt;
&lt;p&gt;MPU simple example. Compiled @ 18:31:46&lt;/p&gt;
&lt;p&gt;Sample # 33&lt;/p&gt;
&lt;p&gt;X: -00123&lt;/p&gt;
&lt;p&gt;Y: 012345&lt;/p&gt;
&lt;p&gt;Z: 000011&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39498?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 13:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46e66760-d54d-4a8b-878e-275fad734723</guid><dc:creator>devchandan</dc:creator><description>&lt;p&gt;I compiled it using Segger Studio, have used the correct pins and MPU on the preprocessor definitions. I used the JLinkRTTClient to see the result on the terminal. This is the output I got:&lt;/p&gt;
&lt;p&gt;MPU simple example. Compiled @ 18:31:46&lt;/p&gt;
&lt;p&gt;Sample # 33
X:
Y: 6d
Z: 6d&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39497?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 11:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e981eb2-8d5a-41ec-973e-f108a3c650a3</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;The example seems to work on my nRF51 DK and MPU9255. I have some random troubles with the serial terminal though. I use Tera Term and sometimes I have to close and reopen it again to see the data.
Did you remember to define the correct pins and the correct MPU in Targ Options?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39496?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 10:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe35f079-66af-4654-ab3e-993b39dd9727</guid><dc:creator>devchandan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using a 3rd Rev NRF51822 (AA)  with MPU9250. Does the 9255 example work with it. I tried using the simple mpu example with SDK11.0.0 but could not see any values on the terminal. It was just updating the sampling number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39475?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2016 07:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e2ec45f-583a-49bc-a629-e24e399525df</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Good! I updated the register maps on Friday 8th of April, so if you downloaded the new code after that then that might be the reason why it works now. If this is the case it might be worth trying the old MPU once more before you throw it away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu6050 on Nrf51822</title><link>https://devzone.nordicsemi.com/thread/39474?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2016 16:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a6cdc30-8059-4c35-8f06-2e4f2b27c04f</guid><dc:creator>dkwill</dc:creator><description>&lt;p&gt;So I tried a different MPU6050 and everything works! I just changed the board defines to MPU60x0. Thanks again for your work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>