# Patent

## Title
Low consumption device for measuring a variation of a capacitance and associated method

## Abstract

A device for measuring a variation (ΔCX) of a capacitance (CX), includes:

    
    
        elements for charging the capacitance (CX) on the basis of a supply voltage (VCC).
        elements for discharging the capacitance (CX) into a reference capacitance (CS) in a fixed number of discharges (x),
        elements for measuring a voltage (VS) and for detecting a threshold of voltage (VTH) across the terminals of the reference capacitance (CS).
        elements for charging with current (IC) the reference capacitance (CS) on the basis of the supply voltage (VCC) for a duration (t), after the transfer of charge from the capacitance (CX) into the reference capacitance (CS), and
        elements for measuring the variation between the duration (t) with respect to a previously measured duration so as to estimate the variation (ΔCX) of the capacitance (CX).

## Background
The present invention relates to a charge-transfer capacitive sensor. More particularly, it pertains to the application of such a sensor in the door handles of a vehicle for so-called “hands free” access of an authorized user to his vehicle.
BACKGROUND OF THE INVENTION
Nowadays, certain motor vehicles are equipped with “hands free” access; that is to say the authorized user of the vehicle no longer needs a key to open the doors and other openable panels (hood, trunk, etc.) of his vehicle. In place of a key, he possesses an identification badge (or remote control) with which the vehicle electronic system interacts.
To invoke the opening of a door, for example, the driver approaches the handle of the door. A capacitive presence sensor, in this instance a charge-transfer capacitive sensor situated in the handle, detects the presence of the drivers hand. This sensor is connected to the electronic computer of the vehicle (ECU: English abbreviation for “Electronic Control Unit”) and sends it a presence detection signal. The electronic computer of the vehicle has beforehand identified the user as being authorized to access this vehicle, or alternatively, subsequent to the reception of this detection signal, it undertakes this identification. Accordingly, it sends by way of an LF (English abbreviation for “Low Frequency”) antenna an identification request to the badge (or to the remote control) worn or carried by the user. This badge sends in response, by RF (radio frequency) waves, its identification code to the electronic computer of the vehicle. If the electronic computer recognizes the identification code as that authorizing access to the vehicle, it triggers the opening of the door. If, on the other hand, the electronic computer has not received any identification code or if the identification code received is erroneous, opening does not occur.
As illustrated in FIG. 1, a capacitive sensor 3 such as this consists of an electrode 4 integrated into the handle 6 of the door and of a second electrode linked to ground. This second electrode can include a part of the body of a user and of a close environment linked directly or indirectly to ground. This may be, for example, the hand M of the user, the presence of which near the handle 6 of the door has to be detected.
When the user's hand M approaches the handle 6 of the door, that is to say it passes from position 1 to position 2 along the direction of the arrow illustrated in FIG. 1, the capacitance CX of the electrode 4 integrated into the handle 6 increases. The variation ΔCX is measured with the aid of a reference capacitance CS, situated on a printed circuit 5 connected to the electrode 4. If the value of the capacitance CX crosses a threshold, this gives rise to the validation of the detection. Indeed this means that the users hand M is in position 2, on the handle 6 of the door or sufficiently close to this handle 6 and that he is requesting access to the vehicle.
From the prior art it is known that the charge-transfer capacitive sensor 3 makes it possible to measure the variation ΔCX of the capacitance CX of the electrode 4 integrated into the handle 6 of the door by performing a charge transfer consisting of a large number of charges and of discharges of this capacitance CX into the reference capacitance CS, until a fixed threshold of voltage is attained across the terminals of the reference capacitance CS. The estimation of the variation ΔCX of the capacitance CX of the electrode 4 with respect to the previous cycle is carried out on the basis of the variation of the number of discharges of the capacitance CX of the electrode 4 into the reference capacitance CS that had to be performed so as to attain this threshold of voltage across the terminals of the reference capacitance CS. These capacitive sensors 3 involve switching means which make it possible to direct the current so as firstly to charge the capacitance CX of the electrode 4 by way of the supply voltage and thereafter to discharge it into the reference capacitance CS. The charge transfer, that is to say the succession of charges and discharges, according to the prior art, and illustrated in FIG. 2, breaks down into four steps:

    
    
        1st step: the first step consists in charging the capacitance CX of the electrode 4 on the basis of the supply voltage VCC. Accordingly the first switch S1 is closed and the second switch S2 is opened.
        2nd step: once charging has finished, the first switch S1 is opened.
        3rd step: then the discharging of the capacitance CX of the electrode 4 into the reference capacitance CS can begin. Accordingly, the first switch S1 remains open and the second switch S2 is closed.
        4th step: once discharging has been carried out, the second switch S2 is opened.
    
    


The charge transfer is repeated until the voltage VS across the terminals of the reference capacitance CS attains the threshold voltage VTH. The number of discharges x of the capacitance CX of the electrode 4 to the reference capacitance CS required to attain this threshold VTH gives an image of the capacitance CX of the electrode 4. The reference capacitance CS is thereafter completely discharged by way of the switch S in preparation for the next measurement.
A counter of the number of discharges x and a microcontroller (neither of which is represented in FIG. 2) make it possible to determine the capacitance CX of the electrode 4.
The equation governing the operation of the capacitive sensor 3 is the following:




  
    
      V
      S
    
    ⁡
    
      (
      x
      )
    
  
  =
  
    
      
        
          C
          X
        
        
          C
          S
        
      
      ×
      
        V
        CC
      
    
    +
    
      
        
          V
          S
        
        ⁡
        
          (
          
            x
            -
            1
          
          )
        
      
      ×
      
        (
        
          1
          -
          
            
              C
              X
            
            
              C
              S
            
          
        
        )
      
    
  




The evolution of the voltage VS across the terminals of the reference capacitance CS constitutes a mathematical series according to the number of discharges x of the capacitance CX of the electrode 4 to the reference capacitance CS, and is given by equation (1):




  
    
      
        
          
            V
            S
          
          ⁡
          
            (
            x
            )
          
        
        =
        
          
            V
            CC
          
          ×
          
            (
            
              1
              -
              
                
                  (
                  
                    1
                    -
                    
                      
                        C
                        X
                      
                      
                        C
                        S
                      
                    
                  
                  )
                
                x
              
            
            )
          
        
      
    
    
      
        (
        1
        )
      
    
  




At the end of the charge transfer, the voltage VS across the terminals of the reference capacitance CS has reached the threshold voltage VTH, and a number of discharges x is obtained, defined by equation (2):




  
    
      
        x
        =
        
          
            -
            
              
                C
                S
              
              
                C
                X
              
            
          
          ×
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  
                    V
                    TH
                  
                  
                    V
                    CC
                  
                
              
              )
            
          
        
      
    
    
      
        (
        2
        )
      
    
  




Th is defined as a detection threshold, corresponding to a number of charge transfers between the two states of the capacitance CX of the electrode 4, that is to say between CX and CX+ΔCX.
Th is equal to the variation of the number of discharges x, between the value of the capacitance CX and the value of the capacitance CX+ΔCX.
Consequently:




  Th
  =
  
    
      
        -
        
          
            C
            S
          
          
            C
            X
          
        
      
      ×
      
        ln
        ⁡
        
          (
          
            1
            -
            
              
                V
                TH
              
              
                V
                CC
              
            
          
          )
        
      
    
    +
    
      
        
          C
          S
        
        
          
            C
            X
          
          +
          
            Δ
            ⁢
            
              
            
            ⁢
            
              C
              X
            
          
        
      
      ×
      
        ln
        ⁡
        
          (
          
            1
            -
            
              
                V
                TH
              
              
                V
                CC
              
            
          
          )
        
      
    
  




This gives:





  
    Δ
    ⁢
    
      
    
    ⁢
    
      C
      X
    
  
  =
  
    
      
        -
        Th
      
      ×
      
        C
        X
        2
      
    
    
      
        
          C
          S
        
        ×
        
          ln
          ⁡
          
            (
            
              1
              -
              
                
                  V
                  TH
                
                
                  V
                  CC
                
              
            
            )
          
        
      
      -
      
        Th
        ×
        
          C
          X
        
      
    
  




As the reference capacitance CS is, according to the prior art, appreciably greater than the capacitance CX of the electrode 4, the following equation is obtained for the variation ΔCX of the capacitance CX:




  
    
      
        
          Δ
          ⁢
          
            
          
          ⁢
          
            C
            X
          
        
        ≈
        
          
            
              -
              Th
            
            ×
            
              C
              X
              2
            
          
          
            
              C
              S
            
            ×
            
              ln
              ⁡
              
                (
                
                  1
                  -
                  
                    
                      V
                      TH
                    
                    
                      V
                      CC
                    
                  
                
                )
              
            
          
        
      
    
    
      
        (
        3
        )
      
    
  




This equation (3) is known to the person skilled in the art.

Consequently, the variation ΔCX of the capacitance CX measurable by the capacitive sensor 3, (stated otherwise, the sensitivity of the latter), defined by equation (3) depends on numerous parameters: the value of the storage capacitance CS, the supply voltage VCC, the voltage threshold for stopping measurement VTH and especially chiefly on the capacitance of the electrode squared CX2. Now, the capacitance CX of the electrode 4 is difficult to control and varies as a function of the environment (temperature, humidity, etc.), thus degrading the value of the variation ΔCX of the capacitance CX and therefore the sensitivity and the performance of the capacitive sensor 3.
Moreover, the number of discharges x which conditions the duration of measurement, is proportional to the reference capacitance CS (cf. equation (2)), which is itself dependent on the other parameters and in particular on the desired variation ΔCX (cf. equation (3)). Thus for a variation ΔCX of the capacitance CX which is given, there corresponds a value of the reference capacitance CS and therefore a fixed number of discharges x (Th, VCC, VTH, and CX being fixed parameters). Consequently, the number of discharges x, that is to say the duration of charge transfer, or the duration of measurement of the variation ΔCX of the capacitance CX until detection, is fixed and cannot be optimized. Indeed, if the number of discharges x is reduced by two, for example, to reduce the duration of measurement, the reference capacitance CS is divided by two according to equation (2), and consequently, the variation ΔCX of the capacitance CX is degraded, since it is multiplied by two according to equation (3). With such a device, there is therefore no means of optimizing the duration of measurement of the capacitive sensor 3 without impacting the variation ΔCX of the capacitance CX, that is to say the sensitivity of the capacitive sensor 3.
However, the duration of measurement of the capacitive sensor must be extremely fast, since:

    
    
        the door opening mechanism must be completely transparent to the driver. Indeed, the latter expects the opening of the door to be as fast as in the case of opening a mechanical handle, not equipped with a capacitive sensor 3,
        the consumption of the capacitive sensor 3 must be minimized, since it operates for long periods when the vehicle is stopped. Now, consumption being related to the duration of measurement, if the duration of measurement is reduced, consumption decreases.
    
    


However, as detailed hereinabove, given that the reduction in the duration of measurement brings about a degradation in the sensitivity of the capacitive sensor 3, this can cause overly late detections. Indeed, a degradation in the sensitivity of the sensor signifies that detection was carried out only when a large variation ΔCX of the capacitance CX was measured. A necessary compromise therefore exists between the duration of measurement and the sensitivity desired, that is to say the variation ΔCX of the capacitance CX desired. It will have been understood that there is a significant advantage in producing a capacitive sensor 3 for which the variation ΔCX of the capacitance CX is independent of the duration of measurement.
A device for measuring a variation ΔCX of the capacitance CX making it possible to alleviate these drawbacks is known from the prior art (cf. FIG. 3). In this instance, document FR 2 938 344 A1 describes a device for measuring a variation ΔCX of the capacitance CX furthermore comprising:

    
    
        a third capacitance, called the measurement capacitance CM, linked to ground,
        means (a switch S3) for charging this measurement capacitance on the basis of the supply voltage VCC, and
        means (a switch S4) for discharging the measurement capacitance CM to the reference capacitance CS in a variable number of discharges n.
    
    


This measurement capacitance CM makes it possible to carry out the measurement of the variation ΔCX of the capacitance CX in such a way that this variation is independent of the capacitance CX of the electrode 4 measured. This allows the optimization of the duration of measurement until the detection (that is to say the optimization of the number of charges and/or discharges) of the capacitive sensor 3 without impacting its variation ΔCX.
According to the invention described in document FR 2 938 344 A1, the charge transfer breaks down into two phases: acquisition and measurement.
The acquisition phase consists of a conventional transfer of charge from the capacitance CX of the electrode 4 into the reference capacitance CS. The difference with conventional charge transfer, described above, is that the charge transfer stops after a fixed number of discharges x and not when the voltage VS across the terminals of the reference capacitance CS attains a voltage threshold VTH.
The measurement phase consists of a transfer of charge, of a variable number of discharges n, of the measurement capacitance CM into the reference capacitance CS until the voltage VS across the terminals of the reference capacitance CS reaches the threshold voltage VTH.
During the acquisition phase, the charge of the capacitance CX of the electrode 4 is transferred into the measurement capacitance CS in the following manner:

    
    
        1st step: the first step consists in charging the capacitance CX of the electrode 4 on the basis of the supply voltage VCC. Accordingly the first switch S1 is closed and the second switch S2 is opened,
        2nd step: once the charging of the capacitance CX of the electrode 4 has terminated, the first switch S1 is opened,
        3rd step: the discharging of the capacitance CX of the electrode 4 into the reference capacitance CS can begin. Accordingly, the first switch S1 remains open and the second switch S2 is closed,
        4th step: once the discharging of the capacitance CX of the electrode 4 into the reference capacitance CS has been carried out, the second switch S2 is opened.
    
    


The third and the fourth switch S3 and S4 are open during this acquisition phase. Consequently, the measurement capacitance CM is neither charged, nor discharged during this acquisition phase.
This charging and discharging cycle is repeated a predetermined and fixed number of times x.
During the measurement phase, the charge of the measurement capacitance CM is transferred into the reference capacitance CS until the voltage VS across the terminals of this capacitance attains a threshold VTH.

    
    
        1st step: the first step consists in charging the measurement capacitance CM. Accordingly the third switch S3 is closed and the fourth switch S4 is opened,
        2nd step: once the charging of the measurement capacitance CM has terminated, the third switch S3 is opened,
        3rd step: the discharging of the measurement capacitance CM into the reference capacitance CS can begin. Accordingly, the third switch S3 remains open and the fourth switch S4 is closed,
        4th step: once the discharging of the measurement capacitance CM into the reference capacitance CS has been carried out, the fourth switch S4 is opened.
    
    


The first and the second switch S1 and S2 are open during this measurement phase. Consequently the capacitance CX of the electrode 4 is neither charged, nor discharged during this measurement phase.
This cycle is repeated until the voltage VS across the terminals of the reference capacitance CS attains the threshold voltage VTH. The variable number of discharges (called n) required to attain the threshold represents an image of the capacitance CX. The reference capacitance CS is thereafter completely discharged by closing the switch S in preparation for the next measurement.
Thus, according to document FR 2 938 344 A1, the variation ΔCX of the capacitance CX is no longer dependent on the capacitance CX of the electrode 4, but it is defined according to equation (4):




  
    
      
        
          Δ
          ⁢
          
            
          
          ⁢
          
            C
            X
          
        
        =
        
          
            Th
            ×
            
              C
              M
            
          
          x
        
      
    
    
      
        (
        4
        )
      
    
  




That is to say the variation ΔCX of the capacitance CX depends on the measurement capacitance CM, on the fixed number of discharges x of the electrode CX into the measurement capacitance CS and on the detection threshold Th. And n, the variable number of discharges of the measurement capacitance CM to the reference capacitance CS is defined by:




  
    
      
        n
        =
        
          -
          
            
              
                
                  C
                  S
                
                ×
                
                  ln
                  ⁡
                  
                    (
                    
                      1
                      -
                      
                        
                          V
                          TH
                        
                        
                          V
                          CC
                        
                      
                    
                    )
                  
                
              
              +
              
                x
                ×
                
                  C
                  X
                
              
            
            
              C
              M
            
          
        
      
    
    
      
        (
        5
        )
      
    
  




The measurement capacitance CM being fixed, so is the fixed number of discharges x, and the detection threshold Th also being determined and fixed (since it is equivalent to a number of discharges n of the measurement capacitance CM into the reference capacitance CS corresponding to the threshold for detecting the driver's hand on the handle 6 of the door), it is therefore possible to choose the variation ΔCX of the capacitance CX by choosing in correspondence the values of CM, x, and of Th, independently of the value of the capacitance CX. Thus the variation ΔCX of the capacitance CX no longer depends on the value of this capacitance CX.
However, a major drawback of this device is the presence of parasitic residual capacitances originating from the switches S3 and S4 used to charge and discharge the measurement capacitance CM. The consequence of these residual capacitances is to limit the minimum value of the measurement capacitance CM, below which the variation ΔCX of the capacitance CX can no longer be improved (decreased). Generally, a switch exhibits a residual capacitance of 5 pF. The two switches S3 and S4 therefore exhibit an aggregate residual capacitance of 2×5=10 pF. The value of the measurement capacitance CM must be chosen as a function of this cumulated residual capacitance, and generally its value is chosen to be equal to this residual capacitance, i.e. of the order of 10 pF. The variation ΔCX of the capacitance CX (the smallest value of the variation ΔCX measurable) therefore attains a minimum when the measurement capacitance CM=10 pF and it can no longer be optimized with the prior art device described in document FR 2 938 344 A1. In an exemplary use, if Th=5, if x=170 and if CM=10 pF (minimum value due to the residual capacitances of the two switches S3 and S4), then the variation ΔCX of the capacitance CX is equal to 0.3 pF. Now, if it were possible to lower the value of the measurement capacitance CM, the variation ΔCX of the capacitance CX would be improved (decreased) proportionately but this is not possible since the circuit already exhibits a residual capacitance of 10 pF.
SUMMARY OF THE INVENTION
The invention proposes a device for measuring a variation ΔCX of a capacitance CX making it possible to alleviate this drawback. More precisely, the invention proposes a device in which the variation ΔCX of the capacitance CX is improved with respect to that obtained in the prior art.
Accordingly, the invention proposes a device for measuring a variation ΔCX of a capacitance, comprising:

    
    
        a supply voltage,
        means for charging the capacitance on the basis of the supply voltage,
        means for discharging the capacitance into a reference capacitance CS in a fixed number of discharges x,
        means for measuring a voltage VS across the terminals of the reference capacitance CS,
        means for detecting a threshold of voltage VTH across the terminals of the reference capacitance CS,

the invention residing in the fact that the device furthermore comprises:

        means for charging with current the reference capacitance CS on the basis of the supply voltage VCC for a duration t, after the capacitance CX has been charged and discharged in a fixed number of discharges x into the reference capacitance CS,
        means RC for calibrating the current, charging the reference capacitance CS,
        means for:
        
            measuring the duration t with a temporal resolution Δt, and
            computing the variation of this duration t with respect to a previously measured duration, this variation being representative of the variation ΔCX of the capacitance CX.
        
        
    
    


According to the invention, a predetermined threshold of detection Th of a number of intervals of the temporal resolution over the duration t is defined, corresponding to the variation ΔCX of the capacitance.
Advantageously, the fixed number of discharges x of the capacitance to the reference capacitance CS is defined by:




  x
  =
  
    
      Th
      ×
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    
      Δ
      ⁢
      
        
      
      ⁢
      
        C
        X
      
      ×
      
        R
        c
      
    
  




The duration t is defined by the duration required for the voltage VS across the terminals of the reference capacitance CS to be equal to the voltage threshold VTH and is equal to:




  t
  =
  
    
      -
      
        R
        C
      
    
    ×
    
      C
      S
    
    ×
    
      ln
      ⁡
      
        (
        
          
            
              V
              CC
            
            -
            
              V
              TH
            
          
          
            
              V
              CC
            
            -
            
              
                V
                S
              
              ⁡
              
                (
                x
                )
              
            
          
        
        )
      
    
  




The measurement of the capacitance variation ΔCX is independent of the capacitance CX and is equivalent to:




  
    Δ
    ⁢
    
      
    
    ⁢
    
      C
      X
    
  
  =
  
    
      Th
      ×
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    
      
        R
        C
      
      ×
      x
    
  




In a preferential embodiment, the reference capacitance CS exhibits a greater capacitance than that of the capacitance.
The invention also relates to any capacitive sensor for detecting the presence of a user of an apparatus, implementing a device for measuring a variation of the capacitance according to any one the characteristics hereinabove, such that the capacitance whose capacitance variation ΔCX is measured comprises a detection electrode disposed within said apparatus, the capacitance being measured between said detection electrode and a close environment of said detection electrode.
Judiciously, the apparatus in which the detection electrode is disposed is a door handle of a vehicle.
The invention applies to any motor vehicle comprising a capacitive sensor such as described previously as well as the associated method for measuring a variation ΔCX of the capacitance CX.



BRIEF DESCRIPTION OF THE DRAWINGS
Other characteristics and advantages of the invention will become apparent on reading the description which follows and on examining the appended drawings in which:
FIG. 1 represents a schematic view, described previously, of a door handle of a vehicle integrating a charge-transfer capacitive sensor,
FIG. 2 represents a schematic view, described previously, of a charge-transfer capacitive sensor according to the prior art,
FIG. 3 represents a schematic view of a charge-transfer capacitive sensor according to the prior art, described in FR 2 938 344 A1,
FIG. 4 represents a schematic view of a charge-transfer capacitive sensor, according to the invention.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
The invention proposes the device, such as illustrated in FIG. 4, for measuring a variation ΔCX of the capacitance CX and which comprises, furthermore, a charge resistance RC, placed between the supply voltage VCC and the measurement capacitance CS.
The charge transfer according to the invention breaks down into two phases: acquisition and measurement.
The acquisition phase is identical to that of the prior art. During this acquisition phase, the capacitance CX of the electrode 4 charges and discharges into the reference capacitance CS in a fixed number of discharges x, as described previously.
During the measurement phase, according to the invention, a charge current IC passing through the charge resistance RC charges the reference capacitance CS until the voltage VS across the terminals of the latter attains the threshold value VTH.
The single step of this measurement phase consists in the charging of the reference capacitance CS by the charge current IC passing through the charge resistance RC. Accordingly, the third switch S3 is closed.
The first and the second switches S1 and S2 are open during this measurement phase. Consequently the capacitance CX of the electrode 4 is neither charged, nor discharged during this measurement phase.
Charging continues until the voltage VS across the terminals of the reference capacitance CS attains the threshold voltage VTH. The duration t of charging required to reach the threshold VTH represents an image of the capacitance CX. The duration t is therefore measured between the closing of the third switch S3 and detection (that is to say the instant corresponding to VS=VTH). The charge current IC charging the reference capacitance CS is constant and calibrated by passage through the charge resistance RC. By changing the value of the charge resistance RC, the intensity of the charge current IC also changes as well as the duration t of charging into the reference capacitance CS.
The reference capacitance CS is thereafter completely discharged by closing the switch S in preparation for the next measurement.
According to the invention, the equations governing the operation of the capacitive sensor 3 at low consumption are the following:

    
    
        during the acquisition phase, the evolution of the voltage VS across the terminals of the reference capacitance CS is given by equation (1),
        during the measurement phase, the duration t of charging required in order that VS=VTH is defined.
    
    






  
    V
    TH
  
  =
  
    
      
        (
        
          
            V
            CC
          
          -
          
            
              V
              S
            
            ⁡
            
              (
              x
              )
            
          
        
        )
      
      ×
      
        (
        
          1
          -
          
            e
            
              -
              
                t
                
                  
                    R
                    C
                  
                  ×
                  
                    C
                    S
                  
                
              
            
          
        
        )
      
    
    +
    
      
        V
        S
      
      ⁡
      
        (
        x
        )
      
    
  




Which is equivalent to:





  
    
      
        V
        CC
      
      -
      
        V
        TH
      
    
    
      
        V
        CC
      
      -
      
        
          V
          S
        
        ⁡
        
          (
          x
          )
        
      
    
  
  =
  
    e
    
      -
      
        t
        
          
            R
            C
          
          ×
          
            C
            S
          
        
      
    
  




Then to:





  
    -
    
      t
      
        
          R
          C
        
        ×
        
          C
          S
        
      
    
  
  =
  
    ln
    ⁡
    
      (
      
        
          
            V
            CC
          
          -
          
            V
            TH
          
        
        
          
            V
            CC
          
          -
          
            
              V
              S
            
            ⁡
            
              (
              x
              )
            
          
        
      
      )
    
  




And finally:





  
    
      
        t
        =
        
          
            -
            
              R
              C
            
          
          ×
          
            C
            S
          
          ×
          
            ln
            ⁡
            
              (
              
                
                  
                    V
                    CC
                  
                  -
                  
                    V
                    TH
                  
                
                
                  
                    V
                    CC
                  
                  -
                  
                    
                      V
                      S
                    
                    ⁡
                    
                      (
                      x
                      )
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        6
        )
      
    
  




The duration t is measured with a time base Δt, which is the temporal measurement precision of a clock of the printed circuit 5. This time base Δt (or temporal resolution) is therefore fixed by the clock of the printed circuit 5. The number of intervals of precision Δt included in the duration t is called y, i.e. y=t/Δt, and we obtain:




  
    y
    ×
    Δ
    ⁢
    
      
    
    ⁢
    t
  
  =
  
    
      -
      
        R
        C
      
    
    ×
    
      C
      S
    
    ×
    
      ln
      (
      
        
          
            V
            CC
          
          -
          
            V
            TH
          
        
        
          
            V
            CC
          
          -
          
            
              V
              S
            
            ⁡
            
              (
              x
              )
            
          
        
      
      )
    
  




Which is equivalent to:




  
    
      
        y
        ×
        Δ
        ⁢
        
          
        
        ⁢
        t
      
      =
      
        
          -
          
            R
            C
          
        
        ×
        
          C
          S
        
        ×
        
          ln
          (
          
            
              
                V
                CC
              
              -
              
                V
                TH
              
            
            
              
                V
                CC
              
              -
              
                
                  V
                  CC
                
                ×
                
                  (
                  
                    1
                    -
                    
                      
                        (
                        
                          1
                          -
                          
                            
                              C
                              X
                            
                            
                              C
                              S
                            
                          
                        
                        )
                      
                      x
                    
                  
                  )
                
              
            
          
          )
        
      
    
    ⁢
    
      
    
  




  
    Then
    ,
    
      

    
    ⁢
    
      
        y
        ×
        Δ
        ⁢
        
          
        
        ⁢
        t
      
      =
      
        
          -
          
            R
            C
          
        
        ×
        
          C
          S
        
        ×
        
          ln
          (
          
            
              
                V
                CC
              
              -
              
                V
                TH
              
            
            
              
                V
                CC
              
              ×
              
                
                  (
                  
                    1
                    -
                    
                      
                        C
                        X
                      
                      
                        C
                        S
                      
                    
                  
                  )
                
                x
              
            
          
          )
        
      
    
  



Isolating y, we obtain:




  
    y
    =
    
      
        -
        
          
            
              R
              C
            
            ×
            
              C
              S
            
          
          
            Δ
            ⁢
            
              
            
            ⁢
            t
          
        
      
      ×
      
        [
        
          
            ln
            (
            
              1
              -
              
                
                  V
                  TH
                
                
                  V
                  CC
                
              
            
            )
          
          -
          
            ln
            (
            
              
                (
                
                  1
                  -
                  
                    
                      C
                      X
                    
                    
                      C
                      S
                    
                  
                
                )
              
              x
            
            )
          
        
        ]
      
    
  




  
    Then
    ,
    
      

    
    ⁢
    
      y
      =
      
        
          -
          
            
              
                R
                C
              
              ×
              
                C
                S
              
            
            
              Δ
              ⁢
              
                
              
              ⁢
              t
            
          
        
        ×
        
          [
          
            
              ln
              (
              
                1
                -
                
                  
                    V
                    TH
                  
                  
                    V
                    CC
                  
                
              
              )
            
            -
            
              x
              ×
              
                ln
                (
                
                  1
                  -
                  
                    
                      C
                      X
                    
                    
                      C
                      S
                    
                  
                
                )
              
            
          
          ]
        
      
    
  



The finite series expansion of





  
    
      
        ln
        ⁡
        
          (
          
            1
            -
            
              
                C
                X
              
              
                C
                S
              
            
          
          )
        
      
      ≅
      
        -
        
          
            C
            X
          
          
            C
            S
          
        
      
    
    ,
  
  ⁢
  
    
  




since the value of the reference capacitance CS is appreciably greater than the value of the capacitance CX of the electrode 4. We thus obtain:




  
    y
    =
    
      
        -
        
          
            
              R
              C
            
            ×
            
              C
              S
            
          
          
            Δ
            ⁢
            
              
            
            ⁢
            t
          
        
      
      ×
      
        [
        
          
            ln
            (
            
              1
              -
              
                
                  V
                  TH
                
                
                  V
                  CC
                
              
            
            )
          
          +
          
            x
            ×
            
              
                C
                X
              
              
                C
                S
              
            
          
        
        ]
      
    
  




  
    
      Then
      ,
      
        

      
      ⁢
      
        y
        =
        
          
            -
            
              
                R
                C
              
              
                Δ
                ⁢
                
                  
                
                ⁢
                t
              
            
          
          ×
          
            [
            
              
                
                  C
                  S
                
                ×
                
                  ln
                  (
                  
                    1
                    -
                    
                      
                        V
                        TH
                      
                      
                        V
                        CC
                      
                    
                  
                  )
                
              
              -
              
                x
                ×
                
                  C
                  X
                
              
            
            ]
          
        
      
    
    ⁢
    
      
    
  



We define Th to be the variation of y giving rise to a detection, hence Th is equivalent to:





  Th
  =
  
    
      
        R
        C
      
      
        Δ
        ⁢
        
          
        
        ⁢
        t
      
    
    ×
    
       
      
        [
        
          
            
              -
              
                C
                S
              
            
            ×
            
              ln
              (
              
                1
                -
                
                  
                    V
                    TH
                  
                  
                    V
                    CC
                  
                
              
              )
            
          
          -
          
            x
            ×
            
              C
              X
            
          
          +
          
            
              C
              S
            
            ×
            
              ln
              ⁡
              
                (
                
                  1
                  -
                  
                    
                      V
                      TH
                    
                    
                      V
                      CC
                    
                  
                
                )
              
            
          
          +
          
            x
            ×
            
              (
              
                
                  C
                  X
                
                +
                
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    C
                    X
                  
                
              
              )
            
          
        
        ]
      
    
  




i.e. also:





  
    Th
    ×
    
      
        Δ
        ⁢
        
          
        
        ⁢
        t
      
      
        R
        C
      
    
  
  =
  
    x
    ×
    Δ
    ⁢
    
      
    
    ⁢
    
      C
      X
    
  




And finally:





  
    
      
        
          Δ
          ⁢
          
            
          
          ⁢
          
            C
            X
          
        
        =
        
          
            Th
            ×
            Δ
            ⁢
            
              
            
            ⁢
            t
          
          
            
              R
              C
            
            ×
            x
          
        
      
    
    
      
        (
        7
        )
      
    
  




Thus, according to equation (7) of the invention, the variation ΔCX of the capacitance CX, is determined by:

    
    
        the fixed number of discharges x of the acquisition cycle,
        the value of the charge resistance RC, and
        the time base Δt (temporal resolution of the printed circuit 5 clock).
    
    


It is thus possible to increase the value of the charge resistance RC so as to improve the variation ΔCX of the capacitance CX, that is to say so as to improve the sensitivity of the capacitive sensor 3.
It is also possible, by way of software, to reduce the temporal resolution Δt of the clock of the printed circuit 5 so as to improve the variation ΔCX of the capacitance CX.
The advantage of the invention is therefore a reduction in detection time (and therefore a reduction in the consumption of the capacitive sensor 3) with respect to the prior art and/or an increase in detection precision due to the reduction in the variation ΔCX of the capacitance CX of the electrode 4 which is measurable by the capacitive sensor 3.
An example of gain in time and precision is illustrated hereinbelow.
Consider a capacitive sensor 3 with the following characteristics:


    
    
        CX=35 pF,
        Th=5,
        VTH=1.1V,
        VCC=3.3V,
        CS=20 nF,
        x=170.
    
    


According to the solution of the prior art, that is to say according to the invention described in FR 2 938 344 A1, by using a measurement capacitance CM, of minimum value, i.e. CM=10 pF (residual capacitance), then according to equation (5), the number n of charge transfers until VS=VTH, is equal to n=215.
And the total cycle number N=(n+x) to carry out the charge transfer is equal to 385. With a clock having a resolution of Δt=2 μs, a charge transfer lasts 12 μs. The duration of the 385 charge transfers, that is to say the duration of detection is therefore 4.6 ms (385×0.12). And according to equation (4), the variation ΔCX of the capacitance CX is equal to ΔCX=0.3 pF.
According to the invention of the present patent application, by fixing the charge resistance RC=200 kΩ and a resolution of the clock of the printed circuit 5 identical to that of the previous example (Δt=2 μs), then:

    
    
        VS(x) according to equation (1) equals VS(170)=0.849 V,
        according to equation (6), the duration t is equal to t=430 μs, i.e. 0.43 ms,
        the duration of the x=170 charge transfers of the capacitance CX into the reference capacitance CS is equal to 2.04 ms (170×0.12),
        the total duration of detection is therefore equal to 2.47 ms (2.04+0.43) i.e. a duration of detection 1.84 times shorter than that of the prior art (4.6 ms).
    
    


The charge transfer device according to the invention makes it possible to significantly reduce the measurement time t and consequently the consumption of the capacitive sensor 3.
In another example, by increasing the value of the charge resistance RC to RC=800 kΩ so as to decrease the value of the variation ΔCX of the capacitance CX, then:

    
    
        according to equation (6), the variable duration t=1.723 ms, and
        the total duration of detection is equal to 3.76 ms (1.723+2.04),

i.e. a duration 0.82 times shorter than that of the prior art (4.6 ms), and variation ΔCX of the capacitance CX, according to equation (7) is equal to ΔCX=0.073 pF, i.e. a variation ΔCX divided by four with respect to that of the prior art.

    
    


The invention therefore allows faster and/or much more precise detection of approach of the user's hand by the capacitive sensor than the prior art solution described in document FR 2 938 344 A1.
The invention is not limited to the embodiments described. In particular, the invention applies to any device for measuring a variation of a capacitance and is not limited to the detection of the approach of a user's hand to a door handle of a vehicle.

## Claims

1. A device for measuring a variation (ΔCX) of a capacitance (CX), comprising:
a supply voltage (VCC);
circuitry that charges the capacitance (CX) on the basis of the supply voltage (VCC);
circuitry that discharges the capacitance (CX) into a reference capacitance (CS) in a fixed number of discharges (x);
circuitry that measures a voltage (VS) across the terminals of the reference capacitance (CS);
circuitry that detects a threshold of voltage (VTH) across the terminals of the reference capacitance (CS);
circuitry that charges, with current (IC), the reference capacitance (CS) on the basis of the supply voltage (VCC) for a duration (t), after the capacitance (CX) has been charged and discharged in a fixed number of discharges (x) into the reference capacitance (CS);
a charge resistance (RC) that calibrates the current (IC), charging the reference capacitance (CS); and
circuitry that:
measures the duration (t) with a temporal resolution (Δt), and
determines a variation of the duration (t) with respect to a previously measured duration, the variation being representative of the variation (ΔCX) of the capacitance (CX).

2. The device as claimed in claim 1, wherein a predetermined threshold of detection (Th) of a number (y) of intervals of the temporal resolution (Δt) over the duration (t) is defined, corresponding to the variation (ΔCX) of the capacitance (CX).

3. The device as claimed in claim 2, wherein the fixed number of discharges (x) of the capacitance (CX) to the reference capacitance (CS) is defined by:




  x
  =
  
    
      Th
      ×
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    
      Δ
      ⁢
      
        
      
      ⁢
      
        C
        X
      
      ×
      
        R
        c
      
    
  



with:
Th: the detection threshold
Δt: the temporal resolution
ΔCX: the variation of the capacitance (CX)
RC: the charge resistance.

4. The device as claimed in claim 1, wherein the duration (t) is defined by the duration required for the voltage (VS) across the terminals of the reference capacitance (CS) to be equal to the voltage threshold (VTH) and is equal to:




  t
  =
  
    
      -
      
        R
        C
      
    
    ×
    
      C
      S
    
    ×
    
      ln
      ⁡
      
        (
        
          
            
              V
              CC
            
            -
            
              V
              TH
            
          
          
            
              V
              CC
            
            -
            
              
                V
                S
              
              ⁡
              
                (
                x
                )
              
            
          
        
        )
      
    
  



with:
CS: the reference capacitance
VCC: the supply voltage
VTH: the voltage threshold
VS: the voltage across the terminals of the reference capacitance (CS).

5. The device as claimed in claim 2, wherein the measurement of the capacitance variation (ΔCX) is independent of the capacitance (CX), and is equivalent to:




  
    Δ
    ⁢
    
      
    
    ⁢
    
      C
      X
    
  
  =
  
    
      Th
      ×
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    
      
        R
        C
      
      ×
      x
    
  



where x is the number of fixed discharges of the capacitance (CX) into the reference capacitance (CS).

6. The device as claimed in claim 1, wherein the reference capacitance (CS) exhibits a greater capacitance than that of the capacitance (CX).

7. A capacitive sensor for detecting the presence of a user of an apparatus that implements the device for measuring a variation of the capacitance (CX) as claimed in claim 1, wherein the capacitance (CX) whose capacitance variation (ΔCX) is measured comprises a detection electrode (4) disposed within said apparatus, the capacitance (CX) being measured between said detection electrode (4) and a close environment (M) of said detection electrode (4).

8. The capacitive sensor as claimed in claim 7, wherein the apparatus in which the detection electrode (4) is disposed is a door handle (6) of a vehicle.

9. A motor vehicle comprising a capacitive sensor (3) as claimed in claim 8.

10. A method for measuring a variation (ΔCX) of the capacitance (CX), using a measurement device as claimed in claim 1, comprising the steps of:
charging with current (IC), said current (IC) being constant and calibrated by passage through a charge resistance (RC), the reference capacitance (CS) on the basis of the supply voltage (VCC) for a duration (t), after the capacitance (CX) has been charged and discharged in a fixed number of discharges (x) into the reference capacitance (CS);
measuring the duration (t) with a temporal resolution (Δt); and
computing the variation of this duration (t) with respect to a previously measured duration, the variation being representative of the variation (ΔCX) of the capacitance (CX).