Skip to the content
2 layers42 × 50 mmImu daq, the printed circuit board in 3D

A compact USB-C IMU acquisition board built around the TDK InvenSense ICM-42688-P (high-precision 6-axis MEMS accel + gyro) and an RP2040 microcontroller that streams samples to a PC over USB Type-C as a virtual serial…

Size
42 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
51
Nets
33
Pads
211
Tracks, vias
623, 115
Pours
7
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Jul 2026
Updated
10 Aug 2026

Overview

Imu daq is an open-source printed circuit board by klimemam, from the klimemam/aiproto_imu repository on GitHub. It is a 2-layer board of 42 × 50 mm with 51 parts on 33 nets, routed with 623 tracks and 115 vias.

It is built around the RP2040, W25Q128JVSIQ and AP2112K-3.3, with the ICM-42688-P and USBLC6-2SC6 among its other parts. Its parts include 22 capacitors, 10 resistors, 5 ICs, 3 connectors and 2 diodes. It belongs with the sensors and measurement boards and the RP2040 boards of this library.

Main components

5

README

README.md

ICM-42688-P IMU Data-Acquisition Board

A compact USB-C IMU acquisition board built around the TDK InvenSense ICM-42688-P (high-precision 6-axis MEMS accel + gyro) and an RP2040 microcontroller that streams samples to a PC over USB Type-C as a virtual serial port.

The raw IMU bus (SPI and I²C, jumper-selectable) is also broken out on a 0.1" header so the sensor can be wired directly to another host (Arduino / Raspberry Pi / ESP32) instead of using the on-board RP2040.

text
        USB-C ───► 3V3 LDO ───► +3V3 rail
          │                        │
      D+/D-│                       ├──► RP2040 (VREG→1.1V core)
          ▼                        │      │  SPI0
      RP2040 USB PHY               │      ▼
          │                     QSPI      ICM-42688-P ──► INT1/INT2
      USB CDC (serial)          flash          │
          │                                    ├──► 8-pin breakout header
          ▼                                    │    (3V3, GND, SCLK/SCL,
        PC (Python)  ◄── samples ──────────────┘     SDI/SDA, SDO/AD0, nCS,
                                                      INT1, INT2)

Current revision: B — 42 × 50 mm, 4× M2.5 mounting holes, fully routed, DRC-clean (0 violations / 0 unconnected).

The first JLCPCB order was rev A (38 × 46 mm, no mounting holes). Those boards use the clamp-style enclosure (imu-daq-case-base/lid.stl). Everything in this repo now describes rev B.

Folder map

text
plc/
├── README.md                ← you are here
├── BRINGUP.md               ← first power-on & validation checklist
├── LESSONS.md               ← rev.B retrospective: rules + pre-order checklist
├── hardware/
│   ├── imu-daq.kicad_pro/.kicad_sch/.kicad_pcb   KiCad project (open the .kicad_pro)
│   ├── imu-daq.kicad_sym, sym-lib-table, fp-lib-table, jlc_lib/   libraries
│   ├── manufacturing/       ← ORDER FROM HERE (see below)
│   ├── docs/                DESIGN.md (netlist truth), LAYOUT.md, BOM.csv (engineering)
│   ├── enclosure/           3D-printable case (.scad + STLs + assembly renders)
│   ├── renders/             board 3D renders
│   ├── reports/             latest ERC/DRC reports
│   └── tools/               maintenance scripts (archive/ = one-shot history)
├── hardware_rev.A/          corrected rev A variant (38×46, no mount holes) — own gerbers/BOM/CPL
├── firmware/imu_daq/        RP2040 source + build/ (compiled UF2)
└── host/                    acquire.py, analyze.py, simulate.py,
                            imu_viewer.py, imu_position.py,
                            find_port.py / .ps1  ← "which COM port?"

Ordering from JLCPCB — use hardware/manufacturing/

Everything you upload lives in that one folder:

UploadFile
1. Gerber zip (order page)imu-daq-gerbers.zip
2. BOM (assembly step)BOM.csv
3. CPL / placements (assembly step)CPL.csv

Order options walkthrough: manufacturing/ORDERING.md (2-layer, 1.6 mm, ENIG, Economic PCBA, top side).

After any board change, regenerate the folder with:

