Metal switch panel, method and device for controlling capacitive inductive switch
By integrating the ranging module and control module on the switch panel, combined with the design of the metal deformation part and the induction part, the problem of misjudgment in the existing switch panel is solved, and higher operational accuracy and reliability are achieved.
Patent Information
- Application Number
- CN202010959601.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-14
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2040-09-14
AI Technical Summary
Existing switch panels are prone to misjudgment, mainly due to inaccurate changes in capacitance values due to material deformation.
A metal switch panel is designed, including a metal deformation part, an induction part, a support part, a distance measuring module and a control module. By measuring the distance between the user and the switch and the capacitance value of the induction capacitor, the switch action is performed only when the user touches and the capacitance value reaches the set threshold.
It effectively reduces the phenomenon of misjudgment and improves the accuracy and reliability of switch operations.
Smart Images

Figure CN112260675B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of switch panels, for example, to a metal switch panel, a method and a device for controlling a capacitive inductive switch. Background Art
[0002] At present, some switch panels use touch technology. When a user touches a position on the switch panel, the switch panel performs an operation corresponding to the position, such as turning on or off a light, turning on a central air conditioner, raising or lowering a set temperature. The switch panel using touch technology brings convenience to users.
[0003] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0004] Some switch panels use material deformation to change the capacitance value, and these switch panels are prone to misjudgment. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The embodiments of the present disclosure provide a metal switch panel, a method for controlling a capacitive induction switch, and a home system to solve the technical problem that the existing switch panel is prone to misjudgment.
[0007] In some embodiments, the metal switch panel includes:
[0008] The metal deformation part has a flat plate structure;
[0009] The sensing part is in a flat plate structure and is arranged opposite to the metal deformation part;
[0010] A supporting part, supporting the metal deformation part, so that there is a specific distance between the metal deformation part and the sensing part, and the metal deformation part and the sensing part form an inductive capacitor;
[0011] Distance measurement module, used to measure the distance between the user and the switch;
[0012] The control module is configured to obtain the capacitance value of the sensing capacitor and the distance between the user and the switch, and when the capacitance value of the sensing capacitor is greater than or equal to a set threshold and the distance between the switch and the user is less than or equal to the set distance, perform an operation corresponding to the switch action.
[0013] In some embodiments, a method for controlling a capacitive sensing switch includes: obtaining a capacitance value of a sensing capacitor; obtaining a distance between a user and a switch; and when the capacitance value of the sensing capacitor is greater than or equal to a set threshold and the distance between the switch and the user is less than or equal to the set distance, performing an operation corresponding to a switch action, wherein when the switch is actuated, the capacitance value of the sensing capacitor changes.
[0014] Optionally, obtaining the distance between the user and the switch includes: obtaining a first distance between the user and the switch before a set time period; obtaining a second distance between the current user and the switch;
[0015] Correspondingly, the distance between the switch and the user is less than or equal to the set distance, including: the first distance is less than or equal to the first set distance and greater than the second set distance, and the second distance is less than or equal to the second set distance.
[0016] Optionally, obtaining the capacitance value of the sensing capacitor includes: obtaining a voltage value of the sensing capacitor; wherein the capacitance value of the sensing capacitor corresponds to the voltage value of the sensing capacitor;
[0017] Correspondingly, the capacitance value of the sensing capacitor is greater than or equal to a set threshold value, including: the reduction value of the voltage value of the sensing capacitor is greater than or equal to a first set voltage.
[0018] Optionally, determining that the reduction value of the voltage value of the inductive capacitor is greater than or equal to a first set voltage includes: obtaining a first average voltage of the inductive capacitor in a first set time period; obtaining a second average voltage of the inductive capacitor in a second set time period; calculating a difference voltage between the first average voltage and the second average voltage; and determining that the reduction value of the voltage value of the inductive capacitor is greater than or equal to the first set voltage when the difference voltage is greater than or equal to the first set voltage.
[0019] Optionally, the voltage value of the inductive capacitor within the first set time period includes: U n , U n+1 ,…,U n+m The voltage value of the inductive capacitor during the second set time period includes: U n+p , U n+p+1 , …, U n+p+m Among them, U n is the voltage value of the sensing capacitor, n, m, p are natural numbers, and p<m.
[0020] Optionally, after determining that the decrease value of the voltage value of the inductive capacitor is greater than or equal to the first set voltage, the method further includes: calculating the difference between every two adjacent voltage values in the second time period, and obtaining the detection time of the smaller value of the two adjacent voltage values when the difference between the two adjacent voltage values is greater than or equal to the second set voltage;
[0021] Correspondingly, obtaining the distance between the user and the switch includes: obtaining the distance between the user and the switch at the detection moment.
[0022] Optionally, when the capacitance value of the induction capacitor is greater than or equal to a set threshold, it is determined whether the distance between the user and the switch is less than or equal to the set distance. When the distance between the switch and the user is less than or equal to the set distance, an operation corresponding to the switch action is performed.
[0023] Optionally, operations corresponding to the switch action are performed, including one or more of the following: power-off operation; power-on operation; displaying control instructions through a display panel; sending control instructions to the load being dragged.
[0024] In some embodiments, an apparatus for controlling a capacitive sensing switch includes a processor and a memory storing program instructions, wherein the processor is configured to execute the method for controlling a capacitive sensing switch provided in the above embodiments when executing the program instructions.
[0025] The metal switch panel, method and device for controlling a capacitive inductive switch provided by the embodiments of the present disclosure can achieve the following technical effects:
[0026] When detecting whether the sensing capacitance has changed, the distance between the user and the switch is detected at the same time. When the capacitance value of the sensing capacitance is greater than or equal to the set threshold and the distance between the switch and the user is less than or equal to the set distance, the change in the sensing capacitance is caused by the user. At this time, performing the operation corresponding to the switch action can reduce the phenomenon of misjudgment.
[0027] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] One or more embodiments are exemplarily described by corresponding drawings, and these exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are regarded as similar elements, and wherein:
[0029] Figure 1 is a partial schematic diagram of a metal switch panel provided by an embodiment of the present disclosure;
[0030] Figure 2is a schematic diagram of a method for controlling a capacitive inductive switch provided by an embodiment of the present disclosure;
[0031] Figure 3 is a schematic diagram of a method for obtaining a distance between a user and a switch provided by an embodiment of the present disclosure;
[0032] Figure 4 is a schematic diagram of a method for determining that a reduction value of a voltage value of a sensing capacitor is greater than or equal to a first set voltage provided by an embodiment of the present disclosure;
[0033] Figure 5 is a schematic diagram of a method for controlling a capacitive inductive switch provided by an embodiment of the present disclosure;
[0034] Figure 6 is a schematic diagram of a device for controlling a capacitive inductive switch provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0036] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0037] Unless otherwise stated, the term "plurality" means two or more.
[0038] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0039] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0040] In the embodiments of the present disclosure, the term "switch" may exist as an independent device for controlling the power on and off of other devices, such as the switch of a lamp; or, it may be integrated into other devices and used as a control panel for other devices, such as the switch panel of a washing machine, stove, etc.
[0041] Some switch panels use touch technology. When a user touches a position on the switch panel, the switch panel performs an operation corresponding to the position, such as turning on or off a light, turning on a central air conditioner, raising or lowering a set temperature. The switch panel using touch technology brings convenience to the user. Furthermore, the method for controlling a capacitive inductive switch provided in the embodiments of the present disclosure combines touch technology and the distance between the user and the switch to more accurately determine whether the switch action is effective and reduce the occurrence of misjudgment.
[0042] Figure 1 1 is a partial schematic diagram of a metal switch panel provided by an embodiment of the present disclosure. Figure 1 As shown, the metal switch panel includes a metal deformation part 11, a support part 12 and a sensing part 13. The metal deformation part 11 is a flat plate structure, which is deformed under the action of force, the sensing part 13 is a flat plate structure, which is arranged opposite to the metal deformation part 11, and the support part 12 supports the metal deformation part 11, so that there is a specific distance between the metal deformation part 11 and the sensing part 13, and the metal deformation part 11 and the sensing part 13 constitute an inductive capacitor. When the user presses the metal deformation part 11, the metal deformation part 11 is deformed, and the capacitance value of the inductive capacitor changes.
[0043] In some practical applications, the metal switch panel includes a bottom plate 14, a support portion 12 is disposed on the bottom plate 14, the support portion 12 and the bottom plate 14 form a recessed structure, the sensing portion 13 is disposed at the bottom end of the recessed structure, and the metal deformation portion 11 covers the notch of the recessed structure.
[0044] Optionally, the metal switch panel further includes a distance measuring module for measuring the distance between the user and the switch (metal switch panel);
[0045] Optionally, the metal switch panel further includes a control module for executing a method for controlling a capacitive inductive switch. For example, the control module is configured to obtain a capacitance value of the inductive capacitor, obtain a distance between the user and the switch, and execute an operation corresponding to the switch action when the capacitance value of the inductive capacitor is greater than or equal to a set threshold and the distance between the switch and the user is less than or equal to the set distance.
[0046] Figure 2 is a schematic diagram of a method for controlling a capacitive inductive switch provided by an embodiment of the present disclosure. Figure 2 As shown, the method for controlling a capacitive sensing switch includes:
[0047] S201, obtaining a capacitance value of a sensing capacitor.
[0048] Among them, when the switch is actuated, the capacitance value of the inductive capacitor changes. The inductive capacitor is a capacitor formed by the deformation part and the inductive part. When the switch is actuated, for example, when the user presses the switch with a finger, the distance between the deformation part and the inductive part becomes smaller, and the capacitance value of the inductive capacitor becomes larger; when the user's finger leaves the switch, the distance between the deformation part and the inductive part becomes larger, and the capacitance value of the inductive capacitor becomes smaller.
[0049] S202: Obtain the distance between the user and the switch.
[0050] Directly detect the distance between the user and the switch through the distance sensor; or, read the distance between the user and the switch corresponding to a specific moment in time from the memory. Directly detecting the distance between the user and the switch through the distance sensor includes: periodically obtaining the distance between the user and the switch through the distance sensor, or obtaining the distance between the user and the switch through the distance sensor in real time, or obtaining the distance between the user and the switch through the distance sensor when the switch is actuated; the distance between the user and the switch and the moment when the distance is obtained are pre-stored in the memory.
[0051] S203: When the capacitance value of the sensing capacitor is greater than or equal to the set threshold value and the distance between the switch and the user is less than or equal to the set distance, perform an operation corresponding to the switch action.
[0052] The capacitance value of the sensing capacitor can be obtained first. When the capacitance value of the sensing capacitor is greater than or equal to a set threshold, the distance between the user and the switch is obtained, and it is determined whether the distance between the user and the switch is less than or equal to the set distance. When the distance between the switch and the user is less than or equal to the set distance, an operation corresponding to the switch action is performed.
[0053] Alternatively, the distance between the user and the switch may be obtained first, and when the distance between the user and the switch is less than or equal to a set distance, the capacitance value of the sensing capacitor may be obtained, and it may be determined whether the capacitance value of the sensing capacitor is greater than or equal to a set threshold value, and when the capacitance value of the sensing capacitor is greater than or equal to the set threshold value, an action corresponding to the switch action may be performed.
[0054] When detecting whether the sensing capacitance has changed, the distance between the user and the switch is detected at the same time. When the capacitance value of the sensing capacitance is greater than or equal to the set threshold and the distance between the switch and the user is less than or equal to the set distance, the change in the sensing capacitance is caused by the user. At this time, performing the operation corresponding to the switch action can reduce the phenomenon of misjudgment.
[0055] In the embodiment of the present disclosure, the method for controlling the capacitive sensing switch may be executed by a control module composed of hardware, software or a combination of the two.
[0056] Figure 3 is a schematic diagram of a method for obtaining the distance between a user and a switch provided by an embodiment of the present disclosure. Figure 3 As shown, the distance between the user and the switch is obtained, including:
[0057] S301: Obtain a first distance between a user and a switch before a set time period.
[0058] S302: Obtain a second distance between the current user and the switch.
[0059] Correspondingly, the distance between the switch and the user is less than or equal to the set distance, including: the first distance is less than or equal to the first set distance and greater than the second set distance, and the second distance is less than or equal to the second set distance.
[0060] The above-mentioned distance condition between the switch and the user indicates that the user gradually approaches the switch, and, when the switch is actuated, the distance between the user and the switch is small enough, that is, the distance between the user and the switch is less than or equal to the second set distance. When the distance between the user and the switch is too far (that is, greater than the second set distance), or the user does not approach the switch from far to near, the action of the switch is determined to be invalid, and the switch does not perform the operation corresponding to the action.
[0061] In some application scenarios, by setting the distance of the distance sensor, the distance sensor can detect the distance between the user at a specific height and the switch, that is, the distance between the user above the specific height and the switch is obtained. For example, the distance between the user and the switch at a position above 1.2m from the ground is detected. If the user's height is less than 1.2m, the distance sensor cannot detect the distance between the user and the switch. If the user's height is greater than or equal to 1.2m, the distance sensor can detect the distance between the user and the switch. In the application scenario where children are present, under normal circumstances, the distance sensor cannot detect the distance between the child and the switch. When the child reaches out to touch the switch, the switch is actuated, and the distance sensor detects that the distance between the user and the switch is less than the second set distance. Since the first distance between the user and the switch is not detected before the set time period, that is, the condition that the first distance is less than or equal to the first set distance and greater than the second set distance is not met, at this time, the switch action is determined to be invalid, and the operation corresponding to the switch action is not performed, effectively preventing children from misoperating the switch.
[0062] In some application scenarios, the first set distance may be 0.5m to 1m, for example, the first set distance is 0.5m, 0.6m, 0.7m, 0.8m, 0.9m or 1m. The second set distance may be 0.03m to 0.1m, for example, the first set distance is 0.03m, 0.04m, 0.05m, 0.06m, 0.07m, 0.08m, 0.09m or 0.1m. The set time period may be 0.2s to 0.5s, for example, the set time period is 0.2s, 0.3s, 0.4s or 0.5s.
[0063] Optionally, obtaining the capacitance value of the sensing capacitor includes: obtaining the voltage value of the sensing capacitor; wherein the capacitance value of the sensing capacitor corresponds to the voltage value of the sensing capacitor. When the charging circuit or the discharging circuit of the sensing capacitor is cut off, the amount of charge on the sensing capacitor remains unchanged, and the change in the voltage value of the sensing capacitor can reflect the change in the capacitance value of the sensing capacitor. In practical applications, when the charging circuit or the discharging circuit of the sensing capacitor is cut off, the change in the voltage value of the sensing capacitor can reflect the change in the capacitance value of the sensing capacitor in a relatively short period of time, such as the duration of a user pressing a switch.
[0064] Correspondingly, the capacitance value of the sensing capacitor is greater than or equal to the set threshold value, including: the reduction value of the voltage value of the sensing capacitor is greater than or equal to the first set voltage. The first set voltage here is related to the amount of charge on the sensing capacitor: the more the charge, the greater the first set voltage; the less the charge, the smaller the first set voltage.
[0065] Compared with obtaining the change of the capacitance value of the inductive capacitor by measuring the change of the oscillation frequency of the oscillation circuit composed of the inductive capacitor, it is faster to obtain the change of the capacitance value of the inductive capacitor by measuring the change of the voltage value of the inductive capacitor.
[0066] Figure 4 1 is a schematic diagram of a method for determining that a reduction value of a voltage value of a sensing capacitor is greater than or equal to a first set voltage provided by an embodiment of the present disclosure. Figure 4 As shown, determining that the reduced value of the voltage value of the sensing capacitor is greater than or equal to the first set voltage includes:
[0067] S401: Obtain a first average voltage of an inductive capacitor within a first set time period.
[0068] Multiple voltage values of the sensing capacitor are periodically obtained within a first set time period, for example, 2, 3, 4, 5 or more voltage values of the sensing capacitor are obtained, and an average value of the multiple voltage values is calculated to obtain a first average voltage.
[0069] S402: Obtain a second average voltage of the inductive capacitor within a second set time period.
[0070] Multiple voltage values of the sensing capacitor are periodically obtained within a second set time period, for example, 2, 3, 4, 5 or more voltage values of the sensing capacitor are obtained, and an average value of the multiple voltage values is calculated to obtain a second average voltage.
[0071] Optionally, the number of voltage values of the inductive capacitor obtained in the first set time period is greater than the number of voltage values of the inductive capacitor obtained in the second set time period, or the number of voltage values of the inductive capacitor obtained in the first set time period is less than the number of voltage values of the inductive capacitor obtained in the second set time period, or the number of voltage values of the inductive capacitor obtained in the first set time period is equal to the number of voltage values of the inductive capacitor obtained in the second set time period.
[0072] S403 , calculating a difference voltage between the first average voltage and the second average voltage.
[0073] S404: When the difference voltage is greater than or equal to the first set voltage, determine that the reduced value of the voltage value of the inductive capacitor is greater than or equal to the first set voltage.
[0074] When the difference voltage is less than the first set voltage, the voltage value of the sensing capacitor is continuously obtained to calculate the first average voltage and the second average voltage until the difference voltage is greater than or equal to the first set voltage.
[0075] By using the average voltage of the sensing capacitor to calculate the reduction value of the voltage value of the sensing capacitor, the influence of the voltage value of the sensing capacitor measured once on the calculation result can be reduced, the influence of mismeasurement or switch misoperation on the measurement result can be reduced, and the accuracy of the calculated reduction value of the voltage value of the sensing capacitor can be improved, thereby more accurately determining whether the reduction value of the voltage value of the sensing capacitor is greater than or equal to the first set voltage.
[0076] Optionally, the voltage value of the inductive capacitor within the first set time period includes: U n , U n+1 , …, U n+m ; The voltage value of the inductive capacitor within the second set time period includes: U n+p , U n+p+1 , …, U n+p+m Among them, U n is the voltage value of the sensing capacitor, n, m, p are natural numbers, and p<m.
[0077] m is the number of voltage values of the inductive capacitors obtained in a first set time period, and the average value of the voltage values of the m inductive capacitors is calculated to obtain a first average voltage; m is the number of voltage values of the inductive capacitors obtained in a second set time period, and the average value of the voltage values of the m inductive capacitors is calculated to obtain a second average voltage.
[0078] Compared with calculating the reduction value of the voltage value of the sensing capacitor by using the two voltage values of the sensing capacitor, obtaining multiple voltage values of the sensing capacitor in the first set time period and the second set time period, and calculating the first average voltage and the second average voltage respectively, and then calculating the reduction value of the voltage value of the sensing capacitor, will extend the time to obtain the reduction value of the voltage value of the sensing capacitor. In actual applications, when the user touches the switch, the duration of the switch action is relatively short, and the reduction value of the voltage value of the sensing capacitor needs to be calculated in a shorter time. Calculating the reduction value of the voltage value of the sensing capacitor in a shorter time is contradictory to obtaining multiple voltage values of the sensing capacitor and calculating the average voltage to obtain the reduction value of the voltage value of the sensing capacitor.
[0079] In the above technical solution, when calculating the first average voltage and the second average voltage, it is not necessary to obtain 2m voltage values of the inductive capacitor, but only p+m voltage values of the inductive capacitor need to be obtained to calculate the first average voltage and the second average voltage, thereby calculating the reduction value of the voltage value of the inductive capacitor. This improves the accuracy of the calculated reduction value of the voltage value of the inductive capacitor and shortens the time for calculating the reduction value of the voltage value of the inductive capacitor.
[0080] Optionally, after determining that the decrease value of the voltage value of the inductive capacitor is greater than or equal to the first set voltage, the method further includes: calculating the difference between each two adjacent voltage values in the second time period, and obtaining the detection time of the smaller value of the two adjacent voltage values when the difference between the two adjacent voltage values is greater than or equal to the second set voltage. The second set voltage is m times the first set voltage. In this way, the moment when the voltage value of the inductive capacitor changes can be obtained, that is, the moment when the user presses the switch can be obtained.
[0081] Correspondingly, obtaining the distance between the user and the switch includes: obtaining the distance between the user and the switch at the detection moment.
[0082] When the distance between the user and the switch is less than or equal to the set distance at the detection time, an action corresponding to the switch action is performed.
[0083] By using the distance between the user and the switch at the detection moment, it is possible to more accurately determine whether an operation corresponding to the switch action needs to be performed.
[0084] Optionally, obtaining the distance between the user and the switch at the detection moment includes: obtaining a first distance between the user and the switch in a set time period before the detection moment, and obtaining a second distance between the user and the switch at the detection moment;
[0085] Correspondingly, the distance between the switch and the user is less than or equal to the set distance, including: the first distance is less than or equal to the first set distance and greater than the second set distance, and the second distance is less than or equal to the second set distance.
[0086] Figure 5 is a schematic diagram of a method for controlling a capacitive inductive switch provided by an embodiment of the present disclosure. Figure 5 As shown, the method for controlling a capacitive sensing switch includes:
[0087] S501: Obtain a first average voltage of an inductive capacitor within a first set time period.
[0088] S502: Obtain a second average voltage of the inductive capacitor within a second set time period.
[0089] S503: Calculate the difference voltage between the first average voltage and the second average voltage.
[0090] S504: When the difference voltage is greater than or equal to the first set voltage, calculate the difference between every two adjacent voltage values in the second time period.
[0091] Wherein, when the difference between two adjacent voltage values is greater than or equal to the second set voltage, it is determined that the reduced value of the voltage value of the sensing capacitor is greater than or equal to the first set voltage. When the reduced value of the voltage value of the sensing capacitor is greater than or equal to the first set voltage, the difference between each two adjacent voltage values in the second time period is calculated.
[0092] S505 . When the difference between two adjacent voltage values is greater than or equal to the second set voltage, obtain a detection time of a smaller value of the two adjacent voltage values.
[0093] S506: Obtain a first distance between the user and the switch in a set time period before the detection moment.
[0094] S507: Obtain a second distance between the user and the switch at the detection moment.
[0095] S508: When the first distance is less than or equal to the first set distance and greater than the second set distance, and the second distance is less than or equal to the second set distance, perform an action corresponding to the switch action.
[0096] Optionally, operations corresponding to the switching actions are performed, including power-off operations.
[0097] Optionally, an operation corresponding to the switch action is performed, including a power-on operation.
[0098] Optionally, executing the operation corresponding to the switch action includes displaying a control instruction through a display panel, wherein the control instruction corresponds to the switch action.
[0099] Optionally, performing an operation corresponding to the switch action includes sending a control instruction to the load being dragged, wherein the control instruction corresponds to the switch action, for example, sending a control instruction to increase the set temperature to the air conditioner, or sending a control instruction to reduce the set temperature to the air conditioner.
[0100] In some embodiments, the apparatus for controlling a capacitive sensing switch includes a processor and a memory storing program instructions, and the processor is configured to execute the method for controlling a capacitive sensing switch provided in the above embodiments when executing the program instructions.
[0101] Figure 6 Schematic diagram of a device for controlling a capacitive inductive switch provided by an embodiment of the present disclosure. Figure 6 As shown, the device for controlling the capacitive inductive switch includes:
[0102] The processor 61 and the memory 62 may also include a communication interface 63 and a bus 64. The processor 61, the communication interface 63, and the memory 62 may communicate with each other through the bus 64. The communication interface 63 may be used for information transmission. The processor 61 may call the logic instructions in the memory 62 to execute the method for controlling the capacitive induction switch provided in the foregoing embodiment.
[0103] In addition, the logic instructions in the memory 62 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0104] The memory 62 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 61 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 62, that is, implementing the methods in the above method embodiments.
[0105] The memory 62 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 62 may include a high-speed random access memory and may also include a non-volatile memory.
[0106] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the method for controlling a capacitive sensing switch provided in the aforementioned embodiment.
[0107] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method for controlling a capacitive sensing switch provided in the above embodiment.
[0108] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0109] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0110] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure to enable technical users in the field to practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms as well. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0111] Technical users in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technical users can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technical users can clearly understand that for the convenience and simplicity of description, the specific working process of the systems, devices and units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0112] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units can be only a logical function division, and there can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0113] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and a part of a module, program segment or code includes one or more executable instructions for realizing the specified logical function. In some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of special-purpose hardware and computer instructions.
Claims
1. A method for controlling a capacitive inductive switch, characterized in that: Metal switch panel includes: The metal deformation part has a flat plate structure; The sensing part is in a flat plate structure and is arranged opposite to the metal deformation part; A supporting part, supporting the metal deformation part, so that there is a specific distance between the metal deformation part and the sensing part, and the metal deformation part and the sensing part form an inductive capacitor; Distance measurement module, used to measure the distance between the user and the switch; a control module configured to obtain a capacitance value of the sensing capacitor, obtain a distance between the user and the switch, and perform an operation corresponding to the switch action when the capacitance value of the sensing capacitor is greater than or equal to a set threshold and the distance between the switch and the user is less than or equal to the set distance; The method for controlling a capacitive sensing switch includes: Obtaining a capacitance value of the sensing capacitor; wherein the capacitance value of the sensing capacitor changes when the switch is actuated; Get the distance between the user and the switch; When the capacitance value of the sensing capacitor is greater than or equal to a set threshold value, and the distance between the switch and the user is less than or equal to a set distance, performing an operation corresponding to the switch action; Get the distance between the user and the switch above a certain height, including: obtaining a first distance between the user and the switch before a set time period above a specific height; Get the second distance between the current user and the switch above a specific height; The distance between the switch and the user is less than or equal to the set distance, including: The first distance is less than or equal to a first set distance and greater than a second set distance, and the second distance is less than or equal to the second set distance; The distance sensor detects that the second distance between the user and the switch is less than the second set distance, and the first distance between the user and the switch is not detected before the set time period. At this time, the switch action is judged to be invalid and the operation corresponding to the switch action is not performed.
2. The method according to claim 1, characterized in that: Obtain the capacitance value of the sensing capacitor, including: Obtaining a voltage value of the sensing capacitor; wherein the capacitance value of the sensing capacitor corresponds to the voltage value of the sensing capacitor; The capacitance value of the sensing capacitor is greater than or equal to a set threshold, including: The reduced value of the voltage value of the inductive capacitor is greater than or equal to the first set voltage.
3. The method according to claim 2, characterized in that Determining that the reduced value of the voltage value of the sensing capacitor is greater than or equal to a first set voltage includes: Obtaining a first average voltage of the inductive capacitor within a first set time period; Obtaining a second average voltage of the inductive capacitor within a second set time period; calculating a difference voltage between the first average voltage and the second average voltage; In a case where the difference voltage is greater than or equal to the first set voltage, it is determined that the reduced value of the voltage value of the sensing capacitor is greater than or equal to the first set voltage.
4. The method according to claim 3, characterized in that: The voltage value of the inductive capacitor in the first set time period includes: U n , U n+1 , …, U n+m ; The voltage value of the inductive capacitor in the second set time period includes: U n+p , U n+p+1 , …, U n+p+m ; Among them, U n is the voltage value of the sensing capacitor, n, m, p are natural numbers, and p<m.
5. The method according to claim 4, characterized in that After determining that the reduced value of the voltage value of the sensing capacitor is greater than or equal to the first set voltage, the method further includes: Calculating the difference between every two adjacent voltage values within the second set time period; When the difference between two adjacent voltage values is greater than or equal to a second set voltage, obtaining a detection time of a smaller value of the two adjacent voltage values; Get the distance between the user and the switch, including: The distance between the user and the switch at the detection moment is obtained.
6. The method according to claim 1, characterized in that When the capacitance value of the inductive capacitor is greater than or equal to a set threshold, it is determined whether the distance between the user and the switch is less than or equal to the set distance. When the distance between the switch and the user is less than or equal to the set distance, an operation corresponding to the switch action is performed.
7. The method according to claim 1, characterized in that Perform operations corresponding to the switch action, including one or more of the following: Power-off operation; Power-on operation; Display control instructions via a display panel; Send control instructions to the load it is dragging.
8. A device for controlling a capacitive inductive switch, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to perform the method for controlling a capacitive sensing switch according to any one of claims 1 to 7 when executing the program instructions.
Citation Information
Patent Citations
Touch key triggering detection method and triggering detection device
CN105790747A
Infrared and capacitance based sensing for proximity detection
US9042833B1