Repository navigation
Print the IMU WHO_AM_I at boot and with debug command w - #15
Merged
Merged
Conversation
Reads 0x75 (MPU6050 family) and 0x00 (ICM-20x48 family) at 0x68/0x69 directly through Wire, before the library's begin(). begin() rejects any ID other than the one it expects without saying what it read; this shows the ID, or 'no ACK' when the bus/pins are the problem. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Identifies the IMU even when the library rejects it (with
DEBUG_RTTand an IMU enabled).begin(), and on debug commandw: reads the ID registers directly throughWireat0x68and0x69:0x75: WHO_AM_I of the MPU6050 family (MPU60500x68, ICM-206890x98, per datasheet);0x00: WHO_AM_I of the ICM-20x48 family (ICM-20618, ICM-20948).IMU @0x68: reg 0x75=0x68 reg 0x00=0x0orIMU @0x69: no ACK.--= that register didn't answer.Wirenot on PB6/PB7 on GD32), unexpected ID → chip variant (6052C, 6050A/C...). Input for the raw-register driver.Shows up in
rtt_monitor.py's console unchanged (non-telemetry lines are printed).Not tested on hardware.
🤖 Generated with Claude Code