MOD-MPU6050 with MOD-WIFI-ESP8266-DEV

Started by edup, November 28, 2016, 08:11:03 pm

Previous topic - Next topic

edup

Hi,

I'm trying to get started with MOD-MPU6050 and MOD-WIFI-ESP8266-DEV (both from olimex).

I'm using the arduino sketch that olimex has in their page https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/open-source-hardware but it never finds the module. The error message is:

Initializing I2C devices...
Testing device connections...
MPU6050 connection failed


Does anyone could give me some tips?

Thanks in advance.



LubOlimex

Hello,

Probably, there is no pull-up on the I2C line since both boards start with the MOD- prefix - these are considered boards that should operate as "devices". They are usually connected to boards that operate as "hosts" (without MOD- prefix). It is typical for the host boards to have the pull-up resistors.

You need to place the pull-up resistors on one of the boards. Both boards have pads provided for such resistors on SCL and SDA. For example, you can place 4.7k ohm resistors on R4 and R5 pads of the MOD-MPU6050 board. Refer to the schematics of the boards.

Best regards,
Lub/OLIMEX

Technical support and documentation manager at Olimex

edup

Thanks for your answer. I have it working now.

Wiring:
I connected SCL to pin GPIO4 and SDA to GPIO2.
I connected VCC and ground to the right pins of the breadboard.

Code:
I need to begin it with: Wire.begin(2,4);

It works now.