CN109238314B - Detection method and device for proximity sensing - Google Patents

Detection method and device for proximity sensing Download PDF

Info

Publication number
CN109238314B
CN109238314B CN201810786320.2A CN201810786320A CN109238314B CN 109238314 B CN109238314 B CN 109238314B CN 201810786320 A CN201810786320 A CN 201810786320A CN 109238314 B CN109238314 B CN 109238314B
Authority
CN
China
Prior art keywords
capacitor
capacitance
initial
fluctuation
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810786320.2A
Other languages
Chinese (zh)
Other versions
CN109238314A (en
Inventor
夏孙城
李自强
林兆雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ayou Information Technology Co ltd
Original Assignee
Shanghai Ayou Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ayou Information Technology Co ltd filed Critical Shanghai Ayou Information Technology Co ltd
Priority to CN201810786320.2A priority Critical patent/CN109238314B/en
Priority to PCT/CN2018/105692 priority patent/WO2020015117A1/en
Publication of CN109238314A publication Critical patent/CN109238314A/en
Application granted granted Critical
Publication of CN109238314B publication Critical patent/CN109238314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/14Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage
    • G01D5/24Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage by varying capacitance
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V3/00Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation

Abstract

The application discloses a detection method and device for proximity sensing. The method comprises the following steps: the method comprises the steps that a first initial capacitor is obtained when a capacitive proximity sensor is in an unfired state, and filtering processing is carried out on the first initial capacitor to obtain a first reference capacitor and a first fluctuation capacitor; detecting whether the first ripple capacitance is larger than a first noise capacitance; if the first fluctuation capacitor is detected to be larger than the first noise capacitor, performing temperature difference compensation operation on the first initial capacitor; the mode that initial capacitance is obtained respectively in the two states of triggering and not triggering of the sensor is adopted, and the purpose of state judgment after environmental factor influence is reduced is achieved by performing temperature difference compensation operation on the initial capacitance, so that the technical effect of improving the state judgment accuracy is achieved, and the problem that the capacitive proximity sensor cannot detect the departure of a human hand after being in the triggering state for a long time is solved.

Description

Detection method and device for proximity sensing
Technical Field
The present application relates to the field of proximity sensing, and in particular, to a detection method and apparatus for proximity sensing.
Background
The capacitive proximity sensor detects whether a human hand approaches by sensing capacitance change caused by the approach of the human hand, and can be used as a key or a proximity inductive switch to replace a traditional mechanical key. When no human hand approaches, the capacitive proximity sensor and the outside world form a parasitic capacitance Cp, and when a human hand approaches, a capacitance Ch is additionally introduced, and the total capacitance is C ═ Cp + Ch. In practice, the parasitic capacitance Cp is easily affected by external environmental factors (especially temperature) to generate a change Cp ', and when the magnitude of Cp' is equal to Ch, false triggering occurs. The change Cp' of the parasitic capacitance due to environmental changes tends to be slow, and the capacitance Ch introduced by far less than human hands changes rapidly. In the related art, when C changes slowly, filtering (average filtering, median filtering, low-pass filtering or a combination of the average filtering, the median filtering and the low-pass filtering) is performed to obtain a baseline Cbase, the baseline can track changes of parasitic capacitance caused by the environment, when C changes greatly suddenly, the difference Cdiff between C and Cbase is large, and at this time, a human hand approaches, a sensor is triggered, and the baseline keeps a value before triggering unchanged.
The inventor finds that in the technical scheme in the related art, the change of the parasitic capacitance caused by the environment can not be tracked any more because the baseline is not updated any more after the sensor is triggered. When the human hand is in the close state for a long time, the sensor is always in the trigger state, and the environment-induced parasitic capacitance variation Cp' may accumulate more and more over time, reaching or even exceeding Ch. Then the hand is released, the difference Cdiff between C and Cbase is still large, and the sensor cannot detect the leaving of the hand; in the actual use process, the parasitic capacitance Cp caused by the temperature changes most obviously, and the sensor is easily loosened after being held by a hand for a long time and is always kept in a trigger state due to the parasitic capacitance change caused by the temperature.
Therefore, a detection method and a detection device for proximity sensing are urgently needed to solve the problem that the capacitive proximity sensing sensor cannot detect the departure of a human hand after being in a trigger state for a long time.
Disclosure of Invention
The application mainly aims to provide a detection method and a detection device for proximity sensing, so as to solve the problem that a capacitive proximity sensing sensor cannot detect that a human hand leaves after being in a trigger state for a long time.
To achieve the above object, according to one aspect of the present application, there is provided a detection method for proximity sensing.
The detection method for proximity sensing according to the present application includes: obtaining a first initial capacitor when the capacitive proximity sensor is in an unfired state, and filtering the first initial capacitor to obtain a first reference capacitor and a first fluctuation capacitor, wherein the first fluctuation capacitor is a difference value between the first initial capacitor and the first reference capacitor; detecting whether the first fluctuation capacitance is larger than a first noise capacitance, wherein the first noise capacitance is an environmental noise value of the first initial capacitance; and if the first fluctuation capacitor is detected to be larger than the first noise capacitor, performing temperature difference compensation operation on the first initial capacitor.
Further, if the first ripple capacitance is greater than the first noise capacitance, entering a temperature difference compensation operation for the first initial capacitance includes: obtaining a current first real-time temperature through a temperature measuring device; obtaining a corresponding first compensation capacitor according to the first real-time temperature, wherein the first compensation capacitor is used as a capacitance change value caused by the first real-time temperature; and according to the first compensation capacitor, performing capacitance compensation on the first initial capacitor to obtain the first initial capacitor after data correction.
Further, after the detecting whether the first ripple capacitance is larger than the first noise capacitance, the method further includes: and if the first fluctuation capacitance is not larger than the first noise capacitance, detecting the magnitude relation between the first fluctuation capacitance and the preset first trigger capacitance, wherein the preset first trigger capacitance is used as a capacitance change value caused when a human body approaches the capacitive proximity sensor.
Further, if it is detected that the first fluctuation capacitance is not greater than the first noise capacitance, the monitoring of the magnitude relationship between the first fluctuation capacitance and the preset first trigger capacitance includes: and if the first fluctuation capacitance is monitored to be larger than the preset first trigger capacitance, the capacitive proximity sensor is in a trigger state.
Further, if it is detected that the first ripple capacitance is not greater than the first noise capacitance, detecting a magnitude relationship between the first ripple capacitance and the preset first trigger capacitance further includes: and if the first fluctuation capacitor is not larger than the preset first trigger capacitor, filtering the first initial capacitor again to obtain the updated first reference capacitor and first fluctuation capacitor.
In order to achieve the above object, according to another aspect of the present application, there is provided a detection apparatus for proximity sensing, which obtains a first initial capacitance when a capacitive proximity sensing sensor is in an unactuated state.
The detection device for proximity sensing according to the present application includes: the first calculation unit is used for carrying out filtering processing on the first initial capacitor to obtain a first reference capacitor and a first fluctuation capacitor; the first monitoring unit is used for monitoring the magnitude relation between the first fluctuation capacitor and a first noise capacitor, wherein the first noise capacitor is the noise value of the first initial capacitor; and the first execution unit is used for executing preset calculation operation according to the magnitude relation between the first fluctuation capacitor and the first noise capacitor.
According to another aspect of the present application, there is provided another detection method for proximity sensing, wherein a second initial capacitance is obtained when a capacitive proximity sensing sensor is in a trigger state.
The detection method for proximity sensing according to the present application includes: performing temperature difference compensation operation on the second initial capacitor to obtain the second initial capacitor after data correction; filtering the second initial capacitor to obtain a second reference capacitor and a second fluctuation capacitor, wherein the second fluctuation capacitor is a difference value between the second initial capacitor and the second reference capacitor; detecting whether the second fluctuation capacitance is smaller than a preset first trigger release capacitance, wherein the preset first trigger release capacitance is used as a capacitance change value caused when a human body is far away from the capacitive proximity sensor; and if the second fluctuation capacitance is smaller than a preset first trigger releasing capacitance, the capacitive proximity sensor is in a non-triggered state.
Further, after detecting whether the second ripple capacitance is smaller than a preset first de-trigger capacitance, the method further includes: and if the second fluctuation capacitance is detected to be not smaller than a preset first trigger releasing capacitance, the capacitive proximity sensor is in a trigger state.
Further, the performing a temperature difference compensation operation on the second initial capacitor to obtain the data-corrected second initial capacitor includes: obtaining a current second real-time temperature through a temperature measuring device; obtaining a corresponding second compensation capacitor according to the second real-time temperature, wherein the second compensation capacitor is used as a capacitance change value caused by the second real-time temperature; and performing capacitance compensation on the second initial capacitor according to the second compensation capacitor to obtain the second initial capacitor after data correction.
In order to achieve the above object, according to another aspect of the present application, there is provided a detection apparatus for proximity sensing, which obtains a second initial capacitance when a capacitive proximity sensing sensor is in a trigger state.
The detection device for proximity sensing according to the present application includes: the correction unit is used for performing temperature difference compensation operation on the second initial capacitor to obtain the first initial capacitor after data correction; the second calculating unit is used for performing filtering processing on the second initial capacitor to obtain a second reference capacitor and a second fluctuation capacitor, wherein the second fluctuation capacitor is a difference value between the second reference capacitor and the second fluctuation capacitor; the second monitoring unit is used for monitoring the size relation between the second fluctuation capacitor and a preset first trigger release capacitor, wherein the preset first trigger release capacitor is used as a capacitor change value caused when a human body is far away from the capacitive proximity sensor; and the second execution unit is used for executing preset calculation operation according to the magnitude relation between the second fluctuation capacitor and a preset second release trigger capacitor.
In the embodiment of the application, the initial capacitance is obtained respectively in the triggering state and the non-triggering state of the sensor, and the purpose of state judgment after reducing the influence of environmental factors is achieved by performing temperature difference compensation operation on the initial capacitance, so that the technical effect of improving the state judgment accuracy is achieved, and the problem that the capacitive proximity sensor cannot detect the departure of a human hand after being in the triggering state for a long time is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a schematic illustration of a detection method according to a first embodiment of the present application;
FIG. 2 is a schematic diagram of a detection method according to a second embodiment of the present application;
FIG. 3 is a schematic diagram of a detection method according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of a detection method according to a fourth embodiment of the present application;
FIG. 5 is a schematic view of a detection apparatus according to a first embodiment of the present application; and
fig. 6 is a schematic view of a detection device according to a second embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the invention and its embodiments and are not intended to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meanings of these terms in the present invention can be understood by those skilled in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meanings of the above terms in the present invention can be understood by those of ordinary skill in the art according to specific situations.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, a detection method for proximity sensing is disclosed, which includes the following steps S101 to S103:
step S101, filtering the first initial capacitor to obtain a first reference capacitor and a first fluctuation capacitor;
preferably, the capacitive proximity sensor detects whether a human hand approaches by sensing capacitance change caused by the approach of the human hand, and can be used as a key or a proximity inductive switch to replace a traditional mechanical key; when no one hand approaches, the capacitance type proximity sensor and the outside can form a parasitic capacitance CpWhen a human hand approaches, a capacitor C is additionally introducedhTotal electricityCapacity is C ═ Cp+ChWherein C is the first initial capacitance.
Preferably, the first ripple capacitance is a difference between the first initial capacitance and the first reference capacitance; in particular, due to the parasitic capacitance C in actual usepIs easily influenced by external environmental factors (particularly temperature) to generate a change Cp', when Cp' size and ChFalse triggering may occur in a considerable time. Change in parasitic capacitance due to environmental change Cp' often slower, far less than the capacitance C introduced when a human hand approacheshThe change is fast. It is common practice to filter C (average, median, low-pass or a combination thereof) to obtain a baseline C when it varies slowlybase(i.e., the first reference capacitance), the first reference capacitance CbaseThe environment-induced parasitic capacitance change can be tracked and calculated by the formula: C-Cbase=CdiffObtaining the first ripple capacitance CdiffWhen C suddenly changes greatly, the first ripple capacitance CdiffIt is very large, and at this time, it can be determined that a human hand approaches, the sensor triggers, and the baseline keeps the value before triggering unchanged.
Step S102, detecting whether the first fluctuation capacitance is larger than a first noise capacitance;
preferably, the first noise capacitance is an ambient noise value of the first initial capacitance; if not, average filtering C to update baseline CbaseAnd recalculating the first ripple capacitance Cdiff(ii) a If the capacitance value is larger than the preset value, the capacitance value is greatly changed in a short time, which is not influenced by environmental factors, and C is not updated any morebase
Step S103, if the first fluctuation capacitor is larger than the first noise capacitor, temperature difference compensation operation is carried out on the first initial capacitor.
Preferably, the change in parasitic capacitance caused by the environment cannot be tracked any more since the baseline is not updated after the sensor is triggered. Sensing when a human hand is in a close state for a long timeThe device is always in a trigger state, and the parasitic capacitance change C caused by the environmentp' accumulation over time may be greater, reaching or even exceeding Ch. Thereafter, the hands, C and C are releasedbaseDifference C ofdiffStill very big, the sensor just can not detect the departure of hand, therefore need carry out the temperature difference compensation operation to the first initial capacitance for solve capacitanc and approach the problem that can't detect the departure of hand after the inductive transducer is in trigger state for a long time.
Specifically, the temperature difference compensation operation is detected by a temperature measuring device to obtain a current temperature T; then calculating the capacitance change value C caused by temperature changeTExperiments show that under the same other conditions, the temperature change and the capacitance value change are in positive correlation, and the proportionality coefficient is measured by experiments according to actual conditions; and finally, calculating the formula: c ═ C-CTObtaining the latest first initial capacitor C without temperature influence, and calculating the latest first fluctuation capacitor C again according to the first initial capacitor CdiffThen, judging CdiffWhether or not it is greater than CThreholdOnIf so, it indicates that the sensor has triggered, otherwise, it enters the next measurement cycle, where CThreholdOnNamely, the preset first trigger capacitor is used as a capacitance change value caused when a human body approaches the capacitive proximity sensor, and an appropriate value is obtained from an actual measurement result.
From the above description, it can be seen that the present invention achieves the following technical effects:
in the embodiment of the application, the initial capacitance is obtained respectively in the triggering state and the non-triggering state of the sensor, and the purpose of state judgment after reducing the influence of environmental factors is achieved by performing temperature difference compensation operation on the initial capacitance, so that the technical effect of improving the state judgment accuracy is achieved, and the problem that the capacitive proximity sensor cannot detect the departure of a human hand after being in the triggering state for a long time is solved.
According to the embodiment of the present application, as a preferable preference in the embodiment, as shown in fig. 2, if the first ripple capacitance is larger than the first noise capacitance, the entering of the temperature difference compensation operation for the first initial capacitance includes steps S201 to S203 as follows:
step S201, obtaining a current first real-time temperature through a temperature measuring device;
preferably, the temperature difference compensation operation detects the current temperature T (i.e. the first real-time temperature) by a temperature measuring device.
Step S202, obtaining a corresponding first compensation capacitor according to the first real-time temperature;
preferably, the first compensation capacitor is used as the first real-time temperature-induced capacitance change value, specifically, the temperature-induced capacitance change value C is calculatedTNamely the first compensation capacitor, experiments show that under the same other conditions, the temperature change and the capacitance value change are in positive correlation, and the proportionality coefficient is measured by experiments according to the actual condition.
Step S203, performing capacitance compensation on the first initial capacitor according to the first compensation capacitor, to obtain the data-corrected first initial capacitor.
Preferably, by the calculation formula: c ═ C-CTObtaining the latest first initial capacitor C without temperature influence, and calculating the latest first fluctuation capacitor C again according to the first initial capacitor Cdiff
According to the embodiment of the present application, as a preferable preference in the embodiment, after the detecting whether the first ripple capacitance is larger than the first noise capacitance, the method further includes: and if the first fluctuation capacitance is not larger than the first noise capacitance, detecting the magnitude relation between the first fluctuation capacitance and the preset first trigger capacitance, wherein the preset first trigger capacitance is used as a capacitance change value caused when a human body approaches the capacitive proximity sensor.
Preferably, judgment CdiffWhether or not it is greater than CThreholdOnIf so, it indicates that the sensor has triggered, otherwise, it enters the next measurement cycle, where CThreholdOnI.e. the predetermined first trigger capacitance, is usedThe capacitance change value caused when the human body approaches the capacitance type proximity induction sensor is an appropriate value according to the actual measurement result.
According to the embodiment of the present application, as a preferable preference in the embodiment, if it is detected that the first fluctuation capacitance is not greater than the first noise capacitance, the monitoring a magnitude relationship between the first fluctuation capacitance and the preset first trigger capacitance includes: and if the first fluctuation capacitance is monitored to be larger than the preset first trigger capacitance, the capacitive proximity sensor is in a trigger state.
Preferably, judgment CdiffWhether or not it is greater than CThreholdOnAnd if the value is larger than the preset value, the fact that a hand approaches is indicated, and the capacitive proximity sensor is triggered.
According to the embodiment of the present application, as a preferable preference in the embodiment, if detecting that the first ripple capacitance is not greater than the first noise capacitance, detecting a magnitude relationship between the first ripple capacitance and the preset first trigger capacitance further includes: and if the first fluctuation capacitor is not larger than the preset first trigger capacitor, filtering the first initial capacitor again to obtain the updated first reference capacitor and first fluctuation capacitor.
Preferably, judgment CdiffWhether or not it is greater than CThreholdOnAnd if the number is not larger than the preset value, the situation that no human hand approaches is indicated, and the algorithm automatically enters the next measurement cycle.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present invention, there is also provided an apparatus for implementing the detection method, as shown in fig. 5, the apparatus includes: the first calculating unit 10 is configured to perform filtering processing on the first initial capacitor to obtain a first reference capacitor and a first ripple capacitor; a first monitoring unit 20, configured to monitor a magnitude relationship between the first fluctuation capacitance and a first noise capacitance, where the first noise capacitance is a noise value of the first initial capacitance; the first executing unit 30 is configured to execute a preset calculating operation according to a magnitude relationship between the first fluctuation capacitance and the first noise capacitance.
The first calculating unit 10 according to this embodiment is configured to perform filtering processing on the first initial capacitor to obtain a first reference capacitor and a first fluctuating capacitor, and preferably, the capacitive proximity sensor detects whether a human hand approaches by sensing a capacitance change caused by the approach of the human hand, and may be used as a key or a proximity sensing switch to replace a conventional mechanical key; when no one hand approaches, the capacitance type proximity sensor and the outside can form a parasitic capacitance CpWhen a human hand approaches, a capacitor C is additionally introducedhThe total capacitance is C ═ Cp+ChWherein C is the first initial capacitance.
The first monitoring unit 20 according to this embodiment is configured to monitor a magnitude relationship between the first fluctuation capacitance and a first noise capacitance, where preferably, the first noise capacitance is an environmental noise value of the first initial capacitance; if not, average filtering C to update baseline CbaseAnd recalculating the first ripple capacitance Cdiff(ii) a If the capacitance value is larger than the preset value, the capacitance value is greatly changed in a short time, which is not influenced by environmental factors, and C is not updated any morebase
The first execution unit 30 according to this embodiment is configured to execute a preset calculation operation according to a magnitude relationship between the first fluctuation capacitance and the first noise capacitance, and preferably, after the sensor is triggered, the baseline is not updated, and the change of the parasitic capacitance caused by the environment cannot be tracked. When the human hand is in the close state for a long time, the sensor is always in the trigger state, and the parasitic capacitance change C caused by the environmentp' accumulation over time may be greater, reaching or even exceeding Ch. Thereafter, the hands, C and C are releasedbaseDifference C ofdiffStill large, the sensor does not detect the absence of the hand, and therefore requires a modification to the handThe first initial capacitor performs temperature difference compensation operation and is used for solving the problem that the capacitive proximity sensor cannot detect that a human hand leaves after being in a trigger state for a long time.
As shown in fig. 3, another detection method for proximity sensing is disclosed, which includes the following steps S301 to S304:
step S301, performing temperature difference compensation operation on the second initial capacitor to obtain the second initial capacitor after data correction;
preferably, the temperature difference compensation operation is detected by a temperature measuring device to obtain a current temperature T; then calculating the capacitance change value C caused by temperature changeTExperiments show that under the same other conditions, the temperature change and the capacitance value change are in positive correlation, and the proportionality coefficient is measured by experiments according to actual conditions.
Step S302, filtering the second initial capacitor to obtain a second reference capacitor and a second fluctuation capacitor;
preferably, the second ripple capacitance is a difference between the second initial capacitance and the second reference capacitance; specifically, by the calculation formula: c ═ C-CTObtaining the latest second initial capacitor C without temperature influence, and calculating the latest second fluctuation capacitor C again according to the second initial capacitor Cdiff
Step S303, detecting whether the second fluctuation capacitance is smaller than a preset first trigger release capacitance, wherein the preset first trigger release capacitance is used as a capacitance change value caused when a human body is far away from the capacitive proximity sensor;
preferably, judgment CdiffWhether or not less than CThreholdOff(i.e. the first deactivation capacitance) if less, indicating that the sensor is in a non-activated state, otherwise entering the next measurement cycle, wherein CThreholdOffTaking an appropriate value from the actual measurement, the value being compared with CThreholdOnIs small.
Step S304, if it is detected that the second fluctuation capacitance is smaller than a preset first trigger release capacitance, the capacitive proximity sensor is in an unfired state.
Preferably, if CdiffLess than CThreholdOff(i.e., the first deactivation capacitor) indicates that the human hand has left, and the capacitive proximity sensor enters a non-activated state.
According to the embodiment of the present application, as a preferable option in the embodiment, after detecting whether the second ripple capacitance is smaller than a preset first release trigger capacitance, the method further includes: and if the second fluctuation capacitance is detected to be not smaller than a preset first trigger releasing capacitance, the capacitive proximity sensor is in a trigger state.
Preferably, if CdiffNot less than CThreholdOff(i.e., the first deactivation capacitor) indicates that the human hand has not left, and the capacitive proximity sensor enters a activated state.
According to the embodiment of the present application, as shown in fig. 4, preferably, the performing a temperature difference compensation operation on the second initial capacitor to obtain the data-corrected second initial capacitor includes steps S401 to S403 as follows:
step S401, obtaining a current second real-time temperature through a temperature measuring device;
preferably, the temperature difference compensation operation detects the current temperature T (i.e. the second real-time temperature) by a temperature measuring device.
Step S402, obtaining a corresponding second compensation capacitor according to the second real-time temperature;
preferably, the second compensation capacitor is used as the capacitance change value caused by the second real-time temperature, specifically, the capacitance change value C caused by temperature change is calculatedTNamely the second compensation capacitor, experiments show that under the same other conditions, the temperature change and the capacitance value change are in positive correlation, and the proportionality coefficient is measured by experiments according to the actual condition.
Step S403, performing capacitance compensation on the second initial capacitor according to the second compensation capacitor, to obtain the data-corrected second initial capacitor.
Preferably, by the calculation formula: c ═ C-CTObtaining the latest second initial capacitor C without temperature influence, and calculating the latest second fluctuation capacitor C again according to the second initial capacitor Cdiff
According to an embodiment of the present invention, there is also provided an apparatus for implementing the detection method, as shown in fig. 6, the apparatus including: the correction unit 40 is configured to perform temperature difference compensation operation on the second initial capacitor to obtain the data-corrected first initial capacitor; a second calculating unit 50, configured to perform filtering processing on the second initial capacitor to obtain a second reference capacitor and a second ripple capacitor, where the second ripple capacitor is a difference between the second reference capacitor and the second ripple capacitor; a second monitoring unit 60, configured to monitor a magnitude relationship between the second fluctuation capacitance and a preset first trigger release capacitance, where the preset first trigger release capacitance is used as a capacitance change value caused when a human body is far away from the capacitive proximity sensor; and a second executing unit 70, configured to execute a preset calculating operation according to a magnitude relationship between the second fluctuation capacitor and a preset second release trigger capacitor.
The correcting unit 40 according to this embodiment is configured to perform temperature difference compensation operation on the second initial capacitor to obtain the first initial capacitor after data correction, and preferably, the temperature difference compensation operation is detected by a temperature measuring device to obtain a current temperature T; then calculating the capacitance change value C caused by temperature changeTExperiments show that under the same other conditions, the temperature change and the capacitance value change are in positive correlation, and the proportionality coefficient is measured by experiments according to actual conditions.
The second calculating unit 50 according to this embodiment is configured to perform filtering processing on the second initial capacitor to obtain a second reference capacitor and a second fluctuation capacitor, where preferably, the second fluctuation capacitor is a difference between the second initial capacitor and the second reference capacitor; specifically, by the calculation formula: c ═ C-CTObtaining the latest second initial capacitance C without temperature influence and according to the second initial capacitance CRecalculating to obtain the latest second fluctuation capacitance Cdiff
The second monitoring unit 60 according to this embodiment is configured to monitor a magnitude relationship between the second fluctuation capacitance and a preset first trigger release capacitance, and preferably, determine CdiffWhether or not less than CThreholdOff(i.e. the first deactivation capacitance) if less, indicating that the sensor is in a non-activated state, otherwise entering the next measurement cycle, wherein CThreholdOffTaking an appropriate value from the actual measurement, the value being compared with CThreholdOnIs small.
The second executing unit 70 according to this embodiment is configured to execute a preset calculating operation according to the magnitude relationship between the second fluctuation capacitor and a preset second trigger release capacitor, preferably, if CdiffLess than CThreholdOff(i.e., the first deactivation capacitor) indicates that the human hand has left, and the capacitive proximity sensor enters a non-activated state.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (4)

1. A detection method for proximity sensing to obtain a second initial capacitance when a capacitive proximity sensor is in a trigger state, the method comprising:
performing temperature difference compensation operation on the second initial capacitor to obtain the second initial capacitor after data correction;
performing filtering processing on the second initial capacitor to obtain a second reference capacitor and a second fluctuation capacitor, wherein the second fluctuation capacitor is a difference value between the second initial capacitor and the second reference capacitor, and the filtering processing includes average filtering, median filtering, low-pass filtering and any combination of the average filtering, the median filtering and the low-pass filtering;
detecting whether the second fluctuation capacitance is smaller than a preset first trigger release capacitance, wherein the preset first trigger release capacitance is used as a capacitance change value caused when a human body is far away from the capacitive proximity sensor;
and if the second fluctuation capacitance is smaller than a preset first trigger releasing capacitance, the capacitive proximity sensor is in a non-triggered state.
2. The method for detecting according to claim 1, wherein said detecting whether the second ripple capacitance is smaller than a preset first de-trigger capacitance further comprises:
and if the second fluctuation capacitance is detected to be not smaller than a preset first trigger releasing capacitance, the capacitive proximity sensor is in a trigger state.
3. The method according to claim 1, wherein the performing a temperature difference compensation operation on the second initial capacitance to obtain a data-corrected second initial capacitance comprises:
obtaining a current second real-time temperature through a temperature measuring device;
obtaining a corresponding second compensation capacitor according to the second real-time temperature, wherein the second compensation capacitor is used as a capacitance change value caused by the second real-time temperature;
and performing capacitance compensation on the second initial capacitor according to the second compensation capacitor to obtain the second initial capacitor after data correction.
4. A sensing device for proximity sensing wherein a second initial capacitance is obtained when a capacitive proximity sensor is in a trigger state, comprising:
the correction unit is used for performing temperature difference compensation operation on the second initial capacitor to obtain the second initial capacitor after data correction;
the second calculating unit is used for performing filtering processing on the second initial capacitor to obtain a second reference capacitor and a second fluctuation capacitor, wherein the second fluctuation capacitor is a difference value between the second reference capacitor and the second fluctuation capacitor, and the filtering processing includes average filtering, median filtering, low-pass filtering and any combination of the average filtering, the median filtering and the low-pass filtering;
the second monitoring unit is used for monitoring the size relation between the second fluctuation capacitor and a preset first trigger release capacitor, wherein the preset first trigger release capacitor is used as a capacitor change value caused when a human body is far away from the capacitive proximity sensor;
and the second execution unit is used for executing preset calculation operation according to the size relation between the second fluctuation capacitor and a preset first release trigger capacitor.
CN201810786320.2A 2018-07-17 2018-07-17 Detection method and device for proximity sensing Active CN109238314B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810786320.2A CN109238314B (en) 2018-07-17 2018-07-17 Detection method and device for proximity sensing
PCT/CN2018/105692 WO2020015117A1 (en) 2018-07-17 2018-09-14 Proximity sensing detection method, proximity sensing detection device, sensing-type handle and baby carriage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810786320.2A CN109238314B (en) 2018-07-17 2018-07-17 Detection method and device for proximity sensing

Publications (2)

Publication Number Publication Date
CN109238314A CN109238314A (en) 2019-01-18
CN109238314B true CN109238314B (en) 2020-12-01

Family

ID=65072058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810786320.2A Active CN109238314B (en) 2018-07-17 2018-07-17 Detection method and device for proximity sensing

Country Status (1)

Country Link
CN (1) CN109238314B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828199A (en) * 2019-01-28 2019-05-31 上海科世达-华阳汽车电器有限公司 A kind of detection method and capacitive approach switch close to capacitive approach switch
CN111707295B (en) * 2020-08-17 2020-12-11 深圳市汇顶科技股份有限公司 Method and device for treating temperature drift
CN112986693B (en) * 2021-02-07 2023-08-01 深圳市汇顶科技股份有限公司 Capacitor baseline updating method, chip and capacitor detection device
CN113566852A (en) * 2021-07-13 2021-10-29 上海艾为电子技术股份有限公司 Baseline updating method, baseline updating method, relative state detecting system and electronic equipment
CN114113801B (en) * 2022-01-24 2022-06-21 上海艾为微电子技术有限公司 Capacitance detection method and capacitance detection device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE20121612U1 (en) * 2001-10-02 2003-01-09 Wellgo Gmbh Werkzeuge Und Spri Capacitive sensor for washrooms has separate electrode with larger capacitance
JP4310695B2 (en) * 2004-03-30 2009-08-12 アイシン精機株式会社 Capacitance change detection device
CN101078774B (en) * 2006-05-26 2012-07-18 株式会社藤仓 Proximity sensor and proximity sensing method
CN201194386Y (en) * 2008-04-03 2009-02-11 上海兰宝传感器有限公司 Circuit apparatus of capacitor type approach switch
CN101581919A (en) * 2009-03-25 2009-11-18 温州市麦特力克电器有限公司 Human body sensing switch and working method thereof
TW201122980A (en) * 2009-12-30 2011-07-01 Novatek Microelectronics Corp Method and apparatus for adjusting touch control parameter
CN201654747U (en) * 2010-03-18 2010-11-24 通泰积体电路股份有限公司 Capacitance type touch sensing device with environment change correction
US8975903B2 (en) * 2011-06-09 2015-03-10 Ford Global Technologies, Llc Proximity switch having learned sensitivity and method therefor
CN103905024A (en) * 2012-12-27 2014-07-02 北京谊安医疗系统股份有限公司 Button circuit for improving sensitivity of capacitance induction button, and compensation circuit and compensation method thereof
CN103235672B (en) * 2013-04-11 2016-05-11 深圳市天微电子股份有限公司 Capacitance touch screen automatic calibrating method and system

Also Published As

Publication number Publication date
CN109238314A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109238314B (en) Detection method and device for proximity sensing
US9256319B2 (en) Input device
JP5862257B2 (en) sampling
CN105302383B (en) A kind of capacitive touch screen anti-disturbance method and equipment
US9600128B2 (en) Touch sensitive device and touch determination method thereof
TWI506513B (en) Method and apparatus to measure self-capacitance using a single pin
JP6121397B2 (en) Measuring device and method for detection of proximity to a portable device
CN106716839A (en) Analog elimination of ungrounded conductive objects in capacitive sensing
CN107111759A (en) For detecting whether finger occurs and sense the method and device of fingerprint pattern
WO2016045095A1 (en) Method, apparatus and device for correcting detection distance
CN105580279B (en) Multi-channel capacitive divider scan method and equipment
CN108512542B (en) Touch key signal processing method and device and computer readable storage medium
CN104199572A (en) Touch positioning method of touch display device and touch display device
TW201339935A (en) Capacitive touch control system and touch control device and touch control method using the same
US20160139734A1 (en) Input device
WO2017206545A1 (en) Capacitance value calibrating apparatus and method, and touch display device
US11481075B2 (en) Terminal, protective case, and sensing method
CN108759892A (en) Sensor calibrating method, electronic device and computer readable storage medium
US10366266B2 (en) Fingerprint sensing device, electronic device and calibration method for fingerprint sensor
CN104360769B (en) A kind of contact panel anti-disturbance method, contact panel and display
JP6236351B2 (en) Input device
CA2801478A1 (en) Determination of the location of an electrical disturbance
JP6379708B2 (en) Touch switch
CN108369472B (en) Electrode abnormity processing method and device, touch screen and electronic terminal
CN201467099U (en) Capacitive sensing key circuit and keyboard

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant