<?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>no communication between custom PCB and mpu6050</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19090/no-communication-between-custom-pcb-and-mpu6050</link><description>Hello, 
 I used a breakout board of the MPU6050 ( playground.arduino.cc/.../mpu-6050.jpg) 
and the nrf52832 development board. There is communication between the two and I have no problems retrieving data from the MPU6050. However, when I put the mpu6050</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 01:23:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19090/no-communication-between-custom-pcb-and-mpu6050" /><item><title>RE: no communication between custom PCB and mpu6050</title><link>https://devzone.nordicsemi.com/thread/284906?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 01:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa219122-d0df-41b8-85c3-3dc5e2daaeeb</guid><dc:creator>DD_</dc:creator><description>&lt;p&gt;Dear Adrian,&lt;/p&gt;
&lt;p&gt;I am facing same issue. Have you solved your problem? Please help us regarding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no communication between custom PCB and mpu6050</title><link>https://devzone.nordicsemi.com/thread/122518?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 20:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4769a414-5555-4f46-9d51-fc681ccf6950</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Guess this is handled in your separate question? &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30917/nrf52832-and-mpu6050"&gt;devzone.nordicsemi.com/.../nrf52832-and-mpu6050&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no communication between custom PCB and mpu6050</title><link>https://devzone.nordicsemi.com/thread/122099?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 10:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39ff24a1-aff5-4e50-bf68-e38cd23336c9</guid><dc:creator>cd.barahona</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;I have used that repo, but I have problems building the program (example nrf_mpu_simple).&lt;/p&gt;
&lt;p&gt;This is the code and errors:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; /* 
  * This example is not extensively tested and only 
  * meant as a simple explanation and for inspiration. 
  * NO WARRANTY of ANY KIND is provided. 
  */

#include &amp;lt;stdio.h&amp;gt;
#include &amp;quot;boards.h&amp;quot;
#include &amp;quot;app_uart.h&amp;quot;
#include &amp;quot;app_error.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;app_mpu.h&amp;quot;

#include &amp;quot;nrf_log.h&amp;quot;
#include &amp;quot;nrf_log_ctrl.h&amp;quot;
#include &amp;quot;nrf_log_default_backends.h&amp;quot;

typedef struct
{
    uint8_t             smplrt_div;         // Divider from the gyroscope output rate used to generate the Sample Rate for the MPU-9150. Sample Rate = Gyroscope Output Rate / (1 + SMPLRT_DIV)
    sync_dlpf_config_t  sync_dlpf_gonfig;   // Digital low pass fileter and external Frame Synchronization (FSYNC) configuration structure
    gyro_config_t       gyro_config;        // Gyro configuration structure
    accel_config_t      accel_config;       // Accelerometer configuration structure
}app_mpu_config_t;

/**@brief Function for initializing the nrf log module.
 */
static void log_init(void)
{
    ret_code_t err_code = NRF_LOG_INIT(NULL);
    APP_ERROR_CHECK(err_code);

    NRF_LOG_DEFAULT_BACKENDS_INIT();
}


void mpu_init(void)
{
    ret_code_t ret_code;
    // Initiate MPU driver
    ret_code = app_mpu_init();
    APP_ERROR_CHECK(ret_code); // Check for errors in return value
    
    // Setup and configure the MPU with intial values
    app_mpu_config_t p_mpu_config = MPU_DEFAULT_CONFIG(); // Load default values
    p_mpu_config.smplrt_div = 19;   // Change sampelrate. Sample Rate = Gyroscope Output Rate / (1 + SMPLRT_DIV). 19 gives a sample rate of 50Hz
    p_mpu_config.accel_config.afs_sel = AFS_2G; // Set accelerometer full scale range to 2G
    ret_code = app_mpu_config(&amp;amp;p_mpu_config); // Configure the MPU with above values
    APP_ERROR_CHECK(ret_code); // Check for errors in return value 
}

/**
 * @brief Function for main application entry.
 */
int main(void)
{    
    uint32_t err_code;
    
    // Initialize.
    log_init();
	NRF_LOG_INFO(&amp;quot;\033[2J\033[;H&amp;quot;); // Clear screen
    
    mpu_init();
    
    // Start execution.
    NRF_LOG_INFO(&amp;quot;MPU Free Fall Interrupt example.&amp;quot;);
    
    accel_values_t acc_values;
    uint32_t sample_number = 0;
    
    while(1)
    {
        if(NRF_LOG_PROCESS() == false)
        {
            // Read accelerometer sensor values
            err_code = app_mpu_read_accel(&amp;amp;acc_values);
            APP_ERROR_CHECK(err_code);
            // Clear terminal and print values
            NRF_LOG_INFO(&amp;quot;\033[3;1HSample # %d\r\nX: %06d\r\nY: %06d\r\nZ: %06d&amp;quot;, ++sample_number, acc_values.x, acc_values.y, acc_values.z);
            nrf_delay_ms(250);
        }
    }
}

/** @} */

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building ‘template_pca10040’ from solution ‘template_pca10040’ in configuration ‘Debug’
  Compiling ‘main.c’
    conflicting types for &amp;#39;app_mpu_config_t&amp;#39;
    main.c
    previous declaration of &amp;#39;app_mpu_config_t&amp;#39; was here
    passing argument 1 of &amp;#39;app_mpu_config&amp;#39; from incompatible pointer type [-Wincompatible-pointer-types]
    main.c
    expected &amp;#39;app_mpu_config_t * {aka struct &amp;lt;anonymous&amp;gt; *}&amp;#39; but argument is of type &amp;#39;app_mpu_config_t * {aka struct &amp;lt;anonymous&amp;gt; *}&amp;#39;
Build failed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you help me with this. I do not know where is the error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no communication between custom PCB and mpu6050</title><link>https://devzone.nordicsemi.com/thread/73859?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 08:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d4fe655-f166-459a-905a-1200fd377371</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Adrian,&lt;/p&gt;
&lt;p&gt;I suggest that you take a look at the nRF5x examples in &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples"&gt;this&lt;/a&gt; GitHub repo .&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no communication between custom PCB and mpu6050</title><link>https://devzone.nordicsemi.com/thread/73858?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 02:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc0e7e84-28bb-42a5-945b-0a6f952b2dec</guid><dc:creator>Joe Wright</dc:creator><description>&lt;p&gt;Basic questions - have you followed MPU6050 datasheet closely?  Decoupling capacitors, pull up resistors on SDA, SCL, correct address (perhaps do a scan across all the I2C addresses to see if that&amp;#39;s the problem), etc....&lt;/p&gt;
&lt;p&gt;If I remember correctly there&amp;#39;s some soldering considerations like not connecting the large pad (may be wrong, but it rings a bell).  Checked the soldering in general?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>