<?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>3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36351/3d-motion-problem-in-a-specified-movement</link><description>Hello, 
 
 (I also create an issue over Thingy SDK GitHub page - #29) 
 It seems to me that there is an issue about the usage of MPU-9250. 
 I motioned Thingy and I observed its movement on the app. In all movement combination, SDK finds Thingy&amp;#39; s location</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 16 Sep 2018 15:48:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36351/3d-motion-problem-in-a-specified-movement" /><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/148885?ContentTypeID=1</link><pubDate>Sun, 16 Sep 2018 15:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037b85e7-2187-4cec-99ef-89a0f3f9962d</guid><dc:creator>dogus</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, that is OK. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/148418?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 12:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4cca96c-da00-4571-94bf-11e84d4fe7d6</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems you received help on the &lt;a href="https://github.com/NordicSemiconductor/Nordic-Thingy52-FW/issues/29#issuecomment-404777341"&gt;github forum&lt;/a&gt;, so I will close the case if that is ok with you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/147347?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 10:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6bdc13-e175-45e9-8fe9-e183040f4737</guid><dc:creator>dogus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I finished my tests and here are my results;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I used&amp;nbsp;&lt;span&gt;the AK8975 3-axis electronic compass that mostly used with MPU6050 IC. I&amp;nbsp;used it and only it alone and I tried to see stable magnetic north (in degree). While doing this, I was sure that PCB won&amp;#39;t affect the compass because In this way, I tested it on different environments (I positioned the compass to a specific direction on my working desk and my friend&amp;#39;s working desk) and the results are NOT SAME. Also, I downloaded a compass app to my phone and I tried the process with it. It was also affected by environmental factors.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, what should I do? How can I overcome it? Please help me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/143568?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 12:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b860f408-afa3-46e6-b0fd-b334c3a2e19f</guid><dc:creator>dogus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried what you said and the results are really better in comparison with previous results. It is really good. But unfortunately, the&amp;nbsp;same problem continuous. Jumping angle is decreased but still,&amp;nbsp;it jumps and I can say that this problem still come up in my almost every try.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now, I am trying this process with different compass and external MPU9250 module (I try to separate&amp;nbsp;the MPU from the board to test if it is affected by iron effect or not). After my tests, I will share my results.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/142286?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 04:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba0fcec5-d707-4066-b9a2-707b2d4acf01</guid><dc:creator>Mathew</dc:creator><description>&lt;p&gt;Hi Dogus,&lt;/p&gt;
&lt;p&gt;Decreasing the &amp;#39;compass_interval_ms&amp;#39; to 10ms (100Hz is the maximum rate the compass can be read) and increasing the &amp;#39;motion_freq_hz&amp;#39; to at least 100Hz results in much improved performance.&lt;/p&gt;
&lt;p&gt;You can see I&amp;#39;ve hard-coded these values in the function below (found in m_motion.c) to prevent the configuration stored in flash from being used:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static uint32_t m_motion_configuration_apply(ble_tms_config_t * p_config)
{
    uint32_t err_code;
    drv_motion_cfg_t motion_cfg;

    NULL_PARAM_CHECK(p_config);

    motion_cfg.pedo_interval_ms    = p_config-&amp;gt;pedo_interval_ms;
    motion_cfg.temp_interval_ms    = p_config-&amp;gt;temp_interval_ms;
    motion_cfg.compass_interval_ms = 10;//p_config-&amp;gt;compass_interval_ms;
    motion_cfg.motion_freq_hz      = 100;//p_config-&amp;gt;motion_freq_hz;
    motion_cfg.wake_on_motion      = p_config-&amp;gt;wake_on_motion;

    err_code = drv_motion_config(&amp;amp;motion_cfg);
    APP_ERROR_CHECK(err_code);

    return NRF_SUCCESS;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I recommend re-enabling the inv_enable_vector_compass_cal function also. Now that the compass is being read at a faster rate, the automatic calibration of the compass occurs much more promptly once the device has started moving in a figure-8 pattern.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/141828?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 07:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03802a44-bee9-431c-abb8-88f90a49fcb4</guid><dc:creator>dogus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your&amp;nbsp;interest and reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I already tried the code with; changing &amp;quot;inv_set_compass_bias&amp;quot;&amp;nbsp; function parameter and open/close with the different combination of &amp;quot;inv_enable_vector_compass_cal&amp;quot; and &amp;quot;inv_enable_magnetic_disturbance&amp;quot; functions. But I got same result.&lt;/p&gt;
&lt;p&gt;Then I considered that my Thingy has a different problem. I mean it might be too much affected&amp;nbsp;by environmental effect (iron effect maybe I don&amp;#39;t know) and I have only one Thingy but our custom designed card. So I re-overview our code in the meantime and its code is same with&amp;nbsp;Thingy original code in the motion driver side. The result is also problematic.&lt;/p&gt;
&lt;p&gt;As I mentioned before, our card is very small and its one side is battery holer completely. I mean, it could be also affected by environmental effects. As a result, we ordered &lt;a href="https://www.banggood.com/tr/CJMCU-10DOF-9-Axis-MPU9250-BMP180-Sensor-Module-p-971470.html?gmcCountry=TR&amp;amp;currency=TRY&amp;amp;utm_source=googleshopping&amp;amp;utm_medium=cpc_elc&amp;amp;utm_content=zouzou&amp;amp;utm_campaign=usc-tr-la01-ele&amp;amp;cur_warehouse=CN"&gt;an MPU9250 module&lt;/a&gt;&amp;nbsp;to test with the same&amp;nbsp;driver (code). If it works, then our designed cards (and Thingy I think) are affected too much and we will try to change out HW design. Also, I ordered another extra compass module. I will test it under the same conditions,&amp;nbsp;if the additional compass works fine, we will add this additional compass to our design and we will use its raw data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is that logical solution by the way? What do you think?&lt;/p&gt;
&lt;p&gt;Also, with your reply, I tried your first suggestion and the result is, unfortunately, the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Dogus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/141761?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 21:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af36f492-f5be-4925-bfa8-43bd698cf9a3</guid><dc:creator>Mathew</dc:creator><description>&lt;p&gt;Hi Dogus,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t purport this to be a solution to the problem as I have not yet had a chance to test either of these myself, however if you are willing to give anything a try, I suggest giving each of the following a go:&lt;/p&gt;
&lt;p&gt;Firstly change the following in &amp;#39;drv_motion.c&amp;#39;:&lt;/p&gt;
&lt;p style="color:#000000;font-family:Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static platform_data_t s_compass_pdata =
{
    .orientation = { -1,  0,  0,
                      0,  1,  0,
                      0,  0, -1}
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static platform_data_t s_compass_pdata =
{
    .orientation = { 0, 1, 0,
                     1, 0, 0,
                     0, 0,-1}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and see if the behavior persists.&lt;/p&gt;
&lt;p&gt;Secondly,&amp;nbsp;comment out the compass calibration&amp;nbsp;function&amp;nbsp;in &amp;#39;drv_motion&amp;#39;&amp;nbsp;as shown below:&lt;/p&gt;
&lt;p style="color:#000000;font-family:Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* Compass calibration algorithms. */
//err_code = inv_enable_vector_compass_cal();
//RETURN_IF_ERROR(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and see if the behavior persists.&lt;/p&gt;
&lt;p&gt;Both of these attempt to prevent the quaternion from making a sudden &amp;#39;step change&amp;#39; which may be&amp;nbsp;directly related to&amp;nbsp;the compass.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/140324?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 07:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9fa005-8a63-4188-a974-e4f0419f0cfc</guid><dc:creator>dogus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you say so then we can close the case. I will share my&amp;nbsp;test result on github.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/140249?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 14:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eed0e7ad-5209-4668-8066-8e48a1bdf62e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dogus,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Seems that you got some help from our R&amp;amp;D directly on &lt;a href="https://github.com/NordicSemiconductor/Nordic-Thingy52-FW/issues/29#issuecomment-404777341"&gt;github&lt;/a&gt;. I guess we can close the case here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/140152?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 06:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59b9d0a6-ca09-4fd8-8c92-8c0d3b484416</guid><dc:creator>dogus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;OK, thank you. We are waiting for your&amp;nbsp;reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/140089?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 15:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b339d6ee-8fbd-42f3-896a-d7655d0f0fd8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the video report. I have forwarded the report to our R&amp;amp;D. Will get back to you when we hear from them.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/140033?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 09:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:015d9a2f-526f-4536-87ae-8454ce294d44</guid><dc:creator>dogus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;First of all, thank you for your reply.&lt;/p&gt;
&lt;p&gt;I did not test this problem with another Thingy but we test it with another device that we produced by using your open source documents (our designed card photos in the link) and with our card, the result is same, problematic.&lt;/p&gt;
&lt;p&gt;In the link, I added the Thingy PCB photo that product version information&amp;nbsp;can be seen clearly.&lt;/p&gt;
&lt;p&gt;I also add a video to the link. In this video, we moved the Thingy and there is no problem until second-20. With the movement at that second, you can see what I mean. Then, we put the Thingy on the table on its smaller surface and did the same movement again and it is still problematic. If you just look at the difference between frames at second-33 and second-46 (I also add these frames to the link) you can clearly see our problem.&lt;/p&gt;
&lt;p&gt;The link:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="https://www.dropbox.com/sh/prdz4jtk80pbm6f/AAANt1KdzRZN3Eqf1RKKk_Z5a?dl=0"&gt;https://www.dropbox.com/sh/prdz4jtk80pbm6f/AAANt1KdzRZN3Eqf1RKKk_Z5a?dl=0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3D Motion Problem in a Specified Movement</title><link>https://devzone.nordicsemi.com/thread/139923?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 14:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcb46d2d-fb10-41df-a2d2-a6f0545652ed</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t really see a problem when trying to do the same here. Have you tested on other thingy ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you read the thingy version on the sticker on the PCB ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you updated the firmware (should be automatically from the app) ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you capture a screenshot video when you do that to show the problem ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>