Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Strange behavior I2C using invensense-imu library #2062

Unanswered
brightproject asked this question in Libraries
Discussion options

Microcontroller stm32f401ccu6
Connecting by I2c SDA-PB7, SCL-PB6
IMU MPU-9250
71sAqWIEQwL AC_SL1100
This sketch
Works good
I2C device found at address 0x68 !
But when I try to use sketch
I get a message
Error initializing communication with IMU
Which says that the wire does not work.
I can't find the reason for this behaviour.
The author of the library says the reason is incorrect initialization of I2C.
Help me to understand.

You must be logged in to vote

Replies: 2 comments

Comment options

Hi @brightproject
I convert your issue as a discussion as it concern a third party library.
The TwoWire implementation in this core follows the Arduino API. As I do not have this hardware I could not test but you have to check if PU resistor are available on both I2C line.
Then you can try to debug on your side to see why it failed, as I could not do that I could not help more. Maybe you can ask also on the forum.

You must be logged in to vote
0 replies
Comment options

The TwoWire implementation in this core follows the Arduino API. As I do not have this hardware I could not test but you have to check if PU resistor are available on both I2C line.

Thanks for the answer.
Currently, I am trying to find the root cause - the STM32 core and I2C or a library for working with the MPU9250 sensor
The I2C bus works, but not always.
I also changed the pull-up resistors from 10 kΩ to 4.7 kΩ.
Additionally, I changed the address of the MPU9250 sensors from 0x68 to 0x69, by contact 3.3. volts at AD0.
The library still does not want to work with the sensor.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2059 on July 10, 2023 08:13.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.