You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microcontrollerstm32f401ccu6
Connecting by I2c SDA-PB7, SCL-PB6
IMU MPU-9250
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.
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.
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.
This discussion was converted from issue #2059 on July 10, 2023 08:13.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Microcontroller

stm32f401ccu6Connecting by I2c
SDA-PB7,SCL-PB6IMU
MPU-9250This sketch
Works good
I2C device found at address 0x68 !But when I try to use sketch
I get a message
Error initializing communication with IMUWhich says that the
wiredoes 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.
All reactions