Method for controlling the amplitude and phase of a signal

The R-2R ladder circuit and variable capacitor system in capacitive sensors adjust the offset signal to match detection signal characteristics, addressing detection challenges by enhancing sensitivity and accuracy in object detection.

JP7559317B2Active Publication Date: 2024-10-02ALPS ALPINE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023515235
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-15
Filing Date
2021-09-02
Publication Date
2024-10-02
Estimated Expiration
2041-09-02

AI Technical Summary

Technical Problem

Capacitive sensors face challenges in accurately detecting contact or proximity of objects due to small signal changes, making it difficult to distinguish between the presence and absence of an object, especially when parasitic capacitances affect the amplitude and phase of the detection signal.

Method used

An R-2R ladder circuit operating in voltage mode is used to generate an offset signal that matches the amplitude and phase of the detection signal when no object is present, combined with a variable capacitor to adjust the phase and a differential amplifier for precise signal comparison, enhancing detection accuracy.

Benefits of technology

The solution allows for improved detection of object contact and proximity by ensuring the offset signal aligns with the detection signal, effectively amplifying and filtering noise to enhance sensitivity and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559317000001
    Figure 0007559317000001
  • Figure 0007559317000002
    Figure 0007559317000002
  • Figure 0007559317000003
    Figure 0007559317000003
Patent Text Reader

Abstract

A system for generating an offset signal for a capacitive sensor includes a waveform generator configured to generate a waveform, an R-2R ladder circuit having a constant output resistance and coupled to an output of the waveform generator and configured to generate an offset signal based on the waveform, and a variable capacitor connected between the output of the R-2R ladder circuit and a reference voltage. The capacitive sensor includes one or more detection electrodes coupled to the waveform generator through capacitance and configured to generate a detection signal by detecting an object. The R-2R ladder circuit and variable capacitor are configured to adjust the amplitude and phase of the offset signal so that the amplitude and phase of the offset signal match the amplitude and phase of the detection signal, respectively, when the detection electrodes do not detect an object.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD OF THE DISCLOSURE This disclosure relates to capacitive sensors, and more particularly, to controlling the amplitude and phase of an offset signal in a capacitive sensor. [Background technology]

[0002] The background statement provided in this application is intended to generally present the context of the present disclosure. The work of the presently named inventors, to the extent disclosed in this background section, is not admitted, either expressly or impliedly, as prior art to the present disclosure, as are aspects of this specification that may not otherwise be admitted as prior art at the time of filing.

[0003] The electronic device may implement a capacitive sensor configured to detect contact between an object (e.g., a finger) and a surface, e.g., a surface of the electronic device, and generate a signal indicative of the detected contact. For example, a waveform generator is configured to generate and output a signal to the capacitive sensor. In some examples, the signal is sinusoidal (i.e., the signal is a sine wave). The amplitude and / or phase of the sine wave changes based on whether an object is in contact with the sensor. Thus, the presence or absence of an object in contact with the sensor can be determined based on the change in the amplitude or phase of the sine wave. Summary of the Invention

[0004] A system for generating an offset signal for a capacitive sensor includes a waveform generator configured to generate a waveform, an R-2R ladder circuit having a constant output resistance and coupled to an output of the waveform generator and configured to generate an offset signal based on the waveform, and a variable capacitor connected between the output of the R-2R ladder circuit and a reference voltage. The capacitive sensor includes one or more detection electrodes coupled to the waveform generator through a capacitance and configured to generate a detection signal by detecting either the proximity of an object or contact with an object. The R-2R ladder circuit and the variable capacitor are configured to adjust the amplitude and phase of the offset signal so that the amplitude and phase of the offset signal match the amplitude and phase of the detection signal, respectively, when the detection electrodes detect neither the proximity of an object nor contact with an object.

[0005] In other features, the system further includes an output circuit including a differential amplifier having a first input terminal coupled to the output of the capacitive sensor and a second input terminal coupled to the output of the R-2R ladder circuit. The output circuit is configured as a multiple feedback filter and the differential amplifier is a fully differential amplifier. The waveform is a sine wave. The system further includes a control signal module configured to generate a control signal based on the waveform. The R-2R ladder circuit is configured to operate in a voltage mode. The R-2R ladder circuit includes a plurality of rungs each including at least one resistor and a switch configured to selectively connect the at least one resistor to the waveform.

