Capacitive Button Detection Method, Chip and Electronic Device

By using two detection modules in the capacitor key detection chip, one is connected to the capacitor key and the other is suspended, the detection value is corrected to reduce the impact of environmental changes, and the problem of misjudgment of traditional capacitor keys when the environment changes suddenly is solved, and the detection accuracy is improved.

CN114679166BActive Publication Date: 2025-06-17BYD SEMICON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011561557.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2025-06-17
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

Traditional capacitive buttons are prone to misjudgment in the case of sudden changes in the environment, especially when temperature changes, which affect the accuracy of the detection data.

Method used

Two detection modules are introduced into the capacitor key detection chip, one is connected to the electrode of the capacitor key and the other is suspended in the air, which is used to detect environmental changes. The detection value of the first detection module is used to correct the detection value of the first detection module to reduce the impact of environmental changes.

Benefits of technology

It effectively reduces misjudgment of capacitor buttons and improves detection accuracy, especially when ambient temperature changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114679166B_ABST
    Figure CN114679166B_ABST
Patent Text Reader

Abstract

The present invention discloses a capacitance key detection method, a chip and an electronic device, which are used to reduce the misjudgment of capacitance keys. Among them, the method part includes: obtaining a first detection value and a second detection value, where the first detection value is the value detected by the first detection module, the second detection value is the value detected by the second detection module, the detection end of the first detection module is connected to the electrode of the capacitance key, and the detection end of the second detection module is in a floating state; judging whether the capacitance key is touched according to the first detection value and the second detection value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technologies, and in particular, to a method for detecting capacitive keys, a chip, and an electronic device. Background Art

[0002] Generally, many electronic devices such as household appliances are rarely moved, and the surrounding environment rarely changes suddenly. Therefore, the design of traditional capacitive keys is based on the premise that the environment will not change suddenly, and the keys will automatically adapt to the slow changes in the environment. Moreover, the internal power supply of the electronic device is a horizontal voltage supply, which directly provides a stable voltage for the touch key chip.

[0003] The inventor found that some electronic devices often face the situation of sudden environmental changes. For example, when walking from indoors to outdoors or from outdoors to indoors in winter, the temperature changes drastically, and the change in temperature will affect the detection data of the capacitive keys, making the data inaccurate, which is likely to cause misjudgment of the capacitive keys. Summary of the Invention

[0004] Embodiments of the present invention provide a method for detecting capacitive keys, a chip, and an electronic device to solve the problem of easy misjudgment of capacitive keys.

[0005] In a first aspect, a method for detecting capacitive keys is provided. The method includes:

[0006] Obtain a first detection value and a second detection value, where the first detection value is the value detected by a first detection module, the second detection value is the value detected by a second detection module, the detection end of the first detection module is connected to the electrode of the capacitive key, and the detection end of the second detection module is in a floating state;

[0007] Judge whether the capacitive key is touched according to the first detection value and the second detection value.

[0008] Further, before obtaining the first detection value and the second detection value, the method further includes the following steps:

[0009] Configure the first detection module and the second detection module to perform data detection simultaneously to obtain the first detection value and the second detection value simultaneously.

[0010] Further, the above-mentioned judging whether the capacitive key is touched according to the first detection value and the second detection value specifically includes the following steps:

[0011] Calculate the difference between the first detection value and a first baseline value to obtain a first difference, where the first baseline value is the value detected by the first detection module when the capacitive key is not touched;

[0012] Calculate the difference between the second detection value and a second baseline value to obtain a second difference, where the second baseline value is the value detected by the second detection module when the capacitive key is not touched;

[0013] Modify the first difference according to the second difference to obtain a modified difference;

[0014] Judge whether the capacitive button is touched according to the modified difference.

[0015] Furthermore, the above-mentioned modification of the first difference according to the second difference to obtain a modified difference specifically includes the following steps:

[0016] Modify the first difference through the following formula to obtain a modified difference:

[0017] Xa′ = Xa * (1 - Xb / Db);

[0018] Among them, Xa′ represents the modified difference, Xa represents the first difference, Xb represents the second difference, and Db represents the second detection value.

[0019] Furthermore, the above-mentioned judgment of whether the capacitive button is touched according to the modified difference specifically includes the following steps:

[0020] Judge whether the modified difference is greater than a preset threshold;

[0021] When it is judged that the modified difference is greater than the preset threshold, it is judged that the capacitive button is touched;

[0022] When it is judged that the modified difference is less than or equal to the preset threshold, it is judged that the capacitive button is not touched.

[0023] In a second aspect, a capacitive button detection chip is provided, and the detection chip includes a chip core, a first detection module, and a second detection module;

[0024] The first detection module is used to detect the capacitive button to obtain a first detection value;

[0025] The second detection module is used to detect the environment of the capacitive button to obtain a second detection value;

[0026] The chip core is used to obtain the first detection value and the second detection module, and judge whether the capacitive button is touched according to the first detection value and the second detection value.

[0027] Furthermore, the chip core is used to: configure the first detection module and the second detection module to perform data detection simultaneously to obtain the first detection value and the second detection value simultaneously.

[0028] Furthermore, the chip core is used to:

[0029] Calculate the difference between the first detection value and the first baseline value to obtain a first difference, and the first baseline value is the value detected by the first detection module when the capacitive button is not touched;

[0030] Calculate the difference between the second detection value and the second baseline value to obtain a second difference. The second baseline value is the value detected by the second detection module when the capacitive button is not touched;

[0031] Correct the first difference according to the second difference to obtain a corrected difference;

[0032] Judge whether the capacitive button is touched according to the corrected difference.

[0033] Further, the chip core is used for:

[0034] Judge whether the corrected difference is greater than a preset threshold;

[0035] When it is judged that the corrected difference is greater than the preset threshold, it is judged that the capacitive button is touched;

[0036] When it is judged that the corrected difference is less than or equal to the preset threshold, it is judged that the capacitive button is not touched.

[0037] In a third aspect, an electronic device is provided, which is characterized by a capacitive button and the capacitive button detection chip mentioned in the foregoing third aspect.

[0038] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned capacitive button detection method are implemented.

[0039] In the above-mentioned capacitive button detection method, chip and electronic device, when detecting the capacitive button, by starting two detection modules to simultaneously scan two channels, one is a normal detection channel for touch buttons, and the other is a spare detection channel without connecting any electrodes. During processing, the detection value of the spare channel can be used to correct the corresponding detection value of the capacitive button, reduce the influence of environmental changes on the capacitive button, make the judgment of the capacitive button more accurate, and effectively reduce the misjudgment of the capacitive button. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0041] Figure 1 is a schematic structural diagram of a capacitive button detection chip in an embodiment of the present invention;

[0042] Figure 2 is a schematic structural diagram of an electronic device in an embodiment of the present invention;

[0043] Figure 3 is a schematic flowchart of a capacitance key detection method in an embodiment of the present invention;

[0044] Figure 4 is another schematic flowchart of a capacitance key detection method in an embodiment of the present invention. Detailed implementation manners

[0045] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0046] The present invention embodiments provide a capacitance key detection method, a capacitance key detection chip, and an electronic device. Among them, in order to describe the present invention clearly one by one, the following two large embodiments are described separately. Among them, Embodiment 1 describes the capacitance key detection chip and the electronic device involved in the embodiments of the present invention; Embodiment 2 describes the capacitance key detection method involved in the embodiments of the present invention.

[0047] Embodiment 1

[0048] As Figure 1 shown, the present invention embodiments provide a capacitance key detection chip, which is applied to an electronic device. The capacitance key detection chip includes a chip core, a first detection module, and a second detection module. The functions of each module are as follows:

[0049] The first detection module is configured to detect the capacitance key to obtain a first detection value;

[0050] The second detection module is configured to detect the environment of the capacitance key to obtain a second detection value;

[0051] The chip core is configured to obtain the first detection value and the second detection module, and determine whether the capacitance key is touched according to the first detection value and the second detection value.

[0052] When using the capacitance key detection chip, the detection end of the first detection module is connected to the electrode of the capacitance key, and the detection end of the second detection module is exposed outside the capacitance key detection chip and is in a suspended state. In an application scenario, the electronic device is a pair of earphones, and the capacitance key refers to the capacitance key in the pair of earphones. It should be noted that in some other application scenarios, the electronic device may also be other electronic product devices that may face environmental changes, such as wearable electronic devices, etc. The specific embodiments of the present invention do not make limitations.

