# Patent

## Title
Trackpad sensitivity compensation

## Abstract

A device compensating for a loss in sensitivity of a sensor, such as a trackpad. The device may be standalone, integrated with the trackpad itself, or within the associated integrated circuit designed to measure relative electrode capacitances. The embodiment generally employs a current source to negatively compensate for the current available to charge at least one capacitor (or other storage device) in the trackpad.

## Background
BACKGROUND OF THE INVENTION
1. Technical Field
The present invention relates generally to electronic input devices, and more specifically to trackpads and finger-tracking devices.
2. Background Art
A variety of input devices are used with modem computers. As computers have become more complex, so too has the choice of input devices grown. Certain input devices are more suitable for given tasks, or for use with a given application or computer system. For example, keyboards are typically used for text input, while mice may be used for object selection and/or browsing.
Trackpads are stationary pointing devices often used where space is at a premium, such as with laptop or notebook computers. Trackpads (also referred to as “touchpads”) typically provide a small, flat surface over which a user may slide a finger to move a cursor or pointer on a computer screen. In this manner, trackpads provide functionality similar to computer mice. Further, the computing system may equate tapping the trackpad with a finger to clicking a mouse button. Thus, a trackpad may be seen as an equivalent device to a mouse.
Many trackpads couple capacitance through a finger (or other conductive pointer) to operate. In simplest terms, a trackpad includes two layers of electrodes arranged to form a grid, as shown in FIG. 1. For example, the first layer may include horizontally-aligned, strip-shaped electrodes and the second layer may include vertically-aligned, strip-shaped electrodes. The layers are positioned such that one layer overlies the other to form the aforementioned grid. Each of the electrodes is connected to an integrated circuit, for example. The integrated circuit is typically (although not necessarily) located beneath the electrode grid.
As a finger moves across the grid, the finger forms the second plate of a two-plate capacitor. The finger effectively capacitvely couples to the lower electrode, thus changing the capacitance of the electrode beneath the finger by some small amount. In some cases, the change in capacitance is on the order of 1-2%. The integrated circuit (or a computer system associated with the trackpad) continuously measures the capacitance of each electrode in the grid. When the integrated circuit detects an increased capacitance in the electrode at a certain spot of the grid, the position of the finger is located. The integrated circuit may, for example, continuously scan each row and column of the electrode array (grid) to measure capacitances. Alternative trackpads may employ only a single layer of electrodes (i.e., only rows or only columns). The operations described herein, including coupling of the finger to the electrode, generally operate in a similar manner. It should also be noted that multiple fingers, or other capacitvely-coupled elements, may be tracked by a single trackpad.
The computing system may use the finger's absolute location on the trackpad to create relative pointer data, thus placing or moving a pointer on a screen associated with the computing system. Similarly, if the integrated circuit detects a finger's presence at one time, no presence at a second time, and the finger's presence in approximately the same area at a third time, the computing system may interpret this as a tap on the trackpad analogous to clicking a mouse button.
Many trackpads, especially those used in notebook computers, are shielded from direct contact with a finger by an insulator layer. For example, aesthetics often demand a metallic look for notebook computers. Such a look may be accomplished either by plating the laptop with metal, or applying metallic flake in a composite, plastic, or paint layer to the laptop. Typically, the metallic finish is an integral part of the laptop body to prevent cracking or peeling with age and/or use. However, many times the metals used to enhance the laptop's appearance act as an insulator between a user's finger and the trackpad. This is especially true where the trackpad surface is finished with such a metallic layer. The presence of this insulation layer may decrease the signal-to-noise ratio of the trackpad (and thus, the trackpad's sensitivity) by up to 60%. In many applications, a mylar label having paint on its backside may be adhered to the trackpad in place of the metallic finish. This paint may have a metallic finish. Similar problems to those described above are presented in such applications.
Additionally, more sensitive trackpads may enhance a user's computing experience by providing more precise input. By providing more precise input and enhancing the range of fingers that may capacitvely couple to the trackpad, a wide range of applications may be opened.
Many present solutions attempt to increase the sensitivity of a trackpad by employing electrodes having a larger surface area in the aforementioned electrode grid. However, a linear relationship exists between a parasitic capacitance experienced by an electrode and the area of the electrode. Thus, as the electrodes used in the electrode array increase in size, so do the parasitic capacitances associated with the array. A parasitic capacitance generally decreases the trackpad sensitivity by decreasing the maximum change in capacitance that may be experienced between the upper and lower electrodes. Further, at some point the parasitic capacitance may be greater than the change in capacitance experienced at a point on the electrode array when the finger touches the trackpad. Thus, if electrodes having a sufficiently large surface area are used, the trackpad may not be able to detect when a finger is placed against it.
Accordingly, there is a need in the art for a trackpad having an improved capacitive sensitivity.
BRIEF SUMMARY OF THE INVENTION
One embodiment of the invention takes the form of a device compensating for a loss in trackpad sensitivity. The device may be standalone, integrated with the trackpad itself, or within the associated integrated circuit designed to measure relative electrode capacitances.
The embodiment generally employs a current source to negatively compensate for the current available to charge at least one capacitor (or electrode) in the trackpad. The functioning of the various electrodes as capacitors is discussed in more detail below. For purposes of this overview, it should be understood that each electrode making up the electrode grid of the trackpad broadly may be viewed as a single capacitor, namely a sense capacitor.
By negatively compensating for the current charging the storage capacitor, the sensitivity of the trackpad may be enhanced. A “negative compensation” of a current, as used herein, is equivalent to a current sink. That is, the present embodiment sinks a portion of the current that would otherwise charge the storage capacitor, thus bleeding off some portion of the charging current.
Typically, when a finger is capacitively coupled to the sense electrode, the impedance of the sensor (as seen by a voltage source) decreases, and thus the charge available to charge the storage capacitor increases. This, in turn, translates to a greater charging current when a finger touches (or is proximate to) the trackpad sensor device, compared to when a finger is not present. As explained in greater detail below, for a given finger at a given position, the charging current (“enhanced current”) added through the finger's presence is a constant percentage of the base charging current.
Although impedance is often designated by the letter “Z” and resistance by “R,” for convenience's sake the present application employs “R” when discussing both resistance and impedance.
By negatively compensating both base and enhanced currents with a constant current sink, the enhanced current becomes a greater multiple of the base current. This, in turn, increases the sensor's sensitivity to the finger's presence.
One embodiment of the present invention may take the form of a sensor circuit having at least one electrode, a storage device (such as a capacitor) operatively connected to the at least one electrode, a voltage source operative to charge the at least one electrode, and a current source operatively connected to the storage device and sinking at least a portion of a current charging the storage device. In such an embodiment, the storage device is charged from the at least one electrode, and the current source acts to increase a sensitivity of the sensor circuit.
Another embodiment of the invention may take the form of a method for determining a presence of a finger, comprising charging a storage capacitor a first time from a first voltage negatively compensated by a current sink, discharging the storage capacitor, charging the storage capacitor a second time, comparing the first time to the second time, and, in the event the second time is less than the first time, concluding a finger is present.
Various methods and apparatuses for negatively compensating the current charging the storage capacitor are described herein with particular reference to the figures.



BRIEF DESCRIPTION OF THE FIGURES
FIG. 1 depicts an exemplary trackpad sensor.
FIG. 2 depicts a circuit equivalent to the trackpad sensor of FIG. 1.
FIG. 3 is a timing diagram depicting the state operation of the circuit of FIG. 2.
FIG. 4 is a timing diagram showing the charging and discharging of the sense capacitor.
FIG. 5 depicts a resistor equivalent to a first switch, second switch, and first capacitor in the circuit of FIG. 2.
FIG. 6 depicts a resistive-capacitive circuit equivalent to the circuit of FIG. 2.
FIG. 7 depicts the circuit of FIG. 6 with a current sink connected thereto.
FIG. 8 depicts a timing diagram for the circuit of FIG. 7.
FIG. 9(a) depicts the circuit of FIG. 7 in a time-domain.
FIG. 9(b) depicts the circuit of FIGS. 7 and 9(a) in a s-domain.
FIG. 10 is a graph of current compensation versus sensitivity.



DETAILED DESCRIPTION OF THE INVENTION
I. Introduction
One embodiment of the invention takes the form of a device compensating for a loss in sensitivity of a sensor, such as a trackpad. The device may be standalone, integrated with the trackpad itself, or within the associated integrated circuit designed to measure relative electrode capacitances.
The embodiment generally employs a current source to negatively compensate for the current available to charge at least one capacitor (or other storage device) in the trackpad. The functioning of the various electrodes as capacitors is discussed in more detail below. For purposes of this overview, it should be understood that the electrodes making up the electrode grid of the trackpad broadly may be viewed as two capacitors: a sense capacitor and a storage capacitor.
By negatively compensating for the current charging the storage capacitor, the sensitivity of the trackpad may be enhanced. A “negative compensation” of a current, as used herein, is equivalent to a current sink. That is, the present embodiment sinks a portion of the current that would otherwise charge the storage capacitor, thus bleeding off some portion of the charging current.
Typically, when a finger is capacitively coupled to the sense electrode, the impedance of the sensor (as seen by a voltage source) decreases, and thus the charge available to charge the storage capacitor increases. This, in turn, translates to a greater charging current when a finger touches (or is proximate to) the trackpad sensor device, compared to when a finger is not present. As explained in greater detail below, the charging current (“enhanced current”) added through the finger's presence is a constant, regardless of the value of the base charging current.
By negatively compensating both base and enhanced currents with a fixed current sink, the enhanced current becomes a greater multiple of the base current. This, in turn, increases the sensor's sensitivity to the finger's presence.
Various methods and apparatuses for negatively compensating the current charging the storage capacitor are described herein with particular reference to the figures.
2. Capacitive Sensor Operation
Initially, it should be understood that a typical trackpad sensor 105 having rows and columns of sense electrodes 110, as depicted in FIG. 1, may be represented by an RC switching circuit 125. Such an exemplary circuit represent a single electrode 110 is shown, for example, in FIG. 2. With reference to FIG. 2, the typical trackpad sensor 105 operates by transferring charge from a sense electrode to a storage capacitor 120 at a given frequency f. The charging frequency may be emulated by the first 140, second 150, and third switches 160. Similarly, the sense electrode 110 may be represented by a sense capacitor 115. A voltage source 170 and comparator 180 complete the RC switching circuit model.
The operation of the switching circuit 125 will now be discussed. It should be noted that the sense capacitor 115 may not charge unless the first switch 140 is closed. Similarly, charge cannot be transferred between the sense 115 and storage capacitors 120 unless the first switch is open and the second switch 150 closed. (If the first and second switches are both closed, the storage and sense capacitors would both simply charge from the voltage source 170.) Further, in order to transfer charge, the third switch 160 must be open or current would simply bypass the storage capacitor 120 and sink to ground. Thus, the storage capacitor may accept voltage from the sense capacitor 115 only when the first switch 140 is open, the second switch 150 closed, and the third switch 160 open.
FIG. 3 is a timing diagram depicting the operation of the various switches and the transfer of charge between capacitors. Initially, the first switch 140 is closed to charge the sense capacitor 115 to the potential of the voltage source 170 (hereinafter represented by “Vdd”). Once the sense capacitor 115 reaches voltage Vdd, the first switch is opened and the second switch 150 closed. This effectively transfers at least a portion of the charge from the sense capacitor to the storage capacitor 120. The charge transfer requires a current flow from the sense capacitor 115 through the storage capacitor 120, which in turn diminishes the voltage drop across the sense capacitor (i.e., the voltage measured at the common switch point).
The first switch 140 stays open and the second switch 150 stays closed for a time equal to 1 divided by twice the frequency f (i.e., 1/2f), at which point the switches reverse. That is, after 1/2f seconds, the first switch closes and the second switch 150 opens. The sense capacitor 115 again charges and the storage capacitor 120 enters a steady state, neither charging nor discharging, except incidentally, because the third switch 160 remains open. After time 1/2f seconds, the first switch 140 again opens and the second switch again closes, thus once more transferring charge from the sense capacitor 115 to the storage capacitor 120. In this manner, charge is discretely transferred from the sense capacitor to the storage capacitor.
It should be noted that FIG. 3 depicts the charge of the sense capacitor 115 as increasing in a stepwise fashion. This is a slight simplification for illustrative purposes. In actuality, the vertical portion of each “step” (reflecting the close of the second switch 150) is actually curvilinear, as charge is not instantaneously transferred between the capacitors.
Theoretically, charge may be transferred between capacitors until each capacitor is charged to the voltage of the voltage source 170, namely Vdd. However, and as shown in FIG. 2, a first input of a comparator 180 is electrically connected to the second switch 150 and storage capacitor 120. The comparator's second input is electrically connected to a second voltage source 170, which presents a threshold voltage to the comparator. When the voltages at the comparator's first and second inputs are equal, the comparator 180 activates and asserts a “stop counter” signal. When the stop counter signal is asserted, the third switch 160 closes.
Closing the third switch 160 effectively shorts the storage capacitor 120, dropping the voltage across the capacitor to zero. Thus, charge is drained from the storage capacitor when the third switch 160 closes. This ultimately resets the storage capacitor to its initial, zero-charge state. The third switch typically does not open until the charge of the storage capacitor 120 is zero.
In addition to draining all charge from the storage capacitor 120, closing the third switch 160 drops the voltage seen by the comparator's first terminal below the threshold voltage. Accordingly, closing the third switch also resets the comparator 180 and ends assertion of the stop counter signal.
FIG. 4 generally depicts a timing diagram, showing the charging and discharging of the sense capacitor 115. The time between the opening of the third switch 160 and the assertion of the stop counter equals the time taken to scan the entire electrode grid of the trackpad. This time is generally referred to herein as “T_integrate.”
As is also apparent from FIG. 4, the third switch 160 actually closes some time after the stop counter is asserted. This is because the comparator 180 and switch are not ideal; a certain delay exists in the receipt and acknowledgement of the stop counter signal, as well as in the physical opening of the third switch. Thus, the storage capacitor 120 may often charge to a voltage above the threshold voltage. Further, the storage capacitor does not instantaneously discharge when the switch closes. Rather, it discharges its voltage at an increasingly slower rate, resulting in an exponential decay curve.
The switching circuit 125 model discussed with respect to FIGS. 2-4 may be simplified by substituting a resistor 130 for the first switch 140, second switch 150, and sense capacitor 115. Such a substitution reduces the circuit 125 to a basic resistive-capacitive (RC) circuit.
As previously mentioned, the first and second switches 150 sequentially close and open, with the first and second switches occupying different states. Each of the first and second switches completes an entire switching cycle (i.e., opens for a set time, then closes for the set time) at a frequency f. Accordingly, the charge transferred from the sense capacitor 115 to the storage capacitor 120 in a single cycle may be determined by applying the generic steady-state capacitance formula for a capacitor's charge to the present circuit 125. The generic capacitance formula is: ΔQ=ΔV*C. Applying this formula to the circuit shown in FIG. 2 yields: ΔQC1=(VA−VB)*C1, where VA is the voltage at point “A” of the circuit (i.e., Vdd), and VB is the voltage at point “B” of the circuit 125 (i.e., the voltage seen by the first input of the comparator 180. Similarly, C1 is the capacitance of the sense capacitor 115, and C2 (as discussed below) is the capacitance of the storage capacitor 120.
The current between point A and point B (iAB) is generally:




  
    i
    AB
  
  =
  
    
      
        Δ
        ⁢
        
          
        
        ⁢
        Q
      
      t
    
    =
    
      Δ
      ⁢
      
        
      
      ⁢
      Q
      *
      f
    
  




The change in charge ΔQ of the first capacitor may be substituted into this equation, such that:




  
    i
    AB
  
  =
  
    
      
        Δ
        ⁢
        
          
        
        ⁢
        Q
      
      t
    
    =
    
      
        Δ
        ⁢
        
          
        
        ⁢
        Q
        *
        f
      
      =
      
        
          (
          
            
              V
              A
            
            -
            
              V
              B
            
          
          )
        
        *
        
          C
          1
        
        ⁢
        f
      
    
  




The capacitance of the sense capacitor 115 and the switching frequency f (i.e., scan frequency of the trackpad) are constants. Accordingly, the portion of the circuit 125 in FIG. 2 made of the first switch 140, second switch 150, and sense capacitor has a linear behavior with respect to current flow, just as does a resistor 130. The resistance of this circuit segment may be computed as follows:



  
    
      i
      AB
    
    =
    
      
        i
        R
      
      =
      
        
          
            
              V
              A
            
            -
            
              V
              B
            
          
          R
        
        =
        
          
            (
            
              
                V
                A
              
              -
              
                V
                B
              
            
            )
          
          *
          
            C
            1
          
          ⁢
          f
        
      
    
  




  
    
      1
      R
    
    =
    
      
        
          
            (
            
              
                V
                A
              
              -
              
                V
                B
              
            
            )
          
          *
          
            C
            1
          
          ⁢
          f
        
        
          
            V
            A
          
          -
          
            V
            B
          
        
      
      =
      
        
          C
          1
        
        ⁢
        f
      
    
  




  
    R
    =
    
      1
      
        
          C
          1
        
        ⁢
        f
      
    
  



where R is the equivalent resistive value of the circuit segment. FIG. 5 depicts the circuit 125 of FIG. 2 with a resistor R 130 of equivalent resistance to the circuit segment substituted.
Replacing the first switch 140, second switch 150, and sense capacitor 115 with the equivalent resistor 130 permits relatively straightforward determination of the scan time T_integrate. Since the third switch 160 is a reset switch that closes only after the time T_integrate elapses, it is open from time zero until T_integrate is reached. Further, when the circuit 125 is initialized (i.e., time=zero), the voltage at point B is zero.
Given the value of the resistor 130 substituting for the first switch 140, second switch 150, and sense capacitor 115 (see FIG. 5), the integration time T_integrate may be determined. As previously discussed, the integration time is the amount of time required to charge the storage capacitor 120 to the voltage Vthreshold (i.e., the voltage required to trip the comparator 180).
Certain operating conditions of the circuit 125 shown in FIG. 6 may prove useful in determining T_integrate. For example, since the third switch 160 only closes to discharge the storage capacitor 120 after T_integrate is reached, it may be presumed that the third switch 160 is open during the charging of the storage capacitor. Thus, the voltage at the second point (point B) is zero at time zero.
Generally, the time-varying voltage v(t) for an RC circuit 125 may be expressed as follows:




  
    v
    ⁡
    
      (
      t
      )
    
  
  =
  
    
      v
      ∞
    
    ⁡
    
      (
      
        1
        -
        
          e
          
            
              -
              t
            
            RC
          
        
      
      )
    
  




Presuming the third switch 160 does not open, after infinite time, the voltage at the second point equals the input voltage of the RC circuit 125, or Vdd. Thus, specific solution for the circuit of FIG. 6 is:




  
    v
    ⁡
    
      (
      t
      )
    
  
  =
  
    V
    ⁢
    
      
    
    ⁢
    
      dd
      ⁡
      
        (
        
          1
          -
          
            e
            
              
                -
                t
              
              
                RC
                2
              
            
          
        
        )
      
    
  




This equation may be solved for the time necessary to trip the comparator 180, referred to herein as “ttrip.” Definitionally, at this time the voltage v(t) equals the threshold voltage. Thus:



  
    
      v
      ⁡
      
        (
        t
        )
      
    
    =
    
      
        V
        ⁢
        
          
        
        ⁢
        threshold
      
      =
      
        V
        ⁢
        
          
        
        ⁢
        
          dd
          ⁡
          
            (
            
              1
              -
              
                e
                
                  
                    -
                    
                      t
                      trip
                    
                  
                  
                    RC
                    2
                  
                
              
            
            )
          
        
      
    
  




  
    
      V
      ⁢
      
        
      
      ⁢
      threshold
    
    -
    
      V
      ⁢
      
        
      
      ⁢
      
        dd
        ⁡
        
          (
          
            1
            -
            
              e
              
                
                  -
                  
                    t
                    trip
                  
                
                
                  RC
                  2
                
              
            
          
          )
        
      
    
  




  
    
      
        V
        ⁢
        
          
        
        ⁢
        threshold
      
      
        V
        ⁢
        
          
        
        ⁢
        dd
      
    
    =
    
      1
      -
      
        e
        
          
            -
            
              t
              trip
            
          
          
            RC
            2
          
        
      
    
  




  
    
      
        
          V
          ⁢
          
            
          
          ⁢
          threshold
        
        
          V
          ⁢
          
            
          
          ⁢
          dd
        
      
      -
      1
    
    =
    
      -
      
        e
        
          
            -
            
              t
              trip
            
          
          
            RC
            2
          
        
      
    
  




  
    
      1
      -
      
        
          V
          ⁢
          
            
          
          ⁢
          threshold
        
        
          V
          ⁢
          
            
          
          ⁢
          dd
        
      
    
    =
    
      e
      
        
          -
          
            t
            trip
          
        
        
          RC
          2
        
      
    
  




  
    
      ln
      ⁡
      
        (
        
          1
          -
          
            
              V
              ⁢
              
                
              
              ⁢
              threshold
            
            
              V
              ⁢
              
                
              
              ⁢
              dd
            
          
        
        )
      
    
    =
    
      
        -
        
          t
          trip
        
      
      
        RC
        2
      
    
  




  
    
      
        RC
        2
        *
      
      ⁢
      
        ln
        ⁡
        
          (
          
            1
            -
            
              
                V
                ⁢
                
                  
                
                ⁢
                threshold
              
              
                V
                ⁢
                
                  
                
                ⁢
                dd
              
            
          
          )
        
      
    
    =
    
      
        
          -
          
            t
            trip
          
        
        ⁢
        
          

        
        -
        
          
            RC
            2
            *
          
          ⁢
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  
                    V
                    ⁢
                    
                      
                    
                    ⁢
                    threshold
                  
                  
                    V
                    ⁢
                    
                      
                    
                    ⁢
                    dd
                  
                
              
              )
            
          
        
      
      =
      
        t
        trip
      
    
  