[0006] In another feature, the amplitude of the offset signal is adjusted by actuation of the switches of the plurality of rungs. The R-2R ladder circuit includes a first limiting resistor connected between an input of the R-2R ladder circuit and an output of the R-2R ladder circuit, and a second limiting resistor connected between a common voltage and the output of the R-2R ladder circuit. Values ​​of the first limiting resistor and the second limiting resistor are selected to set a variable range of the amplitude of the offset signal. The system further includes a low pass filter including a resistor and a second variable capacitor. The low pass filter is located in front of the output circuit, and the phase of the detection signal is adjusted by adjusting the second variable capacitor.

[0007] A method for generating an offset signal for a capacitive sensor includes generating a waveform, receiving the waveform with an R-2R ladder circuit having a constant output resistance, and generating an offset signal based on the waveform with the R-2R ladder circuit, connecting a variable capacitor between an output of the R-2R ladder circuit and a reference voltage, receiving the waveform with one or more detection electrodes of a capacitive sensor, detecting either proximity of an object or contact with an object with the one or more detection electrodes to generate a detection signal, and adjusting, with the R-2R ladder circuit and the variable capacitor, an amplitude and phase of the offset signal so that the amplitude and phase of the offset signal match the amplitude and phase of the detection signal, respectively, when the detection electrodes detect neither proximity of an object nor contact with an object.

[0008] In other features, the method further includes coupling a first input terminal of a differential amplifier to an output of the capacitive sensor and a second input terminal of the differential amplifier to an output of the R-2R ladder circuit. The waveform is a sine wave. The method further includes configuring the R-2R ladder circuit to operate in a voltage mode. The R-2R ladder circuit includes a plurality of rungs each including at least one resistor and a switch configured to selectively connect the at least one resistor to the waveform, the method further includes activating the switches of the plurality of rungs to adjust an amplitude of the offset signal. The R-2R ladder circuit includes a first limiting resistor connected between an input of the R-2R ladder circuit and an output of the R-2R ladder circuit and a second limiting resistor connected between a common voltage and the output of the R-2R ladder circuit, the method further includes selecting values ​​of the first limiting resistor and the second limiting resistor to set a variable range of the amplitude of the offset signal.

[0009] Further scope of applicability of the present disclosure will become apparent from the detailed description, claims, and drawings. The detailed description and specific examples are intended for purposes of illustration only and are not intended to limit the scope of the present disclosure.

[0010] The present disclosure will become more fully understood from the detailed description and the accompanying drawings, wherein: [Brief description of the drawings]

[0011] [Figure 1] 1 is an example of an electronic device that includes a capacitive sensor. [Figure 2A] 1 is an example of a waveform generator for a capacitive sensor. [Figure 2B] 1 is an example of a waveform generator for a capacitive sensor. [Diagram 3] 1 is an example of an electronic device implementing an offset control module for a capacitive sensor in accordance with the present disclosure. [Figure 4] 1 is an example of a method for generating an offset signal for a capacitive sensor according to the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] In the drawings, reference numbers may be reused to identify similar and / or identical elements.

[0013] A change in the signal (corresponding to the sensed signal) provided to the capacitive sensor in response to contact with an object is typically small compared to the applied signal (i.e., the control or drive signal) and may be difficult to detect. Thus, various methods may be implemented to improve detection of the change. For example, the waveform generator providing the signal to the sensor may also provide a replica of the signal, or a second waveform generator may be provided to provide a replica of the signal. The replicated signal is subtracted from the applied signal, and the result may be amplified to improve detection, corresponding to the sensed signal. In some examples, the waveform generator is a sine wave generator, such as a Wien bridge oscillator circuit. In other examples, the waveform generator may be configured to provide a digital sine wave to a digital-to-analog converter (DAC), the output of which is filtered and / or amplified.

[0014] In some examples, the offset control module is configured to generate an offset signal that is a replica of the detection signal when there is no contact between the object and the capacitive sensor. The offset control module is configured to control the attenuation (i.e., amplitude) of the offset signal, control the variable range of attenuation, and control the phase of the signal in accordance with the present disclosure. Additionally, the offset control module is configured to control the amplitude of the offset signal when the supply signal (and thus the offset signal) is a sine wave.

