~0.1% resolution capacitive position sensor

ON Semiconductor MC74AC132

Simple circuit ratios sensor capacitance to reference capacitor to measure micrometers.

It’s hard to imagine a simpler electromechanical sensor than the capacitance type, consisting of little more than two plates (or even just one if the sensed target is conductive) separated by a dielectric (e.g. air). Sensor capacitance is approximately:

C = 8.854 pF×S/d

where S = area of the plates and d = their separation (both in meters). C then becomes a sensitive readout of plate separation.

Here’s a plausible example. With 38 mm diameter circular plates and initial separation of 1 mm, you get a nominal capacitance of

C would span 3.3 pF at d = 3 mm to 33 pF at d = 0.3 mm which, with a little math, can be converted into the distance between the plates. But how to measure C?

For that, we’ll need an interface circuit. The one in Figure 1 is a suitably simple match for the simplicity of the capacitive sensor itself, consisting of just 8 inexpensive off-the-shelf (OTS) parts. Here’s how it works.

U1a and U1b cross-coupled Schmidt trigger timers form a ~1 MHz RC multivibrator. 
Figure 1. U1a and U1b cross-coupled Schmidt trigger timers form a ~1 MHz RC multivibrator.

For the example sensor dimensions and parts values, VOUT duty factor (x)

U1a and U2a form an RC timer with a time constant equal to R1·CSENSE while U1b and U2b do the same job for R2·CREF. Cross coupling them as shown in Figure 1 creates a square wave oscillator whose ~1 MHz cycle on U1 pin 3 consists of dwelling at +V for TREF = 50 kΩ·CREF = 500 ns and at zero for TSENSE = 50 kΩ·CSENSE = 500 ns / d where d, as earlier, is measured in mm.

Thus, the VOUT duty factor

Starting from

a bit of rearranging yields x(d + 1) = d, then xd + x = d, x = d(1 – x), and finally

Figure 2 shows how this math performs when the VOUT signal is fed into a 12 bit ADC.

~0.1% resolution capacitive position sensor
Figure 2. This graph shows sensor performance when VOUT is connected to a 12 bit ADC
using +5 V for its reference. The black curve (left axis) = plate separation (d) in
millimeters, while the red curve (right axis) = ADC least significant bit (LSB)
resolution in micrometers. Note that the resolution is close to 0.1% (d/1000)
over much of the range.

Details of circuit operation include the inherent matching and tracking of U1’s gates simply because they share the same chip, and of accurate duty factor digitization if the connected ADC uses +5 V as its reference voltage. Asterisked parts (R1, R2, and CREF) are precision types. Stray wiring and layout capacitances should be scrupulously minimized.

If there’s a chance the sensor plates might come into contact and short out, then it’s a good idea to protect U2 with a series capacitor. 0.1 µF (from the same bag as C1 and C2) will work well and be sufficiently larger than CSENSE such that its precision and stability (or lack of thereof) won’t matter. I’d also put another one in series with CREF, although it’s not strictly necessary, just so things look more balanced.

If your application needs position sensing in two dimensions (e.g. an XY stage), the other halves of U1 and U2 are ready and willing, which helps to keep things capaciously and suitably simple!

Materials on the topic

  1. Datasheet ON Semiconductor MC74AC132
  2. Datasheet Texas Instruments SN74HC4066

EDN