DRIFT SUPPRESSION METHOD, PROXIMITY SENSOR AND WIRELESS DEVICE
Patent Information
- Application Number
- DE602023004947
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-04-27
- Filing Date
- 2023-04-25
- Publication Date
- 2025-07-23
- Estimated Expiration
- 2043-04-25
AI Technical Summary
Existing capacitive proximity detectors in portable devices are susceptible to drift, particularly from thermal fluctuations, which can mask the signal of interest when the approach is slow, leading to reduced sensitivity and precision in detecting user proximity.
A digital drift-suppression filter that estimates and subtracts a baseline signal, using a baseline estimator to generate a drift-suppressed signal by incrementing the baseline based on the variation of the proximity signal, with symmetrical threshold checks and resets, effectively suppressing thermal and other drifts.
The solution provides improved immunity to drift, maintaining high sensitivity and precision in detecting proximity even with slow approaches, reducing noise and retaining the desired signal integrity.
Description
Technical domain
[0001] The present invention concerns a filter arranged to suppress a slow drift from a signal representing a quantity of interest. Embodiments of the invention relate to a digital implementation of the aforesaid drift suppression filter, and to a proximity detector that uses the aforesaid filter to discriminate between a legitimate signal, for example the approach of a person, and a drift generated by temperature variations or any other reason. These are not, however, the only applications of the invention.Related art
[0002] In several measuring and sensing applications, relevant information is carried by an electric value (i.e., a voltage or a current) that represents a quantity of interest, to which is superposed a spurious value that may be constant or drifting slowly. Since the presence of the spurious baseline is a limit to the sensitivity and precision of the measure, a number of algorithms and filters have been devised to eliminate it from the signal of interest.
[0003] Capacitive proximity detectors are used in many modern portable devices, including mobile phones and tablets, to determine whether the device is close to a body part of a user. This information is important in several ways: it is used to detect whether the telephone is being actively manipulated by a user, and whether the user is looking at the display, in which case the information displayed can be adapted, and / or the device switch from a low power state to an active one. Importantly, this information is used to adapt the power level of the radio transmitter to comply with body dose limits. Capacitive proximity detection is used also in touch-sensitive displays and panels.
[0004] Capacitive proximity detection depends critically on drift suppression. Typically, the capacity of the approaching user's body, seen from an electrode on the device, is many times smaller than the background capacity of the electrode itself. This background value and its fluctuations would totally mask the proximity signal, were they not eliminated.
[0005] Supposing that the signal that must be measured varies much faster than the drifts in the baseline, the latter can be suppressed by a straightforward high-pass filter. In some cases, the same result is obtained by computing a running average value of the signal, that is taken to represent the drift, and subtracting it from the original signal. Figure 1, which will be discussed later, shows a digital implementation of this drift-suppression process that is in use in capacitive proximity detectors, provided unit 60 implements a straightforward running average.
[0006] In many real cases, however, this simple approach is not sufficient. Drift suppressors tend to reduce the desired signal as well as the drift, particularly when the signal of interest varies gradually, such as it would be the case - in a portable device - of a user approaching quite slowly to the proximity sensor.
[0007] Documents US 10,136,399 B1, US 10,423,278 B2, US 10,298,280 B2 and US 2021 / 0083664 A1 disclose capacitive detectors providing proximity-awareness in a portable device, such as a portable phone, and various circuits and algorithms used to process the signal accounting for background and drift. US 2018 / 0329579 A1 discloses a portable device with a drift-compensated proximity sensor, and US 2019 / 0383065 A1 discloses a method for detecting the approach of a hand to a vehicle's handle using an adaptive algorithm.Short disclosure of the invention
[0008] The present invention proposes a method of removing a drift from a proximity signal that is suitable for portable devices equipped with capacitive proximity sensors but could be applied usefully to other uses. A capacitive sensor is also part of the invention, as well as a portable device so equipped.
[0009] With respect to other known solutions, the proximity sensor of the invention exhibits a significantly better immunity against drift and is therefore less sensitive to temperature changes. It retains its efficacity in detecting proximity even if the approach is very slow.
[0010] According to the invention, these aims are attained by the object of the attached claims.Short description of the drawings
[0011] Exemplar embodiments of the invention are disclosed in the description and illustrated by the drawings in which: Figure 1 illustrates schematically a capacitive proximity sensor with a digital drift-suppression filter. Figure 2 illustrates with a flowchart, a method of suppressing a drift according to an aspect of the invention. Figure 3 is a plot of some signals used in the invention. Examples of embodiments of the present invention
[0012] Figure 1 shows schematically a capacitive proximity sensor with a drift-suppression processor. For the sake of concision, the present description will refer to a capacitive proximity detector in a portable phone or tablet, but the filter and the method of the invention could be applied to diverse fields.
[0013] The detector is sensitive to the capacitance Cx of an electrode 20 that will increase slightly at the approach of a user's hand, face or body. As already discussed, the variations due to body proximity are overshadowed by the own capacity of the electrode which, in turn, is not stable. The capacity signal preferably amplified and processed by an analogue processor 23, which may also subtract a programmable offset, and converted into raw digital values by an A / D converter 25. The samples R(k) may be encoded as 16 bits integers, or in any other suitable format.
[0014] The device represented in figure 1 has also, although this is not essential, a shield electrode 21 below the sense electrode 20. The shield electrode may be connected to a shield control unit 24 that generates a voltage identical to or closely following the potential of the sense electrode 20. In this manner, the shield electrode 21 protects the sense electrode 20 from the conductors below, a potential source of disturbances, without contributing significantly to the measured capacitance.
[0015] The raw samples R(k) contain also, in a non-ideal world, noise and unwanted disturbances that are attenuated by a filter 30. The filter 30 may be a digital low-pass filter, dimensioned in consideration of the bandwidth of the expected signal, or any other suitable filter. The filter 30 provides a series of samples U(k) useful for the processing in the successive stages.
[0016] Although the filter 30 is represented as a simple block to simplify the drawing, it may in fact comprise several processor units for reducing noise. It may include FIR low-pass filter, IIR low-pass filter, and nonlinear algorithm, according to the need. It has been found that the part of the signal that is most significant for the purpose of controlling the functions of a portable phone, for example, falls within a spectrum of frequency of a few Hertz.
[0017] Block 62 represents a drift suppression unit that is used to estimate and suppress the drift, be it of thermal nature or otherwise, superimposed to the capacity variations. Unit 60 is a baseline estimator that generates a digital signal A(k) that approximate the instantaneous value of the baseline, which is supposed to be an effect of the drift. The baseline is subtracted digitally from the proximity signal U(k) and the result is the drift-suppressed signal D(k). A discriminator 50 then generates a flag signal 'PROX' that indicates the proximity of the user's hand, face or body. The invention is not limited to a binary output, however. In variants, the decision unit 50 may be a multi-level discriminator that generates a several flags, according to the level of proximity, or any other useful variable. The output of the detector needs not be materialized in an output terminal: the flag may be encoded in a value stored in a register of the proximity sensor that is accessible through a communication bus, such as I 2< C or SPI.
[0018] The various block making up the proximity sensor are represented separate and distinct in the drawing but should in fact be interpreted as functional units. In a practical implementation, they may be realized in part or completely in software and may share code and data resources.
[0019] The capacitive proximity sensor may be part of a cellphone, a laptop, a tablet, or another connected portable device. In this case, the capacitive electrode 20 could serve also as RF antenna, be a part of a metallic chassis of the phone, or simply a copper area on a PCB.
[0020] The generation of the baseline signal A(k) will now be explained referring do figure 2.
[0021] An important aspect of the method of the invention is the estimation of the variation of the useful signal U n .The variation is represented by a quantity Δ var that is preferably computed at each new useful sample U(k) (step 305). A possible manner of estimating the variation of U(k) is the difference between a sample and the preceding one, Δ 01 = U(k) - U(k - 1) or a running average Δ var of the differences U(k) - U(k - 1) in a suitable window, for example the last N received samples of U(k): Δ var = (U(k) - U(k - N - 1)) / N where N may take any suitable value, for example N=8. At the step 305 the method of the invention receives a new value of the useful signal U(k) and computes or receives a corresponding new value of Δ var .
[0022] Step 308 checks whether the proximity flag is raised, i.e. there have been indications that a conductive body is nearby. If the result of this test is positive, the method tests (step 130) whether the variation Δ var is in a predetermined region of acceptation. In the example, Δ var is compared (step 312) with an upper threshold T 1 which will be, in most cases, positive and, (step 322) with a lower threshold T 2 that may be negative.
[0023] If the PROX flag is not asserted, the method follows the right branch from the test 308, which is completely symmetrical to the left one. The variation Δ var is compared (314) with an upper threshold T 3 which will be, in most cases, positive and, (324) with a lower threshold T 4 that may be negative. Numerically, T 3 may differ from T 1 and T 4 from T 2 , or they could be equal. Advantageously, this symmetrical processing avoids that strongly negative variations (for example, when the user suddenly moves away from the sensor) are not detected.
[0024] If Δ var is neither above the upper threshold nor below the lower one, no matter whether the proximity flag is asserted or not, the value of the baseline is incremented (step 330) by a value derived from the proximity signal. Preferably, the increment will be a value related to the slope, or derivative of the proximity signal such that the successive increments yield back, by integration, the original shape. In a possible variant, the baseline signal A(k) is incremented by the average slope signal Δ var . Alternatively, the baseline signal is incremented by the instantaneous slope Δ 01 = U(k) - U(k - 1). Other expressions are possible, however.
[0025] If Δ var is above the upper threshold or below the lower one, the baseline is incremented by a fixed amount, irrespective of the values of U(k) and Δ var . This takes place in one of the cells 316, 326, 318, 328, according to the sign of the exceeded threshold and the flag state. The operation that is done is always the same, but the value of the fixed amount D 1 , D 2 , ..., D 4 may be different.
[0026] It is important to reset the value of the baseline A(k) to that of the proximity signal U(k) from time to time. It was found advantageous to do this operation whenever the value of the baseline exceeds that of the proximity signals (cells 335 and 338).
[0027] Figure 3 shows a conceptual simulation of important signals in the processor and in the method of the invention. Each plot is to scale, but the units of the vertical axis are not the same for all plots. The plots may have been resized and shifted vertically by arbitrary amounts to fit in the figure. The horizontal axis (showing time or sample index) is common, though, and the temporal relationships between plots are respected. The time axis may cover a span of several seconds, in a real case.
[0028] Plot 130 is the proximity signal U(k) coming from the filter unit 30. It exhibits a steeply rising step, indicating a conductive body approaching the sensor, followed by a falling step after some time, showing that the conductive body has been moved away. This pattern of proximity is superposed to a slowly changing baseline, as it may be due to a thermal drift. Plot 140 is the corresponding average slope Δ var taken on a window of 8 samples. The rising and falling steps are marked in this plot by a positive and a negative peak.
[0029] The threshold values T 2 and T 1 are marked by the dashed line 144. Inside the intervals 148, 149, the baseline signal A(k) is incremented by fixed values and has a linear slope, except when it is limited by the intervention of the reset test (335, 338 in figure 2) . Elsewhere, the baseline is incremented by the average slope Δ var (as seen in plot 150) or by the instantaneous slope Δ 01 (as seen in plot 155) and follows closely the variations of the proximity signal U(k).
[0030] Subtracting the baseline from the proximity signal provides a drift-suppressed signal. Plot 160 is the result of this suppression when the baseline is incremented by the average slope Δ var . Plot 165 is the same when the baseline is incremented by the instantaneous slope Δ 01 . The former retains some noise, due the finite resolution of the numeric algorithm, while the latter is very close to a square signal, with minimal noise.
[0031] Note that this tracking method may improve by using a debouncer and / or a limiter on the signals to avoid the occurrence of very large values of Δ 01 when Δ var transiently crosses the ~0 value, for example during fast taps.
[0032] In a portable wireless device, the sensor and method disclosed herein can be used advantageously to detect when the device is brought close, for example to the user's head. In such cases, the device can be configure to take specific actions, for example: switching off a display, inhibiting a tactile input, adapting a radio transmission power.Reference signs
[0033] 20sense electrode 21active shield 23analogue front / end, amplifier 24shield controller 25A / D converter 30filter 40adder 50discriminator 60baseline extractor 62drift suppression unit 139proximity signal 140variation 144threshold line 148not tracking interval 149not tracking interval 150baseline signal 155baseline signal 160drift-corrected signal, by Δ var . 165drift-corrected signal, by Δ 01 . 220proximity signal 230baseline signal 240drift-corrected signal 305new values 308proximity flag test 312upper threshold 314upper threshold 316fixed increment 318fixed increment 322lower threshold 324lower threshold 326fixed increment 328fixed increment 330tracking 335test 338reset
Claims
1. A method of suppressing a drift superimposed to a proximity signal (220) generated by a capacitive sensor, the method including: • receiving a series of samples of the proximity signal (220), • computing repeatedly an average slope of the proximity signal from the received samples • comparing the average slope with a threshold, • updating a baseline value (230) 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 (240) by subtracting the baseline value (230) from the proximity signal (220), wherein, in the comparison of the average slope with the threshold, the average slope is compared with an upper threshold (312, 314) and with a lower threshold (322, 324), and in the updating of the baseline value, the added value is derived from the proximity signal when the average slope is between the upper and lower thresholds, is a first fixed value (326) when the average slope is below the lower threshold, and a second fixed value (328) when the average slope is above the upper threshold, characterised in that the first fixed value and the second fixed value are different.
2. The method of the preceding claim, wherein the value derived from the proximity signal is an instantaneous slope of the proximity signal or the average slope of the proximity signal.
3. The method of any one of the preceding claims, comprising a step of comparing the baseline value against the proximity signal and setting the baseline value equal to the proximity signal if the baseline value goes above the proximity signal.
4. The method of claim 1, comprising a step of comparing the drift-suppressed proximity signal with a proximity threshold to generate a logic proximity flag, wherein the values of the upper threshold and / or of the lower threshold and / or of the first fixed value and / or of the second fixed value are altered when the proximity flag is raised and set back to a previous value when the proximity flag is lowered.
5. The method of any one of claims 1 to 4, wherein the first fixed value and / or the second fixed value are positive, zero or negative.
6. A capacitive proximity sensor for a portable device, comprising a sense electrode (20) and a readout circuit configured to read a self-capacitance of the sense electrode (20) and provide a proximity signal (220) including a series of capacitance values, the capacitive proximity sensor comprising a drift suppression unit (62) configured to suppressing a drift superimposed on the proximity signals by the steps of: • computing repeatedly an average slope of the proximity signal (220) from the capacitance values • comparing the average slope with a threshold, • updating a baseline value (230) 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 (240) by subtracting the baseline value (230) from the proximity signal (220), wherein, in the comparison of the average slope with the threshold, the average slope is compared with an upper threshold (312, 314) and with a lower threshold (322, 324), and in the updating of the baseline value, the added value is derived from the proximity signal when the average slope is between the upper and lower thresholds, is a first fixed value (326) when the average slope is below the lower threshold, and a second fixed value (328) when the average slope is above the upper threshold, characterised in that the first fixed value and the second fixed value are different.
7. The proximity sensor of the preceding claim, wherein the value derived from the proximity signal is an instantaneous slope of the proximity signal or the average slope of the proximity signal.
8. The proximity sensor of any one of claims 6-7, the drift suppression unit being configured for comparing the baseline value against the proximity signal and setting the baseline value equal to the proximity signal if the baseline value goes above the proximity signal.
9. The proximity sensor of any one of claims 6 to 8, the drift suppression unit being configured for comparing the drift-suppressed proximity signal with a proximity threshold to generate a logic proximity flag, wherein the values of the upper threshold and / or of the lower threshold and / or of the first fixed value and / or of the second fixed value are altered when the proximity flag is raised and set back to a previous value when the proximity flag is lowered.
10. The proximity sensor of any one of claims 6 to 9, wherein the first fixed value and / or the second fixed value are positive, zero or negative.
11. A portable wireless device comprising a proximity sensor according to any one of claims 6-10.