Given a constant input voltage and threshold voltage, the integration time T_integrate may be expressed as a function of the resistor R 130 and the storage capacitor 120. Practically speaking, the sense electrodes 110 of any trackpad (or any other application) will always have an impedance greater than zero, and the sense capacitor 115 will always have a capacitance greater than zero. Thus, the time required to trip the comparator 180 will always be greater than zero. That is, in any practical application the time to trip the comparator will always occur after the start of the electrode grid scan process.
When a finger touches the trackpad surface, it is capacitively coupled to the electrode array at a corresponding point. Often, this is the intersection of sense electrodes 110 in the grid immediately beneath the finger, and possibly certain nearby intersections. This capacitive coupling between the sense electrode 100 in the array and the finger decreases the impedance of the electrode, and thus decreases the impedance of the corresponding resistor 130 in the equivalent circuit 125 of FIG. 6. The new impedance (Rnew) of the resistor R may be determined from the combined capacitance of the finger (Cfinger) and the sense capacitor 115 (Csense), as follows:



  
    
      C
      new
    
    =
    
      
        C
        sense
      
      +
      
        C
        finger
      
    
  




  
    
      R
      new
    
    =
    
      1
      
        
          C
          new
        
        ⁢
        f
      
    
  




  
    
      R
      new
    
    =
    
      1
      
        
          (
          
            
              C
              sense
            
            +
            
              C
              finger
            
          
          )
        
        ⁢
        f
      
    
  



Since the impedance of the substitute resistor 130 changes, so too does the integration time T_integrate. The integration time for the RC circuit 125 of FIG. 6, without a user's finger proximal to the sense electrode 100 (i.e., touching the trackpad), also may be referred to as tbase. Similarly, the integration time for the RC circuit 125 when the finger is proximal to the trackpad may be referred to herein as tfinger. The change between the integration times tbase and tfinger is found by computing the two integration times and taking the difference:



  
    
      t
      base
    
    =
    
      
        -
        
          RC
          2
          *
        
      
      ⁢
      
        ln
        ⁡
        
          (
          
            1
            -
            
              
                V
                ⁢
                
                  
                
                ⁢
                threshold
              
              
                V
                ⁢
                
                  
                
                ⁢
                dd
              
            
          
          )
        
      
    
  




  
    
      t
      finger
    
    =
    
      
        -
        
          R
          new
        
      
      ⁢
      
        C
        2
        *
      
      ⁢
      
        ln
        ⁡
        
          (
          
            1
            -
            
              
                V
                ⁢
                
                  
                
                ⁢
                threshold
              
              
                V
                ⁢
                
                  
                
                ⁢
                dd
              
            
          
          )
        
      
    
  




  
    
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    =
    
      
        t
        base
      
      -
      
        t
        finger
      
    
  




  
    
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    =
    
      
        
          -
          
            RC
            2
            *
          
        
        ⁢
        
          ln
          ⁡
          
            (
            
              1
              -
              
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  threshold
                
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  dd
                
              
            
            )
          
        
      
      -
      
        (
        
          
            -
            
              R
              new
            
          
          ⁢
          
            C
            2
          
          *
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  Vdd
                
              
              )
            
          
        
        )
      
    
  




  
    
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    =
    
      
        
          
            -
            
              RC
              2
              *
            
          
          ⁢
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  
                    V
                    ⁢
                    
                      
                    
                    ⁢
                    threshold
                  
                  
                    V
                    ⁢
                    
                      
                    
                    ⁢
                    dd
                  
                
              
              )
            
          
        
        +
        
          
            R
            new
          
          ⁢
          
            C
            2
          
          *
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  
                    V
                    ⁢
                    
                      
                    
                    ⁢
                    threshold
                  
                  
                    V
                    ⁢
                    
                      
                    
                    ⁢
                    dd
                  
                
              
              )
            
          
          ⁢
          
            

          
          ⁢
          Δ
          ⁢
          
            
          
          ⁢
          t
        
      
      =
      
        
          C
          2
        
        *
        
          ln
          ⁡
          
            (
            
              1
              -
              
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  threshold
                
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  dd
                
              
            
            )
          
        
        *
        
          (
          
            
              R
              new
            
            -
            R
          
          )
        
      
    
  



Thus, the change in integration time due to the finger's proximity to the trackpad is directly proportional to the capacitance of the storage capacitor 120. Accordingly, if the capacitance of the storage capacitor is increased, the base integration time, integration time when the finger is touching the trackpad, and the difference in integration times all increase. Accordingly, the integration time tfinger increases more quickly than the integration time tbase.
Similarly, the integration time tbase is directly proportional to the value of the resistor R 130, which represents the impedance of the sense electrode 100.
Finally, it should be noted that At is proportional to the difference between the electrode impedances R and Rnew. An increase in the storage capacitance C2 results in a greater Δt.
Just as the integration time (either with or without a finger proximate the trackpad) may be calculated, so too may the sensitivity of the trackpad sensor 105. As used herein, the “sensitivity” of the sensor is defined as the ratio of the change in integration time due to a finger's presence (i.e., Δt, as described above) and the baseline integration time tbase. Expressed mathematically, a sensitivity S for the present RC circuit 125 equals:



  
    S
    =
    
      
        Δ
        ⁢
        
          
        
        ⁢
        t
      
      
        t
        base
      
    
  




  
    S
    =
    
      
        
          C
          2
        
        *
        
          ln
          ⁡
          
            (
            
              1
              -
              
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  threshold
                
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  dd
                
              
            
            )
          
        
        *
        
          (
          
            
              R
              new
            
            -
            R
          
          )
        
      
      
        
          -
          
            RC
            2
            *
          
        
        ⁢
        
          ln
          ⁡
          
            (
            
              1
              -
              
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  threshold
                
                
                  V
                  ⁢
                  
                    
                  
                  ⁢
                  dd
                
              
            
            )
          
        
      
    
  




  
    S
    =
    
      
        (
        
          
            R
            new
          
          -
          R
        
        )
      
      
        -
        R
      
    
  




  
    S
    =
    
      1
      -
      
        
          R
          new
        
        R
      
    
  



In other words, for the present circuit 125 (and thus the trackpad sensor 105 in general) sensitivity is proportional to the impedance of the sense electrode 100 with the finger present, divided by the impedance of the sense electrode alone. Substituting for the two impedances indicates the sensitivity may alternately be expressed as a function of the electrode and finger capacitances, as follows:



  
    S
    =
    
      1
      -
      
        
          1
          
            
              (
              
                
                  C
                  1
                
                +
                
                  C
                  finger
                
              
              )
            
            ⁢
            f
          
        
        
          1
          
            
              C
              1
            
            ⁢
            f
          
        
      
    
  




  
    S
    =
    
      1
      -
      
        
          
            C
            1
          
          ⁢
          f
        
        
          
            (
            
              
                C
                1
              
              +
              
                C
                finger
              
            
            )
          
          ⁢
          f
        
      
    
  




  
    S
    =
    
      1
      -
      
        
          C
          1
        
        
          (
          
            
              C
              1
            
            +
            
              C
              finger
            
          
          )
        
      
    
  



If a default value is used for the finger's capacitance (such as an average or median value), the sensitivity may be relatively easily determined. Further, if the base integration time tbase is known through calculation, estimation, or direct measurement, Δt may be calculated:

Δt=S*tbase 

The sensitivity of the trackpad sensor 105 is essentially a measurement of how sensitive the trackpad is to the presence of a touching finger. The higher the sensitivity, the more easily the finger's presence may be detected. Accordingly, increasing a trackpad sensor's sensitivity will increase its ability to detect and properly position the finger. Thus, increasing the sensor's sensitivity will directly increase the performance of the sensor 105.
Reviewing the derivation of the change in integration time (i.e., Δt) indicates certain limitations on the operation of the RC circuit 125, and thus the basic trackpad sensor 105. First, increases of the integration time tfinger require proportional increases in the baseline integration time tbase. For example, when a sensor must be repeatedly scanned at a relatively high sample rate, and thus requires a quick scan time, the baseline integration time tfinger may be capped. This, in turn, limits the change in integration time and integration time when the finger is present (tfinger). In many present-art trackpad sensors, the change in electrode impedance due to the finger is around 1.2%, which is a relatively small change in impedance. As yet another example, the maximum storage value of a storage capacitor 120 employed in the trackpad may be limited by the available space, and thus, increasing the storage capacitance may not be an option available to increase sensitivity.
Second, in order to achieve an acceptable signal-to-noise ratio, high switching frequencies and storage capacitors 120 having a large capacitance are typically required. Both the high frequency and high-capacitance capacitor require additional power when compared to lower switching frequencies and lower-capacitance capacitors. Additionally, these factors may impact the sampling rate. Further, larger capacitors and high switching frequencies require certain mechanical considerations in the design and placement of the trackpad. Thus, where the capacitors are sufficiently large or the switching frequency too high, the resulting trackpad's size may be too large for inclusion in many computing systems. For example, a trackpad that is too thick, too wide, or too long may be too large in some dimension to be included in a notebook computer.
3. Current-Compensated Sensor Circuit
Current compensation may be added to the RC circuit 125 of FIG. 6 in order to increase sensitivity and maintain an acceptable signal-to-noise ratio, without increasing either capacitor size or sampling rate. Just as the RC circuit 125 may be current compensated as described below, so too may any sensor 105 that operates through capacitive coupling.
The current compensation discussed herein may be thought of as “negative” current compensation. That is, a current sink 190 may be added to the RC circuit to negatively compensate for current flowing through the storage capacitor 120. The current sink 190 effectively bleeds a constant current from the storage capacitor during the scanning process. FIG. 7 depicts an example of an RC circuit 195 corresponding to a trackpad sensor 105, with a current compensator/sink included.
The circuit 195 of FIG. 7 is similar to the circuit 125 depicted in FIG. 6. FIG. 7's RC circuit 195 again includes a voltage source 170, a resistor R 130 substituting for the first switch 140, second switch 150, and sense capacitor 115, a compensator, a third switch 160, and a storage capacitor 120. Also present, however, is the aforementioned current sink 190. Generally speaking, the current sink is connected across the storage capacitor in a manner similar to the third switch 160. The positive terminal of the current sink 190 is attached to the second point of the circuit 195, and the negative terminal is attached to ground. Thus, the current sink diverts current from the storage capacitor 120, draining current that would otherwise be available to charge the storage capacitor.
A brief discussion of the effect of the current sink 190 on the circuit 195, both when a finger touches the trackpad and when no finger is present, may prove useful in understanding the operation of the present embodiment 100.
First, presume a constant current is available in the RC circuit of FIG. 6 to charge the storage capacitor 120. Although the exact value of the constant current does not matter, for this example further presume the current is 10 milliamps. When a finger touches the trackpad, the capacitance of the sense capacitor 115 (FIG. 2) grows and the impedance of the equivalent resistor 130 R (FIG. 6) decreases. Thus, the current available to charge the storage capacitor 120 also increases. In the present example, presume the increased current with the finger proximate the trackpad is 11 milliamps. (Again, the exact value is irrelevant; all that matters is the fact that the current is greater when the finger touches the trackpad than when the finger is not present.) Since the charging rate of the storage capacitor 120 is a linear function of available current, the storage capacitor charges 10% faster when the finger touches the trackpad than when the finger does not touch the trackpad.
Next, consider the same circuit 195 with a current sink 190 in place, as shown in FIG. 7. Presuming the current sink is a 9 milliamp current source 170, 9 milliamps of current are drained that would otherwise be available to charge the storage capacitor 120. Thus, when the finger is not touching the trackpad, a single milliamp charges the storage capacitor. Similarly, when the finger is present, two milliamps charge the storage capacitor (since the finger's presence lowers the impedance sufficiently to provide a single milliamp of additional current at point B).
Accordingly, with the current sink 190 operating, twice the current is available to charge the storage capacitor 120 when a finger touches the trackpad than when no finger is present. In other words, the finger's presence provides a 100% increase in charge current.
In this manner, negative current compensation may increase the sensitivity of the sensing circuit 195 shown in FIG. 7. Additionally, because current is diverted from the storage capacitor 120, the current sink 190 may also increase the time T_integrate required to fully charge the storage capacitor to the threshold voltage and trip the comparator 180. Practically speaking, there must be sufficient current to charge the storage capacitor 120 in a timely manner (i.e., to charge the capacitor in a sufficiently short time to support the desired scan frequency). Within that parameter, however, negative current compensation may effectively increase the sensitivity of the trackpad sensor 105.
The increased sensitivity and integration time may be determined for the modified RC circuit 195 of FIG. 7. The primary difference between the integration time and sensitivity for the modified RC circuit, when compared to the RC circuit of FIG. 6, is the presence of the current sink 190.
FIG. 8 depicts the initial conditions of the modified sensing circuit 195. As shown in FIG. 8, at the initial time (i.e., t=0) all voltage 170 and current sources 190, as well as the third switch 160, activate. The sources and switch remain on at least until the scan is complete after time T_integrate (i.e., at time ttrip). As with the unmodified sensing circuit 125 of FIG. 2, the voltage of the storage capacitor 120 may charge beyond the threshold voltage Vthreshold, because the third switch's closure may be delayed after the stop counter is asserted due to mechanical limitations.
Once the sensor 105 scan is complete, the circuit 195 completely resets before the next scan.
FIG. 9(a) depicts the time-domain representation of the modified sensor circuit 195, and FIG. 9(b) depicts the modified sensor circuit in the s-domain. As shown below, converting the modified circuit 195 into the s-domain simplifies the determination of the integration time.
Table 1 shows the time domain values and s-domain values for various circuit elements. Each of the time domain values may be converted to the corresponding s-domain value through application of a Laplace transform.











TABLE 1







Element
Time Domain
s-Domain









Voltage Source
V(t)
V(s)



Current Source
I(t)
I(s)



Voltage across
i(t)*R
I(s)*R + VR(0)



Resistor



 



Voltage across Capacitor




  C
  ⁢
  
    
      d
      v
    
    
      d
      t
    
  








  
    
      I
      ⁡
      
        (
        s
        )
      
    
    *
    
      1
      Cs
    
  
  +
  
    
      V
      ⁡
      
        (
        0
        )
      
    
    s
  







 



Unit Step Function
u(t)




  1
  s














The voltage at the second point forms the starting point for derivation of the integration time for the current-compensated sensor circuit 195. Applying Kirchoff's Law to the voltage at the second point yields:



  
    
      
        
          
            Vdd
            *
            
              u
              ⁡
              
                (
                t
                )
              
            
          
          -
          
            v
            ⁡
            
              (
              t
              )
            
          
        
        R
      
      -
      
        C
        ⁢
        
          
            d
            v
          
          
            d
            t
          
        
      
      -
      
        
          i
          E
        
        ⁢
        
          u
          ⁡
          
            (
            t
            )
          
        
      
    
    =
    0
  




  
    
      
        
          Vdd
          *
          
            u
            ⁡
            
              (
              t
              )
            
          
        
        -
        
          v
          ⁡
          
            (
            t
            )
          
        
      
      R
    
    =
    
      
        C
        ⁢
        
          
            d
            v
          
          
            d
            t
          
        
      
      +
      
        
          i
          E
        
        ⁢
        
          u
          ⁡
          
            (
            t
            )
          
        
      
    
  



The above formulae express the currents entering and leaving the charging node of the storage capacitor 120. The term “u(t)” denotes the unit step function, which models the turning on of the various sources 170, 190 (and the third switch 160) at time zero. In the time domain u(t)'s value is one at any time greater than zero. Thus, time-domain analysis may safely ignore the unit step function, since it simply represents multiplication by one in the above equations. The term “v(t)” represents the time-varying voltage at the second point.
In the s-domain, however, the activation of the various sources 170, 190 may not be ignored, insofar as they have an effect on the circuit model. The above equations in the time domain may be converted to the s-domain through the application of the appropriate transform, yielding the following::




  
    
      
        Vdd
        *
        
          u
          ⁡
          
            (
            t
            )
          
        
      
      -
      
        v
        ⁡
        
          (
          t
          )
        
      
    
    R
  
  =
  
    
      
        
          C
          ⁢
          
            
              d
              
                v
                ⁡
                
                  (
                  t
                  )
                
              
            
            
              d
              t
            
          
        
        +
        
          
            i
            E
          
          ⁢
          
            u
            ⁡
            
              (
              t
              )
            
          
        
      
      ⇒
      
        
          
            Vdd
            s
          
          -
          
            v
            ⁡
            
              (
              s
              )
            
          
        
        R
      
    
    =
    
      
        
          v
          ⁡
          
            (
            s
            )
          
        
        
          
            (
            
              sC
              2
            
            )
          
          
            -
            1
          
        
      
      +
      
        
          i
          E
        
        s
      
    
  




Here, iE is the current generated by the current sink 190 (as shown in FIGS. 7 and 9(a)). Accordingly, it can already be seen that the current sink affects the voltage at the second point.
The s-domain calculation may be further simplified by isolating the s-domain voltage v(s) and separating terms, as follows:



  
    
      
        
          Vdd
          s
        
        -
        
          v
          ⁡
          
            (
            s
            )
          
        
      
      R
    
    =
    
      
        
          v
          ⁡
          
            (
            s
            )
          
        
        
          
            (
            
              sC
              2
            
            )
          
          
            -
            1
          
        
      
      +
      
        
          i
          E
        
        s
      
    
  




  
    
      
        
          Vdd
          s
        
        -
        
          v
          ⁡
          
            (
            s
            )
          
        
      
      R
    
    =
    
      
        
          v
          ⁡
          
            (
            s
            )
          
        
        *
        
          sC
          2
        
      
      +
      
        
          i
          E
        
        s
      
    
  




  
    
      
        Vdd
        s
      
      -
      
        v
        ⁡
        
          (
          s
          )
        
      
    
    =
    
      
        
          v
          ⁡
          
            (
            s
            )
          
        
        *
        
          sRC
          2
        
      
      +
      
        
          Ri
          E
        
        s
      
    
  




  
    
      
        Vdd
        -
        
          Ri
          E
        
      
      s
    
    =
    
      
        
          v
          ⁡
          
            (
            s
            )
          
        
        *
        
          sRC
          2
        
      
      +
      
        v
        ⁡
        
          (
          s
          )
        
      
    
  




  
    
      
        Vdd
        -
        
          Ri
          E
        
      
      s
    
    =
    
      
        v
        ⁡
        
          (
          s
          )
        
      
      ⁢
      
        (
        
          
            sRC
            2
          
          +
          1
        
        )
      
    
  




  
    
      
        Vdd
        -
        
          Ri
          E
        
      
      
        s
        ⁡
        
          (
          
            
              sRC
              2
            
            +
            1
          
          )
        
      
    
    =
    
      v
      ⁡
      
        (
        s
        )
      
    
  




  
    
      
        
          (
          
            Vdd
            -
            
              Ri
              E
            
          
          )
        
        ⁢
        
          1
          RC
        
      
      
        
          s
          ⁡
          
            (
            
              
                sRC
                2
              
              +
              1
            
            )
          
        
        ⁢
        
          1
          
            RC
            2
          
        
      
    
    =
    
      v
      ⁡
      
        (
        s
        )
      
    
  




  
    
      
        
          (
          
            Vdd
            -
            
              Ri
              E
            
          
          )
        
        ⁢
        
          1
          
            RC
            2
          
        
      
      
        s
        ⁡
        
          (
          
            s
            +
            
              1
              
                RC
                2
              
            
          
          )
        
      
    
    =
    
      v
      ⁡
      
        (
        s
        )
      
    
  



For convenience, one may define Vdd-RiE to equal the variable A, and the variable




  α
  =
  
    
      1
      
        RC
        2
      
    
    .
  




Given these definitions, the above equation for the voltage v(s) matches the generalized inverse Laplace transform:





  
    v
    ⁡
    
      (
      t
      )
    
  
  =
  
    
      
        A
        ⁡
        
          (
          
            1
            -
            
              e
              
                
                  -
                  α
                
                ⁢
                
                  
                
                ⁢
                t
              
            
          
          )
        
      
      ⇔
      
        v
        ⁡
        
          (
          s
          )
        
      
    
    =
    
      
        A
        ⁢
        
          
        
        ⁢
        α
      
      
        s
        ⁡
        
          (
          
            s
            +
            α
          
          )
        
      
    
  




The specific solution for the modified RC circuit 195 of FIG. 9(a) in the time domain is:




  
    v
    ⁡
    
      (
      t
      )
    
  
  =
  
    
      (
      
        Vdd
        -
        
          Ri
          E
        
      
      )
    
    ⁢
    
      (
      
        1
        -
        
          e
          
            
              -
              t
            
            
              RC
              2
            
          
        
      
      )
    
  




Given this generalized solution, the integration time T_integrate may be calculated. As previously discussed, the integration time is generally reached when the storage capacitor's voltage 120 reaches the threshold voltage (Vthreshold). Thus, once the above equation is solved for the time at which v(t) equals Vthreshold, the time T_integrate will be known. As before, since the circuit 195 of FIG. 9 does not include the changes to capacitance or resistance due to a finger's proximity, the time T_integrate for the present case will be referred to as “tbase.”



  
    
      v
      ⁡
      
        (
        t
        )
      
    
    =
    
      Vthreshold
      =
      
        
          (
          
            Vdd
            -
            
              Ri
              E
            
          
          )
        
        ⁢
        
          (
          
            1
            -
            
              e
              
                
                  -
                  
                    t
                    base
                  
                
                
                  RC
                  2
                
              
            
          
          )
        
      
    
  




  
    
      Vthreshold
      
        (
        
          Vdd
          -
          
            Ri
            E
          
        
        )
      
    
    =
    
      1
      -
      
        e
        
          
            -
            
              t
              base
            
          
          
            RC
            2
          
        
      
    
  




  
    
      1
      -
      
        Vthreshold
        
          (
          
            Vdd
            -
            
              Ri
              E
            
          
          )
        
      
    
    =
    
      e
      
        
          -
          
            t
            base
          
        
        
          RC
          2
        
      
    
  




  
    
      ln
      ⁡
      
        (
        
          1
          -
          
            Vthreshold
            
              (
              
                Vdd
                -
                
                  Ri
                  E
                
              
              )
            
          
        
        )
      
    
    =
    
      
        
          
            -
            
              t
              base
            
          
          
            RC
            2
          
        
        ⁢
        
          

        
        -
        
          
            RC
            2
          
          ⁢
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  
                    (
                    
                      Vdd
                      -
                      
                        Ri
                        E
                      
                    
                    )
                  
                
              
              )
            
          
        
      
      =
      
        t
        base
      
    
  



As discussed previously, the proximate presence of a finger to the trackpad sensor 105 (i.e., sensor circuit 195 of FIG. 9) increases the impedance R of the electrode. To restate, the new impedance when the finger touches the trackpad sensor is the sum of the capacitances of the finger and the sense electrode 100, as follows:



  
    
      C
      new
    
    =
    
      
        C
        1
      
      +
      
        C
        finger
      
    
  




  
    
      R
      new
    
    =
    
      1
      
        
          C
          new
        
        ⁢
        f
      
    
  




  
    
      R
      new
    
    =
    
      1
      
        
          (
          
            
              C
              1
            
            +
            
              C
              finger
            
          
          )
        
        ⁢
        f
      
    
  



Given this data, the new values for tbase and tfinger in the circuit 195 of FIG. 9 may be derived. As shown below, these values are different from the previous values, due to the presence of the current sink/current compensator 190. Accordingly, the difference between the two times also changes:



  
    
      t
      base
    
    =
    
      
        -
        
          RC
          2
        
      
      *
      
        ln
        ⁡
        
          (
          
            1
            -
            
              Vthreshold
              
                Vdd
                -
                
                  Ri
                  E
                
              
            
          
          )
        
      
    
  




  
    
      t
      finger
    
    =
    
      
        -
        
          R
          new
        
      
      ⁢
      
        C
        2
      
      *
      
        ln
        ⁡
        
          (
          
            1
            -
            
              Vthreshold
              
                Vdd
                -
                
                  
                    R
                    new
                  
                  ⁢
                  
                    i
                    E
                  
                
              
            
          
          )
        
      
    
  




  
    
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    =
    
      
        t
        base
      
      -
      
        t
        finger
      
    
  




  
    
      Δ
      ⁢
      
        
      
      ⁢
      t
    
    =
    
      
        
          -
          
            RC
            2
          
        
        *
        
          ln
          ⁡
          
            (
            
              1
              -
              
                Vthreshold
                
                  Vdd
                  -
                  
                    Ri
                    E
                  
                
              
            
            )
          
        
      
      +
      
        
          R
          new
        
        ⁢
        
          C
          2
        
        *
        
          ln
          ⁡
          
            (
            
              1
              -
              
                Vthreshold
                
                  Vdd
                  -
                  
                    
                      R
                      new
                    
                    ⁢
                    
                      i
                      E
                    
                  
                
              
            
            )
          
        
      
    
  



Unlike with respect to the circuit 125 of FIG. 6, the terms in the equations used to determine both tbase and tfinger do not combine and cancel. This is because both the natural logarithm term and RC term both change as the electrode impedance changes.
Given the change in time, the sensitivity of the current-compensated RC circuit 195 may be determined, as follows:



  
    S
    =
    
      
        Δ
        ⁢
        
          
        
        ⁢
        t
      
      
        t
        base
      
    
  




  
    S
    =
    
      
        
          
            
              
                
                  -
                  
                    RC
                    2
                  
                
                *
                
                  ln
                  ⁡
                  
                    (
                    
                      1
                      -
                      
                        Vthreshold
                        
                          Vdd
                          -
                          
                            Ri
                            E
                          
                        
                      
                    
                    )
                  
                
              
              +
            
          
        
        
          
            
              
                R
                new
              
              ⁢
              
                C
                2
              
              *
              
                ln
                ⁡
                
                  (
                  
                    1
                    -
                    
                      Vthreshold
                      
                        Vdd
                        -
                        
                          
                            R
                            new
                          
                          ⁢
                          
                            i
                            E
                          
                        
                      
                    
                  
                  )
                
              
            
          
        
      
      
        
          -
          
            RC
            2
          
        
        *
        
          ln
          ⁡
          
            (
            
              1
              -
              
                Vthreshold
                
                  Vdd
                  -
                  
                    Ri
                    E
                  
                
              
            
            )
          
        
      
    
  




  
    S
    =
    
      1
      -
      
        
          
            R
            new
          
          ⁢
          
            C
            2
          
          *
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  
                    Vdd
                    -
                    
                      
                        R
                        new
                      
                      ⁢
                      
                        i
                        E
                      
                    
                  
                
              
              )
            
          
        
        
          
            RC
            2
          
          *
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  
                    Vdd
                    -
                    
                      Ri
                      E
                    
                  
                
              
              )
            
          
        
      
    
  




  
    S
    =
    
      1
      -
      
        
          
            R
            new
          
          *
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  
                    Vdd
                    -
                    
                      
                        R
                        new
                      
                      ⁢
                      
                        i
                        E
                      
                    
                  
                
              
              )
            
          
        
        
          R
          *
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  
                    Vdd
                    -
                    
                      Ri
                      E
                    
                  
                
              
              )
            
          
        
      
    
  



The calculation for a current-compensated RC circuit 195 maybe compared to the sensitivity calculation for a non-current compensated RC, circuit, which is represented here by Sold:



  
    
      S
      old
    
    =
    
      
        R
        new
      
      R
    
  




  
    
      S
      old
    
    =
    
      1
      -
      
        
          C
          1
        
        
          (
          
            
              C
              1
            
            +
            
              C
              finger
            
          
          )
        
      
    
  



Contrasting the sensitivity of a non-current-compensated sensor circuit 125 with the sensitivity of a current-compensated circuit 195 reveals certain differences. The current-compensated circuit's sensitivity varies not only with the capacitance of the finger, but also on the ratio of natural logarithmic terms. The logarithmic terms, in turn, vary with the impedance of the circuit 195, as adjusted for the presence of the finger, multiplied by the compensating current produced by the current sink 190.
The above calculation may be simplified by substituting capacitances for the resistances, as follows:




  S
  =
  
    1
    -
    
      
        (
        
          
            C
            1
          
          
            
              C
              1
            
            +
            
              C
              finger
            
          
        
        )
      
      ⁢
      
        
          ln
          ⁡
          
            (
            
              1
              -
              
                Vthreshold
                
                  Vdd
                  -
                  
                    
                      i
                      E
                    
                    
                      
                        (
                        
                          
                            C
                            1
                          
                          +
                          
                            C
                            finger
                          
                        
                        )
                      
                      ⁢
                      f
                    
                  
                
              
            
            )
          
        
        
          ln
          ⁡
          
            (
            
              1
              -
              
                Vthreshold
                
                  Vdd
                  -
                  
                    
                      i
                      E
                    
                    
                      
                        C
                        1
                      
                      ⁢
                      f
                    
                  
                
              
            
            )
          
        
      
    
  




Thus, the sensitivity for a current-compensated sensing circuit 195 depends not only on electrode and finger capacitances, but also is affected by the compensating current. Indeed, as the compensating current increases (or more appropriately, as the negative compensating current increases), the sensitivity asymptotically increases as shown in FIG. 10.
As FIG. 10 depicts, the current compensation percentage of a current-compensated circuit 195 cannot exceed the ratio of Vthreshold to Vdd, insofar as the ratio of change in time to base integration time increases asymptotically. In FIG. 10, Vthreshold is 50% of Vdd, and thus the asymptote is at 50%. If Vthreshold were 75% of Vdd, then the current compensation percentage may be 75%. (“Base integration time” refers to the time T_integrate when no finger is proximate the trackpad sensor 105.) The graph of FIG. 10 expresses current compensation as a percentage of the current available to the storage capacitor 120 when no current sink 190 is included. Thus, if a storage capacitor sees a 6 milliamp current without any current sink implemented, the current sink 190 cannot provide a compensating current above three milliamps if the sensor circuit 195 is to continue to operate.
Generally speaking, current compensation operates best in sensor circuits 105 having a relatively low initial, non-compensated sensitivity. That is, current compensation may prove most useful where the non-compensated sensitivity is approximately 1.5% or below, for example. Given a low initial, non-compensated sensitivity, small absolute gains in sensitivity translate to large gain factors. For example, where the non-compensated sensitivity of a sensor circuit 105 is 1.5% and current compensation provides an additional 3% sensitivity gain, the gain factor is 3×.
Additionally, it should be noted that the addition of a current sink 190 to a sensor circuit 105 may increase temperature dependence in the circuit. As the circuit's temperature changes, so may the current compensation ratio of the modified circuit. This, in turn, may affect the gain of the modified circuit 195.
An illustration of a sensor's sensitivity to a finger's proximity may be useful in illustrating the effect of the current sink 190 on sensitivity. Referring again to the non-compensated circuit 125 of FIG. 6 and the compensated/modified circuit 195 of FIG. 9, sensitivity will be calculated for each, using the above formulae. Since the non-compensated circuit and modified circuit 195 are functionally identical except for the presence of the current sink, identical parameters will be used for both circuits. By using the same parameters, the difference in sensitivity between circuits will be solely due to current compensation. The various circuit parameters follow:

















Vdd:
3.3
V



Vthreshold:
1.6
V



Electrode self Capacitance (C1)
40
pF



C2 (Integration cap)
22
nF



Cfinger
0.5
pF



f (switch frequency)
12
MHz










Given these values, the baseline time T_integrate (i.e., tbase) and resulting sensitivity Son, as well as a number of counts necessary to charge the storage capacitor 120 to Vthreshold (base). First, the baseline time and number of counts equal:



  
    
      
        t
        base
      
      =
      
        
          -
          
            RC
            2
          
        
        *
        
          ln
          ⁡
          
            (
            
              1
              -
              
                Vthreshold
                Vdd
              
            
            )
          
        
      
    
    ,
    
      
    
    ⁢
    
      
        where
        ⁢
        
          
        
        ⁢
        R
      
      =
      
        
          1
          /
          
            C
            1
          
        
        ⁢
        f
      
    
  




  
    
      t
      base
    
    =
    
      
        
          -
          1
        
        
          
            C
            1
          
          ⁢
          f
        
      
      ⁢
      
        C
        2
      
      *
      
        ln
        ⁡
        
          (
          
            1
            -
            
              Vthreshold
              Vdd
            
          
          )
        
      
    
  




  
    
      t
      base
    
    =
    
      
        
          -
          1
        
        
          
            (
            
              
                40
                ⁢
                E
              
              -
              
                12
                ⁢
                F
              
            
            )
          
          *
          
            (
            
              12
              ⁢
              E
              ⁢
              
                
              
              ⁢
              6
              ⁢
              
                
              
              ⁢
              Hz
            
            )
          
        
      
      ⁢
      
        (
        
          
            22
            ⁢
            E
          
          -
          
            9
            ⁢
            F
          
        
        )
      
      *
      
        ln
        ⁡
        
          (
          
            1
            -
            
              
                1.6
                ⁢
                V
              
              
                3.3
                ⁢
                V
              
            
          
          )
        
      
    
  




  
    
      t
      base
    
    =
    
      30.4
      ⁢
      
        
      
      ⁢
      
        μ
        ⁢
        s
      
    
  




  
    
      n
      base
    
    =
    
      
        30.4
        ⁢
        
          
        
        ⁢
        us
        *
        f
      
      =
      
        
          30.4
          ⁢
          
            
          
          ⁢
          us
          *
          12
          ⁢
          
            
          
          ⁢
          MHz
        
        =
        
          365
          ⁢
          
            
          
          ⁢
          counts
        
      
    
  



Next, sensitivity may be determined:



  
    S
    =
    
      1
      -
      
        
          C
          1
        
        
          (
          
            
              C
              1
            
            +
            
              C
              finger
            
          
          )
        
      
    
  




  
    S
    =
    
      1
      -
      
        
          40
          ⁢
          
            
          
          ⁢
          pF
        
        
          (
          
            
              40
              ⁢
              
                
              
              ⁢
              pF
            
            +
            
              0.5
              ⁢
              
                
              
              ⁢
              pF
            
          
          )
        
      
    
  




  
    S
    =
    
      1.23
      ⁢
      %
    
  



From these values, the change in time (Δt) and change in counts (Δn) may be determined:

Δt=S*tbase=0.0123*30.4 us=0.375 us

Δn=Δt*12 MHz=4.5 counts

Additionally, the scan time for any number of electrodes in the trackpad sensor 105 may be computed. Generally the scan time equals the base integration time multiplied by the number of electrodes. Accordingly, if one presumes the trackpad sensor 105 equivalent to the circuit of FIG. 6 has 48 electrodes, the scan time Scan would be:

tbase=30.4 μp

electrodes=48

tscan=tbase*electrodes

tscan=30.4 μs*48

tscan=1.46 ms

A similar set of calculations may be made for the current-compensated circuit 195 of FIG. 9. Here, all circuit values are identical to those in the example above, and a 500 milliamp current sink 190 is applied. This results in a sensitivity of:



  
    S
    =
    
      1
      -
      
        
          (
          
            
              C
              1
            
            
              
                C
                1
              
              +
              
                C
                finger
              
            
          
          )
        
        ⁢
        
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  
                    Vdd
                    -
                    
                      
                        i
                        E
                      
                      
                        
                          (
                          
                            
                              C
                              1
                            
                            +
                            
                              C
                              finger
                            
                          
                          )
                        
                        ⁢
                        f
                      
                    
                  
                
              
              )
            
          
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  Vthreshold
                  
                    Vdd
                    -
                    
                      
                        i
                        E
                      
                      
                        
                          C
                          1
                        
                        ⁢
                        f
                      
                    
                  
                
              
              )
            
          
        
      
    
  




  
    S
    =
    
      1
      -
      
        
          (
          
            
              
                40
                ⁢
                E
              
              -
              
                12
                ⁢
                
                  
                
                ⁢
                pF
              
            
            
              
                40.5
                ⁢
                E
              
              -
              
                12
                ⁢
                
                  
                
                ⁢
                pF
              
            
          
          )
        
        ⁢
        
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  
                    1.6
                    ⁢
                    V
                  
                  
                    
                      3.3
                      ⁢
                      V
                    
                    -
                    
                      
                        
                          500
                          ⁢
                          E
                        
                        -
                        
                          6
                          ⁢
                          A
                        
                      
                      
                        
                          40.5
                          ⁢
                          E
                        
                        -
                        
                          12
                          ⁢
                          
                            
                          
                          ⁢
                          pF
                          *
                          12
                          ⁢
                          E
                          ⁢
                          
                            
                          
                          ⁢
                          6
                          ⁢
                          
                            
                          
                          ⁢
                          Hz
                        
                      
                    
                  
                
              
              )
            
          
          
            ln
            ⁡
            
              (
              
                1
                -
                
                  
                    1.6
                    ⁢
                    V
                  
                  
                    
                      3.3
                      ⁢
                      V
                    
                    -
                    
                      
                        
                          500
                          ⁢
                          E
                        
                        -
                        
                          6
                          ⁢
                          A
                        
                      
                      
                        
                          40
                          ⁢
                          E
                        
                        -
                        
                          12
                          ⁢
                          
                            
                          
                          ⁢
                          pF
                          *
                          12
                          ⁢
                          E
                          ⁢
                          
                            
                          
                          ⁢
                          6
                          ⁢
                          
                            
                          
                          ⁢
                          Hz
                        
                      
                    
                  
                
              
              )
            
          
        
      
    
  




  
    S
    =
    
      2.33
      ⁢
      %
    
  



As noted above, the sensitivity of the trackpad sensor 105 without current compensation is approximately 1.23%. The same sensor, with a compensating current of 500 milliamps applied, has approximately a 90% gain in sensitivity. The current-compensated sensitivity is 189% that of the non-compensated sensitivity at a power cost of 500 milliamps.
4. Conclusion
Current compensation may be applied to any capacitive sensor. For example, in addition to the two-dimensional sensor described herein, one-dimensional or point sensor may benefit from current compensation. A finger-actuated scroll pad may take the place of a mouse wheel and is one example of a one-dimensional sensor. Similarly, a touch-sensitive button or pad may detect whether or not a finger is touching it. Both devices' sensitivity may be increased through current compensation.
Additionally, it should be understood that the present invention may be integrated into any object, apparatus, or device that uses capacitance to detect a touching object. Thus, not only computer peripherals, but also security devices (such as keypads or fingerprint sensors), touch-sensitive remote controls, and other electronic devices may employ embodiments of the present invention.
Further, a variety of elements may operate as the current sink described herein. A switched capacitor, switched resistor, current follower, transistor, active current sink (such as an operational amplifier), traditional current source, or any combination of the above may act as a current sink in various embodiments of the present invention.
Although the present invention is described with a particular embodiment taking the form of a trackpad sensor 105, it should be understood that the inventive concepts described herein may be applied to a variety of electronic, capacitive-sensing devices. For example, biometric scanners and security devices (such as fingerprint scanners) may also benefit from current compensation. Similarly, it should be understood that yet another facet of the present invention is the methodology for matching a given current compensation with an existing or designed circuit to achieve a specific gain in sensitivity or to accommodate a particular power consumption. One may, for example, automate the various calculations described herein to operate on a computing device, or to take the form of computing hardware or computer-executable software, that can accept as an input a given circuit design and provide as an output a design for a current-compensated circuit.
Further, although the present invention has been described with respect to particular embodiments and methods of operation, additional embodiments and methods of operation will be apparent to those skilled in the art upon reading this disclosure. Accordingly, the proper scope of this invention is defined by the appended claims.

## Claims

1. A sensor circuit, comprising:
at least a first electrode;
a storage device operatively connected to the first electrode;
a source operative to charge at least the first electrode; and
a current source operatively connected to the storage device and sinking a portion of a current while a remainder of the current is charging the storage device; wherein
the storage device is charged from the first electrode.

2. The sensor circuit of claim 1, wherein the storage device is a capacitor.

3. The sensor circuit of claim 1, further comprising:
a surface overlaying the at least one electrode; wherein
the surface is operative to capacitively couple a finger touching the surface to the first electrode.

4. The sensor circuit of claim 3, wherein the tracking sensor operates in at least one dimension.

5. The sensor circuit of claim 1, wherein the sensor circuit is a tracking sensor.

6. The sensor circuit of claim 1, wherein the sensor is a touch button.

7. The sensor circuit of claim 6, wherein the tracking sensor operates in two dimensions.

8. The sensor circuit of claim 1, wherein the current source comprises a switched capacitor.

9. The sensor circuit of claim 1, wherein the current source comprises a switched resistor.

10. The sensor circuit of claim 1, wherein the current source comprises a current follower.

11. The sensor circuit of claim 1, wherein the sensor circuit comprises an active current sink.

12. The sensor circuit of claim 1, further comprising a comparator operatively connected to the storage device.

13. The sensor circuit of claim 12, further comprising a switch operatively connected to the storage device.

14. The sensor circuit of claim 13, wherein:
the comparator is operative to close the switch when the storage device reaches a preset voltage; and
the switch is operative to drain a voltage from the storage device when the switch closes.

15. The sensor circuit of claim 14, further comprising:
a first switch connected between the first electrode and the voltage source; and
a second switch connected between the first electrode and second electrode; wherein
the opening and closing of the first and second switches is operative to charge the first and second electrodes at a given frequency.

16. A method for determining a presence of a finger, comprising:
charging a storage capacitor for a first time while a first voltage is negatively compensated by a current sink by sinking a portion of a current while a remainder of the current charges the storage capacitor;
discharging the storage capacitor;
charging the storage capacitor for a second time;
comparing the first time to the second time; and
in the event the second time is less than the first time, concluding a finger is present.

17. The method of claim 16, wherein the step of charging a capacitor a first time comprises:
charging the storage capacitor from a current generated by a sense capacitor at a given frequency.

18. The method of claim 17, wherein the step of charging the storage capacitor a second time comprises:
charging the storage capacitor from a current generated by a sense capacitor at a given frequency; and
negatively compensating the current before the current charges the storage capacitor.

19. The method of claim 18, further comprising charging the sense capacitor at a given frequency from a voltage source.

20. The method of claim 19, wherein the application of the negative compensation to the current increases a sensitivity of the sense capacitor to the presence of a finger.

21. The method of claim 20, further comprising:
determining whether a voltage of the storage capacitor exceeds a threshold voltage;
in the event the voltage of the storage capacitor exceeds the threshold voltage, closing a switch; and
in response to closing the switch, resetting the voltage of the storage capacitor.

22. The method of claim 21, wherein:
the operation of negatively compensating the current comprises:
connecting the current source and the storage capacitor to a common node; and
draining at least a portion of the current from the common node such that the drained portion of the current cannot charge the storage capacitor.

23. The method of claim 16, wherein the current is negatively compensated by applying a current source to the current.