| CPC G01D 5/24 (2013.01) [G01R 27/2605 (2013.01)] | 16 Claims |

|
7. A capacitive proximity sensor for a portable device, comprising a sense electrode and a readout circuit configured to read a self-capacitance of the sense electrode and provide a proximity signal including a series of capacitance values, the capacitive proximity sensor comprising a drift suppression unit configured to suppressing a drift superimposed on the proximity signals by the steps of:
computing repeatedly an average slope of the proximity signal from the capacitance values
comparing the average slope with a threshold,
updating a baseline value by adding a value derived from the proximity signal when the average slope is below the threshold or a fixed value when the average slope is above the threshold,
obtain a drift-suppressed proximity signal by subtracting the baseline value from the proximity signal.
|