datasheets.com EBN.com EDN.com EETimes.com Embedded.com PlanetAnalog.com TechOnline.com  
Events
UBM Tech
UBM Tech

Design Article

Comment


JBD2013

3/21/2013 10:05 AM EDT

Good article.
In some non-critical application you could use a simple n ...

More...



Sachin Gupta

7/27/2012 12:15 PM EDT

No doubt it is not a very innovative way to measure liquid level. But, the main ...

More...

Use capacitive sensing to Implement reliable liquid level sensing—Part I

Subbarao Lanka and Sachin Gupta, Cypress Semiconductor

7/18/2012 1:42 PM EDT

Liquid Level Sensing

When liquid is present near the sensor, it changes the sensor capacitance. This brings into focus object capacitance (CO) in parallel to the Cp (Figure 4). Total sensor capacitance (Cx) is defined as shown in equation 2.

Figure 4: Sensor capacitance in the presence of conductive object

 

For the microcontroller to process the sensor capacitance (Cx), its value needs to be converted to a digital value. Figure 5 shows the block diagram of one of the capacitive sensing preprocessing circuits.

Figure 5: Capacitance measurment system

This system uses a switched capacitor block that emulates sensor capacitance Cx as resistance Req, a programmable current source (Idac), an external capacitor (Cmod), and a precision analog comparator. The current source (Idac) charges Cmod continuously until the voltage on Cmod crosses Vref and the comparator output is high. The Idac is disconnected and Cmod discharges through Req until the voltage on Cmod drops below Vref. The comparator output is now low, Idac now charges Cmod again charges to Vref. If Cx increases due to the presence of any conductive object, the emulated Req decreases according to Equation 3.

Where, Fs is the switching frequency of the Switched Capacitor block.

Thus, Cmod will discharge faster and the comparator output stays high for a shorter period of time. This means that the duration for which the comparator output is high is reduced if the capacitance value increases.  The bit stream as shown in Figure 5 can be fed to a counter for a fixed amount of time. The counter value defined as raw count gives us an indication of the magnitude of Cx.

The raw count measured at power up is used as a reference to detect the change in capacitance. Let us call this reference count the baseline (BL). Raw counts will increase when capacitance is added to the sensor by any conductive object. Let the increased raw count be RC. The increase in counts will be calculated (RC-BL). Let the difference be DIF. DIF will be compared against a configurable threshold to decide the sensor tatus. If DIF is greater than a specific threshold, the sensor will report ON and if DIF is less than the threshold the sensor will report OFF.

Next:  Implementation of Liquid Level Sensing

About the Authors

Subbarao Lanka is working as Sr. Applications Engineer in Cypress Semiconductor Consumer and Computation Division focused on CapSense applications. He can be reached at slan@cypress.com.

Sachin Gupta is working as Sr. Applications Engineer in Global Applications team in Cypress Semiconductor. He loves working on different mixed signal applications. He can be reached at sgup@cypress.com.






Tom bits and bytes

7/19/2012 1:35 PM EDT

It is an interesting piece and talks about an innovative method to measure liquid level. Looks like this solution can be installed even in existing tanks that are in use and that also without much efforts. I believe it will make designers' life easy because it will take away the pain of sensor installation inside the tank and maintenance issues. I am curious to read next part of this article. Expecting to see some more insights on liquid level sensing using this technology.

Sign in to Reply



elektryk321

7/27/2012 6:38 AM EDT

This metod is not so innovative. Aproximatelly ten years ago I have seen a DIY/Hobby kit which implemented this method. Using few opamps module was able to measure liquid level and convert it to voltage. Probably industrial implementations were a little longer on the market.

Sign in to Reply



Sachin Gupta

7/27/2012 12:15 PM EDT

No doubt it is not a very innovative way to measure liquid level. But, the main point is the ease-of-use compared to a solution that can be done using opamp. Today technology has evolved and allows liquid level sensing to be implemented using controllers that are primarily manufactured for user interface. Key benefit of using these devices over opamp based implementation is ease-of-use in terms of calibration, integration and reliability. Moreover, a single controller can integrate liquid level sensing, user interface and control functions i.e. a humidifier can be implemented using one-chip.

Sign in to Reply



JBD2013

3/21/2013 10:05 AM EDT

Good article.
In some non-critical application you could use a simple n cheap discrete delta-sigma modulator build form 555 series or opamps.

Sign in to Reply



Please sign in to post comment

Navigate to related information

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)