Electrostatic Capacitance Detection Device
By using a variable capacity capacitor and a differential amplifier circuit in the electrostatic capacity detection device, the intermediate potential is controlled as the reference potential, which solves the problems of long detection time and low accuracy in the existing technology, and achieves efficient and accurate electrostatic capacity detection.
Patent Information
- Application Number
- CN202010169275.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-30
- Filing Date
- 2020-03-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-03-12
AI Technical Summary
When improving the detection accuracy of the existing electrostatic capacity detection device, it is necessary to increase the number of switching operations, resulting in an increase in detection time and possible reduction in detection accuracy.
By introducing a variable capacity capacitor and a differential amplifier circuit into the electrostatic capacity detection device, the intermediate potential is controlled as the reference potential, the electrostatic capacity ratio of the variable capacity capacitor is used to detect the electrostatic capacity, and the error is corrected through the differential amplifier circuit to reduce switching operations. frequency.
It is possible to shorten the electrostatic capacity detection time without reducing detection accuracy, improve detection efficiency, and reduce false detections caused by changes in parasitic capacitance.
Smart Images

Figure CN111694059B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an electrostatic capacity detection device. Background Art
[0002] In the past, as an electrostatic capacitance detection device, for example, there is a known structure described in Patent Document 1. The electrostatic capacitance detection device comprises: a reference capacitance; a detection capacitance (capacity to be measured) connected to the reference capacitance; a first switch for initializing the reference capacitance; a second switch arranged between the reference capacitance and the detection capacitance; a third switch for initializing the detection capacitance; and a control circuit. After initializing the reference capacitance based on the operation of the first switch, the control circuit performs a plurality of switch operations consisting of the operation of the second switch and the operation of the third switch, and obtains the potential between the reference capacitance and the detection capacitance, i.e., the intermediate potential, and further derives the number of detections corresponding to the number of switch operations when the intermediate potential is lower than the reference potential. The number of detections is hereinafter referred to as a count value. The count value is related to the capacity of the detection capacitance, and the capacity of the detection capacitance is detected by deriving the count value.
[0003] Patent Document 1: Japanese Patent No. 4356003
[0004] Problems to be solved by the invention
[0005] However, in Patent Document 1, the capacity of the detection capacity is detected by deriving the count value. Therefore, since the capacity equivalent to 1 count is the detection resolution, in order to improve the detection accuracy, it is necessary to increase the number of switch operations. For example, the number of switch operations is tens of thousands of times. As a result, the time required for electrostatic capacitance detection increases.
[0006] On the other hand, when the time required for electrostatic capacitance detection increases, the influence of low-frequency noise overlapped with the power supply (first and second potential sources) for electrostatic capacitance detection and the increase in the fluctuation range of the power supply itself becomes significant, and the detection accuracy may also decrease. In other words, increasing the number of switch operations in order to improve the detection accuracy may lead to a decrease in the detection accuracy. Summary of the invention
[0007] An object of the present invention is to provide an electrostatic capacitance detection device capable of shortening the time required for detection without reducing the detection accuracy.
[0008] Technical means to solve problems
[0009] Hereinafter, technical means for solving the above-mentioned problems and their effects will be described.
[0010] 1. An electrostatic capacitance detection device, comprising: a variable capacitance capacitor; an electrode, the electrode constituting an electrostatic capacitance detection object; and a control circuit, the control circuit performing an operation process and a detection process, the operation process being to operate the electrostatic capacitance of the variable capacitance capacitor to control an intermediate potential to a reference potential when a voltage of a voltage applying device is applied to the electrode via the variable capacitance capacitor, the intermediate potential being a potential at a connection point between the variable capacitance capacitor and the electrode, and the detection process being to detect the electrostatic capacitance of the detection object based on the electrostatic capacitance of the variable capacitance capacitor when controlled to the reference potential.
[0011] In the above structure, by controlling the intermediate potential to be a reference potential, the ratio of the electrostatic capacitance of the detection object to the electrostatic capacitance of the variable capacitance capacitor can be controlled to a ratio corresponding to the reference potential. Therefore, the electrostatic capacitance of the detection object or a value close to it can be grasped by the electrostatic capacitance of the variable capacitance capacitor as the operation amount when controlled to the reference potential and the above ratio. Therefore, according to the above detection process, the electrostatic capacitance of the detection object can be detected. Moreover, in general, it is possible to implement the operation process of controlling the intermediate potential to be a reference potential by operating the electrostatic capacitance of the variable capacitance capacitor without setting the command of the number of switch operations to tens of thousands of times. Therefore, in the above structure, compared with the case of detecting the electrostatic capacitance by deriving the above count value, the time required for detecting the electrostatic capacitance of the detection object can be shortened.
[0012] 2. The electrostatic capacitance detection device according to item 1 above, wherein the device comprises a differential amplifier circuit, the intermediate potential and the reference potential are inputted into the differential amplifier circuit, and the differential amplifier circuit outputs a voltage signal corresponding to the difference between the intermediate potential and the reference potential, wherein the detection processing is the following processing: in addition to the electrostatic capacitance of the variable capacitance capacitor when controlled to the reference potential, the electrostatic capacitance of the detection object is detected based on the output value of the differential amplifier circuit when controlled to the reference potential.
[0013] When the intermediate potential is controlled as the reference potential, the intermediate potential and the reference potential may deviate depending on the smallest unit that the electrostatic capacitance of the variable capacitance capacitor can change. Therefore, when the electrostatic capacitance of the detection object is detected based only on the ratio of the electrostatic capacitance of the variable capacitance capacitor and the electrostatic capacitance of the detection object specified by the reference potential and the electrostatic capacitance of the variable capacitance capacitor, the resolution of the electrostatic capacitance of the detection object depends on the smallest unit that the electrostatic capacitance of the variable capacitance capacitor can change. Therefore, in the above structure, the output value of the differential amplifier circuit is added to detect the electrostatic capacitance of the detection object, thereby, corresponding to the deviation amount between the reference potential and the intermediate potential, the electrostatic capacitance of the detection object can be determined to a tiny level that cannot be grasped only by the electrostatic capacitance of the variable capacitance capacitor and the above ratio.
[0014] 3. An electrostatic capacitance detection device according to 1 or 2 above, wherein the detection process is the following process: detecting the electrostatic capacitance of the detection object based on two values of the electrostatic capacitance of the variable capacitance capacitor when the intermediate potential is a pair of values separated by the reference potential and the difference between the pair of intermediate potentials and the reference potential is respectively minimized.
[0015] In the above structure, the two values of the electrostatic capacitance of the variable capacitance capacitor and the ratio of the electrostatic capacitance of the variable capacitance capacitor grasped by the reference potential to the electrostatic capacitance of the detection object are used to define the two values of the actual electrostatic capacitance of the detection object. In other words, the electrostatic capacitance of the detection object is greater than the smaller value and less than the larger value of the two electrostatic capacitance values. Therefore, according to the above structure, the electrostatic capacitance of the detection object can be limited.
[0016] 4. The electrostatic capacitance detection device according to item 2 above, wherein the detection process is a process in which the electrostatic capacitance of the detection object is detected by correcting an upper capacitance value based on the output value of the differential amplifier circuit, the upper capacitance value being the electrostatic capacitance of the detection object grasped based on the electrostatic capacitance of the variable capacitance capacitor when controlled to the reference potential and the reference potential, and the detection process is a process in which, even if the output value of the differential amplifier circuit is the same, the magnitude of the correction amount obtained based on the output value is increased when the electrostatic capacitance of the variable capacitance capacitor when controlled to the reference potential is larger than when it is smaller.
[0017] The size of the difference between the intermediate potential and the reference potential in the stage where the difference between the intermediate potential and the reference potential is controlled to be as low as possible can be considered to be inversely proportional to the electrostatic capacity of the variable capacitance capacitor at this time. Therefore, even if the difference between the intermediate potential and the reference potential is the same, the size of the difference between the electrostatic capacity of the detection object that can be grasped only based on the electrostatic capacity of the variable capacitance capacitor and the reference potential and the actual electrostatic capacity of the detection object varies according to the electrostatic capacity of the variable capacitance capacitor. That is, even if the size of the difference between the intermediate potential and the reference potential is the same, the difference between the electrostatic capacity of the detection object that can be grasped only based on the electrostatic capacity of the variable capacitance capacitor and the reference potential and the actual electrostatic capacity of the detection object becomes larger when the electrostatic capacity of the variable capacitance capacitor is larger than when it is smaller. Therefore, in the above structure, the size of the correction amount is increased when the electrostatic capacity of the variable capacitance capacitor is larger than when it is smaller, thereby suppressing the detection error of the electrostatic capacity of the detection object caused by the size of the electrostatic capacity of the variable capacitance capacitor.
[0018] 5. An electrostatic capacitance detection device according to any one of items 2 to 4 above, wherein the control circuit repeatedly performs the detection processing, and when the electrostatic capacitance of the detection object detected by the detection processing changes, performs output processing to output a signal indicating the change.
[0019] In the above configuration, when the electrostatic capacitance of the detection target changes, the change can be notified to the outside.
[0020] 6. The electrostatic capacitance detection device according to 5 above, comprising: a first discharge path for discharging the variable capacitance capacitor; a first discharge switch for opening and closing the first discharge path; a second discharge path for discharging the electrode; and a second discharge switch for opening and closing the second discharge path, wherein the control circuit sets the first discharge switch and the second discharge switch to a closed state and performs a discharge process for discharging the variable capacitance capacitor and the electrode, the control circuit sets the first discharge switch and the second discharge switch to an open state after the discharge process, the detection process is performed when a voltage is applied to the electrode via the variable capacitance capacitor by the voltage applying device, and the control circuit repeatedly performs the detection process in a state where the electrostatic capacitance of the variable capacitance capacitor is fixed after temporarily controlling the intermediate potential to the reference potential.
[0021] Whenever the electrostatic capacitance of the variable capacitance capacitor is manipulated by an operation process, the parasitic capacitance of each wiring and the like may change. Therefore, whenever the detection process is performed, in the case where the operation process is performed before, although the electrostatic capacitance of the detection object does not actually change, the electrostatic capacitance detected by the detection process may change due to the change in the above-mentioned parasitic capacitance. Therefore, in the above-mentioned structure, after the intermediate potential is controlled to be the reference potential, the detection process is repeatedly performed in a state where the electrostatic capacitance of the variable capacitance capacitor is fixed, so that the change in the parasitic capacitance caused by the operation of the electrostatic capacitance of the variable capacitance capacitor can be suppressed from being erroneously detected as the change in the electrostatic capacitance of the detection object.
[0022] 7. The electrostatic capacitance detection device according to the above paragraph 6, further comprising a differential amplifier circuit, the intermediate potential and the reference potential being input, and the differential amplifier circuit outputting a voltage signal corresponding to the difference between the intermediate potential and the reference potential, the output processing including the following processing: when the magnitude of the change in the output value of the differential amplifier circuit in a sampling period shorter than the sampling period of the output value of the differential amplifier circuit for outputting a signal indicating that a specified object is close to the electrode is greater than a specified amount, outputting a signal indicating that the electrostatic capacitance detection device is abnormal.
[0023] For example, when the electrode is grounded and in a conductive state with a certain resistance value, an abnormal leakage current is generated, and the magnitude of the change in the output value of the differential amplifier circuit in an extremely short sampling period becomes larger. In contrast, when there is no leakage current, the magnitude of the change in the output value of the differential amplifier circuit in an extremely short sampling period becomes an amount with a minimal degree of influence of noise. Therefore, in the above-mentioned structure, when the magnitude of the change in the output value of the differential amplifier circuit in a sampling period shorter than the sampling period of the output value of the differential amplifier circuit is greater than a predetermined amount, a signal indicating an abnormality is output, thereby being able to notify the outside of the abnormality.
[0024] 8. An electrostatic capacitance detection device according to any one of items 1 to 7 above, wherein the variable capacitance capacitor is connected in parallel with a plurality of series-connected bodies, the series-connected body being a series-connected body of a capacitor and a switch, the variable capacitance capacitor sets the electrostatic capacitance to be variable by turning on / off the switch, and the electrostatic capacitance of the corresponding capacitors is different from each other among the plurality of series-connected bodies.
[0025] Effects of the Invention
[0026] The present invention has the effect of shortening the time required for detection without reducing the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1This is a circuit diagram showing the electrical structure of the first embodiment of the electrostatic capacitance detection device.
[0028] Figure 2 This is a circuit diagram showing a capacitor array of the electrostatic capacitance detection device according to the first embodiment.
[0029] Figure 3 This is a graph for explaining a calculation method of an estimated combined capacity in the electrostatic capacitance detection device according to the first embodiment.
[0030] Figure 4 This is a flowchart showing a method of deriving the detection capacitance in the electrostatic capacitance detection device according to the first embodiment.
[0031] Figure 5 This is a circuit diagram showing the electrical structure of the second embodiment.
[0032] Figure 6 This is a flowchart showing the procedure of processing executed by the control circuit of the second embodiment.
[0033] Figure 7 It is a diagram showing the relationship between the upper capacity and the lower capacity in the second embodiment.
[0034] Figure 8 It is a graph showing the detection capacity and the ratio of the change in the intermediate potential to the change in the detection capacity according to the second embodiment.
[0035] Fig. 9 This is a flowchart showing the procedure of processing executed by the control circuit of the third embodiment.
[0036] Fig.10 It is a timing chart showing an example of transition of the intermediate potential according to the presence or absence of abnormality.
[0037] Explanation of symbols
[0038] ΔV···differential voltage, C0~C7···capacitance, Cs···combined capacitance, Cx···detection capacitance, Cs1···first combined capacitance, Cs2···second combined capacitance, Cse···estimated combined capacitance, Vref···reference potential, Vout···intermediate potential, Vout1···first intermediate potential, Vout2···second intermediate potential, 11···capacitor array, 12···detection capacitor, 13···first switch, 14···second switch, 15···third switch, 16···differential amplifier circuit (amplifier), 17···AD conversion circuit (AD conversion unit), 18···control circuit, 18a···detection unit, 18b···switch control unit, 18c···acquisition unit, 18d···calculation unit, 18e···derivation unit, 21···capacitance unit, 22···capacitor, 23···switch. DETAILED DESCRIPTION
[0039] <First embodiment>
[0040] Hereinafter, a first embodiment of the electrostatic capacitance detection device will be described.
[0041] like Figure 1 As shown, the electrostatic capacitance detection device includes: a capacitor array 11, a detection capacitor 12 as a capacitance detection object, a first switch 13, a second switch 14, a third switch 15, a differential amplifier circuit 16 as an amplifier, an AD conversion circuit 17 as an AD conversion unit, and a control circuit 18.
[0042] The capacitor array 11 has a variable composite capacitance Cs. Figure 2 As shown, the capacitor array 11 is formed by connecting a plurality of (e.g., eight) capacitance units 21 in parallel, and the capacitance unit 21 has capacitors 22 and switches 23 connected in series. The capacitances of these plurality of capacitors 22 are set to be different from each other. Specifically, when the capacitance of the capacitor 22 with the smallest capacitance is represented by C0, the capacitances C0, C1, C2, C3, C4, C5, C6, and C7 of all the capacitors 22 are set to satisfy the following formula (1).
[0043] Cn=C0×2^n, n=0~7···(1)
[0044] In addition, the switch 23 connected to the capacitor 22 having a capacity of Cn can be switched between an on state and an off state (a state in which there is no potential difference between the electrodes and the capacitor does not function as a capacitor) according to the control value bn (n=0 to 7) of the capacitor array 11 set by the control circuit 18. That is, the switch 23 is in an on state when the control value bn is "1", and is in an off state when the control value bn is "0".
[0045] Therefore, the combined capacitance Cs of the capacitor array 11 is expressed by the following equation (2) according to the control value bn (n=0 to 7).
[0046] Cs=b0·C0+b1·C1+···+b7·C7···(2)
[0047] That is, the combined capacity Cs changes according to the control value bn ("1" or "0") with the capacity C0 as the minimum unit (LSB).
[0048] Furthermore, the capacitor array 11 is arranged so that, for example, even if the surrounding environment changes, the capacitance C0 to C7 of each capacitor 22 does not change.
[0049] like Figure 1 As shown, the detection capacitor 12 has a capacity including its own capacity, floating capacity determined by the surrounding environment, and the like (hereinafter, the capacity of the detection capacitor 12 may also be expressed as "detection capacity Cx").
[0050] The capacitor array 11 and the detection capacitor 12 are connected in series to the power supply (V1). That is, one end of the capacitor array 11 is electrically connected to the high-side potential V1 as the power supply, and the other end is electrically connected to one end of the detection capacitor 12 via the second switch 14. In addition, the other end of the detection capacitor 12 is electrically connected to the low-side potential V2 (<V1) as the power supply. The low-side potential V2 is set to, for example, the same potential as the ground (=0).
[0051] The first switch 13 initializes the capacitor array 11 (discharges the charge stored in the capacitor). Specifically, the first switch 13 is connected between the two terminals of the capacitor array 11 (multiple capacitance units 21), that is, connected in parallel, and connects and disconnects the two terminals of the capacitor array 11 respectively with the switching between the on state and the off state. More strictly speaking, for example, when all the switches 23 of the multiple capacitance units 21 are in the on state, the first switch 13 connects / initializes the two terminals of all the capacitors 22 of the multiple capacitance units 21 with the switching to the on state (discharges the charge stored in the capacitor). The second switch 14 is electrically connected between the capacitor array 11 and the detection capacitor 12, and connects and disconnects the capacitor array 11 and the detection capacitor 12 respectively with the switching between the on state and the off state. The third switch 15 initializes the detection capacitor 12 (discharges the charge stored in the capacitor). Specifically, the third switch 15 is connected between the two terminals of the detection capacitor 12, that is, connected in parallel, and connects and disconnects the two terminals of the detection capacitor 12 respectively with the switching between the on state and the off state.
[0052] The differential amplifier circuit 16 has a positive input terminal + connected to a connection point N1 between the capacitor array 11 and the detection capacitor 12. A negative input terminal - of the differential amplifier circuit 16 is connected to a connection point N2 of a pair of resistors R connected in series to a power supply via an amplifier circuit 19. The differential amplifier circuit 16 inputs the potential at the connection point N1, i.e., the intermediate potential Vout, and the reference potential Vref (= V1 / 2) obtained by dividing the power supply into two by the pair of resistors R, and amplifies and outputs the differential voltage ΔV (= Vout - Vref).
[0053] The intermediate potential Vout is a potential obtained by dividing the capacitance of the power supply by the combined capacitance Cs of the capacitor array 11 and the detection capacitance Cx of the detection capacitor 12, and is expressed by the following equation (3).
[0054] Vout=V1 / (1+Cx / Cs)···(3)
[0055] That is, the intermediate potential Vout is inversely proportional to the ratio of the detection capacity Cx to the combined capacity Cs (=Cx / Cs).
[0056] The differential voltage ΔV is expressed by the following equation (4).
[0057] ΔV=Vout-Vref=V1 / (1+Cx / Cs)-V1 / 2···(4)
[0058] Therefore, when the combined capacitance Cs and the detected capacitance Cx coincide with each other (Cx / Cs=1), the intermediate potential Vout coincides with the reference potential Vref, and the differential voltage ΔV becomes zero.
[0059] In addition, the polarity of the differential voltage ΔV is negative when the detection capacitance Cx is larger than the combined capacitance Cs, and is positive when the detection capacitance Cx is smaller than the combined capacitance Cs. Therefore, when the combined capacitance Cs of the capacitor array 11 is changed according to the control value bn (n=0 to 7), the differential amplifier circuit 16 can also be regarded as a comparator that determines the magnitude relationship between the combined capacitance Cs and the detection capacitance Cx.
[0060] The AD conversion circuit 17 has, for example, a 10-bit code, and performs AD conversion on the differential voltage ΔV amplified by the differential amplifier circuit 16 and outputs it to the control circuit 18. In addition, it is clear from equation (4) that when the deviation between the composite capacity Cs and the detection capacity Cx is small (Cx / Cs≒1), the differential voltage ΔV is approximately zero, but when the deviation between the composite capacity Cs and the detection capacity Cx is large, the differential voltage ΔV is a positive or negative number with a large absolute value.
[0061] Therefore, it is preferable that the differential amplifier circuit 16 is configured to be able to change the amplification factor in accordance with the absolute value of the differential voltage ΔV when the minimum unit (LSB) of the AD conversion of the AD conversion circuit 17 is constant. In this case, the differential amplifier circuit 16 amplifies the differential voltage ΔV at a relatively small amplification factor when the absolute value of the differential voltage ΔV exceeds a predetermined value, such as when the combined capacitance Cs of the capacitor array 11 is changed according to the control value bn (n=0 to 7). On the other hand, the differential amplifier circuit 16 amplifies the differential voltage ΔV at a relatively large amplification factor when the absolute value of the differential voltage ΔV is lower than the predetermined value. Thus, the AD conversion circuit 17 can perform AD conversion in a minimum unit that is substantially changed in accordance with the absolute value of the differential voltage ΔV.
[0062] Alternatively, the AD conversion circuit 17 may output a certain numerical value representing the situation when the absolute value of the differential voltage ΔV exceeds a specified value, for example, such as when the synthetic capacitance Cs of the capacitor array 11 changes according to the control value bn (n=0 to 7), and may output a numerical value representing the differential voltage ΔV when the absolute value of the differential voltage ΔV is lower than the specified value.
[0063] Alternatively, the AD conversion circuit 17 may be composed of a plurality of units or a plurality of channels in such a manner that the minimum unit (LSB) of AD conversion can be changed corresponding to the absolute value of the differential voltage ΔV. In this case, the AD conversion circuit 17 outputs a numerical value after AD conversion in a relatively large minimum unit when the absolute value of the differential voltage ΔV exceeds a predetermined value, such as when the combined capacitance Cs of the capacitor array 11 is changed according to the control value bn (n=0 to 7). On the other hand, the AD conversion circuit 17 outputs a numerical value after AD conversion in a relatively small minimum unit when the absolute value of the differential voltage ΔV is lower than the predetermined value.
[0064] In short, when the absolute value of the differential voltage ΔV is lower than a predetermined value, that is, when the intermediate potential Vout is close to the reference potential Vref, the AD conversion circuit 17 may perform AD conversion in a minimum unit smaller than the voltage variation of the intermediate potential Vout associated with the change in resolution corresponding to the combined capacity Cs.
[0065] The control circuit 18 is mainly composed of, for example, an MCU (personal computer), and drives and controls the first switch 13, the second switch 14, and the third switch 15 to generate a potential obtained by dividing the capacity of the power supply obtained from the combined capacity Cs and the detected capacity Cx, that is, an intermediate potential Vout. Specifically, the control circuit 18 performs the following processing A.
[0066] 1. The first switch 13 and the third switch 15 are both turned on, and the second switch 14 is turned off, so that the charge is discharged by short-circuiting the terminals of the capacitor array 11 and the detection capacitor 12. That is, the capacitor array 11 and the detection capacitor 12 are initialized.
[0067] 2. The first switch 13 and the third switch 15 are both turned off, and the second switch 14 is turned on, so that the capacitor array 11 and the detection capacitor 12 are connected in series. Then, the intermediate potential Vout is generated at the connection point N1.
[0068] 3. The differential voltage ΔV (=Vout-V1 / 2) amplified by the differential amplifier circuit 16 and AD-converted by the AD conversion circuit 17 is input and the differential voltage ΔV is detected.
[0069] That is, the control circuit 18 as the detection unit 18 a detects the differential voltage ΔV with respect to the intermediate potential Vout.
[0070] In addition, the control circuit 18 as the switch control unit 18b sets the control value bn (n=0-7) and drives and controls the plurality of switches 23 so that the plurality of capacitors 22 of the capacitor array 11 are selectively switched between the on state and the off state according to the control value bn (n=0-7). At this time, the situation in which the combined capacitance Cs of the capacitor array 11 is changed according to the control value bn (n=0-7) is as described above. In addition, when the control circuit 18 changes the combined capacitance Cs of the capacitor array 11 according to the control value bn (n=0-7), the control circuit 18 stores the control value bn determined based on the polarity of the differential voltage ΔV after AD conversion by the AD conversion circuit 17 in its built-in memory.
[0071] That is, the control circuit 18 uses a so-called binary search method in order to obtain a combined capacitance Cs that approximates the detection capacitance Cx of the detection capacitor 12. Specifically, the control circuit 18 performs the following processing B.
[0072] 1. The most significant bit of the control value bn of the capacitor array 11, namely the control value b7, is set to "1", and all other lower bits, namely the control values b6 to b0, are set to "0". That is, the set value is set to "1000_0000".
[0073] 2. According to the above process, A inputs the differential voltage ΔV (= Vout - V1 / 2).
[0074] 3. The control value b7 is determined to be "1" or "0" according to the polarity of the differential voltage ΔV. Furthermore, the determination value a of the control value b7 is stored in its built-in memory. That is, when the polarity of the differential voltage ΔV is negative, the composite capacity Cs (= C7) is smaller than the detection capacity Cx, and therefore, the determination value a of the control value b7 is set to "1". On the other hand, when the polarity of the differential voltage ΔV is positive, the composite capacity Cs (= C7) is larger than the detection capacity Cx, and therefore, the determination value a of the control value b7 is set to "0".
[0075] 4. Similarly, the next bit, i.e., control value b6, is set to "1", and all other lower bits, i.e., control values b5 to b0, are set to "0". That is, the set value is set to "a100_0000".
[0076] 5. According to the above process A inputs the differential voltage ΔV (= Vout - V1 / 2).
[0077] 6. The control value b6 is determined to be "1" or "0" according to the polarity of the differential voltage ΔV. Furthermore, the determined value b of the control value b6 is stored in the built-in memory.
[0078] 7. The same processing of 4 to 6 is repeated to determine the next bits, that is, the control values b5 to b0, to be "1" or "0", and the determined values c to h are stored in the built-in memory.
[0079] Through the above, the control circuit 18 acquires the combined capacity Cs (hereinafter also referred to as “first combined capacity Cs1 ”) represented by the set value “abcd_efgh”.
[0080] Cs1=a·C7+b·C6+···+h·C0···(5)
[0081] The first synthetic capacity Cs1 is a synthetic capacity Cs smaller than the detection capacity Cx that is most similar to the detection capacity Cx. At the same time, the control circuit 18 obtains a synthetic capacity Cs (hereinafter also referred to as "second synthetic capacity Cs2") larger than the detection capacity Cx that is most similar to the detection capacity Cx by adding the minimum capacity C0 to the first synthetic capacity Cs1.
[0082] Cs2=Cs1+C0···(6)
[0083] That is, the control circuit 18 as the acquisition unit 18 c acquires two adjacent combined capacities Cs in which the magnitude relationship between the intermediate potential Vout and the preset reference potential Vref (= V1 / 2) is reversed as the first combined capacity Cs1 and the second combined capacity Cs2 .
[0084] Furthermore, the control circuit 18 as the detection unit 18a makes the control values b7 to b0 consistent with the set value "abcd_efgh" and makes the composite capacitance Cs of the capacitor array 11 consistent with the first composite capacitance Cs1, and detects the differential voltage ΔV (hereinafter also referred to as "first differential voltage ΔV1") related to the intermediate potential Vout at this time (hereinafter also referred to as "first intermediate potential Vout1") in the same manner as the aforementioned processing A. Similarly, the control circuit 18 as the detection unit 18a makes the control values b7 to b0 consistent with the set value "abcd_efgh+0000_0001" and makes the composite capacitance Cs of the capacitor array 11 consistent with the second composite capacitance Cs2, and detects the differential voltage ΔV (hereinafter also referred to as "second differential voltage ΔV2") related to the intermediate potential Vout at this time (hereinafter also referred to as "second intermediate potential Vout2") in the same manner as the aforementioned processing A.
[0085] Then, the control circuit 18 as the calculation unit 18 d calculates the estimated combined capacitance Cse of the capacitor array 11 when the intermediate potential Vout coincides with the reference potential Vref based on the first differential voltage ΔV1 and the second differential voltage ΔV2 .
[0086] That is, Figure 3 As shown, when the intermediate potential Vout between the first synthetic capacity Cs1 and the second synthetic capacity Cs2 is approximately proportional to the synthetic capacity Cs, the following equation (7) holds by making the inclination between the first synthetic capacity Cs1 and the estimated synthetic capacity Cse consistent with the inclination between the estimated synthetic capacity Cse and the second synthetic capacity Cs2.
[0087] ΔV1 / (Cse-Cs1)=ΔV2 / (Cs2-Cse)
[0088] Cse=(ΔV1·Cs2+ΔV2·Cs1) / (ΔV1+ΔV2)···(7)
[0089] As described above, the estimated combined capacitance Cse of the capacitor array 11 when the intermediate potential Vout matches the reference potential Vref matches the capacitance of the detection capacitor 12. The control circuit 18 as the deriving unit 18e derives the estimated combined capacitance Cse as the detection capacitance Cx of the detection capacitor 12.
[0090] In addition, it is clear from formula (7) that the estimated synthetic capacity Cse is calculated by the differential voltage ΔV, so even if the intermediate potential Vout itself is not detected, there will be no obstacles to its calculation. In addition, the differential voltage ΔV exists in both the numerator and the denominator, and is thus processed as a dimensionless number. Therefore, even if the differential voltage ΔV is amplified at an arbitrary amplification factor by the differential amplifier circuit 16 or AD-converted by the AD conversion circuit 17, the calculation result of the estimated synthetic capacity Cse is basically unchanged. As mentioned above, when the intermediate potential Vout is close to the reference potential Vref, the value of the differential voltage ΔV is represented by a minimum unit that is smaller than the voltage change of the intermediate potential Vout accompanied by the change in the resolution equivalent to the synthetic capacity Cs, and the detection capacity Cx is derived with a higher accuracy than the resolution of the synthetic capacity Cs.
[0091] Next, a general description will be given of a method of deriving the detection capacity Cx by the control circuit 18. This process is repeatedly executed by, for example, a timer interrupt.
[0092] like Figure 4 As shown, when the process is transferred to this routine, in step S1, the control circuit 18 changes the combined capacitance Cs of the capacitor array 11 through the above-mentioned processes A and B, and detects the intermediate potential Vout that changes accordingly, more precisely, detects the differential voltage ΔV.
[0093] Next, in step S2 , the control circuit 18 acquires any one of the combined capacities Cs near the inversion of the magnitude relationship between the intermediate potential Vout and the reference potential Vref as the first combined capacity Cs1 and the second combined capacity Cs2 .
[0094] Next, in step S3, the control circuit 18 calculates the estimated composite capacity Cse of the capacitor array 11 when the intermediate potential Vout is consistent with the reference potential Vref based on the intermediate potential Vout when the composite capacity Cs is the first composite capacity Cs1 and the second composite capacity Cs2, that is, the first intermediate potential Vout1 and the second intermediate potential Vout2, or more strictly, based on the first differential voltage ΔV1 and the second differential voltage ΔV2.
[0095] Then, in step S4, the control circuit 18 derives the capacitance of the detection capacitor 12 as the detection capacitance Cx based on the estimated combined capacitance Cse, and ends the process. That is, the control circuit 18 makes the detection capacitance Cx coincide with the estimated combined capacitance Cse.
[0096] The operation and effects of this embodiment will be described.
[0097] (1) In the present embodiment, the first composite capacity Cs1 and the second composite capacity Cs2 near the capacity of the capacitor array 11 when the intermediate potential Vout coincides with the reference potential Vref are acquired by the acquisition unit 18c. Furthermore, the estimated composite capacity Cse is calculated based on the first intermediate potential Vout1 and the second intermediate potential Vout2 by the calculation unit 18d. Furthermore, the detection capacity Cx is derived by the derivation unit 18e based on the coincidence of the intermediate potential Vout with the reference potential Vref, and the intermediate potential Vout is a potential obtained by dividing the capacity of the power supply obtained from the estimated composite capacity Cse and the capacity of the detection capacitor 12.
[0098] The synthetic capacity Cs can quickly converge to the first synthetic capacity Cs1 or the second synthetic capacity Cs2 by switching the selective on and off states of the plurality of capacitors 22 based on the switch control unit 18b, that is, by changing the capacity based on binary search and comparing the potential. For example, the number of switching commands for the selective on and off states of the eight capacitors 22 is more than a dozen. Therefore, the time required for detecting the capacity of the detection capacitor 12 can be further shortened. In addition, the detection capacity Cx is derived in a manner that the intermediate potential Vout is consistent with the reference potential Vref, so that the capacity of the detection capacitor 12 can be detected with the resolution of the capacity of the capacitor array 11, that is, with a higher accuracy than the capacity C0. The intermediate potential Vout is a potential divided by the capacity of the power supply for estimating the synthetic capacity Cse.
[0099] (2) In the present embodiment, the detection unit 18a only needs to detect the differential voltage ΔV between the intermediate potential Vout and the reference potential Vref. Therefore, for example, the range to be detected can be further shortened compared to the entire range of the intermediate potential Vout, and an expensive and large-scale high-resolution ADC is not required, so the cost can be reduced. In addition, since the estimated combined capacity Cse can be calculated based on the differential voltage ΔV between the intermediate potential Vout and the reference potential Vref, the calculation load can be further reduced.
[0100] (3) In the present embodiment, the differential voltage ΔV between the intermediate potential Vout and the reference potential Vref is amplified by the differential amplifier circuit 16, so that even if the differential voltage ΔV is very small, it can be made more significant, and the SN ratio can be further improved. In particular, if the characteristics of the differential amplifier circuit 16 are completely differential, the in-phase noise can be eliminated. In addition, if the gain of the differential amplifier circuit 16 is changed in accordance with the absolute value of the differential voltage ΔV, even if the minimum unit (LSB) of AD conversion is constant, the AD conversion circuit 17 can substantially change the minimum unit. Therefore, the AD conversion circuit 17 with a simple structure can be adopted, and the cost can be reduced.
[0101] (4) In the present embodiment, since the AD conversion circuit 17 performs AD conversion on the differential voltage ΔV between the intermediate potential Vout and the reference potential Vref, the differential voltage ΔV can be processed as a numerical value, and smoother calculation processing can be achieved.
[0102] (5) In the present embodiment, since the time required for detecting the capacity of the detection capacitor 12 can be further shortened, the circuit stop time can be extended accordingly, and the device as a whole can achieve further low current consumption. Alternatively, since the time required for detecting the capacity of the detection capacitor 12 can be further shortened, it is less likely to be affected by low-frequency noise overlapping with the power supply (high-side potential V1, etc.) and the increase in the fluctuation range of the power supply itself, and the detection accuracy can be further improved.
[0103] (6) In the present embodiment, the time required for detecting the capacity of the detection capacitor 12 can be further shortened, so that, for example, the number of detections within a constant time can be further increased. Therefore, by performing filtering processing such as averaging the capacity of the detection capacitor 12 detected within a constant time, the capacity of the detection capacitor 12 can be detected with higher accuracy.
[0104] (7) In the present embodiment, the capacitances Cn (n=0 to 7) of the plurality of capacitors 22 are in a power-of-2 relationship, so that the first combined capacitance Cs1 and the second combined capacitance Cs2 can be acquired in the shortest time by binary search.
[0105] <Second embodiment>
[0106] Hereinafter, the second embodiment will be described with reference to the drawings, focusing on the differences from the first embodiment.
[0107] Figure 5 30 of the present embodiment. Figure 5 For convenience, Figure 1 The parts shown correspond to the parts shown in the figure, and are marked with the same symbols.
[0108] The electrostatic capacitance detection device 30 of this embodiment is a proximity detection sensor mounted on a vehicle and detects when a person approaches a predetermined part of the vehicle. Specifically, for example, it is a sensor that detects when a person's foot touches the rear of the vehicle, or when a person's hand makes a tracing motion near the sliding door of the vehicle. When the proximity detection sensor detects that a predetermined part of a target object, i.e., a person, approaches, the opening and closing part of the vehicle is automatically opened by an electronic control unit (hereinafter referred to as ECU) that controls the opening and closing of the opening and closing part of the vehicle.
[0109] like Figure 5As shown in FIG. 1 , a battery 40 is connected to the electrostatic capacitance detection device 30, and the voltage of the battery 40 is stepped down by the regulator 31 and set to the high-side potential V1. Figure 5 As shown, the electrode 34 is connected to the connection point N1 via the filter circuit 32. The electrode 34, together with external components of the electrostatic capacitance detection device 30, constitutes the detection capacitor 12, which is a virtual capacitor to be detected for electrostatic capacitance.
[0110] In addition, if Figure 5 As shown, the differential amplifier circuit 16 includes an operational amplifier 16a, and the negative input terminal - of the operational amplifier 16a is connected to the connection point N1 via the resistor 16b and the amplifier circuit 19a, and is connected to the output terminal via the resistor 16c. Here, the amplifier circuit 19a has the same specifications as the amplifier circuit 19. In addition, the positive input terminal + of the operational amplifier 16a is grounded via the resistor 16d, and is connected to the amplifier circuit 19 via the resistor 16e.
[0111] In this embodiment, the resistor 16b and the resistor 16e have the same resistance value R1, and the resistor 16c and the resistor 16d have the same resistance value R2. In this case, the output of the differential amplifier circuit 16 is expressed by the following equation (8).
[0112] (R2 / R1)·(Vref-Vout)···(8)
[0113] In this embodiment, the resistance values R1 and R2 are set in such a way that (R2 / R1) becomes "Vadin / (8·C0·Rref)". Here, the input voltage range Vadin of the AD conversion circuit 17 and the reference sensitivity ratio Rref are used. The reference sensitivity ratio Rref represents the ratio of the change in the intermediate potential Vout to the change in the detection capacity Cx when the detection capacity Cx slightly changes when the synthetic capacity Cs is the standard capacity value CStyp. That is, if the above formula (3) is differentiated by the detection capacity Cx, it becomes the following formula (9).
[0114] [-V1 / {1+(Cx / Cs)^2}]·(1 / Cs)···(9)
[0115] Here, the value obtained by substituting the standard capacitance value CStyp into the composite capacitance Cs and the detection capacitance Cx is the reference sensitivity ratio Rref. In this case, when the composite capacitance Cs determined by the binary search described above is equal to the standard capacitance value CStyp, when the output value of the differential amplifier circuit 16 changes within the input voltage range Vadin of the AD conversion circuit 17, the change amount of the detection capacitance Cx is "8·C0".
[0116] In addition, the control circuit 18 of the present embodiment is composed of a dedicated hardware circuit such as an ASIC (application specific integrated circuit). By the way, in the present embodiment, the voltage of the battery 40 is stepped down by the regulator 31 by the above-mentioned ECU being started and output to the control circuit 18. In addition, the control circuit 18 is connected to the above-mentioned ECU via a communication line 50.
[0117] Figure 6 The following shows the order of processing executed by the control circuit 18. Figure 6 The processing shown is repeatedly executed in a predetermined cycle by the control circuit 18. In the following, the step number of each process is indicated by a number with "S" at the beginning.
[0118] exist Figure 6 In the series of processes shown, the control circuit 18 first determines whether the determination flag F is "1" (S10). By binary search, the control values b0 to b7 are specified. If it is determined that there is a reference capacity control value CScnt corresponding to the control values b0 to b7, the determination flag F is "1", and if not, the determination flag F is "0". When the electrostatic capacity detection device 30 is started with the start of the ECU, the determination flag F is "0". That is, at this time, the reference capacity control value CScnt is initialized.
[0119] When the flag F is determined to be "0" (S10: No), the control circuit 18 performs a binary search process (S12) and determines the reference capacity control value CScnt by determining the decision values a to h of the control values b0 to b7 (S14). In other words, the intermediate potential Vout is feedback-controlled to be the reference potential Vref, and the reference capacity control value CScnt is determined based on the control values b0 to b7 at the time point when the intermediate potential Vout is very close to the reference potential Vref. The most significant bit of the reference capacity control value CScnt is a, and the least significant bit is h.
[0120] The binary search process in this embodiment is basically the same as the process of 1 to 7 described above, but as described below, a discharge process is performed before the determination value of each of the control values b7 to b0 is obtained. That is, first, the control circuit 18 sets the first switch 13 and the third switch 15 to the on state and the second switch 14 to the off state, and after performing the discharge process of the capacitor array 11 and the electrode 34, the first switch 13 and the third switch 15 are both set to the off state and the second switch 14 is set to the on state, and the capacitor array 11 and the electrode 34 are connected in series. In addition, the control circuit 18 feedback-controls the intermediate potential Vout to the reference potential Vref using the control value b7 of the most significant bit as the operation amount. Next, after the control circuit 18 performs the discharge process again, the control circuit 18 feedback-controls the intermediate potential Vout to the reference potential Vref using the control value b6 as the operation amount in the state where the capacitor array 11 and the electrode 34 are connected in series. Thereafter, until the intermediate potential Vout is feedback-controlled to be the reference potential Vref using the control value b0 as the operation amount, the discharge process and the process of connecting the capacitor array 11 and the electrode 34 in series are repeated every time the operation amount is changed.
[0121] Next, the control circuit 18 converts the minimum capacitance C0 of the capacitor array 11 into a value of 2 to the seventh power of the minimum unit of the detection capacitance Cx in this embodiment by multiplying the reference capacitance control value Cscnt by the capacitance weight coefficient Cscef (S16). This is because, in this embodiment, the output of the AD conversion circuit 17 is 10 bits, and by setting the gain of the differential amplifier circuit 16, "8·C0" is represented by 10 bits. That is, in this embodiment, Figure 7 As shown in FIG. 1 , b0 is set to one seventh power of 2, and b1 is set to twice the value of "C0" which is the minimum unit of the AD conversion circuit 17, and b7 is set to the least significant bit of the reference capacity control value CScnt. Therefore, in order to set the least significant bit of the reference capacity control value CScnt to a value of 2 seventh power times the minimum unit of the AD conversion circuit 17, the capacity weight coefficient CScef is multiplied.
[0122] return Figure 6 The control circuit 18 calculates the sensitivity ratio CSratio by dividing the reference capacity control value CScnt by the standard capacity value CStyp (S18). Then, the control circuit 18 substitutes "1" into the determination flag F (S20).
[0123] On the other hand, when the control circuit 18 determines that the determination flag F is "1" (S10: Yes), the first switch 13 and the third switch 15 are both set to the on state and the second switch 14 is set to the off state, and the discharge process of the capacitor array 11 and the electrode 34 is performed (S22). Next, the control circuit 18 sets the first switch 13 and the third switch 15 to the off state and the second switch 14 to the on state, and the capacitor array 11 and the electrode 34 are connected in series (S24). Then, the control circuit 18 obtains the output voltage of the differential amplifier circuit 16, that is, the differential voltage ΔV (S26). Next, the control circuit 18 substitutes the value obtained by multiplying the sensitivity ratio CSratio by the differential voltage ΔV into the lower capacitance value Cxf (S28). This is a process of converting the differential voltage ΔV into a value when the synthetic capacitance Cs is the standard capacitance value CStyp. That is, according to the above formula (9), it can be seen that the change amount of the intermediate potential Vout relative to the change of the detection capacitance Cx varies depending on the size of the detection capacitance Cx.
[0124] Figure 8 Based on the above formula (9), the change of the intermediate potential Vout with respect to the change of the detection capacity Cx, that is, the relationship between the sensitivity and the size of the detection capacity Cx is expressed. Figure 8 The relationship shown is the relationship when the synthetic capacity Cs and the detection capacity Cx are equal in the above formula (9). This reflects the state at the time point when the processing of S12 is completed. That is, at the time point when the processing of S12 is completed, the synthetic capacity Cs is very close to the detection capacity Cx, so they are considered to be equal to each other. Figure 8 As shown, the amount of change in the intermediate potential Vout when the detection capacity Cx changes from the time point when the processing of S12 is completed depends on the detection capacity Cx at the time point when the processing of S12 is completed. This can be regarded as the amount of change in the intermediate potential Vout when the detection capacity Cx changes from the time point when the processing of S12 is completed depends on the synthetic capacity Cs at the time point when the processing of S12 is completed. Therefore, it can be regarded as that after the processing of S12 is completed, the change in the differential voltage ΔV caused by the change in the detection capacity Cx by a predetermined amount depends on the synthetic capacity Cs at the time point when the processing of S12 is completed.
[0125] Therefore, in this embodiment, in order to convert the differential voltage ΔV into a value when the combined capacitance Cs at the time when the process of S12 is completed is the standard capacitance value CStyp, the differential voltage ΔV is multiplied by the sensitivity ratio CSratio.
[0126] Then, the control circuit 18 substitutes the sum of the upper capacity value Cxc and the lower capacity value Cxf into the detection capacity Cx(n) (S30). Here, the variable "n" represents the number of times the process is repeated. Figure 6 The sampling value of this time during processing.
[0127] Next, the control circuit 18 determines whether the value obtained by subtracting the detection capacity Cx(n-1) calculated last time from the detection capacity Cx(n) calculated this time is greater than the specified amount ΔCth (S32). This process is a process for determining whether a specific part of a person is close to the electrode 34. Considering that the detection capacity Cx increases when a specific part approaches the electrode 34, the control circuit 18 determines that the specific part is close when the increase is greater than the specified amount ΔCth (S32: Yes), and substitutes "1" into the contact sensing flag (S34). In contrast, when the increase in the detection capacity Cx is less than the specified amount ΔCth (S32: No), the control circuit 18 substitutes "0" into the contact sensing flag (S36). Then, the control circuit 18 outputs the value of the contact sensing flag to the ECU via the communication line 50 (S38).
[0128] When the process of S38 is completed, the control circuit 18 updates the variable n (S40). In addition, when the process of S20 and S40 is completed, the control circuit 18 temporarily terminates. Figure 6 A series of processing is shown.
[0129] Thus, according to the present embodiment, by correcting the differential voltage ΔV by the sensitivity ratio CSratio, even if the difference between the detection capacity Cx and the synthetic capacity Cs is the same, the synthetic capacity Cs at the time point when the processing of S16 is finished can be used to compensate for the different differential voltage ΔV. That is, according to the above-mentioned formula (9), the magnitude of the change in the intermediate potential Vout when the detection capacity Cx changes becomes smaller when the synthetic capacity Cs at the time point when the processing of S12 is larger than when it is smaller. On the other hand, the sensitivity ratio CSratio is a parameter that becomes larger when the synthetic capacity Cs is larger than when it is smaller. Therefore, even if the magnitude of the differential voltage ΔV is the same, the magnitude of the lower capacity value Cxf, that is, the absolute value, is set to a larger value when the synthetic capacity Cs is larger than when it is smaller. Therefore, it is possible to suppress the magnitude of the change in the intermediate potential Vout when the detection capacity Cx changes according to the magnitude of the synthetic capacity Cs at the time point when the processing of S12 is finished, and thus the detection capacity Cx can be calculated with high accuracy.
[0130] According to the present embodiment described above, the following effects are also achieved.
[0131] (8) Whenever the switch 23 of the capacitor array 11 is operated, the parasitic capacitance of each wiring etc. may change. Therefore, whenever the detection capacitance Cx is updated, when the process of S12 is executed before that, although the electrostatic capacitance of the detection object does not actually change, the detection capacitance Cx calculated by the process of S30 may change due to the change of the above-mentioned parasitic capacitance. In contrast, in the present embodiment, when the process of S12 is completed, by monitoring the change of the detection capacitance Cx while the reference capacitance control value Cscnt is fixed, it is possible to suppress the change of the parasitic capacitance from being erroneously detected as the change of the electrostatic capacitance of the detection object.
[0132] (9) In the binary search process, the control values b0 to b7 are set as the operation amounts one by one, and after each re-discharging process, the capacitor array 11 and the electrode 34 are connected in series. Thus, even when the detection capacitor 12 generates a leakage current, the difference between the upper capacitance value Cxc and the actual electrostatic capacitance of the detection capacitor 12 can be minimized.
[0133] <Third embodiment>
[0134] Hereinafter, the third embodiment will be described with reference to the drawings, focusing on the differences from the first embodiment.
[0135] Fig. 9 The following shows the order of processing executed by the control circuit 18. Fig. 9 The processing shown is repeatedly executed by the control circuit 18 at a predetermined cycle. Fig. 9 For convenience, Figure 6 The same step numbers are used to indicate corresponding processes shown in the figure.
[0136] exist Fig. 9 In the series of processes shown in FIG. 1 , when the process of S28 is completed, the control circuit 18 substitutes the differential voltage ΔV obtained by the process of S26 into the differential voltage ΔVa (S50). Then, the control circuit 18 waits until the predetermined time T1 has passed (S52: No). Here, the predetermined time T1 is set to Fig. 9 Then, when the predetermined time T1 has passed (S52: Yes), the control circuit 18 acquires the differential voltage ΔV again (S54), substitutes it into the differential voltage ΔVb (S56), and proceeds to the process of S30.
[0137] In addition, after the processing of S34 and S36 is completed, the control circuit 18 determines whether the absolute value of the difference between the differential voltage ΔVa and the differential voltage ΔVb is greater than the specified amount ΔVth (S58). Here, the specified amount ΔVth is set according to the change speed of the detection capacity Cx under the condition that, for example, the electrode 34 is electrically connected to the ground through a conductor or a component with a low resistance value, thereby generating an abnormal leakage current and failing to function as a proximity detection sensor. When the control circuit 18 determines that it is greater than the specified amount ΔVth (S58: Yes), "1" is substituted into the abnormal notification flag (S60), and on the other hand, when it is determined that it is less than the specified amount ΔVth (S58: No), "0" is substituted into the abnormal notification flag (S62). Then, when the processing of S60 and S62 is completed, the control circuit 18 outputs the values of the contact sensing flag and the abnormal notification flag to the ECU via the communication line 50 (S38a). Here, when the abnormality notification flag is "1", the ECU sets the value of the contact sensing flag to be invalid, and performs a notification process of notifying the outside of the abnormality, etc.
[0138] When the process of S38a is completed, the control circuit 18 executes the process of S40. In addition, when the process of S20 and S40 is completed, the control circuit 18 temporarily terminates the process. Fig. 9 A series of processing is shown.
[0139] Fig.10 : represents the transition of the intermediate potential Vout from the end of the binary search process. Specifically, the solid line represents the transition example of the intermediate potential Vout in a normal state, and the single-dot chain line represents the transition example of the intermediate potential Vout in an abnormal state. Fig.10 As shown in FIG. 1 , the amount of decrease in the intermediate potential Vout after the predetermined time T1 increases when the abnormality occurs. Therefore, the control circuit 18 detects the decrease in the intermediate potential Vout when the abnormality occurs based on the fact that the magnitude (absolute value) of the change speed of the differential voltage ΔV is large through the processing of S58. In addition, the ECU is notified of the abnormality in this case, so that the ECU can be notified when the abnormality occurs. In addition, since the change in the intermediate potential Vout when the abnormality occurs includes both a decrease and an increase, the magnitude of the change speed of the differential voltage ΔV is monitored in the processing of S58.
[0140] By the way, Fig.10In the embodiment, the time t1 when the process of S24 ends, the time t2 when the process of S26 is executed, and the time t3 when the process of S54 is executed are all determined to be normal periods, and the time when the falling speed of the intermediate potential Vout is the largest is indicated by a double-dashed line. In the present embodiment, the falling amount of the intermediate potential Vout when the falling speed of the intermediate potential Vout is the largest is set to a prescribed amount ΔVth in the period from the end of the process of S24 to the execution of the process of S54 as a normal period. Therefore, the time difference T0 between the time t2 when the process of S26 is executed and the time t1 when the process of S24 ends is set to be very small. However, in the case where there is a limit to reducing the time difference T0, a blank space corresponding to the time difference T0 can be set to set the prescribed amount ΔVth. However, in the case where an abnormality due to leakage current occurs, the closer to the end of the process of S24, the greater the falling speed of the intermediate potential Vout, so it is desirable that the time difference T0 is very short.
[0141] <Correspondence>
[0142] The correspondence between the matters in the above-mentioned embodiments and the matters described in the above-mentioned "Technical means for solving the problem" column is as follows: Hereinafter, the correspondence is indicated by the number of the solution described in the "Technical means for solving the problem" column.
[0143] [1, 2, 8] The variable capacitance capacitor corresponds to the capacitor array 11. The voltage applying device corresponds to the regulator 31. The operation process corresponds to Figure 4 S1 processing, Figure 6 and Fig. 9 The detection process corresponds to the process of S12. Figure 4 Processing of S2 to S4, Figure 6 and Fig. 9 The processing of S26 to S30 of [3] corresponds to Figure 4 [4] corresponds to Figure 6 , Fig. 9 [5] Output processing corresponds to Figure 6 S38 processing, Fig. 9 [6] The first discharge path corresponds to a path connected in parallel with the capacitor array 11 and having the first switch 13, and the first discharge switch corresponds to the first switch 13. The second discharge path corresponds to a path having the third switch 15, and the second discharge switch corresponds to the third switch 15. [7] "The sampling period of the output value of the differential amplifier circuit for outputting a signal indicating that a predetermined object has approached the electrode" corresponds to Fig. 9 The “sampling period shorter than the sampling period of the output value of the differential amplifier circuit for outputting a signal indicating that a predetermined object has approached an electrode” corresponds to the predetermined time T1.
[0144] This embodiment can be implemented by being modified as follows. This embodiment and the following modified examples can be implemented in combination with each other within a range that does not technically contradict each other.
[0145] In the above embodiment, the capacitance Cn (n=0-7) of the plurality of capacitors 22 of the capacitor array 11 may not be a power of 2 as shown in equation (1). For example, the capacitance Cn (n=0-7) may be a power of a natural number greater than 3.
[0146] In the above embodiment, the number of capacitors 22 in the capacitor array 11 is arbitrary as long as the capacitances are different from each other. In addition, the capacitances of the plurality of capacitors 22 may be in a power relationship of a natural number greater than 2, or may be in a relationship of increasing with a certain deviation.
[0147] In the first embodiment, the AD conversion circuit 17 may be omitted and the capacitance of the detection capacitor 12 may be detected by analog processing.
[0148] In the first embodiment, the differential amplifier circuit 16 may be omitted and the differential voltage ΔV may be directly AD-converted by the AD conversion circuit 17 .
[0149] In the first embodiment, an amplifier for amplifying the intermediate potential Vout may be used instead of the differential amplifier circuit 16. Alternatively, the differential amplifier circuit 16 may be omitted and the intermediate potential Vout may be directly AD-converted by the AD conversion circuit 17. That is, the control circuit 18 as the detection unit 18a may also directly detect the intermediate potential Vout.
[0150] In the first embodiment, the first combined capacity Cs1 and the second combined capacity Cs2 may be any one of the combined capacities Cs near the position where the magnitude relationship between the intermediate potential Vout and the reference potential Vref is reversed.
[0151] In the above-described embodiment, the low-side potential V2 may not be equal to the ground potential (=0). In this case, for example, V1 in the equation (4) may be changed to "V1-V2".
[0152] In the above-described embodiment, the reference potential Vref, which is the target value for adjusting the potential of the power supply's capacity voltage division, is not limited to "V1 / 2", and may be arbitrarily changed to "V1 / 3", for example. Even if the reference potential Vref is arbitrarily changed, the detection capacity Cx can be derived by calculating the estimated composite capacity Cse that is consistent with the reference potential Vref, and the intermediate potential Vout is the potential of the power supply's capacity voltage division obtained based on the composite capacity Cs and the capacity of the detection capacitor 12.
[0153] In the above-described embodiment, the reference potential Vref may be set by a method other than resistor voltage division, such as DAC capacitance voltage division.
[0154] In the first embodiment, the detection object of the capacity, i.e., the detection capacitor 12, may also be multiple. In addition, when the detection capacity Cx of multiple detection capacitors 12 is derived separately, a switch that selectively connects to the circuit structure other than those, i.e., the capacitor array 11, etc., by means of time division, etc., may be provided. Such separate derivation of the detection capacity Cx of multiple detection capacitors 12 can be achieved by shortening the time required for deriving the detection capacity Cx of each detection capacitor 12.
[0155] exist Figure 6 , Fig. 9 In the binary search process (S12), the discharge process does not necessarily have to be performed every time before the decision value of each of the control values b7 to b0 is determined. In other words, it may be the same as 1 to 7 in the first embodiment.
[0156] exist Figure 6 , Fig. 9 In the process of , the sensitivity ratio CSratio is set to a value obtained by dividing the reference capacity control value CScnt by the standard capacity value CStyp, but is not limited thereto. For example, it may be set to a value obtained by dividing the upper capacity value Cxc by the standard capacity value CStyp.
[0157] The conversion process of converting the differential voltage ΔV to a value when the synthetic capacity Cs is a specified value such as the standard capacity value CStyp is not limited to the process of S28. For example, it can also be set to a process of multiplying the differential voltage ΔV by the reference capacity control value CScnt. In addition, while performing such a process, the size of the detection capacity Cx is set to be the same as that of the second embodiment and the third embodiment, and on this basis, the gain "R2 / R1" of the differential amplifier circuit 16 is set to "1 / CStyp" of the value exemplified in the second embodiment.
[0158] exist Figure 5 In the illustrated configuration, the detection capacity Cx may be calculated by the processing illustrated in the first embodiment. In this case, a process for determining the presence or absence of an abnormality based on the amount of change in the differential voltage ΔV when the predetermined time T1 has elapsed may be added.
[0159] exist Figure 5 In the illustrated structure, the control circuit 18 may include a CPU and a ROM, and the CPU may execute a program stored in the ROM to implement Figure 6 , Fig. 9 Example processing.
[0160] exist Figure 5In the illustrated structure, the filter circuit may be deleted.
[0161] exist Figure 5 In the structure of , the regulator 31 is not necessarily provided.
[0162] In the processing of S32, it is determined whether the value obtained by subtracting the previous detection capacity Cx(n-1) from the current detection capacity Cx(n) is greater than the specified amount ΔCth. Alternatively, it is determined whether the absolute value of the value obtained by subtracting the previous detection capacity Cx(n-1) from the current detection capacity Cx(n) is greater than the specified amount ΔCth.
[0163] exist Fig. 9 In the process of S56, after the process of S56, the detection capacity Cx is calculated again based on the differential voltage ΔVb, and in the subsequent process of S58, it can also be determined whether the absolute value of the value obtained by subtracting the detection capacity Cx(n) from the recalculated detection capacity Cx is greater than the prescribed amount ΔCth1. Thus, the presence or absence of abnormality is also determined based on the fact that the magnitude of the change in the differential voltage ΔV is greater than the prescribed amount.
[0164] In the above embodiment, a comparator that inputs the intermediate potential Vout and the reference potential Vref and determines the magnitude relationship between them may be provided between the connection point N1 and the control circuit 18. Furthermore, during the aforementioned binary search, the magnitude relationship between the intermediate potential Vout and the reference potential Vref, that is, the magnitude relationship between the synthetic capacitance Cs and the detection capacitance Cx may be determined by a comparator instead of the differential amplifier circuit 16. In this case, the control circuit 18 can also determine the set value "abcd_efgh" of the capacitor array 11 based on the determination result obtained by the comparator.
[0165] A comparator for comparing the intermediate potential Vout with the reference potential Vref may be provided instead of the differential amplifier circuit 16. In this case, the set value "abcd_efgh" of the capacitor array 11 can also be determined, so that the detection capacity Cx can be detected by considering the combined capacity Cs of the capacitor array 11 to be equal to the detection capacity Cx.
[0166] The process of detecting the detection capacity Cx based on the composite capacity Cs when the intermediate potential Vout is two values across the reference potential Vref and the difference between the intermediate potential Vout and the reference potential Vref is the smallest is not limited to the calculation of the detection capacity Cx by linear interpolation based on the differential voltages ΔV1 and ΔV2 as exemplified in the first embodiment. For example, the intermediate value of the two values may be regarded as the detection capacity Cx. In addition, the process may be realized by providing a comparator that compares the magnitude of the intermediate potential Vout and the reference potential Vref instead of the differential amplifier circuit 16.
[0167] The technical ideas that can be grasped from the above-mentioned embodiments and modified examples are described.
[0168] The electrostatic capacitance detection device comprises: a capacitor array, the capacitor array having a plurality of capacitors having different capacities connected in parallel, and the combined capacitance changes by selectively switching the on state and the off state of the plurality of capacitors; a detection capacitor, the detection capacitor being connected in series to the capacitor array; a switch control unit, the switch control unit selectively switching the plurality of capacitors between the on state and the off state; a detection unit, the detection unit detecting a potential of a capacitance voltage division of a power supply obtained according to the combined capacitance and the capacitance of the detection capacitor, i.e., an intermediate potential; an acquisition unit, the acquisition unit acquiring any one of the combined capacitances near which the magnitude relationship between the intermediate potential and a preset reference potential is reversed as a first combined capacitance and a second combined capacitance; a calculation unit, the calculation unit calculating an estimated combined capacitance of the capacitor array when the intermediate potential is consistent with the reference potential based on the intermediate potentials, i.e., the first intermediate potential and the second intermediate potentials, when the combined capacitances are the first combined capacitance and the second combined capacitance, respectively; and a derivation unit, the derivation unit deriving the capacitance of the detection capacitor as a detection capacitance based on the estimated combined capacitance.
[0169] According to this structure, the first composite capacity and the second composite capacity near the capacity of the capacitor array when the intermediate potential matches the reference potential are acquired by the acquisition unit. Furthermore, the estimated composite capacity is calculated by the calculation unit based on the first intermediate potential and the second intermediate potential. Furthermore, the detection capacity is derived by the derivation unit based on the fact that the intermediate potential, which is a potential of the power supply voltage divided by the estimated composite capacity and the capacity of the detection capacitor, matches the reference potential.
[0170] The composite capacity can quickly converge to the first composite capacity or the second composite capacity by switching between the selective on and off states of the plurality of capacitors based on the switch control unit. Therefore, the time required for detecting the capacity of the detection capacitor can be further shortened. On this basis, the detection capacity is derived in a manner that is consistent with the reference potential and the potential of the capacity voltage division of the power supply of the estimated composite capacity, that is, the intermediate potential, so that the capacity of the detection capacitor can be detected with a higher accuracy than the resolution of the capacity of the capacitor array.
[0171] In the above-mentioned electrostatic capacitance detection device, it is preferable that the detection unit detects a differential voltage between the intermediate potential and the reference potential.
[0172] According to this configuration, the detection unit only needs to detect the differential voltage between the intermediate potential and the reference potential. Therefore, for example, the range to be detected can be further narrowed compared to the entire range of the intermediate potential.
[0173] The above-mentioned electrostatic capacitance detection device preferably includes an amplifying unit that amplifies the differential voltage between the intermediate potential and the reference potential.
[0174] According to this configuration, the differential voltage between the intermediate potential and the reference potential is amplified by the amplifier, so that, for example, even if the differential voltage is very small, it can be made more significant.
[0175] The above-mentioned electrostatic capacitance detection device preferably includes an AD conversion unit that performs AD conversion on the differential voltage between the intermediate potential and the reference potential.
[0176] According to this configuration, the differential voltage between the intermediate potential and the reference potential can be processed as a numerical value, and smoother calculation processing can be achieved.
[0177] In the above-mentioned electrostatic capacitance detection device, the capacitances of the plurality of capacitors are in a power-of-2 relationship.
[0178] According to this configuration, the first combined capacity and the second combined capacity can be acquired in the shortest time by binary search.
Claims
1. An electrostatic capacitance detection device, comprising: A variable capacitance capacitor having a plurality of series-connected bodies connected in parallel, the series-connected bodies being series-connected bodies of capacitors and switches, wherein the variable capacitance capacitor has a composite capacitance that is variable by an on / off operation of the switch; an electrode constituting a detection capacitor as a detection object of electrostatic capacitance, the detection capacitor being connected in series with the variable capacitance capacitor; as well as Control circuit, The electrostatic capacitances of the corresponding capacitors of the plurality of series-connected bodies are different from each other. When the voltage of the voltage applying device is applied to the electrode via the variable capacitance capacitor, the control circuit detects an intermediate potential based on the combined capacitance and the electrostatic capacitance of the detection capacitor, the intermediate potential being a potential divided by the capacitance of the voltage applying device. The control circuit selectively switches the plurality of capacitors of the variable capacitance capacitor between an on state and an off state to change the combined capacitance, and detects the intermediate potential that changes accordingly. The control circuit acquires any one of the combined capacities near the inversion of the magnitude relationship between the intermediate potential and the reference potential as a first combined capacity and a second combined capacity, The control circuit calculates an estimated combined capacity of the variable capacitance capacitor when the intermediate potential coincides with the reference potential based on a first intermediate potential and a second intermediate potential as the intermediate potentials when the combined capacity is the first combined capacity and the second combined capacity, respectively. The control circuit derives the electrostatic capacitance of the detection capacitor as the detection capacitance based on the estimated combined capacitance.
2. The electrostatic capacitance detection device according to claim 1, wherein: A differential amplifier circuit is provided, the intermediate potential and the reference potential are input to the differential amplifier circuit, and the differential amplifier circuit outputs a voltage signal corresponding to the difference between the intermediate potential and the reference potential, The electrostatic capacitance of the detection capacitor is detected based on the output value of the differential amplifier circuit when controlled to the reference potential in addition to the electrostatic capacitance of the variable capacitor when controlled to the reference potential.
3. The electrostatic capacitance detection device according to claim 1 or 2, wherein: The electrostatic capacity of the detection capacitor is detected based on two values of the electrostatic capacity of the variable capacitance capacitor when the intermediate potential is a pair of values across the reference potential and the differences between the pair of intermediate potentials and the reference potential are respectively minimized.
4. The electrostatic capacitance detection device according to claim 2, wherein: The detection of the detection capacitor is performed by correcting an upper capacitance value based on the output value of the differential amplifier circuit, thereby detecting the electrostatic capacitance of the detection capacitor. The upper capacitance value is the electrostatic capacitance of the detection capacitor grasped based on the electrostatic capacitance of the variable capacitance capacitor when controlled to the reference potential and the reference potential, and even if the output value of the differential amplifier circuit is the same, the magnitude of the correction amount based on the output value is increased when the electrostatic capacitance of the variable capacitance capacitor when controlled to the reference potential is larger than when it is smaller.
5. The electrostatic capacitance detection device according to claim 2, wherein: The control circuit repeatedly performs the detection, When the electrostatic capacity of the detection capacitor detected by the detection changes, the control circuit performs output processing of outputting a signal indicating that the change has occurred.
6. The electrostatic capacitance detection device according to claim 5, wherein: have: a first discharge path that discharges the variable capacitance capacitor; a first discharge switch, the first discharge switch opening and closing the first discharge path; a second discharge path that discharges the electrode; as well as a second discharge switch that opens and closes the second discharge path; The control circuit sets the first discharge switch and the second discharge switch to a closed state to perform a discharge process for discharging the variable capacitance capacitor and the electrode. The control circuit sets the first discharge switch and the second discharge switch to an open state after the discharge process, and performs the detection when the voltage is applied to the electrode via the variable capacitance capacitor by the voltage applying device. The control circuit repeatedly performs the detection in a state where the electrostatic capacity of the variable capacitance capacitor is fixed after temporarily controlling the intermediate potential to be the reference potential.
7. The electrostatic capacitance detection device according to claim 6, wherein: The output processing includes the following processing: when the magnitude of the change in the output value of the differential amplifier circuit in a sampling period shorter than the sampling period of the output value of the differential amplifier circuit for outputting a signal indicating that a specified object is close to the electrode is greater than a specified amount, a signal indicating that the electrostatic capacitance detection device is abnormal is output.
