This TechNote reviews concepts and theory of capacitive sensing to help in optimizing capacitive sensor performance. It also defines capacitive sensing terms as used throughout Lion Precision literature and manuals.
Capacitive Sensor Theory, Operation, and Optimization
A Capacitive Measurement System
The Farad
Capacitance is measured in Farads, named after Michael Faraday who did pioneering experiments in electricity and magnetism in the middle 1800s.
A Farad is a rather large unit. Most capacitors in electronic circuitry are measured in microfarads (µF, 10^-6). The capacitance changes sensed by a capacitance gage are around 1 femtofarad (fF, 10^-15).
Capacitive sensor dimensional measurement requires three basic components:
a probe that uses changes in capacitance to sense
changes in distance to the target,
driver electronics to convert these changes in capacitance
into voltage changes,
a device to indicate and/or record the resulting voltage change.
Each of these components is a critical part in providing reliable, accurate measurements. The probe geometry, sensing area size, and mechanical construction affect range, accuracy, and stability. A probe requires a driver to provide the changing electric field that is used to sense the capacitance. The performance of the driver electronics is a primary factor in determining the resolution of the system; they must be carefully designed for a high-preformance applications. The voltage measuring device is the final link in the system. Oscilloscopes, voltmeters and data acquisition systems must be properly selected for the application. (back to contents)
What is Capacitance?
Capacitance describes how the space between two conductors affects an electric field between them. If two metal plates are placed with a gap between them and a voltage is applied to one of the plates, an electric field will exist between the plates. This electric field is the result of the difference between electric charges that are stored on the surfaces of the plates. Capacitance refers to the “capacity” of the two plates to hold this charge. A large capacitance has the capacity to hold more charge than a small capacitance. The amount of existing charge determines how much current must be used to change the voltage on the plate. It’s like trying to change the water level by one inch in a barrel compared to a coffee cup. It takes a lot of water to move the level one inch in the barrel, but in a coffee cup it takes very little water. The difference is their capacity.
When using a capacitive sensor, the sensing surface of the probe is the electrified plate and what you’re measuring (the target) is the other plate (we’ll talk about measuring non-conductive targets later). The driver electronics continually change the voltage on the sensing surface. This is called the excitation voltage. The amount of current required to change the voltage is measured by the circuit and indicates the amount of capacitance between the probe and the target. Or, conversely, a fixed amount of current is pumped into and out of the probe and the resulting voltage change is measured. (back to contents)
How Capacitance Relates to Distance
Capacitance is determined by Area, Gap, and Dielectric (the material in the gap). Capacitance increases when Area or Dielectric increase, and capacitance decreases when the Gap increases.
The capacitance between two plates is determined by three things:
Size of the plates: capacitance increases as the plate
size increases
Gap Size: capacitance decreases as the gap increases
Material between the plates (the dielectric):
Dielectric material will cause the capacitance to
increase or decrease depending on the material
Area and Dielectric are held constant for ordinary capacitive sensing so only the Gap can change the capacitance.
In ordinary capacitive sensing the size of the sensor, the size of the target, and the dielectric material (air) remain constant. The only variable is the gap size. Based on this assumption, driver electronics assume that all changes in capacitance are a result of a change in gap size. The electronics are calibrated to output specific voltage changes for corresponding changes in capacitance. These voltages are scaled to represent specific changes in gap size. The amount of voltage change for a given amount of gap change is called the sensitivity. A common sensitivity setting is 1.0V/100µm. That means that for every 100µm change in the gap, the output voltage changes exactly 1.0V. With this calibration, a +2V change in the output means that the target has moved 200µm closer to the probe. (back to contents)
Focusing the Electric Field
Probes use a guard to focus the electric field.
When a voltage is applied to a conductor, an electric field is emitted from every surface. For accurate gaging, the electric field from a capacitive sensor needs to be contained within the space between the probe’s sensing area and the target. If the electric field is allowed to spread to other items or other areas on the target, then a change in the position of the other item will be measured as a change in the position of the target. To prevent this from happening, a technique called guarding is used. To create a guarded probe, the back and sides of the sensing area are surrounded by another conductor that is kept at the same voltage as the sensing area itself. When the excitation voltage is applied to the sensing area, a separate circuit applies the exact same voltage to the guard. Because there is no difference in voltage between the sensing area and the guard, there is no electric field between them to cause current flow. Any conductors beside or behind the probe form an electric field with the guard instead of the sensing area. Only the unguarded front of the sensing area is allowed to form an electric field to the target. (back to contents)
Effects of Target Size
The sensor’s electric field covers an area about 30% larger than the sensing area of the probe.
The target size is a primary consideration when selecting a probe for a specific application. When the sensor’s electric field is focused by guarding, it creates a field that is a projection of the sensor size and shape. The minimum target diameter for standard calibration is 30% of the diameter of the sensing area. The further the probe is from the target, the larger the minimum target size. (back to contents)
Range of Measurement
In general, the maximum gap at which a probe is useful is approximately 40% of the sensor diameter. Standard calibrations usually keep the gap considerably less than that.
The range in which a capacitive sensor is useful is a function of the area of the sensing surface. The greater the area, the larger the range. The driver electronics are designed for a certain amount of capacitance at the sensor. Therefore, a smaller sensor must be considerably closer to the target to achieve the desired amount of capacitance. The electronics are adjustable during calibration, but there is a limit to the range of adjustment.
In general, the maximum gap at which a probe is useful is approximately 40% of the sensing surface diameter. Standard calibrations usually keep the gap considerably less than that.
(back to contents)
Multiple Channel Sensing
Using multiple probes on the same target requires that the excitation voltages be synchronized. This is accomplished by configuring one driver as a master and others as slaves.
Frequently, a target is measured simultaneously by multiple probes. Because the system measures a changing electric field, the excitation voltage for each probe must be synchronized or the probes would interfere with each other. If they were not synchronized, one probe would be trying to increase the electric field while another was trying to decrease it thereby giving a false reading.
Driver electronics can be configured as masters or slaves. The master sets the synchronization for the slaves in multiple channel systems. (back to contents)
Effects of Target Material
Capacitive sensors measure all conductors: brass, steel, aluminum, or even salt-water, with equal accuracy.
The electric field from the probe sensing area is seeking a conductive surface. For this reason, capacitive sensors are not affected by the target material provided that it is a conductor. Because the electric field from the sensor stops at the surface of the conductor, target thickness does not affect the measurement.
Surface finish can affect the measurement. Capacitive sensors will measure the average position of the target surface within the spot size of the sensor. (back to contents)
Measuring Non-Conductors
Nonconductors can be measured by passing the electric field through them to a stationary conductive target behind.
Capacitive sensors are most often used to measure the change in position of a conductive target. But capacitive sensors can be very effective in measuring presence, density, thickness, and location of non-conductors as well. Non-conductive materials like plastic have a different dielectric constant than air. The dielectric constant determines how a non-conductive material affects capacitance between two conductors. By inserting a non-conductive material in the gap between the probe and a stationary reference target, the capacitance will change in relationship to the thickness, density, or location of the material.
Fringing can be used to measure nonconductive targets without a conductive background target.
Sometimes it’s not feasible to have a reference target in front of the probe. If the material has a high dielectric constant and a large sensor is used, measurements can still be made by a technique called fringing. If there is no conductive surface directly in front of the probe, the sensor’s electric field will wrap back to the shell of the probe itself. This is called a fringe field. If a non-conductive material is brought in proximity to the probe, its dielectric will change the fringe field and this can be used to measure the non-conductive material. (back to contents)
Maximizing Accuracy
Now that we’ve discussed the basics of how capacitive sensing works, we can form some strategies for maximizing effectiveness and minimizing error when capacitive sensing systems are used. Accuracy requires that the measurements be made under the same conditions in which the system was calibrated. Whether it’s a system calibrated at the factory, or one that’s calibrated during use, repeatable results come from repeatable conditions. If we only want the gap size to change the reading, then all the other variables must be constant. The following sections discuss sources of error and how to minimize them. (back to contents)
Maximizing Accuracy: Target Size
Small targets make measurement accuracy sensitive to small probe postion errors.
Unless otherwise specified, factory calibrations are done with a flat conductive target that is considerably larger than the sensor area. A system calibrated in this way will give accurate results when measuring a flat target more than 30% larger than the sensing area. If the target area is too small, the electric field will begin to wrap around the sides of the target. In this case, the electric field extends farther than it did in calibration and will measure the target as farther away. This means that the probe must be closer to the target for the same zero point. Because this distance differs from the original calibration, error will be introduced. Error is also created because the probe is no longer measuring a flat surface.
An additional problem of an undersized target is that the system becomes sensitive to X and Y location of the probe relative to the target. Without changing the gap, the output will change significantly if the probe is moved left or right because less of the electric field is going to the center of the target and more is going around to the sides. (back to contents)
Maximizing Accuracy: Target Shape
Curved targets change the shape of the electric field, affecting accuracy.
Target shape is also a consideration. Since the capacitive sensors are calibrated to a flat target, measuring a target with a curved surface will cause errors. Because the sensor will measure the average distance to the target, the gap at zero volts will be different than when the system was calibrated. Errors will also be introduced because of the different behavior of the electric field with the curved surface. In cases where a non-flat target must be measured, the system can be factory calibrated to the final target shape. Alternatively, when flat calibrations are used with curved surfaces, multipliers can be provided to correct the measurement value.
(back to contents)
Maximizing Accuracy: Surface Finish
Irregular surface finish can cause different measurements as the target moves parallel to the probe face.
When the target surface is not perfectly smooth, the capacitive sensor will average over the area covered by the spot size of the sensor. The measurement value can change as the sensor is moved across the surface due to a change in the average location of the surface. The magnitude of this error depends on the nature and symmetry of the surface irregularities.
(back to contents)
Maximizing Accuracy: Parallelism
During calibration, the surface of the sensor is parallel to the target surface. If the probe or target is tilted any significant amount, the shape of the spot where the field hits the target elongates and changes the interaction of the field between the probe and target. Because of the different behavior of the electric field, measurement errors will be introduced. Parallelism must be considered when designing a fixture for the measurement. (back to contents)
Maximizing Accuracy: Environment
Lion Precision capacitive sensor systems are compensated to minimize drift due to temperature from 22°C - 35°C (72°F - 95°F). In this temperature range, errors are less than 0.5% of full scale.
More temperature related errors are due to expansion and contraction of the measurement fixture than probe or electronics drift.
A more troublesome problem is that virtually all materials used in targets and fixtures exhibit a significant expansion and contraction over this temperature range. When this happens, the temperature related changes in the measurement are not gage error. They are real changes in the gap between the target and the probe. Careful fixture design goes a long way toward minizing this error and maximizing accuracy.
The dielectric constant of air is affected by humidity. As humidity increases the dielectric constant increases. Humidity can also interact with probe construction materials. Experimental data shows that changes from 50%RH to 80%RH can cause errors up to 0.5% of full scale.
While Lion Precision probe materials are selected to minimize these errors, in applications requiring utmost precision, control of temperature and humidity is standard practice. International standards specify that measurements shall be done at 20°C or corrected to “true length” at 20°C. (back to contents)
Factory Calibration
Lion Precision’s capacitive sensor calibration system was designed in cooperation with Professional Instruments, a world leader in air bearing spindle and slide design. Its state of the art design is driven by precision motion control electronics with positional accuracies of less than 0.012µm uncertainty.
The calibration system is certified on a regular basis with a NIST traceable laser interferometer. The measurement equipment used during calibration (digital meters and signal generators) are also calibrated to NIST traceable standards. The calibration information for each of these pieces of equipment is kept on file for verification of traceability.
Technicians use the calibration system to precisely position a calibration target at known distances to the capacitive sensor. The measurements at these points are collected and the sensitivity and linearity are analyzed by the calibration system. The analysis of the data is used to adjust the system being calibrated to meet order specifications.
After sensitivity and linearity are calibrated, the capacitive sensor systems are placed in an environmental chamber where the temperature compensation circuitry is calibrated to minimize drift over the temperature range of 22°C to 35°C. Measurements are also taken of bandwidth and output noise which affect resolution.
When calibration is complete, a calibration certificate is generated. This certificate is shipped with the ordered system and archived. Calibration certificates conform to section 4.8 of ISO 10012-1. (back to contents)
Definitions
Sensitivity
Sensitivity - The slope of the line is the sensitivity; in this case 1V/0.05mm.
Sensitivity indicates how much the output voltage changes as a result of a change in the gap between the target and the capacitive sensor. A common sensitivity is 1V/0.1mm. This means that for every 0.1mm of change in the gap, the output voltage will change 1V. When the output voltage is plotted against the gap size, the slope of the line is the sensitivity. (back to contents)
Sensitivity Error
Sensitivity Error - The slope of the actual measurements deviates from the ideal slope.
A sensor’s sensitivity is set during calibration. When sensitivity deviates from the ideal value this is called sensitivity error, gain error, or scaling error. Since sensitivity is the slope of a line, sensitivity error is usually presented as a percentage of slope; comparing the ideal slope with the actual slope. (back to contents)
Offset Error
Offset Error - A constant value is added to all measurements.
Offset error occurs when a constant value is added to the output voltage of the system. Capacitive sensor systems are usually “zeroed” during setup, eliminating any offset deviations from the original calibration. However, should the offset error change after the system is zeroed, error will be introduced into the measurement. Temperature change is the primary factor in offset error. Lion Precision systems are compensated for temperature related offset errors to keep them less than 0.04%F.S./°C. (back to contents)
Linearity Error
Linearity Error - Measurement data is not on a straight line.
Sensitivity can vary slightly between any two points of data. This variation is called linearity error. The linearity specification is the measurement of how far the output varies from a straight line.
To calculate the linearity error, calibration data is compared to the straight line that would best fit the points. This straight reference line is calculated from the calibration data using a technique called least squares fitting. The amount of error at the point on the calibration curve that is furthest away from this ideal line is the linearity error. Linearity error is usually expressed in terms of percent of full scale. If the error at the worst point was 0.001mm and the full scale range of the calibration was 1mm, the linearity error would be 0.1%.
Note that linearity error does not account for errors in sensitivity. It is only a measure of the straightness of the line and not the slope of the line. A system with gross sensitivity errors can be very linear. (back to contents)
Error Band
Gap
(mm)
Expected
Value
(VDC)
Actual
Value
(VDC)
Error
Band
(mm)
0.50
-10.000
-9.800
-0.010
0.75
-5.000
-4.900
-0.005
1.00
0.000
0.000
0.000
1.25
5.000
5.000
0.000
1.50
10.000
10.100
0.005
Error Band - the worst case deviation of the measured values from the expected values in a calibration chart. In this case, the error band is -0.010mm.
Error band accounts for the combination of linearity and sensitivity errors. It is the measurement of the worst case absolute error in the calibrated range. The error band is calculated by comparing the output voltages to their expected value at specific gaps. The worst case error from this comparison is listed as the capacitive sensor system’s error band. (back to contents)
Bandwidth
Bandwidth is defined as the frequency at which the output falls to -3dB. This frequency is also called the cutoff frequency. A -3dB drop in the signal level equates to approximately 70% drop in actual output voltage. With a 15kHz bandwidth, a change of ±1V at low frequency will only produce a ±0.7V change at 15kHz.
Excitation frequency of the capacitive sensor driver electronics is a major factor in determining bandwidth. A meaningful change in output voltage requires several cycles of the changing electric field in the gap. Lion Precision uses an excitation frequency of 1MHz compared to a more typical 10kHz-15kHz. This higher excitation frequency gives Lion Precision a standard bandwidth of 15kHz compared to an industry average of less than 5kHz. Bandwidth is also affected by the geometry of the probe. Bandwidth tends to drop as the probe size decreases.
Fast responding outputs maximize phase margin when used in servo-control feedback systems. Some drivers provide selectable bandwidth for maximizing resolution or response time.
(back to contents)
Resolution
Full Bandwidth Output Noise - typical output noise from a system with 15kHz bandwidth. The peak to peak noise during the one second sample period is 0.010V. With sensitivity of 10V/1mm the peak to peak resolution is 1.0µm.
Resolution is defined as the smallest reliable measurement that a system can make. The resolution of a capacitive sensing system must be better than the final accuracy the measurement requires. If you need to know a measurement to within 0.02µm, then the resolution of the measurement system must be better than 0.02µm.
The primary determining factor of resolution is electrical noise. Electrical noise appears in the output voltage causing small instantaneous errors in the output. Even when the probe/target gap is perfectly constant, the output voltage of the driver has some small but measurable amount of noise that would seem to indicate that the gap is changing. This noise is inherent in electronic components and can only be minimized, but never eliminated.
100Hz Filtered Output Noise - typical output noise from a system with 100Hz bandwidth. The peak to peak noise during the one second sample period is 0.002V. With sensitivity of 10V/1mm the peak to peak resolution is 0.2µm; a 500% improvement over the 15kHz resolution.
If a driver has an output noise of 0.002V with a sensitivity of 10V/1mm, then it has an output noise of 0.000,2mm (0.2µm). This means that at any instant in time, the output could have an error of 0.2µm.
The amount of noise in the output is directly related to bandwidth. Generally speaking, noise is distributed uniformly over a wide range of frequencies. If the higher frequencies are filtered before the output, the result is less noise and better resolution. When examining resolution specifications, it is critical to know at what bandwidth the measurements were taken.
(back to contents)
Resolution Calculation
Resolution as indicated in Lion Precision capacitive sensor literature is calculated by measuring and recording the output noise over a period of one second with a digital oscilloscope sampling at 100kHz. The maximum peak to peak value during this time is defined as the peak to peak resolution. This same sampling of measurements is used to calculate the RMS value for the RMS resolution.
Test methods to determine resolution vary. This makes resolution and noise difficult to compare with numbers only. In applications where these values are critical, we recommend that systems be evaluated in the application. This is the best way to accurately determine whether or not system performance is sufficient. (back to contents)