Repository navigation
Replace QMA6100P accelerometer with ICM-42670-P 6-axis IMU - #82
Merged
Merged
Conversation
Swap U_ACCEL1 (QST QMA6100P) for U_IMU1, a TDK ICM-42670-P gyroscope + accelerometer in LGA-14 2.5x3mm, wired per DS-000451 Rev 1.1 Figure 5: I2C at 0x68 (AP_AD0 low), AP_CS to 3V3, FSYNC and RESV to GND, INT1 on GPIO46 as before. Decoupling follows Table 10 (100nF + 2.2uF on VDD, 10nF on VDDIO). The footprint is KiCad's stock LGA-14 3x2.5mm, checked against the package drawing. Firmware probes for the ICM-42670-P first and falls back to the QMA6100P, so V1.2 and earlier boards keep working. The ICM path sets up wake-on-motion on INT1 (latched, push-pull, active-high, ~31mg) and turns off the default reset-done routing to INT1, which would otherwise latch high after every reset. The PCB is synced from Stackup and the new parts sit at the old spot on B.Cu, but the area still needs re-routing (DRC is not clean yet). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thePunderWoman
force-pushed
the
icm42670-imu
branch
from
October 26, 2026 04:29
85475dc to
f98c35b
Compare
The IMU swap lands in V1.2, which hasn't been ordered yet, so the production files are regenerated in place under the Snips_1_2 name: gerbers, drills, placement, the PCB BOM and the JLCPCB bundle. Against the previous V1.2 files, the BOMs and placement differ only by the IMU and its caps, and the outline and NPTH drill only by timestamp. Also corrects the firmware and GPIO table wording: the ICM-42670-P is on V1.2 itself, and the QMA6100P on V1.1 and earlier. 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.
Summary
Replaces the QMA6100P 3-axis accelerometer (U_ACCEL1) with a TDK ICM-42670-P 6-axis IMU (U_IMU1: gyroscope + accelerometer, LGA-14 2.5×3 mm, LCSC C3288646, about $1.65 each at 10 vs $0.47). Low-power wake-on-motion still works the same way, over the same single INT1 → GPIO46 line, and later firmware can use the gyro.
Electrical design (TDK DS-000451 Rev 1.1, Figure 5 / Table 10)
icm42670ppart inparts.kdland a symbol inSnipsControllers_Custom.LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y. It matches the datasheet's package drawing: pad centres ±1.1625 / ±0.9125 mm, 0.5 mm pitch, pin 1 top-left. Pad-to-net map checked against Table 9.Firmware
Accelerometerprobes for the ICM-42670-P first and falls back to the QMA6100P, so V1.2 and earlier boards keep working.motionDetected()checks the INT_STATUS2 bits rather than the pin alone, because in low-power mode the pin can take one sample period to clear after a read.icm42670p_registers.hwith native tests against the datasheet's bit layout.Layout and production files
snips_controller.kicad_druallows 0.15 mm between the IMU's own pads. TDK's 0.5 mm pin pitch makes that gap unavoidable, and it's within standard fab capability. Traces near the IMU still have to keep the normal 0.2 mm.Snips_1_2: gerbers, drills, placement, PCB BOM and the JLCPCB bundle.Still to do
kWomThresholdwith the "active:" log), and measure low-power idle current.Test plan
stackup check --locked: 0 errors, 0 warningsstackup bom --locked: every line has an MPN (bom_check: 0 problems)ci/check_pcb_sync.py: the PCB is in syncpio test -e native: 391/391 passpio run -e esp32s3: builds🤖 Generated with Claude Code