Skip to content
Development
Skill

/sensor-driver-integration

Use when integrating, porting, calibrating, or debugging MCU sensor drivers, register maps, I2C/SPI transport, interrupts, FIFO, timing, or data conversion

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill sensor-driver-integration --agent claude-code

SKILL.md

sensor-driver-integration.SKILL.md
name: sensor-driver-integration
description: Use when integrating, porting, calibrating, or debugging MCU sensor drivers, register maps, I2C/SPI transport, interrupts, FIFO, timing, or data conversion

Sensor Driver Integration

Overview

Use this skill to integrate sensors by proving transport, identity, configuration, timing, data readiness, conversion, and calibration in order. Sensor bugs often look like algorithm bugs but start with bus timing, register paging, or unit conversion.

When To Use

Use this skill when:

  • The user wants to add or debug accelerometers, gyroscopes, magnetometers, barometers, temperature sensors, ADC sensors, IMUs, ToF sensors, or environmental sensors.
  • The issue involves no response, wrong ID, noisy data, stale samples, FIFO overflow, interrupt storms, calibration drift, or impossible physical values.
  • The project uses I2C, SPI, UART, ADC, GPIO interrupts, DMA, low-power modes, or RTOS tasks.

Do not use this skill when the electrical bus itself has not been proven. Use `hardware-interface-debug` first.

First Questions

Ask for:

  • Sensor part number, datasheet link, breakout/module schematic, and supply voltage.
  • Bus type, address/chip select, speed, pull-ups, interrupt pins, and reset pins.
  • Driver source, initialization sequence, register dump, and current raw sample values.
  • Sampling rate, FIFO use, interrupt mode, low-power mode, and timestamp source.
  • Expected units, scale, calibration data, and observed symptom.

Integration Checklist

1. Prove physical and bus identity. Check power rails, reset state, WHOAMI/device ID, and basic register reads before configuration.

1. Freeze the register plan. Document mode, range, bandwidth, output data rate, FIFO, interrupts, and low-power settings.

1. Read raw data first. Convert bytes with the correct endian, signedness, resolution, and scale only after raw values move plausibly.

1. Add readiness and timing. Poll or interrupt on data-ready, avoid reading faster than ODR, and timestamp close to acquisition.

1. Validate calibration. Keep offset, sensitivity, temperature compensation, and factory calibration separate from transport logic.

1. Test stress cases. Cover FIFO overflow, suspend/resume, bus errors, hot reset, and sensor disconnect.

Common Failures

  • I2C address is shifted incorrectly or SPI mode is wrong.
  • Register pages/banks are not selected before access.
  • Multi-byte samples are read with wrong endian or signed extension.
  • Driver reads stale data because data-ready or FIFO status is ignored.
  • Interrupt polarity/latched mode is misconfigured.
  • Calibration is applied twice or in the wrong unit.

Verification

Before claiming a sensor works:

  • State part number, bus settings, sample rate, range, and interrupt/FIFO mode.
  • Confirm device ID and a representative register dump.
  • Confirm raw and converted values under at least two physical conditions.
  • Confirm behavior across reset, suspend/resume, and bus error recovery if relevant.

Example

User:

IMU 数据一直跳,姿态算法不稳定。

Agent:

1. Reads WHOAMI, range, ODR, bandwidth, FIFO, and interrupt registers. 1. Checks raw accel/gyro values before the fusion algorithm. 1. Verifies timestamp, endian, scale, and calibration before tuning filters.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about sensor-driver-integration.

Which coding agents can use sensor-driver-integration?
sensor-driver-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.