[0053] In an embodiment of the present invention, there are two completely identical first detection modules and second detection modules in the capacitive button detection chip. The difference is that the detection end of the first detection module is connected to the electrode of the external capacitive button, so that the first detection module can be used to detect the data of the capacitive button. When a human touches the electrode of the capacitive button, the value detected by the first detection module will change, and it can be determined whether the capacitive button may be touched. Among them, the first detection value detected by the first detection module is a value related to the capacitance value of the capacitive button, or it is the detected capacitance value itself. The present invention does not make a limitation. The situation of the first detection value detected by the first detection module can reflect the capacitance change situation of the capacitive button.

[0054] The detection end of the second detection module is in a floating state. That is to say, the detection end of the second detection module is not connected to any electrode and is also used to detect the environment of the capacitive button and will also obtain a value, which is called the second detection value in the embodiment of the present invention. Among them, the situation of the second detection value detected by the second detection module can reflect the change of the environment. However, since the second detection module is not connected to the electrode of the capacitive button, when a human approaches, the second detection value detected by the second detection module will not change. However, when the environment changes, the value detected by the second detection module will change, and this environmental change has the same impact on the first detection module. Therefore, in order to eliminate the influence brought by this environmental change, when judging the first detection value detected by the first detection module, the second detection value detected by the second detection module needs to be referred to.

[0055] It can be seen that in the embodiment of the present invention, two detection channels are created through the first detection module and the second detection module. The second detection module detects the detection value of the spare channel. If the second detection value detected by the second detection module changes, it means that the environment of the capacitive button detection chip has changed and caused the change of the detection value. Among them, the environmental factors that cause the environmental change include but are not limited to temperature, voltage, humidity and other environmental factors that have an impact on the capacitive button. Therefore, it is necessary to perform an operation on the first detection value corresponding to the capacitive button being detected to eliminate the influence of the above environmental change. Specifically, the chip core of the capacitive button detection chip is used to eliminate the influence of the above environmental change.

[0056] The chip core can refer to the microprocessor core (MCU core), which is used to obtain the first detection value and the second detection value and judge whether the capacitive button is touched according to the first detection value and the second detection value.

[0057] It can be seen that in the embodiment of the present invention, a capacitance key detection chip is provided. When detecting a capacitance key, by starting two detection modules and simultaneously scanning two channels, one is the detection channel of a normal touch key, and the other is a spare detection channel without any electrodes connected. During processing, the detection value corresponding to the capacitance key can be corrected by using the detection value of the spare channel, reducing the influence of environmental changes on the capacitance key, making the judgment of the capacitance key more accurate, and effectively reducing the misjudgment of the capacitance key.

[0058] In one embodiment, the chip core is used to configure the first detection module and the second detection module to perform data detection simultaneously, so as to obtain the first detection value and the second detection value simultaneously. In this embodiment, during operation, the chip core can simultaneously turn on the first detection module and the second detection module to work, maintaining the synchronization of the detected detection values, which has a better effect on correcting the influence of environmental changes on the capacitance key.

[0059] In one embodiment, the chip core is used to judge whether the capacitance key is touched according to the first detection value and the second detection value. Specifically, it means calculating the difference between the first detection value Da and the first baseline value La to obtain the first difference Xa, that is: Xa = Da - La. Wherein, the first baseline value La is the value detected by the first detection module when the capacitance key is not touched, and calculate the difference between the second detection value Db and the second baseline value Lb to obtain the second difference Xb, that is: Xb = Db - Lb. The second baseline value Lb is the value detected by the second detection module when the capacitance key is not touched, and then correct the first difference Xa according to the second difference Xb to obtain the corrected difference Xa'; finally, it can be judged whether the capacitance key is touched according to the corrected difference Xa'.

[0060] In one embodiment, the chip core is used to correct the first difference Xa through the following formula to obtain the corrected difference Xa': Xa' = Xa * (1 - Xb / Db).

[0061] It can be understood that because the influence ratio of environmental changes on the detection values detected by the first detection module and the second detection module is the same, therefore, conversion can be performed according to this characteristic. Since the ratio is the same, there is: Xa' = Xa * (Lb / Db) = Xa * ((Db - Xb) / Db). After further conversion, Xa' = Xa * (1 - Xb / Db) can be obtained. It should be noted that in some embodiments, there may be other ways to obtain the above correction value and correct the first difference to obtain the corrected difference, which is not limited here.

[0062] In one embodiment, the chip core is configured to: determine whether the corrected difference Xa' is greater than a preset threshold; when it is determined that the corrected difference Xa' is greater than the preset threshold, it is determined that the capacitive button is touched; when it is determined that the corrected difference Xa' is less than or equal to the preset threshold, it is determined that the capacitive button is not touched. Wherein, the preset threshold is an empirical value, which is specifically obtained by debugging the actual capacitive button or the actual electronic device. It can be understood that the above-mentioned corrected difference reflects the difference in the actual capacitance change of the capacitive button. Therefore, by comparing this difference with the calibrated preset threshold, it can be determined whether the capacitive button is touched. It should be noted that different capacitive button products, or different capacitive buttons of the same product, and even the electrodes used are related. Therefore, the actual capacitance change value brought about by whether the capacitive button is touched is different for different capacitive buttons. For different capacitive buttons, the corresponding preset threshold needs to be experimentally calibrated to obtain the threshold change after the capacitive button is touched.

[0063] It can be seen that in this embodiment, the second detection value detected by the second detection module is used to correct the first detection value detected by the first detection module connected to the electrode, thereby eliminating the influence of environmental factors such as temperature and voltage on the capacitive button. There will be no false touch phenomenon caused by sudden changes in temperature, humidity or voltage when the customer uses it. At the same time, since the second detection module does not need to be wired to any electrode and is in a suspended state, it will not increase the difficulty of circuit design, nor will it increase the complexity of the spatial structure of the applied electronic device. It is easy to implement, does not require additional cost, and is beneficial to applying the capacitive button detection chip to electronic devices with narrow spaces such as in-ear headphones.

[0064] As Figure 2 shown, based on the capacitive button detection chip provided in the above embodiment, the embodiment of the present invention further provides an electronic device, including the capacitive button detection chip and the capacitive button provided in the foregoing embodiment. Wherein, the electronic device includes but is not limited to in-ear headphones, wearable electronic devices and other electronic devices, which will not be listed one by one here. Here, it is worth emphasizing again that in-ear headphones, wearable electronic devices and other electronic devices usually have the characteristics of being small and compact. Through the capacitive button detection chip provided by the embodiment of the present invention, the structure is simple and the wiring is also simple. At the same time, since the second detection module does not need to be wired to any electrode and is in a suspended state, it will not increase the difficulty of circuit design, nor will it increase the complexity of the spatial structure of in-ear headphones, wearable electronic devices and other electronic devices. It is easy to implement and does not require additional cost.

[0065] Embodiment Two

[0066] Based on the capacitive button detection chip and the electronic device provided in the foregoing Embodiment One, Embodiment Two of the present invention correspondingly provides a capacitive button detection method, as Figure 3 shown, mainly including the following steps:

[0067] S101: Obtain a first detection value and a second detection value.

[0068] Among them, the first detection value is the value detected by the first detection module, and the second detection value is the value detected by the second detection module. The detection end of the first detection module is connected to the electrode of the capacitive button, and the detection end of the second detection module is in a floating state.

[0069] In an application scenario, this method is implemented based on the capacitive button detection chip mentioned in the foregoing Embodiment 1. The capacitive button detection chip has two completely identical first detection modules and second detection modules. The detection end of the first detection module is connected to the electrode of an external capacitive button, so that the first detection module can be used to detect the corresponding data of the capacitive button and obtain a first detection value. When a human touches the electrode of the capacitive button, the first detection value detected by the first detection module will change.

[0070] The detection end of the second detection module is in a floating state. That is to say, the detection end of the second detection module is not connected to any electrode and is also used to detect data and will also obtain a value, which is called the second detection value in the embodiment of the present invention. However, since the second detection module is not connected to the electrode of the capacitive button, when a human approaches, the second detection value detected by the second detection module will not change. However, when the environment changes, the second detection value detected by the second detection module will change, and this environmental change has the same impact on the first detection module. Therefore, in order to eliminate the influence brought by this environment, when judging the first detection value detected by the first detection module, the second detection value detected by the second detection module needs to be referred to.

[0071] S102: Determine whether the capacitive button is touched according to the first detection value and the second detection value.

