EE Primers · Sensing & Analog · Pressure sensing

The pressure sensor: from a silicon diaphragm to an I²C register

Almost every electronic pressure sensor in a car, phone, inhaler, HVAC unit or industrial transmitter uses the same principle: pressure bends a thin silicon diaphragm, the bending stresses four resistors diffused into its surface, and a Wheatstone bridge turns the resulting resistance changes into a few tens of millivolts. A conditioning ASIC then amplifies that signal, digitizes it, corrects it for temperature and nonlinearity using coefficients written at the factory, and makes the result available as a number on an I²C or SPI bus. This page follows one design, a 0–100 kPa absolute sensor, through every step, with real dimensions, real material constants and an ADC code, calibration polynomial and byte sequence you can check by hand.

The short version

  1. Pressure becomes stress. A 600 µm × 600 µm × 20 µm silicon diaphragm, clamped at its edges, bends 0.13 µm at 100 kPa. Its surface stress peaks at the middle of each edge: about 28 MPa.
  2. Stress becomes resistance. Silicon is strongly piezoresistive. A p-type resistor along the ⟨110⟩ direction changes by about \(\pi_{44}/2 \approx 69 \times 10^{-11}\ \text{Pa}^{-1}\) per pascal of stress difference: here about 1 % at full scale.
  3. Resistance becomes voltage. Four resistors, two that rise and two that fall, form a full-active Wheatstone bridge. Its output is \(V_{\text{EX}} \cdot \Delta R/R\): 30 mV at 100 kPa from a 3 V excitation, sitting on a 1.5 V common mode.
  4. The front end makes the voltage a number. A chopper-stabilized PGA (×64) with an offset DAC feeds a ratiometric ΣΔ ADC whose reference is the bridge excitation itself, so supply drift cancels. A second channel measures die temperature.
  5. Calibration makes the number correct. A raw die has ~2.5 % FS offset, −0.2 %/°C sensitivity drift and a 0.3 % bow. A nine-coefficient polynomial in raw pressure and temperature, fitted at 3 pressures × 3 temperatures and burned into OTP, removes them.
  6. The bus carries the result. 60 kPa at any temperature reads out as 0x25 0x1E: two status bits plus 9502 counts on a 10–90 % 14-bit scale, followed by an 11-bit temperature.
Fig 1. The whole system. Each coloured stage has a section of its own below; the numbers are the 60 kPa, 25 °C operating point of worked example B (section 12).
01 · The job

What a pressure sensor measures

Pressure is force per unit area, in pascals (1 Pa = 1 N/m²). Sea-level atmosphere is 101.325 kPa (1.013 bar, 14.7 psi). Every pressure sensor measures a difference between the pressure on the two faces of a diaphragm, and the three sensor types differ only in what is on the back face:

  • Absolute: the back face is a sealed vacuum cavity. Reads 0 in vacuum and ~101 kPa at sea level. Barometers, altimeters, engine manifold (MAP) sensors.
  • Gauge: the back face is vented to the local atmosphere. Reads 0 at ambient. Tyre, hydraulic, blood-pressure and tank-level sensors.
  • Differential: both faces see a process pressure, \(P_1 - P_2\). Filters (clogging), flow across an orifice, exhaust particulate filters.

Several transducer principles exist. The silicon piezoresistive one dominates because it is cheap to batch-fabricate, has a large signal for its size and is linear and repeatable enough to calibrate well. This page builds that one.

PrincipleWhat changesTypical useStrengthsWeaknesses
Piezoresistive (MEMS Si)Resistance of diffused resistors in a diaphragmMAP, barometric, medical, industrial up to ~100 MPaLarge signal (10–25 mV/V), small, static and dynamicLarge temperature coefficients: needs compensation
Capacitive MEMSGap between diaphragm and a fixed electrodePhone barometers, low-power and low-range sensorsVery low power, low temperature driftSmall capacitance (pF), sensitive to parasitics, nonlinear (1/gap)
Thin-film / thick-film strain gaugeMetal or ceramic gauges on a steel or ceramic diaphragmBrake, fuel-rail, HVAC refrigerant, hydraulicsMedia-compatible, very high pressureGauge factor ~2: 50× less signal than Si
PiezoelectricCharge generated by a crystalCombustion and blast pressureVery fast, ruggedCannot measure static pressure (charge leaks away)
Resonant siliconFrequency of a stressed resonatorReference and aerospace transducersHighest stability (frequency output)Expensive
02 · Construction

The MEMS die and its package