powershell
powershell -File hardware/tools/export_gerbers.ps1
& "C:\Program Files\KiCad\10.0\bin\kicad-cli.exe" pcb export pos --format csv --units mm --side front --exclude-dnp --output hardware/manufacturing/pos-raw.csv hardware/imu-daq.kicad_pcb
& "C:\Program Files\KiCad\10.0\bin\python.exe" hardware/tools/gen_jlc_assembly.py

Maintenance scripts (hardware/tools/)

ScriptPurpose
gen_schematic.pyRegenerates the schematic from the docs/DESIGN.md netlist (self-checking)
gen_board.pyRegenerates a placed, unrouted board (⚠️ would discard routing — only for a re-layout)
export_gerbers.ps1Gerbers + drill → manufacturing/
gen_jlc_assembly.pyBOM.csv + CPL.csv → manufacturing/
si_audit.pySignal-integrity audit of the routed board (lengths, skew, crosstalk)
check_footprints.pyVerifies every footprint exists in the installed KiCad libs
archive/One-shot routing-surgery scripts, already baked into the board — don't re-run

Key specs

  • Sensor: ICM-42688-P — ±16 g accel, ±2000 dps gyro, gyro noise 2.8 mdps/√Hz, up to 32 kHz ODR, 2 KB FIFO.
  • MCU: RP2040, dual Cortex-M0+ @ 133 MHz, native USB 1.1 full-speed.
  • Host link: USB-C (USB 2.0 FS), enumerates as CDC-ACM serial port.
  • Default sample stream: accel + gyro + temperature + timestamp per sample @ 1 kHz, little-endian binary framed packets (see firmware/README.md).
  • Power: bus-powered from USB 5 V through an AP2112K-3.3 LDO (600 mA).
  • Board: 42 × 50 mm rev B, 2-layer, all parts top side, 4× M2.5 mounting holes.

Quick start (when boards arrive)

  1. Follow BRINGUP.md — multimeter checks first.
  2. Flash: hold BOOT, plug USB, drop firmware/imu_daq/build/imu_daq.ino.uf2 onto the RPI-RP2 drive.
  3. pip install -r host/requirements.txt, then python host/acquire.py --csv run1.csv --plot.
  4. Validate: python host/analyze.py run1.csv (noise vs datasheet).

Which COM port? You don't need to know — acquire.py, imu_viewer.py and imu_position.py find the board themselves (Raspberry Pi's USB vendor ID 0x2E8A), and --port only exists to override that. To see what the host thinks is attached: python host/find_port.py --all. On a PC with no checkout and no Python, host/find_port.ps1 does the same from PowerShell and tells you which of the three states the board is in (running / BOOTSEL / not enumerating).

Design decisions

  • RP2040 over a USB-serial bridge (FT232H): on-chip FIFO reads + USB buffering keep up with the IMU's high ODRs without dropping samples; PC side is just a COM port.
  • SPI as the primary IMU link (24 MHz capable), I²C selectable via DNP pull-ups (rev B note: JP2 AD0 jumper removed — strap AD0 by wire if you build the I²C variant).
  • Breakout header taps the IMU bus directly so the board doubles as a plain sensor breakout; the HOST_SEL jumper holds the RP2040 in reset to release the bus.

The netlist in hardware/docs/DESIGN.md is the authoritative electrical definition; the schematic and board are generated/derived from it.

Parts

51
QtyValueFootprintReferences
13100nFC_0402_1005MetricC4, C5, C6, C7, C8, C9, C10, C12, C13, C14, C16, C18, C19
4MountingHole_2.7mm_M2.5MountingHole_2.7mm_M2.5H1, H2, H3, H4
31kR_0402_1005MetricR1, R4, R8
31uFC_0402_1005MetricC3, C11, C17
210kR_0402_1005MetricR2, R9
210uFC_0805_2012MetricC1, C2
215pFC_0402_1005MetricC21, C22
22.2kR_0402_1005MetricR10, R11
25.1kR_0402_1005MetricR6, R7
112MHzCrystal_SMD_3225-4Pin_3.2x2.5mmY1
11nFC_0402_1005MetricC20
12.2uFC_0603_1608MetricC15
1330RR_0402_1005MetricR3
1600R@100MHzL_0603_1608MetricFB1
1AP2112K-3.3SOT-23-5U4
1BOOTSW_SPST_CK_RS282G05A3SW1
1HOST_SELPinHeader_1x02_P2.54mm_VerticalJP1
1ICM-42688-PLGA-14_L3.0-W2.5-P0.50-TLU2
1IMU_BREAKOUTPinHeader_1x08_P2.54mm_VerticalJ2
1LED_PWR_greenLED_0603_1608MetricD1
1LED_USER_redLED_0603_1608MetricD2
1RP2040QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mmU1
1RUNSW_SPST_CK_RS282G05A3SW2
1SWDPinHeader_1x03_P2.54mm_VerticalJ3
1USB-C 2.0USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1USBLC6-2SC6SOT-23-6U5
1W25Q128JVSIQSOIC-8_5.3x5.3mm_P1.27mmU3

