---
title: Capacitive, inductive and piezoelectric sensors
heading: Capacitive displacement sensors and their sensitivity, differential capacitors, inductive sensors and the LVDT with phase-sensitive detection, piezoelectric sensors as charge sources, their high-pass response, and the charge amplifier
eyebrow: S15 · Lesson 4 · Capacitive, inductive and piezoelectric sensors
xp: 50
---

::: hook
Not every sensor is a resistor. A capacitive sensor turns a micrometer of diaphragm movement into femtofarads; an LVDT reads a position without touching it; a piezoelectric crystal produces charge when squeezed, which is how ultrasound probes, heart-sound microphones and accelerometers in wearable activity monitors work. Each has its own electrical model, and the piezoelectric one has a catch that surprises everyone the first time: it can't measure a steady force, because its charge leaks away.
:::

::: play
- A piezoelectric sensor squeezed by a constant force at t = 0 produces charge q = dF, giving an initial voltage q/C. The charge leaks through the amplifier's input resistance R, so the voltage decays with τ = RC.
- The sensor is a high-pass filter with corner $1/(2\pi RC)$: fine for heart sounds and vibration, useless for a static weight.
- A charge amplifier fixes the gain at $1/C_f$ regardless of cable capacitance, and a large feedback resistor sets how slowly it forgets.
:::

```sim plot
view: graph
x: t = 0..3
y: v = 0..0.35
slider: R = 0.1..10 = 1 log
slider: C = 0.2..5 = 1 log
plot: 300e-12/(C*1e-9)*exp(-t/(R*C)) | samples: 400 | label: sensor voltage, V (R in GΩ, C in nF)
readout: time constant, s = R*C | digits: 3
readout: corner frequency, Hz = 1/(2*pi*R*C) | digits: 3
```

::: predict
## A PZT disc with d = 300 pC/N and 1 nF of capacitance carries a steady 1 N load, read by an amplifier with 1 GΩ input resistance. What does the voltage do?

- [ ] Stays at 0.3 V
- [x] Jumps to 0.3 V and decays with a 1 s time constant
- [ ] Rises slowly to 0.3 V
- [ ] Stays at 0

::: reveal
The force produces q = 300 pC, so V = q/C = 0.3 V at first. That charge leaks through 1 GΩ with τ = RC = 1 s, so after half a second only 0.18 V remains. Piezoelectric sensors measure changes, with a high-pass corner here at 0.16 Hz.
:::
:::

::: nameit
## Capacitive sensors

A parallel-plate capacitor, $C = \varepsilon_0\varepsilon_rA/d$, changes when the gap d moves. For a small change Δd, $\Delta C \approx -C\Delta d/d$: sensitivity rises as the gap shrinks. A **differential capacitor**, a center plate between two fixed ones, makes one capacitance rise as the other falls, which doubles the sensitivity and cancels the leading nonlinearity. Capacitive pressure sensors and MEMS accelerometers work this way, read with AC excitation.

## Inductive sensors and the LVDT

A coil's inductance depends on its magnetic path, $L = N^2/\mathcal{R}$, so moving a core changes it. The **linear variable differential transformer** has one primary and two series-opposed secondaries; a centered core gives zero output, and the output amplitude grows linearly with displacement with a phase of 0° or 180° for the two directions. **Phase-sensitive demodulation** (multiplying by the excitation and low-pass filtering, as in C11's lock-in) recovers a signed DC output.

## Piezoelectric sensors

Quartz, PZT ceramic and PVDF film produce charge in proportion to force: $q = dF$, with d about 2.3 pC/N for quartz and several hundred pC/N for PZT. Electrically the sensor is a charge source in parallel with its capacitance C. Across a resistance R the voltage is a high-pass response,

$$\frac{V}{F}(j\omega) = \frac{d}{C}\frac{j\omega\tau}{1 + j\omega\tau}, \qquad \tau = RC$$

A **charge amplifier**, an op amp with feedback capacitor $C_f$ (and a large resistor across it), holds the sensor at virtual ground and outputs $-q/C_f$, independent of the sensor's and cable's capacitance.
:::

::: example
## A capacitive sensor has 1 cm² plates 0.1 mm apart in air. What's its capacitance, and how much does it change for a 1 µm displacement?

::: solution
1. **Capacitance.**
   $$\begin{aligned} C &= \frac{8.854 \times 10^{-12} \times 10^{-4}}{10^{-4}}\ \text{F} \\ &= 8.85\ \text{pF} \end{aligned}$$
