Skip to content

MPU6050_DMP works in 1.0.6, 2.0.0 , but fail to initialize I2C interface with v2.0.1 , 2.0.2 #6373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
rkuo2000 opened this issue Mar 4, 2022 · 6 comments
Closed
1 task done
Labels
Area: Libraries Issue is related to Library support. Area: Peripherals API Relates to peripheral's APIs. Resolution: Wontfix Arduino ESP32 team will not fix the issue

Comments

@rkuo2000
Copy link

rkuo2000 commented Mar 4, 2022

Board

NodeMCU-32S

Device Description

ESP32 (NodeMCU-32S)

Hardware Configuration

GPIO 18 & 19 I2C connected to MPU6050

Version

v2.0.2

IDE Name

ArduinoIDE

Operating System

Ubuntu20.04 & Win11

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

921600

Description

MPU6050 library support MPU6050 DMP
which provides pitch-yaw-roll, and quaternions.

It failed at Initialing I2C Interace,
both examples from the library MPU6050_DMP.ino & MPU6050_raw.ino failed,
but they works fine in v2.0.0

Sketch

// initialize device
    Serial.println(F("Initializing I2C devices..."));
    mpu.initialize();

Debug Message

No error message, just hang at Initializing I2C devices...

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@rkuo2000 rkuo2000 added the Status: Awaiting triage Issue is waiting for triage label Mar 4, 2022
@Jason2866
Copy link
Collaborator

MPU6050 works in Project Tasmota. We use our own driver for the MPU6050.
So the library you use is not compatible.

@rkuo2000 rkuo2000 changed the title MPU6050_raw.ino works in 1.6.0, 2.0.0 , but fail to initialize I2C interface with v2.0.1 , 2.0.2 MPU6050_DMP works in 1.6.0, 2.0.0 , but fail to initialize I2C interface with v2.0.1 , 2.0.2 Mar 4, 2022
@rkuo2000 rkuo2000 changed the title MPU6050_DMP works in 1.6.0, 2.0.0 , but fail to initialize I2C interface with v2.0.1 , 2.0.2 MPU6050_DMP works in 1.0.6, 2.0.0 , but fail to initialize I2C interface with v2.0.1 , 2.0.2 Mar 4, 2022
@rkuo2000
Copy link
Author

rkuo2000 commented Mar 4, 2022

I use MPU6050 library for MPU6050 DMP output, because it can provide the stable pitch-roll-yaw, and quaternions.

@Jason2866
Copy link
Collaborator

I would open a issue there.

@me-no-dev
Copy link
Member

that library's code is all broken. Calling beginTransaction, followed by requestFrom and endTransaction is NOT a valid code! beginTransaction and endTransaction are to be used ONLY when writing. The fact that is works on other MCUs with more basic I2C peripherals and not RTOS environments, does not make the code valid.

@rkuo2000
Copy link
Author

rkuo2000 commented Mar 4, 2022

BTW, my robot design use MPU6050 DMP for AHRS and ESP32 v2.02 for microROS, I really like to see them work together,
let me review MPU6050 DMP I2C coding, and see if I can fix it to make them compatible.

@VojtechBartoska VojtechBartoska added Area: Peripherals API Relates to peripheral's APIs. Area: Libraries Issue is related to Library support. and removed Status: Awaiting triage Issue is waiting for triage labels Apr 11, 2022
@VojtechBartoska
Copy link
Contributor

I think we are not able to help here, the problem is in mentioned Library.

@VojtechBartoska VojtechBartoska added the Resolution: Wontfix Arduino ESP32 team will not fix the issue label Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Libraries Issue is related to Library support. Area: Peripherals API Relates to peripheral's APIs. Resolution: Wontfix Arduino ESP32 team will not fix the issue
Projects
None yet
Development

No branches or pull requests

4 participants