[0015] 1, an exemplary electronic device 100 is shown that includes a sensor module 104 that corresponds to a capacitive sensor. A waveform generator 108 provides a control or drive signal (e.g., a sine wave) 110 to the sensor module 104. The waveform generator 108 may provide a control signal to an offset control module 112, or an optional second waveform generator 116 may provide a copy of the control signal to the offset control module 112.

[0016] The sensor module 104 modifies the control signal 110 and generates a detection signal 118 based on the control signal 110 and the proximity or contact of a detection target. The detection signal 118 indicates whether an object (e.g., a finger) is in contact with the sensor module 104. In some examples, the detection signal 118 indicates the proximity of an object to the sensor module 104. The detection signal 118 may differ (e.g., in amplitude and / or phase) from the control signal 110 regardless of whether an object is in contact with the sensor module 104.

[0017] The offset control module 112 is configured to generate an offset signal 120 that is a replica of the detection signal 118 in the absence of contact between the object and the sensor module 104. In other words, the offset control module 112 is configured to modify the control signal 110 in the same way as the sensor module 104 would when there is no contact between the object and the sensor module 104 (and / or, in some examples, when the object is not close enough to the sensor module 104 to affect the detection signal 118). As such, in the absence of contact with an object, the detection signal 118 and the offset signal 120 will be essentially the same (e.g., in amplitude, phase, and / or both amplitude and phase) and the difference between the detection signal 118 and the offset signal 120 will approach zero.

[0018] In contrast, if there is contact between the object and the sensor module 104, the offset signal 120 and the detection signal 118 will be different. The subtractor 124 outputs the difference between the offset signal 120 and the detection signal 118, which is amplified by the amplifier 128. The output of the amplifier 128 may then be processed to detect contact with the sensor module 104. For example, contact may be determined based on whether the amplitude and / or phase of the output of the amplifier 128 exceed respective thresholds. In some examples, the detection signal 118 may indicate the proximity of an object to the sensor module 104, regardless of whether the object is in direct contact with the sensor module 104. In such examples, the detection signal 118 may further indicate the distance between the object and the sensor module 104.

[0019] In some examples, the waveform generator 108 implements a Wien-Bridge oscillator circuit, which may be difficult to adjust and / or modulate in amplitude. In other examples, the waveform generator 108 may generate a digital sine wave, which is then converted to an analog sine wave. For example, as shown in FIG. 2A and FIG. 2B, the waveform generator 108 may include a digital sine wave generator 200. In FIG. 2A, an analog DAC 204 converts the digital sine wave to an analog signal, which is then filtered and amplified (or, in some examples, attenuated) using a low pass filter (LPF) 208 with gain control capability. For example, an amplitude control signal is provided to the LPF 208 to control the gain. The LPF 208 may be a first order filter to reduce cost, or, in some examples, may be a second order, third order, or higher order filter. In other examples, a band pass filter may be used.

[0020] 2B, in contrast, a multiplier 212 is provided between the digital sine wave generator 200 and the analog DAC 204. An amplitude control signal is provided to the multiplier 212 to control the gain. The output of the multiplier (corresponding to the amplified digital sine wave) is provided to the analog DAC 204. The analog signal output by the analog DAC 204 is filtered by the LPF 216 without gain control.

[0021] 1, offset control module 112 according to the principles of the present disclosure is configured to control the amplitude and phase of offset signal 120 when control signal 110 is a sine wave. A conventional R-2R ladder circuit or network operating in current mode may be used to control the amplitude of the sine wave, but additional circuitry (e.g., an all-pass filter) is required to control the phase. Offset control module 112 implements an R-2R resistor ladder network configured to operate in voltage mode to control both the amplitude and phase of the offset signal without additional circuitry and power consumption.

[0022] 3, an example electronic device 300 including a sensor module 304 (e.g., a capacitive sensor) and implementing an offset control module 308 according to the present disclosure is shown. A waveform generator, such as a sine wave generator 312, outputs a waveform (e.g., an analog sine wave, a digital waveform, e.g., a digital sine wave that is converted to an analog sine wave, etc.). In one example, the sine wave generator 312 may include a sine wave lookup table configured to output an M-bit binary representation of a sine wave voltage level (i.e., a digital sine wave), and the waveform 316 may be a result of converting the digital sine wave to an analog sine wave.

[0023] The waveform 316 (i.e., a sine wave) is provided to the sensor module 305 and the offset control module 308. In some examples, the sine wave is also provided to an optional control signal module 320, which provides a control signal 324 based on the sine wave to the sensor module 304. The control signal module 320 and the offset control module 308 are configured to generate first and second outputs (e.g., modulated sine waves corresponding to the control signal 324 and the offset signal 328, respectively) based on the waveform 316. The control signal 324 is provided to the sensor module 304, and the offset signal 328 is provided as an input to an exemplary output circuit 332 that includes an amplifier 336 (e.g., in some examples, a differential amplifier), a feedback capacitor 340, and a feedback resistor 344. The output circuit 332 is shown by way of example only, and other configurations of the output circuit 332 may be used. The output circuit 332 may include a filter circuit 346 (e.g., one or more resistors and / or a variable capacitor) configured to filter the signal input to the amplifier 336. In the example of Figure 3, the output circuit 332 is configured as a multiple feedback filter. In this case, the multiple feedback filter circuit provides gain and additional filtering to reduce noise. Furthermore, the amplifier 336 may be a fully differential amplifier. That is, the output circuit 332 is a fully differential version of a typical second-order multiple feedback filter.

[0024] For example, the amplifier 336 has a first input terminal (e.g., an inverting input terminal) connected to an output of the sensor module 304 (e.g., the sensor module 304 has one or more sensing electrodes that connect to a first input terminal of the amplifier 336). A second input terminal (e.g., a non-inverting input terminal) of the amplifier 336 is connected to the offset signal 328, and a third input terminal of the amplifier 336 is connected to a common voltage (Vcom).

[0025] The sensor module 304 corresponds to a capacitive sensor (e.g., a capacitive touch circuit) that includes parasitic capacitances Crs and Crg that modify the amplitude and phase of the control signal 324. The control signal 324 is coupled to one or more detection electrodes through the capacitance Crs. When an object (e.g., a finger 348) approaches (i.e., comes within proximity of) one or more detection electrodes of the sensor module 304 and / or when the object (e.g., a finger 348) contacts one or more detection electrodes of the sensor module 304, the capacitance 352 of the finger 348 further modifies the amplitude and phase of the control signal 324. Thus, the sensor module 304 generates as an output a detection signal 356 that is indicative of whether an object, such as a finger 348, is in contact with the sensor module 304 or, in some examples, the proximity of the finger 348 to the sensor module 304.

[0026] The output circuit 332 (e.g., amplifier 336) detects and outputs the difference between the sense signal 356 and the offset signal 328. For example, the control signal module 320 and the offset control module 308 are configured such that the sense signal 356 and the offset signal 328 (i.e., the amplitude and phase of each of the sense signal 356 and the offset signal 328) are the same when there is no contact between the sensor module 304 (e.g., one or more sense electrodes) and an object such as a finger 348. In some examples, the control signal module 320 is configured to adjust the phase and amplitude of the control signal 324 and adjust the phase and amplitude of the sense signal 356 accordingly.

[0027] In contrast, the offset control module 308 is configured to adjust the phase and amplitude of the offset signal 328 so that the output of the output circuit 332 (e.g., the output signal 360 of the amplifier 336) is substantially zero when there is no contact between the sensor module 304 (one or more sensing electrodes) and an object. In other words, the offset control module 308 is configured to adjust the phase and amplitude of the offset signal 328 so that the phase and amplitude of the offset signal 328 match the phase and amplitude of the sensing signal 356, respectively, when the sensing electrodes of the sensor module 304 do not detect the proximity of or contact with an object. For example, the parasitic capacitances Crs and Crg change the amplitude and phase of the control signal 324. The offset control module 308 adjusts the amplitude and phase of the offset signal 328 to compensate for the change in the control signal 324 caused by the parasitic capacitances Crs and Crg. The output of the output circuit 332 (i.e., output signal 360) indicates whether there is contact between the sensor module 304 and the finger 348, or in some examples, the proximity of the finger 348 to the sensor module 304, based on a comparison between the detection signal 356 and the offset signal 328.

[0028] The offset control module 308 according to the present disclosure includes an R-2R resistor ladder 364 (R-2R ladder circuit) coupled to the output of the sine wave generator 321 and configured to operate in a voltage mode. In other words, the resistor ladder 364 is configured to output an offset signal 328 at a desired voltage (Vout). Using the resistor ladder 364, the offset control module 308 is configured to generate the offset signal 328 based on the waveform 316 and a configuration of the offset control module 308 (e.g., the configuration of the resistor ladder 364), which is adjustable to selectively adjust the phase and amplitude of the offset signal 328.

[0029] The resistor ladder 364 includes multiple resistors R, each having the same resistance value. For example, the resistor ladder 364 includes multiple rungs 368, in which one or two of the resistors R are connected in series with a respective switch 372. The switch 372 switches between the waveform 316 (corresponding to the input voltage Vin) and the common voltage Vcom in response to a binary control signal input to the switch 372. The switch 372 is controlled to connect and disconnect selected rungs 368 of resistors R to achieve a desired attenuation of the offset signal 328. In other words, the resistor ladder 364 is configured as a programmable attenuator that adjusts the amplitude of the offset signal 328 in response to the binary control signal used to control the switch 372.

[0030] A first limiting resistor Rg1 and a second limiting resistor Rg2, connected in parallel with rung 368, are selected to set upper and lower limits on the programmable attenuator. Resistor Rg1 is connected between the output of resistor ladder 364 and an input voltage Vin. Resistor Rg2 is connected between the output of resistor ladder 364 and a common voltage Vcom. For example, the output voltage of offset control module 308 (i.e., of offset signal 328) is: Vout=m(Vin)*((Rg1||Rg2) / (R+Rg1||Rg2)+(R||Rg2) / (Rg1+R||Rg2)) where m is the ratio set by the binary control signal and Vin is the input voltage.

[0031] Thus, the values ​​of resistors Rg1 and Rg2 determine the upper and lower limits of the variable range of the offset signal 328 amplitude.

[0032] The output resistance or impedance Rout (measured at 376 of the resistor ladder 364) is constant regardless of whether the switch 372 is on (i.e., connected to the input voltage Vin) or off (i.e., connected to the common voltage Vcom). A resistor Ras having the same resistance as Rout is connected to the output of the sensor module 304. The values ​​of resistors Rg1 and Rg2 may be determined according to the output resistance Rout, the desired minimum ratio (min) of the resistor ladder 364, and the desired maximum ratio (max) of the resistor ladder 364 (where min and max may correspond to the upper and lower limits of the variable range of the amplitude of the offset signal 328).

[0033] For example, the total value Rdac of resistor ladder 364 corresponds to Rdac=(Rout / span), where span=(max-min). Rg1 is calculated according to Rg1=Rth / Vth, where Rth=span*Rdac / (1-span) and Vth=min*(Rdac+Rth) / Rdac. Rg2 is calculated according to Rg2=Vth*Rg1 / (1-Vth).

[0034] To adjust the phase of the offset signal 328, the offset control module 308 adjusts an adjustable or variable capacitor 380 connected between the output of the resistor ladder 364 and a reference voltage (e.g., ground). For example, adjusting the capacitance value of the variable capacitor 380 adjusts the RC time constant of the resistor ladder 364 to adjust the phase of the offset signal 328 without significantly changing the amplitude of the offset signal 328. Thus, when a desired amplitude of the offset signal 328 is achieved by adjusting the resistor ladder 364 (i.e., by actuating the switches of the multiple rungs 368), the variable capacitor 380 can be adjusted to adjust the phase of the offset signal 328 (e.g., by 1-10 degrees) without causing a significant change in the amplitude of the offset signal 328. In other words, adjusting the capacitance of the variable capacitor 380 causes a larger change in the phase of the offset signal 328 relative to the amplitude of the offset signal 328. In contrast, because the output resistance R out of resistor ladder 364 is constant, the amplitude of offset signal 328 can be adjusted without changing the phase of offset signal 328 .

[0035] In this manner, the offset control module 308 is controlled to adjust the attenuation (i.e., amplitude) of the offset signal 328 by controlling the switch 372 of the resistor ladder 364, to control the variable range of the attenuation using selected values ​​of resistors Rg1 and Rg2, and to control the phase of the offset signal 328 using the variable capacitor 380. More specifically, the offset control module 308 is configured to control the amplitude of the offset signal 328 when the input signal (and thus the offset signal 328) is a sine wave, and to further fine-tune the phase of the offset signal 328 without significantly changing the desired amplitude of the offset signal 328. For example, the resistor ladder 364 and the variable capacitor 380 are adjusted with the finger 348 not in contact with the sensor module 304 until the output signal 360 is approximately 0V (e.g., within 100mV of 0V). In some examples, a second variable capacitor 384 is connected to the output of the sensor module 304. For example, variable capacitor 380 is used to control the positive phase adjustment, while variable capacitor 384 is used to control the negative phase adjustment (by adjusting the phase of detection signal 356).

[0036] In addition, the resistor Ras and the second variable capacitor 384 form a filter to reduce sensitivity to external noise. In other words, a low-pass filter including the resistor Ras and the second variable capacitor 384 is placed in front of the output circuit 332. The filter of the resistor Ras and the second variable capacitor 384 can reduce high-frequency noise before amplification, so that the detection signal 356 can use the full range of the power supply. The resistor ladder 364 and the variable capacitor 380 act as a similar filter to further reduce common-mode noise. The first-order filter of the resistor Ras and the second variable capacitor 384 and the output circuit 332 as a second-order multiple feedback filter together form a third-order filter, effectively reducing external noise.

[0037] 4, an example method 400 for generating an offset signal for a capacitive sensor according to the present disclosure begins at 404. At 408, the method 400 generates (e.g., using a sine wave generator 321) a sine wave corresponding to a control or drive signal for the capacitive sensor. At 412, the method 400 provides the sine wave to a sensor module and an offset control module (e.g., the sensor module 304 and the offset control module 308 shown in FIG. 3). In some examples (shown in FIG. 3), the sine wave is provided to a control signal module (e.g., the control signal module 320) configured to generate a control signal 324 based on the sine wave and provide the control signal 324 to the sensor module 304.

[0038] At 416, the offset control module 308 is configured to adjust the amplitude and phase of the offset signal. For example, the offset control module 308 is configured to compensate for changes in the amplitude and phase of the control signal module 320 caused by parasitic capacitance associated with the sensor module 304. For example, the resistor ladder 364 and the variable capacitor 380 (and, in some examples, the variable capacitor 384) are adjusted with the finger 348 not in contact with the sensor module 304 until the output signal 360 is approximately 0V (e.g., within 100mV of 0V).

[0039] At 420, during operation of the electronic device including the sensor module 304, the method 400 determines whether an object (e.g., a finger 348) is in contact with a sensing surface of the capacitive sensor. For example, the method 400 compares the sense signal 356 to the offset signal 328 using the output circuitry 332. At 424, the method 400 selectively performs a function of the electronic device based on the result of the comparison. The method 400 ends at 428.

[0040] The above description is merely exemplary in nature and is in no way intended to limit the disclosure, its application, or uses. The broad teachings of the disclosure can be implemented in various forms. Thus, although the disclosure includes specific examples, the true scope of the disclosure should not be so limited, since other variations will become apparent upon studying the drawings, the specification, and the claims. It should be understood that one or more steps included in a method may be performed in different orders (or simultaneously) without altering the principles of the disclosure. Furthermore, although each of the embodiments is described above as having certain features, one or more of the features described with respect to any embodiment of the disclosure may also be implemented in any of the other embodiments and / or combined with the features of any of the other embodiments, unless such combinations are explicitly described. In other words, the described embodiments are not mutually exclusive, and substituting one or more of the embodiments for one another remains within the scope of the disclosure.

[0041] Spatial and functional relationships between elements (e.g., between modules, circuit elements, semiconductor layers, etc.) are described using various terms, including "connected," "engaged," "coupled," "adjacent," "next to," "on top of," "above," "below," and "disposed." Unless expressly described as "direct," when a relationship between a first and second embodiment is described in the above disclosure, the relationship can be a direct relationship where no other intermediate elements exist between the first and second embodiments, but can also be an indirect relationship where one or more intermediate elements exist (either spatially or functionally) between the first and second embodiments. As used herein, the phrase "at least one of A, B, and C" should be interpreted to mean a logical (A OR B OR C) with a non-exclusive logical OR, and not to mean "at least one of A, at least one of B, and at least one of C."

[0042] In the figures, the direction of the arrow, as indicated by the arrowhead, generally indicates the flow of information (e.g., data or instructions) that is important to the example. For example, elements A and B exchange various information, but an arrow may point from element A to element B if the information sent from element A to element B is relevant to the example. This unidirectional arrow does not imply that other information is not sent from element B to element A. Additionally, for information sent from element A to element B, element B may send a request for or acknowledge receipt of the information to element A.

[0043] In this application, including the definitions below, the term "module" or "controller" may be substituted with the term "circuitry." The term "module" may refer to, be part of, or include: an application specific integrated circuit (ASIC); digital, analog, or mixed analog / digital discrete circuitry; digital, analog, or mixed analog / digital integrated circuit; combinatorial logic circuitry; a field programmable gate array (FPGA); processor circuitry (shared, dedicated, or group) that executes code; memory circuitry (shared, dedicated, or group) that stores code executed by the processor circuitry; other suitable hardware components that provide the described functionality; or a combination of some or all of the above (e.g., in a system-on-chip).

[0044] A module may include one or more interface circuits. In some examples, the interface circuits may include a wired or wireless interface that connects to a local area network (LAN), the Internet, a wide area network (WAN), or a combination thereof. The functionality of any given module of the present disclosure may be distributed among multiple modules that are connected via interface circuits. For example, multiple modules may enable load balancing. In a further example, a server (also known as remote or cloud) module may perform some functions on behalf of a client module.

[0045] The term "code" described above may include software, firmware, and / or microcode and may refer to programs, routines, functions, classes, data structures, and / or objects. The term "shared processor circuit" encompasses a single processor circuit that executes some or all code from multiple modules. The term "group processor circuit" encompasses a processor circuit that executes some or all code from one or more modules in combination with additional processor circuits. References to multiple processor circuits encompass multiple processor circuits on a discrete die, multiple processor circuits on a single die, multiple cores of a single processor circuit, multiple threads of a single processor circuit, or combinations of the above. The term "shared memory circuit" encompasses a single memory circuit that stores some or all code from multiple modules. The term "group memory circuit" encompasses a memory circuit that stores some or all code from one or more modules in combination with additional memory.

[0046] The term "memory circuit" is part of the term "computer-readable medium". As used herein, the term "computer-readable medium" does not encompass transitory electrical or electromagnetic signals transmitted through a medium (e.g., on a carrier wave), and thus the term "computer-readable medium" may be considered tangible and non-transitory. Non-limiting examples of non-transitory tangible computer-readable media are non-volatile memory circuits (e.g., flash memory circuits, erasable programmable read-only memory circuits, or masked read-only memory circuits), volatile memory circuits (e.g., static random access memory circuits or dynamic random access memory circuits), magnetic storage media (e.g., analog or digital magnetic tape, or hard disk drives), and optical storage media (e.g., CDs, DVDs, or Blu-ray® disks).

[0047] The apparatus and methods described herein may be implemented in part or in whole by a special-purpose computer generated by configuring a general-purpose computer to perform one or more specific functions embodied in a computer program. The functional blocks, flowchart components, and other elements described above function as software specifications that can be converted into a computer program by the routine work of a skilled technician or programmer.

[0048] A computer program includes processor-executable instructions stored on at least one non-transitory tangible computer-readable medium. A computer program may also include or depend on stored data. A computer program may encompass a basic input / output system (BIOS) that interacts with hardware of a dedicated computer, device drives that interact with specific devices of a dedicated computer, one or more operating systems, user applications, background services, background applications, and the like.

[0049] A computer program may include (i) a parsed text, such as HTML (hypertext markup language), XML (extensible markup language), or JSON (JavaScript Object Notation); (ii) assembly code; (iii) object code generated by a computer from source code; (iv) source code executed by an interpreter; (v) source code compiled and executed by a just-in-time (JIT) compiler; etc. By way of example only, the source code may be written using syntax from languages ​​including C, C++, C#, Objective-C, Swift, Haskell, Go, SQL, R, Lisp, Java®, Fortran, Perl, Pascal, Curl, OCaml, Javascript®, HTML5 (Hypertext Markup Language 5th version), Ada, ASP (Active Server Pages), PHP (PHP: Hypertext Preprocessor), Scala, Eiffel, Smalltalk, Erlang, Ruby, Flash, Visual Basic, Lua, MATLAB®, SIMULINK®, and Python®.

[0050] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to U.S. Patent Application No. 17 / 071,437, filed October 15, 2020. The entire disclosure of the above application is incorporated herein by reference.

Claims

1. 1. A system for generating an offset signal for a capacitive sensor, comprising: a waveform generator configured to generate a waveform; an R-2R ladder circuit having a constant output resistance, the R-2R ladder circuit being coupled to an output of the waveform generator and configured to generate the offset signal based on the waveform; a variable capacitor connected between the output of the R-2R ladder circuit and a reference voltage; having the capacitive sensor includes one or more detection electrodes coupled to the waveform generator through a capacitance and configured to generate a detection signal by detecting either proximity of an object or contact with the object; the R-2R ladder circuit and the variable capacitor are configured to adjust the amplitude and phase of the offset signal so that the amplitude and phase of the offset signal match the amplitude and phase of the detection signal, respectively, when the detection electrode detects neither the proximity of the object nor contact with the object; The waveform is a sine wave. system.

2. an output circuit including a differential amplifier having a first input terminal coupled to an output of the capacitive sensor and a second input terminal coupled to an output of the R-2R ladder circuit; The system of claim 1 .

3. the output circuit is configured as a multiple feedback filter; The differential amplifier is a fully differential amplifier. The system of claim 2.

4. a control signal module configured to generate a control signal based on the waveform. The system of claim 1 .

5. The R-2R ladder circuit is configured to operate in voltage mode. The system of claim 1 .

6. the R-2R ladder circuit includes a plurality of rungs, each rung including at least one resistor and a switch configured to selectively connect the at least one resistor to the waveform; The system of claim 5.

7. Actuation of the switches of the plurality of rungs adjusts the amplitude of the offset signal. The system of claim 6.

8. the R-2R ladder circuit includes a first limiting resistor connected between an input portion of the R-2R ladder circuit and an output portion of the R-2R ladder circuit, and a second limiting resistor connected between a common voltage and the output portion of the R-2R ladder circuit; the values ​​of the first limiting resistor and the second limiting resistor are selected to set a variable range of the amplitude of the offset signal. The system of claim 7.

9. a low pass filter including a resistor and a second variable capacitor; the low-pass filter is located in a stage preceding the output circuit, The phase of the detection signal is adjusted by adjusting the second variable capacitor. The system of claim 2.

10. 1. A method for generating an offset signal for a capacitive sensor, comprising: Generating a waveform; receiving the waveform with an R-2R ladder circuit having a constant output resistance, and generating the offset signal based on the waveform by the R-2R ladder circuit; A variable capacitor is connected between an output of the R-2R ladder circuit and a reference voltage; receiving the waveform at one or more sensing electrodes of the capacitive sensor; detecting, by the one or more detection electrodes, one of proximity of an object and contact with the object to generate a detection signal; adjusting the amplitude and phase of the offset signal by the R-2R ladder circuit and the variable capacitor so that the amplitude and phase of the offset signal match the amplitude and phase of the detection signal, respectively, when the detection electrode detects neither the proximity of the object nor contact with the object; having The method, wherein the waveform is a sine wave.

11. further comprising coupling a first input terminal of a differential amplifier to an output of the capacitive sensor and coupling a second input terminal of the differential amplifier to an output of the R-2R ladder circuit. The method of claim 10.

12. configuring the R-2R ladder circuit to operate in a voltage mode. The method of claim 10.

13. the R-2R ladder circuit includes a plurality of rungs, each rung including at least one resistor and a switch configured to selectively connect the at least one resistor to the waveform; The method further includes actuating the switches of the plurality of rungs to adjust an amplitude of the offset signal. The method of claim 10.

14. the R-2R ladder circuit includes a first limiting resistor connected between an input portion of the R-2R ladder circuit and an output portion of the R-2R ladder circuit, and a second limiting resistor connected between a common voltage and the output portion of the R-2R ladder circuit; The method further comprises selecting values ​​of the first limiting resistor and the second limiting resistor to set a variable range of an amplitude of the offset signal. The method of claim 13.

Citation Information

Patent Citations

  • Capacitance type proximity switch and automatic vending machine using the capacitance type proximity switch

    JP2002100976A

  • System and method for forming offset signal by using sine wave generator which can program amplification and phase

    JP2021167807A

  • Method and apparatus for deglitching digital to analog converters

    US6304199B1

  • Capacitance detection device and input device

    WO2018116706A1