Similar boards

  • 6 layers133.1 × 133.1 mmAERIS H743-PCB, the printed circuit board in 3D

    AERIS H743-PCB

    7903555032/AERIS-H743-PCB

    A 6-layer STM32H743-based embedded development and flight-control/data-logging PCB designed as a practical hardware-design and PCB-layout project.

    114 parts1
  • 6 layers40.6 × 40.5 mmFlight Controller, the printed circuit board in 3D

    Flight Controller

    desanv01/Flight-Controller-V2

    STM32H743 controller: regulated power, signal-only ESC, neutral ArduPilot firmware, manufacturing data and engineering history.

    169 partsCERN-OHL-S-2.0
  • 4 layers60 × 60 mmWeek1, the printed circuit board in 3D

    Week1

    DVeldhurthi/halflifeweek1

    Half Life Week 1: Design PCB

    77 parts
  • 2 layers84.2 × 100 mmFabpack out v5 8, the printed circuit board in 3D

    Fabpack out v5 8

    yuz207/agentpad13

    agentpad13 — open-source 13-key macropad for agentic work (RP2040, vial-qmk, planar joystick, Raw HID agent-status protocol)

    126 parts41
  • 2 layers75 × 55 mmWellfed bench, the printed circuit board in 3D

    Wellfed bench

    Isaac-Duarte/wellfed

    Open firmware that runs the PETLIBRO Granary PLAF103 pet feeder on your own Wi-Fi: no cloud, no account. Early and in testing.

    93 parts8MIT
  • 4 layers55.2 × 24.4 mmLogic analyzer, the printed circuit board in 3D

    Logic analyzer

    BlackPancakes/RP2040-Logic-Analyzer

    An open-source, high-speed, multi-channel logic analyzer based on the popular Raspberry Pi RP2040 microcontroller. The board was designed in KiCad with a strong focus on signal integrity and miniaturization.

    54 parts3
  • 2 layers180.5 × 133.5 mmNrsk right, the printed circuit board in 3D

    Nrsk right

    0x0c/spltnrskb

    KLE レイアウト(kle/left.json、kle/right.json)から生成した、左右分割・有線接続のキーボード基板です。 KiCad 10 のプロジェクト(回路図と配線済み基板)、製造用ガーバー、BOM、QMK ファームウェア設定を含みます。筐体のデータ(アクリルのレーザーカット用 DXF/SVG と 3D プリント用 STL)も入っています。

    135 parts1
  • 4 layers81 × 113.2 mmAuralab Workstation Vishal, the printed circuit board in 3D

    Auralab Workstation Vishal

    Vishalbabu-09/Auralab_Workstation

    Advanced 4-layer PCB design featuring split-plane noise isolation (AGND/DGND) and asynchronous dual-core processing. Implements a handheld multi-tool oscilloscope, current tracker, and symmetrical DC power supply.

    81 parts1

Questions

How big is the Imu daq PCB?

It measures 42 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Imu daq use?

51 parts, built around the RP2040, W25Q128JVSIQ, AP2112K-3.3 and ICM-42688-P. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Imu daq KiCad files?

From the klimemam/aiproto_imu repository on GitHub, at the commit this page was made from: the board is hardware/imu-daq.kicad_pcb and its schematic hardware/imu-daq.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Imu daq design in my own project?

Its repository states no licence, so its author keeps all rights: ask klimemam before reusing the design.