Repository navigation
Conversation
…-2042's The KXTC9-2050's output is ratiometric to its supply. Kionix specifies its zero-g offset (1.65 V) and sensitivity (660 mV/g) at Vdd = 3.3 V, with an offset and a sensitivity ratiometric error (KXTC9-2050 Specifications Rev. 2, Table 1). Every Shimmer3 board that carries it (SR31-10, SR47-6, SR48-5, SR49-3) powers it from the same 3.0 V LDO as the MSP430's AVCC, the ADC reference, so in ADC counts it reads 1.5 V (2047) at zero g and 600 mV/g (83 per m/s2): the KXRB5-2042's defaults, and what the firmware's own default calibration record has held since DEV-4. The old 2253 and 92 assumed a 3.3 V supply. A new-IMU Shimmer3 left on default calibration read gravity about 17 % high (A615: 11.5 m/s2). API_00051_Kxtc9DefaultCalibrationTest checks the defaults against the datasheet scaled to 3.0 V, against the KXRB5-2042's, and A615's raw sample at rest. All three fail on the old values. 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.
DEV-1521. The KXTC9-2050's default low-noise accel calibration changes from offset 2253 and sensitivity 92 to 2047 and 83, the KXRB5-2042's values. These are what the hardware gives on every Shimmer3 that carries the part.
Release note
This changes output. GitHub's generated notes carry only the PR title, so paste this into the release notes:
Why
The KXTC9-2050's output is ratiometric to its supply. Kionix specifies zero-g 1.65 V and 660 mV/g at Vdd = 3.3 V. Its spec sheet also gives an offset ratiometric error of 0.2 % and a sensitivity ratiometric error of 0.3 % (x, y) and 0.15 % (z), both at 3.3 V ± 5 % (KXTC9-2050 Specifications Rev. 2, Table 1).
Every Shimmer3 board that carries it runs it from 3.0 V. That rail is the same 3.0 V LDO that feeds the MSP430's AVCC, the ADC reference:
In every case U20's VDD is
PV_ACCEL, which isPV_3.0Vthrough a 22.1 Ω pi filter.At 3.0 V the part reads like the KXRB5-2042. Scaled to 3.0 V, zero-g is 1.5 V, or 2047 counts, and sensitivity is 600 mV/g, or 83.5 counts per m/s². Those are the KXRB5-2042's defaults. They are also what the firmware's own default calibration record has held since DEV-4 (log-and-stream-common
ShimCalib_setDefaultKionixCalib).The old values assumed 3.3 V. 2253 is 1.65 V on a 3.0 V ADC, and 92 is 660 mV/g. A new-IMU Shimmer3 left on default calibration read gravity about 17 % high.
Seen on the bench, 20 Nov 2026. Shimmer3 A615 (SR49-3-1) read 11.5 m/s² at rest on 2253/92. Its raw axis carrying gravity reads 1232; 2047/83 predicts 1233 for −1 g.
Change
SensorKionixKXTC92050:OffsetVectorLowNoiseAccelShimmer3andSensitivityMatrixLowNoiseAccel2gShimmer3change to 2047 and 83. The comment now gives the reasoning and cites the datasheet.New
API_00051_Kxtc9DefaultCalibrationTest. It checks three things:All three fail on 2253/92.
Tested
ShimmerDriver: 235 tests, 0 failures.ShimmerDriverPC, built through the junction the worktree layout needs: 174 tests, 0 failures.Elsewhere
tests/data/java_shimmer3_newer_sensors_defaults.txtwas regenerated with this change, and its model follows. That is ShimmerResearch/shimmer-host-core#122.shimmer3-newdefaults are already 2047/83.shimmerdriverartifact;Legacy/ShimmerHandleClass.mdriver still has 2253 and isn't changed here: no MATLAB on this machine.Not fixed here
Units first configured under firmware from before DEV-4 still carry 2253/92 in their own stored calibration. A615's dump does. Any host that adopts the device's calibration will keep reading those units 17 % high. Choosing to treat such a stored default record as "default" is a separate decision, raised on DEV-1521.
🤖 Generated with Claude Code