The sensing element is a silicon chip about 1–2 mm on a side. It is made with a handful of steps on an n-type (100) silicon wafer:

  1. Implant the resistors. Boron is implanted into the front surface through an oxide mask to make four p-type resistors, typically \(10^{18}\)–\(10^{19}\ \text{cm}^{-3}\), a few kΩ each, about 2–3 µm deep. The n-type substrate is biased positive so each resistor is isolated by a reverse-biased pn junction. Heavier p⁺ diffusions and aluminium traces connect them into a bridge and to bond pads.
  2. Etch the cavity from the back. KOH or TMAH etches (100) planes roughly 100× faster than (111) planes, so the etch stops on the slow planes and leaves sloped walls at 54.74°. The etch is timed (or stopped on an electrochemical or buried-oxide etch stop) to leave a thin diaphragm, here 20 µm, on the front. An absolute sensor's square diaphragm is 600 µm on a side in this example.
  3. Bond the back. The die is anodically bonded to borosilicate glass (thermally matched to silicon) or fusion-bonded to another silicon wafer. If this is done in vacuum the cavity becomes the absolute reference. For gauge and differential sensors the glass has a hole.
  4. Package. The die is glued with a soft adhesive (to keep package stress out of the diaphragm), wire-bonded to the conditioning ASIC, and covered with silicone gel that passes pressure but keeps moisture and contaminants off the surface. Harsh media (fuel, oil, brake fluid) need an oil-filled stainless-steel isolation diaphragm instead.
Fig 2. Cross-section of the packaged sensor (not to scale; deflection exaggerated about 100×). Pick the sensor type and the applied pressure.
Why the edgesThe resistors are not at the centre of the diaphragm, where it deflects most, but at the middle of each edge, where it bends most. Resistance responds to stress, and surface stress follows curvature, which is greatest where the diaphragm is clamped to the thick rim.
03 · Physics I

Mechanics: how pressure becomes stress

The diaphragm is a thin square plate of side \(a\) and thickness \(h\), clamped on all four edges, under a uniform pressure \(P\). Plate theory (Timoshenko) gives the two numbers that matter. Its flexural rigidity is

$$D = \frac{E\,h^3}{12\,(1-\nu^2)}$$

and the maximum deflection (at the centre) and maximum surface stress (at the middle of each edge, perpendicular to the edge) are

$$w_{\max} = 0.00126\,\frac{P\,a^4}{D} \qquad\qquad \sigma_{\max} = 0.308\,P\left(\frac{a}{h}\right)^2$$

The stress scales with the square of the aspect ratio \(a/h\), which is the designer's main lever: a thinner or wider diaphragm gives more signal but deflects more and bursts sooner. Along the centre line the surface stress changes sign: compressive at the centre (\(-0.139\,P(a/h)^2\)), crossing zero at about 56 % of the half-width, and tensile at the edge. Right at the clamped edge the plate cannot stretch along the edge, so the stress parallel to it is \(\sigma_\parallel = \nu\,\sigma_\perp\).

Example numbers. Silicon along ⟨110⟩: \(E = 169\ \text{GPa}\); taking \(\nu \approx 0.28\) (isotropic approximation; finite-element models with the anisotropic stiffness differ by 10–20 %). With \(a = 600\ \mu\text{m}\), \(h = 20\ \mu\text{m}\) (\(a/h = 30\)) and \(P = 100\ \text{kPa}\):

$$D = \frac{169\ \text{GPa}\cdot(20\ \mu\text{m})^3}{12\,(1-0.28^2)} = 1.22\times10^{-4}\ \text{N}\cdot\text{m} \qquad w_{\max} = 0.134\ \mu\text{m} \qquad \sigma_{\max} = 0.308 \cdot 100\ \text{kPa}\cdot 900 = 27.7\ \text{MPa}$$

The deflection is 0.7 % of the thickness. Small-deflection plate theory holds up to about \(w/h \approx 0.2\); beyond that the diaphragm stretches like a membrane and the response becomes nonlinear. 27.7 MPa is also far below silicon's fracture strength (several hundred MPa for an etched surface), so a 3–5× overpressure rating is easy.

Fig 3. Left: top view of the diaphragm with the four resistors, all parallel to the same ⟨110⟩ direction (the wafer flat). Right: surface stress along the horizontal centre line, normalised to \(P(a/h)^2\). R1 and R3 sit in the tensile peak with the stress along their length; R2 and R4 have it across their width.
04 · Physics II

Piezoresistance: how stress becomes resistance

Stretching any resistor changes its resistance a little through geometry: longer and thinner. For metals that is almost the whole effect, with a gauge factor \(GF = (\Delta R/R)/\varepsilon \approx 2\). In silicon a much larger effect comes from the crystal itself: stress warps the band structure, which moves holes (in p-type) between valence bands of different effective mass and changes their mobility. The result is a gauge factor of about 100, fifty times a metal foil gauge.

For a resistor with stress \(\sigma_l\) along its length (the current direction) and \(\sigma_t\) across it:

$$\frac{\Delta R}{R} = \pi_l\,\sigma_l + \pi_t\,\sigma_t$$

For p-type silicon at moderate doping (Smith, 1954): \(\pi_{11} = 6.6\), \(\pi_{12} = -1.1\), \(\pi_{44} = 138.1\), all \(\times10^{-11}\ \text{Pa}^{-1}\). Along a ⟨110⟩ direction on a (100) wafer, the axis of the wafer flat,

$$\pi_l = \tfrac12(\pi_{11}+\pi_{12}+\pi_{44}) = 71.8\times10^{-11}\ \text{Pa}^{-1} \qquad \pi_t = \tfrac12(\pi_{11}+\pi_{12}-\pi_{44}) = -66.3\times10^{-11}\ \text{Pa}^{-1}$$

The two are almost equal and opposite, so to good approximation \(\Delta R/R \approx \tfrac{\pi_{44}}{2}(\sigma_l - \sigma_t)\). That is why the ⟨110⟩ orientation and p-type doping are chosen: n-type silicon's \(\pi_{44}\) is small, and along ⟨100⟩ p-type \(\pi_l\) is nearly zero.

Now put the edge stresses into the formula:

  • R1 and R3 (left and right edges, current perpendicular to the edge): \(\sigma_l = \sigma_{\max}\), \(\sigma_t = \nu\sigma_{\max}\), so \(\Delta R/R = +\tfrac{\pi_{44}}{2}(1-\nu)\sigma_{\max}\). Resistance rises.
  • R2 and R4 (top and bottom edges, current parallel to the edge): \(\sigma_l = \nu\sigma_{\max}\), \(\sigma_t = \sigma_{\max}\), so \(\Delta R/R = -\tfrac{\pi_{44}}{2}(1-\nu)\sigma_{\max}\). Resistance falls by the same amount.
$$\left.\frac{\Delta R}{R}\right|_{\text{peak}} = 69.05\times10^{-11} \cdot 0.72 \cdot 27.7\ \text{MPa} = 1.38\,\% \qquad \left.\frac{\Delta R}{R}\right|_{\text{avg}} = 0.73 \cdot 1.38\,\% \approx 1.0\,\%$$

A resistor has finite length, so it sees the average stress over its area, not the peak. A resistor covering the outer 20 % of the half-width (60 µm here) averages about 73 % of the peak in the stress profile of Fig 3. The design therefore gives \(\Delta R/R \approx \pm1.0\,\%\) at 100 kPa, which we round to exactly 1.00 % for the worked examples.

Temperature\(\pi_{44}\) falls as temperature rises, by roughly 0.15–0.25 %/°C at this doping, and the resistors themselves have a temperature coefficient (TCR) of about +0.1 to +0.2 %/°C. Over −40 to 125 °C the sensitivity changes by more than 30 %. This is the single largest error a calibration has to remove (section 7).
05 · The transducer circuit

The Wheatstone bridge

A 1 % change in a 5 kΩ resistor is 50 Ω. Measuring it directly with a current would put the 50 Ω change on top of 5000 Ω of baseline, and the baseline drifts by more than the signal with temperature. The bridge solves this by subtracting two dividers that share the same excitation and drift together, so only the difference appears at the output.

Wire the four resistors as two dividers between \(V_{\text{EX}}\) and ground. In the left divider the falling resistor R2 is on top and the rising R1 at the bottom; in the right divider the rising R3 is on top and the falling R4 at the bottom. With \(R_{1,3} = R(1+x)\), \(R_{2,4} = R(1-x)\) and \(x = \Delta R/R\):

$$V_{\text{INP}} = V_{\text{EX}}\frac{R(1+x)}{R(1+x)+R(1-x)} = \frac{V_{\text{EX}}}{2}(1+x) \qquad V_{\text{INN}} = \frac{V_{\text{EX}}}{2}(1-x)$$ $$V_{\text{OUT}} = V_{\text{INP}} - V_{\text{INN}} = V_{\text{EX}}\cdot x = V_{\text{EX}}\,\frac{\Delta R}{R}$$

Three properties make this the universal arrangement:

  • Linear. Because the top and bottom of each divider change by equal and opposite amounts, the sum in each denominator stays exactly \(2R\). A bridge with only one active resistor has an output \(V_{\text{EX}}\,x/(4+2x)\): four times smaller and nonlinear.
  • Zero at zero. With no stress the output is 0 V, whatever \(R\) is and whatever the temperature does to it, as long as the four resistors match.
  • Ratiometric. The output is proportional to \(V_{\text{EX}}\). If the ADC uses \(V_{\text{EX}}\) as its reference, excitation drift and noise cancel out of the digital result.
ConfigurationActive elementsOutputLinearityWhere used
Quarter bridge1\(V_{\text{EX}}\,x/(4+2x)\)Nonlinear, ~x/2 errorSingle strain gauge with dummy resistors
Half bridge2 (one +, one −)\(V_{\text{EX}}\,x/2\)LinearBending beams, some load cells
Full bridge4 (two +, two −)\(V_{\text{EX}}\,x\)LinearPressure sensors, load cells

Voltage or current excitation

With a constant voltage the output's temperature coefficient is that of \(\pi_{44}\): about −0.2 %/°C. With a constant current \(I\), the bridge voltage is \(I\cdot R\), which rises with the resistors' TCR. Since \(V_{\text{OUT}} = I\,R\,x\), a TCR of +0.2 %/°C cancels most of a −0.2 %/°C piezo coefficient. Discrete analog transmitters often use current excitation for that reason. Digital sensors usually use ratiometric voltage excitation and correct the temperature coefficient in the calibration polynomial, which is more accurate, and they measure the bridge resistance (through the excitation current) as a temperature signal.

06 · Worked example A

Pressure rising and falling: what each resistor and node does

The ideal die from sections 3–5: \(R = 5.000\ \text{k}\Omega\) at rest, \(\Delta R/R = 1.00\,\%\) at 100 kPa (linear), \(V_{\text{EX}} = 3.000\ \text{V}\). Bridge current is \(V_{\text{EX}}/R = 0.6\ \text{mA}\) and dissipation 1.8 mW. Sensitivity is \(10\ \text{mV/V}\) full scale, or 0.300 mV/kPa at 3 V.

PressureEdge stress σmaxΔR/RR1 = R3 (Ω)R2 = R4 (Ω)VINP (V)VINN (V)VOUT (mV)Common mode (V)
0 kPa (vacuum)005000.05000.01.500001.500000.0001.500
25 kPa6.93 MPa+0.25 %5012.54987.51.503751.496257.5001.500
50 kPa13.85 MPa+0.50 %5025.04975.01.507501.4925015.0001.500
75 kPa20.78 MPa+0.75 %5037.54962.51.511251.4887522.5001.500
100 kPa (FS)27.70 MPa+1.00 %5050.04950.01.515001.4850030.0001.500
101.325 kPa (1 atm)28.07 MPa+1.013 %5050.74949.31.515201.4848030.3981.500
Pressure rising, 0 → 100 kPa

The diaphragm bows into the cavity. Its top surface at the edges is stretched, so R1 and R3 gain 12.5 Ω per 25 kPa and R2 and R4 lose the same. In the left divider the bottom resistor grows and the top shrinks, so \(V_{\text{INP}}\) rises by 3.75 mV per 25 kPa; the right divider does the mirror image, so \(V_{\text{INN}}\) falls by 3.75 mV. Their difference grows by 7.5 mV per 25 kPa. The common mode stays at exactly \(V_{\text{EX}}/2\), which is what lets the amplifier have a fixed input range.

Pressure falling, 100 → 0 kPa

Single-crystal silicon is elastic up to fracture: it has no plastic yield and essentially no mechanical hysteresis. The diaphragm retraces the same curve and every value in the table returns to its rising value at the same pressure. What hysteresis a real sensor shows (typically 0.01–0.1 % FS) comes from the package: the die-attach adhesive, the gel and the glass bond creeping under thermal and pressure cycles.

Below the reference: a gauge or differential sensor

For a gauge version of the same die, a −50 kPa vacuum on the front pushes the diaphragm outward. All stresses change sign: R1 and R3 fall to 4975 Ω, R2 and R4 rise to 5025 Ω, \(V_{\text{INP}} = 1.49250\ \text{V}\), \(V_{\text{INN}} = 1.50750\ \text{V}\) and \(V_{\text{OUT}} = -15.0\ \text{mV}\). The bridge is bipolar; the front end must accept a signal of either sign.

07 · The real die

Offset, temperature drift and nonlinearity

A real die departs from the ideal in three ways that the electronics must correct. The values below are representative of a production piezoresistive die and are used for the rest of this page.

  • Offset. The four resistors match to about 0.1 %, and residual stress from the glass bond and die attach bends the diaphragm slightly. One resistor 0.1 % high gives \(V_{\text{EX}}\cdot0.001/4\) = 0.75 mV, which is 2.5 % of the 30 mV span. Model: \(+0.25\ \text{mV/V}\) at 25 °C.
  • Offset drift. Mismatched TCR between the resistors and thermal-expansion mismatch between silicon, glass and adhesive. Model: \(+1\ \mu\text{V/V}\) per °C plus a small quadratic term.
  • Span drift. \(\pi_{44}\) falls with temperature. Model: \(-0.20\ \%/^\circ\text{C}\) with a slight upward curvature, so the span is +13.6 % at −40 °C and −18.5 % at 125 °C.
  • Nonlinearity. Membrane stretching and second-order piezoresistance bow the response. Model: a −0.3 % FS sag at mid-scale relative to the straight line through 0 and 100 kPa.
$$\frac{V_{\text{OUT}}}{V_{\text{EX}}} = \underbrace{S(T)}_{\text{span}}\cdot\underbrace{\bigl[p - 0.012\,p\,(1-p)\bigr]}_{\text{bow}} + \underbrace{O(T)}_{\text{offset}}, \qquad p = \frac{P}{100\ \text{kPa}}$$ $$S(T) = 10\ \text{mV/V}\,\bigl[1 - 0.0020\,\Delta T + 1.5\times10^{-6}\,\Delta T^2\bigr] \qquad O(T) = 0.25\ \text{mV/V} + 1.0\ \tfrac{\mu\text{V/V}}{^\circ\text{C}}\,\Delta T + 4\ \tfrac{\text{nV/V}}{^\circ\text{C}^2}\,\Delta T^2, \qquad \Delta T = T - 25\ ^\circ\text{C}$$
TemperatureSpan S (mV/V)Offset O (mV/V)VOUT at 0 kPa (mV)VOUT at 60 kPa (mV)VOUT at 100 kPa (mV)Reading if uncorrected, at 60 kPa
−40 °C11.3630.2020.60620.96234.69669.9 kPa
25 °C10.0000.2500.75018.66430.75062.2 kPa
85 °C8.8540.3240.97316.83427.53556.1 kPa
125 °C8.1500.3901.17015.77025.62052.6 kPa

The last column is the pressure an ideal reader (10 mV/V span, no offset) would report. Across temperature the same 60 kPa reads anywhere from 52.6 to 69.9 kPa. The raw die is a good transducer, stable and repeatable, but not yet an accurate sensor. Sections 10 and 11 fix that.

08 · Signal conditioning

The analog front end, block by block

The bridge's 30 mV span sits on a 1.5 V common mode and must be resolved to better than 1 part in 10 000 with drift below a few µV. That is the job of a sensor signal conditioner (SSC) ASIC, often in the same package as the die. Commercial examples include Renesas' ZSSC31xx family and TI's PGA30x; the architecture below is the common pattern, with the numbers of this design. Step through the blocks.

Fig 4. Inside the sensor signal conditioner. The bridge excitation also serves as the ADC reference (ratiometric). Pressure and temperature share the PGA and ADC through the input multiplexer.
09 · Budget

Noise and resolution

Resolution is rarely what limits a pressure sensor; accuracy over temperature is. The budget shows why, referred to the bridge output.

SourceValueCalculation
Bridge thermal noise9.1 nV/√Hz\(\sqrt{4kTR}\), \(R_{\text{out}} = 5\ \text{k}\Omega\), 300 K
Chopped PGA input noise≈15 nV/√HzTypical for a low-power chopper instrumentation amplifier; no 1/f corner
Total density17.5 nV/√HzRoot-sum-square
Noise in a 50 Hz bandwidth124 nV rms\(17.5\ \text{nV}/\sqrt{\text{Hz}}\cdot\sqrt{50\ \text{Hz}}\) (≈100 Hz output data rate)
Noise as pressure0.41 Pa rms124 nV / 0.300 mV/kPa; about 3.5 cm of altitude at sea level
ADC code size0.72 µV (2.4 Pa)Quantization dominates noise in this 16-bit design
14-bit output count7.6 Pa100 kPa / 13 107 counts
Uncalibrated error over temperatureup to ±15 % FSSection 7: 15 000 Pa
TakeawayThe analog chain resolves fractions of a pascal; the raw die is wrong by thousands of pascals. Barometric sensors that sell on resolution (altitude to a few cm) use longer conversions and 20–24-bit outputs, but they still spend most of their engineering on compensation.
10 · Digital compensation

The correction polynomial

The SSC's digital core reads two raw numbers each cycle, the pressure code \(D_P\) and a temperature code, and computes the corrected pressure from a small set of coefficients stored in one-time-programmable memory (OTP) or EEPROM. Normalise \(x = D_P/2^{15}\) and \(t = (T - 25\ ^\circ\text{C})/100\ ^\circ\text{C}\). The general second-order correction is

$$p = \sum_{i=0}^{2}\sum_{j=0}^{2} c_{ij}\,x^i\,t^j = \underbrace{(c_{00} + c_{01}t + c_{02}t^2)}_{\text{offset and its drift}} + \underbrace{(c_{10} + c_{11}t + c_{12}t^2)}_{\text{gain and its drift}}\,x + \underbrace{(c_{20} + c_{21}t + c_{22}t^2)}_{\text{nonlinearity}}\,x^2$$

The hardware evaluates it in nested (Horner) form with fixed-point multiply-accumulates, a few hundred clock cycles per result. Each group of terms undoes one effect of section 7: \(c_{00}\), \(c_{01}\), \(c_{02}\) cancel offset and offset drift; \(c_{10}\), \(c_{11}\), \(c_{12}\) undo span and span drift; \(c_{2j}\) straighten the bow. Real SSCs use the same structure, sometimes as \(p = [\,x - O(t)\,]\cdot G(t)\) followed by a separate linearization, which expands to the same kind of polynomial.

The output is then scaled to the interface's transfer function. Here, with a 14-bit output that spans 10 % to 90 % of full code:

$$\text{Counts} = 1638 + (14745 - 1638)\cdot p \qquad\qquad P = \frac{\text{Counts} - 1638}{13107}\cdot(P_{\max} - P_{\min}) + P_{\min}$$

The 10 % and 90 % limits leave codes below 1638 and above 14745 for overpressure, underpressure and fault values, so the host can tell a saturated or failed sensor from a legitimate reading.

11 · Factory calibration

Finding the coefficients, part by part

Every die is different, so every sensor is calibrated individually, usually in large batches on a carrier, after packaging (the package stress is part of what is being corrected).