2. **Change for 1 µm.**
   $$\begin{aligned} \Delta C &= C \times \frac{1\ \mu\text{m}}{100\ \mu\text{m}} \\ &= 88.5\ \text{fF} \end{aligned}$$
3. **Can it be read?** A 1% change is one an AC bridge or capacitance-to-digital converter can resolve easily.

**Answer:** the sensor has 8.85 pF, which changes by 88.5 fF (1%) for a 1 µm displacement.
:::
:::

::: example
## The predict question's disc feeds a charge amplifier with $C_f$ = 100 pF instead. What's the output for a 1 N force step?

::: solution
1. **Charge amplifier output.**
   $$\begin{aligned} V_o &= -\frac{q}{C_f} \\ &= -\frac{300\ \text{pC}}{100\ \text{pF}} \\ &= -3\ \text{V} \end{aligned}$$
   whatever the cable's capacitance.
2. **Static loads.** With a 10 GΩ resistor across $C_f$, the time constant is 1 s again, so it still can't hold a static load.
3. **What the charge amplifier gains.** The gain no longer depends on the cable.

**Answer:** the output is −3 V for the 1 N step, whatever the cable's capacitance.
:::
:::

::: example
## A differential capacitive sensor has a center plate between two 1 cm² plates, each 0.1 mm away in air. Find both capacitances when the center plate moves 1 µm, and the ratio $(C_1 - C_2)/(C_1 + C_2)$ a bridge would report.

::: solution
1. **At rest.** Each capacitance is
   $$C_0 = 8.854\ \text{pF}$$
2. **After a 1 µm move.**
   $$\begin{aligned} C_1 &= \frac{\epsilon_0 A}{d - x} \\ &= 8.943\ \text{pF} \\ C_2 &= \frac{\epsilon_0 A}{d + x} \\ &= 8.766\ \text{pF} \end{aligned}$$
   a difference of 0.177 pF.
3. **Bridge ratio.** It works out exactly to
   $$\begin{aligned} \frac{C_1 - C_2}{C_1 + C_2} &= \frac{x}{d} \\ &= 0.01 \end{aligned}$$
   The two hyperbolic curves combine into a perfectly linear output.
4. **What it doesn't depend on.** The ratio doesn't depend on the permittivity or the area, which is why precision displacement and pressure sensors use the differential form.

**Answer:** $C_1$ = 8.943 pF and $C_2$ = 8.766 pF, and the bridge reports exactly x/d = 0.01, a perfectly linear output.
:::
:::

::: check
given: A = 0.25 | 1 | 4; d = 0.05 | 0.2 | 1; r = 2 | 4
answer: 8.854e-12*r*A*1e-4/(d*1e-3)*1e12
unit: pF
tolerance: 0.5%

## A capacitive sensor has {A} cm² plates {d} mm apart with relative permittivity {r}. What's its capacitance?

::: right
Right. $\varepsilon_0\varepsilon_rA/d$ = {answer} pF.
:::

::: misses
- [8.854e-12*A*1e-4/(d*1e-3)*1e12] Include the relative permittivity.
- [any] Not yet. Parallel-plate capacitance.
:::
:::

::: check
given: C = 5 | 20 | 100; d = 50 | 200; x = 0.5 | 2
answer: C*x/d*1000
unit: fF
tolerance: 0.5%

## A {C} pF parallel-plate sensor has a {d} µm gap. How much does its capacitance change when the gap shrinks by {x} µm?

::: right
Right. $C\Delta d/d$ = {answer} fF.
:::

::: misses
- [C*x/d] Convert picofarads to femtofarads.
- [any] Not yet. $\Delta C \approx C\Delta d/d$.
:::
:::

::: check
given: k = 2.3 | 150 | 400; F = 0.5 | 2 | 10; C = 0.5 | 2 | 10
answer: k*F/(C*1000)
unit: V
tolerance: 0.5%

## A piezoelectric sensor with d = {k} pC/N and {C} nF of capacitance is suddenly loaded with {F} N. What voltage appears at first?

::: right
Right. $dF/C$ = {answer} V.
:::

::: misses
- [k*F/C] Picocoulombs over nanofarads gives millivolts.
- [any] Not yet. Charge over capacitance.
:::
:::

::: check
given: R = 0.1 | 1 | 10; C = 0.5 | 2 | 10
answer: 1/(2*pi*R*1e9*C*1e-9)
unit: Hz
tolerance: 0.5%

## A piezoelectric sensor of {C} nF is read across {R} GΩ. What's its low-frequency corner?

