David Wang
Jun 25, 2015
Various methods have been used to determine the liquid-level height in containers, but recently, capacitive sensing has become popular due to the accuracy and resolution of the measurements. If you have designed with capacitive-based liquid-level sensing, you may have experienced false measurement readings when you move your hand closer to your system. This is caused by the conventional capacitive technique’s limitations with robustness, especially with any external parasitic capacitance interference such as a human hand. As an example, think of a coffee maker that uses liquid level sensing to determine the amount of water required for each cup of coffee. To make the perfect cup, you need the right amount of water. If a person interacts with the coffee maker while it is running, the parasitic capacitance interference from the human body will disrupt the coffee mixture.
In this post, I’ll talk about the conventional method of liquid-level sensing, and a novel approach TI has come up with a called the out-of-phase (OoP) technique, employing the FDC1004 capacitance-to-digital converter. It provides the necessary barrier to minimize any interference, while maximizing the signal-to-noise ratio and overall robustness of the system.
Figure 1 shows the typical liquid-level sensing application setup.
The conventional method uses the parallel fingers topology: one electrode driven with the excitation signal and a second electrode connected to ground (GND), as shown on the left in Figure 2. The issue with a GND-referenced electrode is that the water has a voltage potential difference. When the hand approaches the container with the liquid, an additional parasitic capacitance is introduced into the model and the self-body capacitance directly couples to the potential difference of the water. This results in false-measurement deviations and system inaccuracy.
The OoP technique relies on a symmetrical sensor layout, and also uses the shield drivers on the FDC1004 capacitance-to-digital converter in a unique way to counteract the effects of human-body capacitance and stabilize measurements. With the OoP technique, the liquid potential is kept constant during the excitation/drive phases by using a differential capacitive measurement, thus eliminating human-body capacitance effects from the measurements. Instead of using a GND electrode, the CINx electrode is paired with a SHLDy electrode. CINx and SHLDy have the same waveform but are 180 degrees out of phase; this is possible by setting the FDC1004 in a differential-mode configuration.
I collected hand-interference capacitance measurements with the capacitive-based liquid-level sensing TI Design reference design and compared it to the conventional method with electrodes the same size. Figure 3 shows the test setup, with the reference design on a container and connected to the FDC1004 evaluation module (EVM). Table 1 shows the capacitance measurements at a water-level height of 5cm, with the human hand a fixed distance away from the front of the container. When the hand is directly touching the container (a 0cm hand distance), the conventional method has a change in capacitance from the baseline reading (no hand present in the system) 20 times larger than the OoP technique. The calculated level absolute error dropped from about 9% to about 0.4% with the OoP technique. Over the full range of the system (0-8cm level heights), the overall absolute error of the OoP technique is about 0.5%.
![]() |
Robustness with any capacitive-based liquid-level sensing system is important for reliability and accuracy. The OoP technique mitigates the effect of any external parasitic capacitance compared to the conventional method. A sensor layout that is as symmetrical as possible will maximize the performance of the technique.
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS” AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you permission to use these resources only for development of an application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these resources.
TI’s products are provided subject to TI’s Terms of Sale (www.ti.com/legal/termsofsale.html) or other applicable terms available either on ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products.
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2023, Texas Instruments Incorporated