Skip to content

Device type MPU6050 (TDK InvenSense MPU-6050 IMU) - #57

Merged
robdobsn merged 2 commits into
mainfrom
feature/mpu6050-device-type
Nov 15, 2026
Merged

robdobsn merged 2 commits into
mainfrom
feature/mpu6050-device-type

Conversation

@robdobsn

Copy link
Copy Markdown
Owner

What

  • devtypes/records/MPU6050.json: the MPU-6050 6-axis IMU at 0x68 or 0x69.
    • Identified by WHO_AM_I (register 0x75 = 0x68). The MPU-6500 (0x70) and MPU-9250 (0x71) are not matched: their temperature scale differs.
    • ±4 g, ±500 dps, 44 Hz low-pass filter, 100 samples a second; polled every 100 ms for accelerometer, temperature and gyroscope.
  • devtypes/breakouts: Adafruit's MPU-6050 STEMMA QT board (product 3886) and its bench test.

The warning on this record

Identifying it writes one byte (0x75) to whatever answers at 0x68 or 0x69. An MCP342x ADC at 0x68 takes that byte as its configuration. RaftCore's other records at these addresses (ICM20948, AMG8833) claim only 0x69 for that reason. The record carries a _warning, so wildcard selections leave it out unless acknowledged. It is not in the common or extended sets.

Testing

  • Axiom018 with the Adafruit board at 0x68, the record loaded from a device type file: identified, polled at about 10 samples a second and decoded.
  • RSAO probe effect checked on the bench (hwProbeEffects: none).
  • Recorded as detect rsao, not data: this part reads 0.86 g at rest on every range. The raw counts halve exactly with each range step, so the scale is right and the error is the part's. No orientation or rotation test was done.
  • scripts/tests (121 pass), breakouts.py check, linux_unit_tests make check.

🤖 Generated with Claude Code

robdobsn and others added 2 commits November 15, 2026 16:25
…ope at 0x68/0x69

Identified by WHO_AM_I (0x75 = 0x68); +/-4 g, +/-500 dps, 100 samples a second, polled every 100 ms
(accelerometer, temperature, gyroscope). Carries a _warning: identifying it writes one byte to whatever
answers at 0x68 or 0x69 (an MCP342x ADC at 0x68 takes it as its configuration), so wildcard selections leave
it out unless acknowledged. Registers from the InvenSense register map and product specification.

Tested on an Axiom018 with Adafruit's MPU-6050 breakout at 0x68 (identified, polled and decoded).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@robdobsn
robdobsn merged commit 827dda2 into main Nov 15, 2026
1 check passed
@robdobsn
robdobsn deleted the feature/mpu6050-device-type branch November 15, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant