<?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>mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28781/mpu9250-magnetometer-zero-readings</link><description>hi, 
 10040 nrf52dk
softdevice 132 v2.
keil ide
I am trying to read magnetometer values so that i can calibrate it using this method . For this to happen, i need magnetometer, accelerometer and magnetometer values. However, im not able to obtain the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Dec 2017 19:35:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28781/mpu9250-magnetometer-zero-readings" /><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114025?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2017 19:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca445965-9930-428d-86bf-1d87e42b49fc</guid><dc:creator>vam5104</dc:creator><description>&lt;p&gt;Hi,
Thank you for the help. The problem has been solved. The issue was with my mpu9250. I changed it and I was able to obtain the output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114023?ContentTypeID=1</link><pubDate>Sun, 24 Dec 2017 22:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e402adb-553e-4821-a78d-94da5b820aa2</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I see the problem very simple: there is some embedded sensor module/chip which has defined some wired (serial) interface over TWI/I2C/SPI/QSPI/UART/whatever. You should attach logical analyzer to the wires and simply compare what you see (= what you send from nRF5x chip as master) with what is written and shown on examples in specification of that sensor. I bet you will see the problem straight away. If you want us to do this comparison job for you then at least provide us with these traces from wired interface (sorry but &lt;em&gt;&amp;quot;I verified and it was right&amp;quot;&lt;/em&gt; doesn&amp;#39;t look very convincing here if it doesn&amp;#39;t work;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114022?ContentTypeID=1</link><pubDate>Sun, 24 Dec 2017 19:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa310c5e-125a-4af2-bbe5-ab9e80ac01a4</guid><dc:creator>vam5104</dc:creator><description>&lt;p&gt;No, the issue has not been resolved. Here’s what I found out about it.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Mpu9250 uses imu6500 and ak8963. So, I changed the code such that the magnetometer part of app_mpu.h accepts only mpu9250.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I’m unable to read or write the magnetometer. It might be because of having ak8963_adr wrongly defined. However, I verified it and it was right (0x0C). All the other registers were defined correctly.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I get 0s because the magn read and write functions doesn’t work at all.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I’m working on it continuously. Any help will be greatly appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114021?ContentTypeID=1</link><pubDate>Sun, 24 Dec 2017 19:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad72f4df-e31d-474e-a842-c3dc7100ab3c</guid><dc:creator>vam5104</dc:creator><description>&lt;p&gt;No, the issue has not been resolved. Here’s what I found out about it.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Mpu9250 uses imu6500 and ak8963. So, I changed the code such that the magnetometer part of app_mpu.h accepts only mpu9250.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I’m unable to read or write the magnetometer. It might be because of having ak8963_adr wrongly defined. However, I verified it and it was right (0x0C). All the other registers were defined correctly.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I get 0s because the magn read and write functions doesn’t work at all.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I’m working on it continuously. Any help will be greatly appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114020?ContentTypeID=1</link><pubDate>Sun, 24 Dec 2017 14:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ffff7be-f9e0-4ec8-a98f-be0f627a0575</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Does it mean the issue is resolved? If so please close the question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114019?ContentTypeID=1</link><pubDate>Sun, 24 Dec 2017 12:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d3f86d0-35e3-4a47-9017-caffe06bcbc6</guid><dc:creator>vam5104</dc:creator><description>&lt;p&gt;Well, I did that. I was able to find that as long as I keep calling magnetometer functions, mpu doesnt respond. If i removed, then i get the acc and gyro values without any issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114024?ContentTypeID=1</link><pubDate>Sat, 23 Dec 2017 22:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49b381ba-c397-496e-ada0-4e159d66e728</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;So then put logical analyzer or oscilloscope to these wires and check what exactly you read. Assuming you will see that lines are not performing clock and data as expected (no real values read) you should consult general I2C/TXI tutorials and spec sheet of your sensor chip to see what is exactly wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114018?ContentTypeID=1</link><pubDate>Sat, 23 Dec 2017 14:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff04532c-b1a2-47dc-963a-78b6759afc13</guid><dc:creator>vam5104</dc:creator><description>&lt;p&gt;I connected it via I2C/TWI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mpu9250 magnetometer zero readings</title><link>https://devzone.nordicsemi.com/thread/114017?ContentTypeID=1</link><pubDate>Sat, 23 Dec 2017 14:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35867dab-378e-4f08-b854-565ae26508c8</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;How do you connect the MPU9250 to the PCA10040? uart? SPI? I2C?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>