<?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>BMM150 not getting X Y Z values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59216/bmm150-not-getting-x-y-z-values</link><description>Hi 
 i m using Bmm150 magnetometer sensor. i m trying to read x y z values. However, im not able to obtain the correct magnetometer values. I&amp;#39;m getting 0000 as values in all directions. 
 here is my code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Mar 2020 06:49:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59216/bmm150-not-getting-x-y-z-values" /><item><title>RE: BMM150 not getting X Y Z values</title><link>https://devzone.nordicsemi.com/thread/241267?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 06:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0875b6a3-02f5-431f-b6ae-470f080087a8</guid><dc:creator>Boopathi</dc:creator><description>&lt;p&gt;yes sir&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BMM150 not getting X Y Z values</title><link>https://devzone.nordicsemi.com/thread/241266?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 06:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:702a65d8-2fdf-4b1d-8246-c489a1496e5b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please post a new ticket where you explain your issue in detail. We want to keep each ticket on topic for one specific issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BMM150 not getting X Y Z values</title><link>https://devzone.nordicsemi.com/thread/241260?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 05:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48629e48-8f3a-448e-8199-13ded4b1dd19</guid><dc:creator>Boopathi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am too using the same BMM150 sensor, but my concern is different from yours as iam able to read the raw data from the sensor but my values are not correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BMM150 not getting X Y Z values</title><link>https://devzone.nordicsemi.com/thread/240456?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 13:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e02cb1f-b102-4467-9007-090a8d1f75be</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would really recommend you to check the error codes from the TWI driver function calls, i.e. pass &amp;#39;ret&amp;#39; to APP_ERROR_CHECK(). It is also not good practice to use delays between transfers when you run the driver in non-blocking mode. You should rather set a flag in the event handler and wait for this flag before proceeding with new transfers.&lt;/p&gt;
&lt;p&gt;There is no delay between the calls to&amp;nbsp;BMM150_write() inside BMM150_set_mode(), and you are not checking the return codes. Most likely, all these calls except the first one return NRF_ERROR_BUSY. This leads to the TWI sensor not being initialized correctly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>