Capacitive sensors detect changes in capacitance for touch and proximity sensing. This covers their design and use in various electronic devices.
The phone screen that recognizes a finger, the elevator touch button, the water level sensor in a tank: these are capacitive sensors. They detect the presence, position, or level of an object by the variation of the electrical capacitance of a capacitor, without mechanical contact and even through non-conductive materials [1][2][3][4].
The capacitance of a parallel plate capacitor, with area $A$ and distance $d$, and a dielectric with relative permittivity $\varepsilon_r$, is
$$C = \frac{\varepsilon_0\,\varepsilon_r\,A}{d}$$
where $\varepsilon_0 = 8.854\cdot10^{-12}\ \mathrm{F/m}$. A capacitive sensor exploits the variation of one of the three quantities: the distance $d$ (the target is a plate approaching), the area $A$ (relative sliding of the plates), or the dielectric constant $\varepsilon_r$ (the material between the plates changes, for example water instead of air, with $\varepsilon_r \approx 80$) [1][2][4].
The capacitance involved is very small, from fractions of a picofarad to a few hundred picofarads, and must be converted into an electrical signal.
- RC oscillator: the capacitance determines the time constant $RC$ and thus the frequency of an oscillator or the charging time up to a threshold, measured by a microcontroller.
- AC capacitive divider: the voltage on a divider with the unknown capacitance varies with it.
- Bridge or charge transfer circuits, with high noise immunity, in the most precise sensors.
- Proximity sensors and touch buttons: the electrodes form a capacitor with the environment; a finger, which is conductive and connected to ground through the body, increases the capacitance to ground [2][3].
In the ideal model, the capacitance is that of the flat plates, with a uniform field. In reality, the field at the edges (fringe effect) and parasitic capacitances to cables, ground, and circuits dominate small capacitances; guard electrodes, held at the same potential as the measuring electrode, are used to concentrate the field. Humidity, dust, temperature, and environmental variations alter the measurement, so calibration and automatic baseline tracking are required. Water, being conductive, makes level measurement with bare electrodes difficult: electrodes are insulated with a coating.
Touch button. A square electrode with side $10\ \mathrm{mm}$, at $1\ \mathrm{mm}$ from a ground plate, has capacitance, in the flat plate model in air, $C = 8.854\cdot10^{-12}\cdot10^{-4}/10^{-3} \approx 0.89\ \mathrm{pF}$. A finger adds about $1\ \mathrm{pF}$ (assumed value).
1. With a charging resistor $R = 1\ \mathrm{M\Omega}$ the time constant without a finger is $R C = 10^{6}\cdot0{,}885\cdot10^{-12} \approx 0{,}89\ \mathrm{\mu s}$.
2. With the finger, $C \approx 1.89\ \mathrm{pF}$ and $RC \approx 1{,}89\ \mathrm{\mu s}$, more than double.
3. A microcontroller measures time with a $16\ \mathrm{MHz}$ clock (period $62.5\ \mathrm{ns}$): $0.89\ \mathrm{\mu s}$ corresponds to about $14$ periods and $1.89\ \mathrm{\mu s}$ to about $30$, a difference clearly detectable and repeated over multiple measurements to reduce noise.
Liquid level. Two plates of $20\ \mathrm{cm}\times2\ \mathrm{cm}$ spaced $5\ \mathrm{mm}$ have $C = 8.854\cdot10^{-12}\cdot4\cdot10^{-3}/5\cdot10^{-3} \approx 7.1\ \mathrm{pF}$ in air. Half-immersed in a liquid with $\varepsilon_r = 80$ like water, with electrodes insulated by a coating, the capacitance is the sum of the two halves in parallel: $3.5 + 3.5\cdot80 \approx 287\ \mathrm{pF}$. The capacitance increases almost linearly with the immersed portion, and the level is derived from the measured value.
Capacitive sensors are used in touchscreens, contactless buttons, industrial proximity sensors, liquid and powder level sensors, humidity sensors, condenser microphones, accelerometers, and precision displacement measurements.
[1] Wikipedia (en): Capacitive sensing
[2] Wikipedia (de): Kapazitiver Sensor
[3] Wikipedia (fr): Capteur de déplacement capacitif
[4] Wikipedia (en): Capacitive displacement sensor
Generating summary…