B3 · Lesson 12 · Capacitive sensors
Measuring motion, touch and level as a change in capacitance
The accelerometer in a phone is a speck of silicon on springs between fixed plates. When the phone tilts, the speck shifts by nanometers, one capacitor grows and the other shrinks, and a circuit measures the difference, a few femtofarads. The touchscreen above it detects your finger the same way, as a few picofarads added to an electrode. Fuel gauges, humidity sensors and liquid-level probes all work on one principle: anything that changes a gap, an overlap or a dielectric changes a capacitance, and capacitance is easy to measure precisely.
- A movable plate sits between two fixed plates, each gap = 2 µm at rest, with 1 mm² of area. Moving it by shrinks one gap and widens the other.
- The curves are the two capacitances. Each one alone is nonlinear in , but the readout's ratio, , is exactly .
- How large is the difference for a 10 nm shift?
Predict
A parallel-plate sensor has a 2 µm gap and 4.4 pF. Its gap shrinks by 10 nm. About how much does its capacitance change?
About 22 fF. For small moves, : a 0.5% change in the gap makes a 0.5% change in capacitance, and 0.5% of 4.4 pF is 22 fF. Measuring femtofarads is routine for an on-chip circuit, which is why MEMS sensors can see nanometer motions.
Name it
Three ways to change a capacitance
can change through any of its three factors:
| Change | Sensors |
|---|---|
| gap | accelerometers, pressure sensors, microphones |
| overlap area | rotary and linear position sensors, MEMS comb drives |
| permittivity ε | humidity sensors, liquid-level and fuel gauges, proximity and touch |
Gap sensors
For small changes, : sensitivity grows as the gap shrinks, which is why MEMS gaps are micrometers.
A differential sensor puts a moving plate between two fixed ones: and . Then
exactly linear, and immune to anything that scales both capacitors alike (temperature, the exact area, ε). For small , .
Dielectric sensors
Two plates partly dipped in a liquid of permittivity , to height out of , form two capacitors side by side:
linear in the level .
Touch
A touch electrode has some capacitance to ground; a finger, coupled through the cover glass, adds a few picofarads. The circuit measures it by timing a charge through a known resistor () or from an oscillator's frequency (), and reports a touch when it rises past a threshold.
Worked example
A MEMS accelerometer has 1 mm² plates and 2 µm gaps. Find the rest capacitance and the differential change for a 10 nm shift.
Show the solution
- Rest capacitance.
- Relative shift. A 10 nm shift is
- Differential change. Each side changes by about 22 fF, and the difference is
- Ratio. The ratio is the shift over the gap.
Answer the rest capacitance is 4.43 pF, and a 10 nm shift makes a differential change of 44 fF.
Worked example
A touch electrode has 10 pF to ground and is timed through 1 MΩ. A finger adds 5 pF. How does the time constant change?
Show the solution
- Without the finger.
- With the finger. The 5 pF it adds makes τ = 15 µs.
- What the microcontroller sees. Counting charge time with a fast clock, it sees a 50% jump, easy to tell from noise.
Answer the time constant rises from 10 µs to 15 µs.
Check
A 2 pF gap sensor has a 1 µm gap, which shrinks by 20 nm. About how much does its capacitance grow?
Write units the way you normally would: 1.5 fF and 0.0015 pF are the same answer.
Check
A differential capacitive sensor has 1 µm gaps, and its middle plate shifts by 10 nm. What is ?
Check
A differential sensor has 0.5 mm² plates with 1.5 µm gaps. Its middle plate moves 300 nm toward one side. What is the capacitance on that side?
Write units the way you normally would: 1.5 pF and 0.0015 nF are the same answer.
Check
A touch electrode of 8 pF is timed through 2 MΩ. A finger adds 2 pF. What is the new time constant?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A level gauge has plates 2 cm wide and 30 cm tall, 3 mm apart, dipped to 15 cm in a fuel with = 2. What is its capacitance?
Write units the way you normally would: 1.5 pF and 0.0015 nF are the same answer.
Check
A sensing oscillator runs at 100 kHz with 10 pF, with frequency proportional to . A touch adds 3 pF. What frequency results?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Explain why
Why does a differential capacitive sensor measure displacement more reliably than a single capacitor?
A single gap capacitor's value depends on the plate area, the permittivity and the gap, so temperature or humidity changes, or manufacturing spread, all look like motion. And its response, , isn't linear. With two capacitors that change in opposite directions, the ratio comes out exactly : any factor common to both, like ε or , cancels, and the curvature of each cancels the other's. What's left depends only on the displacement and the rest gap.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.