[0072] It can be seen that through the capacitive button detection method provided by the embodiment of the present invention, when detecting the capacitive button, by starting two detection modules and scanning two channels simultaneously, one is the detection channel of the normal touch button, and the other is the spare detection channel without connecting any electrode. During processing, the detection value of the spare channel can be used to correct the corresponding detection value of the capacitive button, reduce the influence of environmental changes on the capacitive button, make the judgment of the capacitive button more accurate, and effectively reduce the misjudgment of the capacitive button.

[0073] In an embodiment, before obtaining the first detection value and the second detection value, this method further includes the following steps:

[0074] S103: Configure the first detection module and the second detection module to perform data detection simultaneously to obtain the first detection value and the second detection value simultaneously.

[0075] In this embodiment, during operation, the chip core can simultaneously activate the first detection module and the second detection module to work, maintaining the synchronization of the detected values, which has a better effect on correcting the influence of environmental changes on the capacitive button.

[0076] In one embodiment, in step S20, that is, to determine whether the capacitive button is touched according to the first detection value and the second detection value, it specifically includes the following steps:

[0077] S21: Calculate the difference between the first detection value and the first baseline value to obtain a first difference. The first baseline value is the value detected by the first detection module when the capacitive button is not touched;

[0078] S22: Calculate the difference between the second detection value and the second baseline value to obtain a second difference. The second baseline value is the value detected by the second detection module when the capacitive button is not touched;

[0079] S23: Correct the first difference according to the second difference to obtain a corrected difference;

[0080] S24: Determine whether the capacitive button is touched according to the corrected difference.

[0081] For steps S21 - S24, reference can be made to the corresponding descriptions of the corresponding functions of the chip core in the foregoing embodiment, and no repeated description will be given here.

[0082] In one embodiment, in step S24, that is, to determine whether the capacitive button is touched according to the corrected difference, it specifically includes the following steps:

[0083] S241: Determine whether the corrected difference is greater than a preset threshold;

[0084] S242: When it is determined that the corrected difference is greater than the preset threshold, it is determined that the capacitive button is touched;

[0085] S243: When it is determined that the corrected difference is less than or equal to the preset threshold, it is determined that the capacitive button is not touched.

[0086] It can be understood that since the influence ratio of environmental changes on the detected values detected by the first detection module and the second detection module is the same, therefore, conversion can be performed according to this characteristic. Since the ratio is the same, there is: Xa′ = Xa * (Lb / Db) = Xa * ((Db - Xb) / Db). After further conversion, it can be obtained.

[0087] The first difference is corrected through the following formula to obtain a corrected difference: Xa′ = Xa * (1 - Xb / Db); where Xa′ represents the corrected difference, Xa represents the first difference, Xb represents the second difference, and Db represents the second detection value.

[0088] It can be seen that in this method, the second detection module corrects the value of the capacitive button, eliminating the influence of environmental factors such as temperature and voltage on the capacitive button. There will be no false touch phenomenon caused by sudden changes in temperature, humidity or voltage when the customer uses it. At the same time, the second detection module does not need to be wired to any electrode, but is in a suspended state, which will not increase the difficulty of circuit design or the complexity of the spatial structure of the applied electronic device. It is easy to implement and does not require additional costs, which is beneficial to applying the capacitive button detection chip to electronic devices with narrow spaces such as in-ear headphones.

[0089] It should be noted that for this capacitive button detection method, more details can be referred to the foregoing chip embodiments correspondingly. The relevant descriptions of the functions of the chip core will not be repeated here one by one.

[0090] Next, the general working process will be described in combination with the above embodiments and an actual in-ear headphone to Figure 4 As shown, the in-ear headphone is provided with the capacitive button detection chip provided in the above embodiment. The in-ear headphone can achieve certain functions or actions through the capacitive button, such as volume control. Among them, the detection end of the first detection module in the capacitive button detection chip is connected to the electrode of the capacitive button of the in-ear headphone. When the chip core configures the first detection module and the second detection module to perform scans simultaneously, the chip core will obtain two sets of detection values, calculate the differences from the corresponding baseline values respectively, use the difference corresponding to the second detection module to correct the difference of the first detection module, and finally judge the relationship between the corrected difference of the first detection module and the preset threshold to determine whether the capacitive button of the in-ear headphone is touched. When it is touched, the touch result is reported to the host of the in-ear headphone, so that the host of the in-ear headphone can perform the next action according to the touch result. For example, when it is detected that the user touches the capacitive button, the corresponding action or function is triggered, such as volume control.