::: right
Right. $1/(2\pi RC)$ = {answer} Hz.
:::

::: misses
- [1/(R*1e9*C*1e-9)] That's 1/τ in radians per second; divide by 2π for hertz.
- [any] Not yet. High-pass corner.
:::
:::

::: check
given: k = 100 | 300; F = 0.2 | 1 | 5; f = 10 | 100 | 1000
answer: k*F/f
unit: V
tolerance: 0.5%

## A piezoelectric sensor with d = {k} pC/N drives a charge amplifier with $C_f$ = {f} pF. What's the size of the output for a {F} N force step?

::: right
Right. $dF/C_f$ = {answer} V.
:::

::: misses
- [any] Not yet. Charge over the feedback capacitance.
:::
:::

::: check
given: V = 0.2 | 1 | 3; t = 0.2 | 1; R = 0.5 | 2; C = 0.5 | 2
answer: V*exp(-t/(R*C))
unit: V
tolerance: 0.5%

## A piezoelectric sensor jumps to {V} V under a steady load and is read across {R} GΩ with {C} nF of capacitance. What's left after {t} s?

::: right
Right. $Ve^{-t/RC}$ = {answer} V.
:::

::: misses
- [any] Not yet. The charge leaks with τ = RC.
:::
:::

::: check
kind: parts
given: A = 0.5 | 1 | 4; d = 50 | 200; x = 0.5 | 2 | 5

## A differential capacitor has {A} cm² plates, each {d} µm from a center plate in air, which moves {x} µm.

::: part
answer: 8.854e-12*A*1e-4/((d - x)*1e-6)*1e12 - 8.854e-12*A*1e-4/((d + x)*1e-6)*1e12
unit: pF
tolerance: 0.5%

### What is $C_1 - C_2$?

::: misses
- [8.854e-12*A*1e-4/(d*1e-6)*1e12*x/d] Close; each capacitance is exactly $\epsilon_0A/(d \mp x)$.
- [any] $\epsilon_0A/(d - x) - \epsilon_0A/(d + x)$.
:::
:::

::: part
answer: x/d
tolerance: 0.5%

### What is $(C_1 - C_2)/(C_1 + C_2)$?

::: misses
- [any] It works out to x/d exactly.
:::
:::
:::

::: check
kind: derivation
vars: k = 1..500, F = 0.1..100, C = 10..10000

## A piezoelectric sensor with charge sensitivity k pC/N is loaded with F newtons.

::: step
answer: k*F

### How much charge does it produce, in pC?
:::

::: step
answer: k*F/C

### What voltage does it give across a capacitance of C pF?
:::

::: right
Right. A charge amplifier sets C by its feedback capacitor, so cable capacitance no longer matters.
:::
:::

::: explain
## Why can't a piezoelectric sensor measure a constant force, and why does a charge amplifier help even though it doesn't fix that?

::: model
A piezoelectric crystal produces a fixed amount of charge for a given force, not a continuous current. Any resistance across it, from the amplifier's input or the crystal's own leakage, lets that charge drain away with time constant RC, so a steady force gives a voltage that decays to zero; only changes in force are measured. A charge amplifier holds the sensor's terminals at virtual ground and puts the charge onto a known feedback capacitor, so its output depends only on that capacitor, and the sensor's and cable's capacitances, which vary with cable length and temperature, drop out of the gain. Its feedback resistor still drains the charge, so the low-frequency limit remains, but it's set by stable, chosen components.
:::
:::

::: practice

::: check
given: A = 0.1 | 10; d = 0.01 | 2; r = 1 | 10
answer: 8.854e-12*r*A*1e-4/(d*1e-3)*1e12
unit: pF
tolerance: 0.5%

## C: {A} cm², {d} mm, εr = {r}?

::: misses
- [any] $\varepsilon_0\varepsilon_rA/d$.
:::
:::

::: check
given: k = 2 | 500; F = 0.1 | 20; C = 0.1 | 20
answer: k*F/(C*1000)
unit: V
tolerance: 0.5%

## Initial voltage: d = {k} pC/N, {F} N, {C} nF?

::: misses
- [any] $dF/C$.
:::
:::

::: check
given: R = 0.01 | 100; C = 0.1 | 50
answer: 1/(2*pi*R*1e9*C*1e-9)
unit: Hz
tolerance: 0.5%

## Corner: {R} GΩ, {C} nF?

::: misses
- [any] $1/(2\pi RC)$.
:::
:::
:::
