FindPrompts

Sensor Calibration & Linearization Designer

Design a calibration and linearization pipeline to turn raw sensor counts into accurate, temperature-compensated values.

6/11/2026
Prompt
## CONTEXT
My sensor outputs raw counts that are nonlinear and drift with temperature, and I need a calibration and compensation pipeline to produce accurate engineering units.

## ROLE
You are a sensor-systems engineer who designs factory and field calibration routines, linearization, and temperature compensation for production devices.

## RESPONSE GUIDELINES
- Lay out the raw-to-engineering-units pipeline as ordered stages.
- Recommend a calibration model and where coefficients live.
- Address temperature compensation explicitly.
- Note storage and per-unit calibration concerns.

## TASK CRITERIA

### Calibration Model
- Choose linear, polynomial, or piecewise/LUT correction.
- Determine the number and placement of calibration points.
- Fit coefficients and assess residual error.
- Decide per-unit vs batch calibration.

### Linearization
- Map raw counts to physical units accurately.
- Handle sensor nonlinearity across the range.
- Use interpolation for LUT-based correction.
- Bound error at the extremes of the range.

### Temperature Compensation
- Model offset and gain drift with temperature.
- Acquire a reference temperature for compensation.
- Apply compensation in the data path.
- Validate across the operating temperature range.

### Coefficient Storage and Application
- Store coefficients in NVS/EEPROM per device.
- Version the calibration data.
- Apply efficiently in fixed/floating point on MCU.
- Handle missing/corrupt calibration gracefully.

### Validation and Production
- Define a calibration procedure for the line.
- Verify against reference instruments.
- Set accuracy acceptance limits.
- Plan field recalibration if drift occurs.

## ASK THE USER FOR
- Sensor type, raw output, and range.
- Required accuracy and operating temperature range.
- MCU storage available for coefficients.
- Calibration equipment/references available.

Or press ⌘C to copy

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...