[0091] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0092] Obtain a first detection value and a second detection value, where the first detection value is the value detected by the first detection module, the second detection value is the value detected by the second detection module, the detection end of the first detection module is connected to the electrode of the capacitive button, and the detection end of the second detection module is in a suspended state;

[0093] Judge whether the capacitive button is touched according to the first detection value and the second detection value.

[0094] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods.

[0095] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above function units and modules is used as an example. In actual applications, the above functions can be assigned to different function units and modules according to needs, that is, the internal structure of the device is divided into different function units or modules to complete all or part of the functions described above.

[0096] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A capacitive key detection method, characterized in that, The method includes: Obtaining a first detection value and a second detection value, where the first detection value is the value detected by a first detection module, the second detection value is the value detected by a second detection module, the detection end of the first detection module is connected to the electrode of the capacitive button, and the detection end of the second detection module is in a floating state; Judging whether the capacitive button is touched according to the first detection value and the second detection value; The judging whether the capacitive button is touched according to the first detection value and the second detection value includes: Calculating the difference between the first detection value and a first baseline value to obtain a first difference, where the first baseline value is the value detected by the first detection module when the capacitive button is not touched; Calculating the difference between the second detection value and a second baseline value to obtain a second difference, where the second baseline value is the value detected by the second detection module when the capacitive button is not touched; According to the proportional consistency of the influence of environmental changes on the detection values detected by the first detection module and the second detection module, using the second difference to correct the first difference to obtain a corrected difference; Judging whether the capacitive button is touched according to the corrected difference.

2. The capacitive key detection method according to claim 1, characterized in that, Before obtaining the first detection value and the second detection value, the method further includes: Configuring the first detection module and the second detection module to perform data detection simultaneously to obtain the first detection value and the second detection value simultaneously.

3. The capacitive key detection method according to claim 1, characterized in that, The judging whether the capacitive button is touched according to the corrected difference includes: Judging whether the corrected difference is greater than a preset threshold; When it is judged that the corrected difference is greater than the preset threshold, it is judged that the capacitive button is touched; When it is judged that the corrected difference is less than or equal to the preset threshold, it is judged that the capacitive button is not touched.

4. The capacitive key detection method according to claim 1, characterized in that, The using the second difference to correct the first difference to obtain a corrected difference includes: Correcting the first difference through the following formula to obtain the corrected difference: ; Among them, represents the correction difference, represents the first difference, represents the second difference, represents the second detection value.

5. A capacitive key detection chip, characterized in that, The detection chip includes a chip core, a first detection module and a second detection module; The first detection module is used to detect the capacitive button to obtain a first detection value; The second detection module is used to detect the environment of the capacitive button to obtain a second detection value; The chip core is used to obtain the first detection value and the second detection module, and judge whether the capacitive button is touched according to the first detection value and the second detection value; The chip core is used to: Calculate the difference between the first detection value and a first baseline value to obtain a first difference, where the first baseline value is the value detected by the first detection module when the capacitive button is not touched; Calculate the difference between the second detection value and a second baseline value to obtain a second difference, where the second baseline value is the value detected by the second detection module when the capacitive button is not touched; According to the proportional consistency of the influence of environmental changes on the detection values detected by the first detection module and the second detection module, use the second difference to correct the first difference to obtain a corrected difference; Judge whether the capacitive button is touched according to the corrected difference.

6. The capacitive key detection chip according to claim 5, characterized in that, The chip core is used to: Configure the first detection module and the second detection module to perform data detection simultaneously, so as to obtain the first detection value and the second detection value simultaneously.

7. The capacitive key detection chip according to claim 5, characterized in that, The chip core is used for: Judge whether the correction difference is greater than a preset threshold; When it is judged that the correction difference is greater than the preset threshold, it is judged that the capacitive button is touched; When it is judged that the correction difference is less than or equal to the preset threshold, it is judged that the capacitive button is not touched.

8. An electronic device, characterized in that, It includes a capacitive button and a capacitive button detection chip according to any one of claims 5-7.

Citation Information

Patent Citations

  • Strong anti-interference single-key touch detection circuit

    CN208849746U

  • Switch device, and lighting apparatus for cabin

    JP2012142100A