The calibration flow

  1. Load and connect. Hundreds of sensors on a fixture, each on a bus (often the same I²C/SPI pins, or a one-wire calibration mode on the output pin), inside a temperature chamber connected to a precision pressure controller.
  2. Set gain and analog offset. At room temperature, apply the minimum and maximum pressure, read the raw codes, and choose the PGA gain and offset DAC so the span fills the ADC with margin. Write these first: every later raw reading depends on them.
  3. Collect the matrix. At each calibration temperature (soak until the die is stable, 10–30 minutes), step through the calibration pressures and record raw \(D_P\) and raw temperature for every part. Here: −40, 25 and 125 °C × 0, 50 and 100 kPa = 9 points.
  4. Solve. For each part, the 9 coefficients follow from 9 equations: one per point, \(\sum c_{ij}x^it^j = p_{\text{applied}}\). With more points than coefficients, use least squares.
  5. Write and lock. Write the coefficients and a checksum to OTP or EEPROM, then lock it.
  6. Verify. Read the corrected output at points that were not used in the fit (another pressure, another temperature) and bin or reject parts that miss the total error band.

Each extra temperature costs chamber time, which dominates calibration cost, so the number of points is a commercial decision. The simulator applies each scheme to the die model of section 7 and plots the remaining error at five pressures across −40 to 125 °C. Total error band (TEB) is the worst-case deviation over the whole compensated pressure and temperature range, and is what datasheets specify.

With the defaults: no calibration leaves about ±15 % FS. Offset-only or two-pressure trim at 25 °C is still ±17 % FS at 125 °C because the dominant error, span drift, is untouched. Two temperatures (25 and 125 °C) with linear temperature terms bring it to 2.4 % FS, worst at −40 °C where the curvature of \(S(T)\) is not modelled. Three temperatures and the full 9-term polynomial leave 0.04 % FS, which is the 14-bit output's rounding plus model residue. Real parts specify 0.25–1.5 % FS TEB because errors that a polynomial cannot remove remain: hysteresis, nonrepeatability, the uncertainty of the calibration pressure standard and long-term drift. Use the last slider to add them.

12 · Worked example B

60 kPa, traced from diaphragm to bus, at 25 °C and 85 °C

The same pressure at two temperatures, with the real die of section 7 and the 3 × 3 calibration of section 11. Everything above the calibration step differs between the two columns; the output is the same.

StageQuantity25 °C85 °CHow
InputPressure60.000 kPa60.000 kPa\(p = 0.6\)
DiaphragmEdge stress16.6 MPa16.6 MPa\(0.308\,P\,(a/h)^2\); mechanics barely depends on T
PiezoresistorsΔR/R (span × bow)±0.5971 %±0.5287 %\(S(T)\,[p-0.012p(1-p)]\); \(\pi_{44}\) is 11.5 % lower at 85 °C
Base resistance R5.000 kΩ5.450 kΩTCR +0.15 %/°C
R1, R3 / R2, R45029.9 / 4970.1 Ω5478.8 / 5421.2 Ω\(R(1 \pm \Delta R/R)\)
BridgeVOUT18.664 mV16.834 mV\(V_{\text{EX}}\,(S\,g(p) + O)\), includes offset 0.75 / 0.97 mV
VINP / VINN1.50933 / 1.49067 V1.50842 / 1.49158 V\(V_{\text{EX}}/2 \pm V_{\text{OUT}}/2\)
Offset DACVOUT − 15 mV3.664 mV1.834 mV\(V_{\text{DAC}} = 0.005\,V_{\text{EX}}\)
PGA ×64VADC234.5 mV117.4 mV
ADCRaw code DP5122 (0x1402)2564 (0x0A04)\(2^{15}\,V_{\text{ADC}}/1.5\ \text{V}\)
x = DP/215, t0.15631, 0.000.07825, 0.60
UncorrectedReading with nominal scaling62.21 kPa (+2.21)56.11 kPa (−3.89)Offset dominates at 25 °C, span drift at 85 °C
Compensation\(p = \sum c_{ij}x^it^j\)0.6000000.5999699 OTP coefficients
Output scaling14-bit counts9502 (0x251E)9502 (0x251E)\(1638 + 13107\,p\)
11-bit temperature768 (0x300)1382 (0x566)\((T + 50)/200 \cdot 2047\)
BusBytes 1–425 1E 60 0025 1E AC C0Section 13
HostDecoded P, T59.998 kPa, 25.04 °C59.998 kPa, 85.03 °CError −2 Pa: one count is 7.6 Pa

The calibration coefficients that produced this column are, for this die model: \(c_{00} = 0.4780\), \(c_{10} = 0.7817\), \(c_{20} = -0.0073\), \(c_{01} = 0.0849\), \(c_{11} = 0.1557\), \(c_{21} = -0.0030\), \(c_{02} = 0.0057\), \(c_{12} = 0.0196\), \(c_{22} = -0.0008\). \(c_{00}\) and \(c_{10}\) carry the mapping from the offset-shifted, ×64 code back to pressure; \(c_{11}\) is the large span-drift correction; \(c_{20}\) undoes the bow. Change the pressure, temperature and calibration scheme below to trace any point.

13 · Output

Reading the result over I²C or SPI

The format below is the one used by a large family of board-mount digital pressure sensors (Honeywell's ABP, HSC and SSC series and compatible parts): up to four bytes, of which the first two are always the status and compensated pressure and the next two are an optional temperature. The sensor is a target (slave) that only answers reads; on I²C its default 7-bit address is 0x28.

ByteBits 7…0Contents
1S1 S0 B13 B12 B11 B10 B9 B8Status (2 bits) and bridge data bits 13–8
2B7 … B0Bridge data bits 7–0 (compensated pressure, 14 bits)
3T10 … T3Temperature bits 10–3 (8-bit temperature if you stop here)
4T2 T1 T0 x x x x xTemperature bits 2–0; the five low bits are "don't care"
S1 S0MeaningHost action
00Normal: valid data, not yet readUse it
01Device in command (programming) modeShould not occur in the field
10Stale: already read since the last conversionRead again later; poll no faster than the update rate
11Diagnostic fault (bridge, memory)Discard; flag the sensor
Fig 5. Four-byte read of the 60 kPa, 85 °C result (bytes 25 1E AC C0). I²C: the controller sends a start, the address 0x28 and the read bit; the sensor drives the data; the controller ACKs bytes 1–3 and NACKs byte 4, then sends a stop. SPI: chip-select low, 32 clocks, data on MISO; the sensor ignores MOSI.

On the host, decoding is a few lines:

uint8_t b[4];
i2c_read(0x28, b, 4);                         /* START, 0x28+R, 4 bytes, NACK, STOP */

uint8_t  status = b[0] >> 6;                  /* 0 = valid, 2 = stale, 3 = fault */
uint16_t counts = ((b[0] & 0x3F) << 8) | b[1];/* 14-bit pressure: 0x251E = 9502 */
uint16_t tcount = (b[2] << 3) | (b[3] >> 5);  /* 11-bit temperature: 0x566 = 1382 */

const float PMIN = 0.0f, PMAX = 100.0f;       /* kPa, from the part number */
float p_kpa = (counts - 1638) * (PMAX - PMIN) / (14745 - 1638) + PMIN;   /* 59.998 */
float t_c   = tcount * 200.0f / 2047.0f - 50.0f;                         /* 85.03  */

Bus design notes. These parts typically run I²C at 100–400 kHz and SPI up to around 800 kHz; check the specific datasheet. The pull-up resistors on SDA and SCL set the rise time against the bus capacitance (see the I²C primer). Some variants start a conversion only on request (a "measurement request" write or a read of zero bytes) and sleep in between; others convert continuously and the status bits tell you whether the data is new. Reading faster than the update rate returns the same value with status 10.

14 · End-to-end design

Designing the sensor into a system

A pressure measurement is only as good as everything around the sensor. Working from the requirement down:

RequirementDesign decisionWhy
Range 0–100 kPa absolute, 3× overpressureDiaphragm \(a/h = 30\): 27.7 MPa at FS, 83 MPa at 3×Stress scales with \((a/h)^2\); keep \(w/h\) small for linearity
Accuracy ±0.5 % FS TEB, −40 to 125 °C3 × 3 calibration, 9 coefficients; 0.25 % budget for hysteresis and driftSection 11: two temperatures leave 2.4 % FS
Resolution better than 10 PaGain 64, 16-bit ΣΔ, 14-bit output (7.6 Pa per count)Noise 0.4 Pa rms; quantization is the limit
Update rate 100 Hz~1 ms conversions, alternating P and TLeaves time for averaging or duty-cycling
Supply 3.3 V ±10 %, noisy boardRatiometric ADC; local 100 nF + 1 µF decoupling at VDDSupply variation cancels; decoupling keeps conversion transients local
Medium: air with humidity, oil mistGel-protected die, port facing down or sidewaysCondensate and debris must drain away from the port
Board-level, < 30 cm to MCUI²C at 400 kHz, 0x28, 2.2–4.7 kΩ pull-upsA board-level bus; see below for harness-connected sensors
Detect failureCheck status bits; treat counts outside 1638–14745 as invalid; plausibility against a second source if safety-relatedA failed sensor must not look like a valid pressure
Placement

Thermal and mechanical

  • Keep the sensor away from regulators, processors and power FETs: a temperature gradient across the package is not what was calibrated.
  • Board flex reaches the die through the package: avoid mounting holes, connectors and V-score lines nearby.
  • Reflow and conformal coating can shift offset; check after assembly, and never coat over the port.
Pneumatics

Getting pressure to the die

  • Tube and enclosure volume form a pneumatic low-pass filter; long thin tubes slow the response.
  • A barometric sensor inside a sealed enclosure needs a vent (often a membrane), or it measures the enclosure.
  • Air flow across an open port causes dynamic-pressure errors; shield it.
Electrical

Power, bus and EMC

  • Decouple VDD close to the pins; route the sensor's supply away from switching nodes.
  • Put ESD protection on any bus line that leaves the board.
  • Read at a steady rate; bursts of bus activity during a conversion can couple into the front end of poorly isolated parts.
Vehicles

When the sensor is remote

  • I²C and SPI are board-level buses. A sensor at the end of a harness (MAP, brake, fuel) uses a ratiometric 0.5–4.5 V analog output, SENT (SAE J2716), or PSI5 instead.
  • The die, ASIC and calibration are the same; only the output stage changes.
  • Ratiometric analog outputs need the ECU's ADC referenced to the same 5 V that supplies the sensor.
15 · Practice

Bring-up and debug checklist

SymptomLikely causeCheck
No ACK at 0x28Wrong address variant, missing pull-ups, sensor asleep or held in resetScan the bus; the address is in the part number; scope SDA/SCL edges
Status always 10 (stale)Polling faster than the update rate, or a request-mode part never asked to convertSlow down; send the measurement request
Status 11Bridge fault or memory checksum errorUsually a damaged part (ESD, overpressure, wash fluid)
Reads ~101 kPa with the port blockedAbsolute sensor working correctlyA gauge part would read ~0
Offset of a few % after assemblyReflow stress, board flex, coating on the packageCompare a sensor before and after; relieve mounting stress
Reading drifts as the board warmsGradient between die and the temperature sensor; self-heating from nearby partsLog P and T together; move heat sources
Slow or damped responsePneumatic RC of tubing and volume, clogged port or filterStep the pressure and look at the time constant
Noisy readingsAir turbulence at the port, mechanical vibration, supply noiseCap the port: if the noise stays it is electrical
16 · Self-check

Questions

Why are the resistors placed at the diaphragm edges and not at the centre, where deflection is largest?

Resistance responds to stress, and surface stress follows curvature, not deflection. Curvature, and therefore stress, is largest at the clamped edges: \(0.308\,P(a/h)^2\) versus \(-0.139\,P(a/h)^2\) at the centre. The edge also gives a clean orientation: perpendicular and parallel to the edge are the two directions that produce equal and opposite resistance changes.

Halving the diaphragm thickness: what happens to the signal, the deflection and the burst pressure?

Stress scales with \(1/h^2\): 4× the signal. Deflection scales with \(1/h^3\): 8× more, so \(w/h\) grows 16× and nonlinearity becomes a concern. Burst pressure falls 4× (same stress limit at a quarter of the pressure). That is why low-range sensors use thin, wide diaphragms, often with a central boss to stiffen them and keep them linear.

Why does a full bridge give 4× the output of a quarter bridge, and why is it linear?

Each half of the bridge has one resistor rising and one falling, so the divider ratio changes twice as much as with one active element, and the two halves move in opposite directions, doubling it again. Because the rise and fall are equal, the sum \(R_{\text{top}} + R_{\text{bottom}}\) stays \(2R\): the denominator is constant and the output is exactly \(V_{\text{EX}}\,\Delta R/R\).

The 3.0 V bridge supply drops to 2.9 V. What happens to the reported pressure?

Nothing, to first order. The bridge output falls 3.3 %, and so do the offset DAC voltage and the ADC reference, because all three are derived from the same node. The ADC measures a ratio. This only holds if the reference is sensed at the bridge (Kelvin connection); a voltage drop in the bridge return path that the reference does not see breaks it.

Why is calibrating at 25 °C alone not enough, even with a perfect two-pressure trim?

The dominant error is the temperature coefficient of span, about −0.2 %/°C from \(\pi_{44}\). A room-temperature trim corrects offset and span at 25 °C only; at 125 °C the span is 18.5 % lower and the sensor reads 17 % FS low at full scale. At least two temperatures are needed to measure that slope, and three to capture its curvature.

You read bytes 0xC0 0x00 0x00 0x00. What does it mean?

Status bits 11: diagnostic fault. The pressure field (0) is below the 1638 minimum, so it is not a valid pressure in any case. Discard the reading and flag the sensor.

17 · Sources

References

  1. C. S. Smith, "Piezoresistance effect in germanium and silicon," Physical Review, vol. 94, no. 1, 1954: the \(\pi_{11}\), \(\pi_{12}\), \(\pi_{44}\) values used here.
  2. Y. Kanda, "A graphical representation of the piezoresistance coefficients in silicon," IEEE Transactions on Electron Devices, vol. ED-29, no. 1, 1982: orientation and doping dependence, temperature coefficients.
  3. S. Timoshenko and S. Woinowsky-Krieger, Theory of Plates and Shells, 2nd ed., McGraw-Hill, 1959: clamped square plate coefficients.
  4. S. D. Senturia, Microsystem Design, Kluwer, 2001, ch. 18 (piezoresistive pressure sensor case study).
  5. M. A. Hopcroft, W. D. Nix, T. W. Kenny, "What is the Young's modulus of silicon?", Journal of Microelectromechanical Systems, vol. 19, no. 2, 2010.
  6. W. Kester (ed.), "Bridge circuits," in Sensor Signal Conditioning, Analog Devices, 1999.
  7. Honeywell Sensing and Control, I²C Communications with Honeywell Digital Output Pressure Sensors and SPI Communication with Honeywell Digital Output Pressure Sensors, technical notes; and the Basic ABP Series datasheet: status bits, 4-byte format, 10–90 % transfer function.
← Capacitive sensingAnalog front ends: touch and IMU →Switched-capacitor circuits →I²C →SPI →