A non-contact pressure switch control method and device

Through the non-contact pressure switch control method, the pressure change value is calculated using the capacitance change value and the switch control signal is output, which solves the problem of microswitch sound and short service life, and realizes the silent and long-life switching function.

CN111669165BActive Publication Date: 2024-11-15童宗伟
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010652699.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-08
Publication Date
2024-11-15
Estimated Expiration
2040-07-08

AI Technical Summary

Technical Problem

Existing micro switches are prone to sound during use, and the contact contact method leads to a short service life, making it difficult to use in a quiet environment.

Method used

The non-contact pressure switch control method is adopted to discharge and charge the capacitor to be measured, and the pressure change value is calculated using the capacitance change value, and the switch control signal is output to realize the switching function of the non-contact contact method. Two parallel PCB soldering is used. The disc and the metal sheet form a capacitance, detecting the change in the capacitance value to realize the switching function.

Benefits of technology

It realizes the silent and long-lived switching function, avoids noise problems caused by contact contact, and improves the reliability and user experience of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111669165B_ABST
    Figure CN111669165B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a non-contact pressure switch control method and device, which performs system parameter initialization and pressure calibration; discharges the capacitor to be measured and starts the counter; charges the capacitor to be measured, and when the level signal of the capacitor to be measured is higher than the preset signal value, stops counting and obtains the counting result; converts the counting result into the corresponding capacitance change value; calculates the corresponding pressure change value according to the capacitance change value; when the pressure change value is greater than the preset pressure threshold, outputs a switch control signal, and controls the vibration output signal according to the switch control signal. By converting the capacitance change state into the pressure change state, and then sending a switch control signal according to the pressure threshold, a capacitor is formed by a PCB pad and a metal sheet, the distance between the two metal sheets is changed by pressure, and the function of switching by non-contact contact mode is realized by detecting the capacitance value change, the implementation method is reliable, and the practical life is extended.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pressure detection, and in particular to a non-contact pressure switch control method and a non-contact pressure switch control device. Background Art

[0002] A micro switch is a pressure-activated fast-changeover switch. Because the contact spacing of the switch is relatively small, it is called a micro switch, also known as a sensitive switch. Micro switches are widely used, such as computer mice, car mice, automotive electronic products, communication equipment, military products, test instruments, gas water heaters, gas stoves, small appliances, microwave ovens, rice cookers, float equipment, medical equipment, building automation, power tools, general electrical and radio equipment, and 24-hour timers.

[0003] Micro switches are classified into audible switches and silent switches. The audible switch makes a sound during use, which can give users a good hand feeling. However, the sound it makes is noisy in some occasions and is not suitable for occasions where silence is required. The existing switch adopts a contact contact method, which can easily lead to a short service life. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a non-contact pressure switch control method and a non-contact pressure switch control device that overcome the above problems or at least partially solve the above problems.

[0005] In order to solve the above problems, an embodiment of the present invention discloses a non-contact pressure switch control method, including:

[0006] Initialize system parameters and perform pressure calibration;

[0007] Discharge the capacitor to be measured and start the counter;

[0008] Charging the capacitor to be tested, and when the level signal of the capacitor to be tested is higher than a preset signal value, stopping counting to obtain a counting result;

[0009] Converting the counting result into a corresponding capacitance change value;

[0010] Calculating a corresponding pressure change value according to the capacitance change value;

[0011] When the pressure change value is greater than a preset pressure threshold, a switch control signal is output, and the vibration output signal is controlled according to the switch control signal.

[0012] Furthermore, the steps of initializing system parameters and performing pressure calibration include:

[0013] Store the currently detected pressure value and record the current state value as the initial state value;

[0014] Detecting whether the capacitance change value within a preset time period is less than a preset change value;

[0015] If yes, automatic pressure calibration is performed;

[0016] If not, no automatic pressure calibration is performed.

[0017] Furthermore, the step of discharging the capacitor to be measured and starting the counter includes:

[0018] Set the interface function to output and set it to low level;

[0019] After discharging the capacitor to be measured, the interface function is set to input, and the counter is started.

[0020] Furthermore, the output switch control signal is a high or low level.

[0021] The embodiment of the present invention discloses a non-contact pressure switch control device, comprising:

[0022] Initialization module, used to initialize system parameters and perform pressure calibration;

[0023] A counting module, used for discharging the capacitor to be measured and starting a counter;

[0024] A charging module, used for charging the capacitor to be tested, and when the level signal of the capacitor to be tested is higher than a preset signal value, stopping counting to obtain a counting result;

[0025] A capacitance conversion module, used for converting the counting result into a corresponding capacitance change value;

[0026] A pressure conversion module, used to calculate a corresponding pressure change value according to the capacitance change value;

[0027] The signal output module is used to output a switch control signal when the pressure change value is greater than a preset pressure threshold, and control the vibration output signal according to the switch control signal.

[0028] Furthermore, the initialization module includes:

[0029] Initialize the recording unit, which is used to store the currently detected pressure value and record the current state value as the initial state value;

[0030] A detection unit, used to detect whether a capacitance change value within a preset time period is less than a preset change value;

[0031] The automatic calibration unit is used to perform automatic pressure calibration if the capacitance change value within the preset time period is less than the preset change value; if the capacitance change value within the preset time period is greater than the preset change value, then no automatic pressure calibration is performed.

[0032] Furthermore, the signal output module comprises:

[0033] A level setting unit, used to set the interface function to output and set it to a low level or a high level;

[0034] The counting unit is used to set the interface function to input after discharging the capacitor to be measured, and start the counter.

[0035] Furthermore, the output switch control signal is a low level or a high level.

[0036] An embodiment of the present invention discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the non-contact pressure switch control method as described above when executed by the processor.

[0037] An embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the non-contact pressure switch control method as described above are implemented.

[0038] The embodiments of the present invention include the following advantages: a capacitor is formed by two parallel PCB pads and a metal sheet, the distance between the two metal sheets is changed by pressure, resulting in a change in capacitance value, and a non-contact switching function is achieved by detecting the change in capacitance value, the service life is long, and the implementation method is reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flowchart of a non-contact pressure switch control method embodiment of the present invention;

[0040] Figure 2 is a flowchart of a non-contact pressure switch control method embodiment of the present invention;

[0041] Figure 3 is a flowchart of a non-contact pressure switch control method embodiment of the present invention;

[0042] Figure 4 It is a structural block diagram of an embodiment of a non-contact pressure switch control device of the present invention;

[0043] Figure 5 It is a structural block diagram of an embodiment of a non-contact pressure switch control device of the present invention;

[0044] Figure 6 The invention relates to a computer device for a non-contact pressure switch control method. DETAILED DESCRIPTION

[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0046] One of the core concepts of the embodiment of the present invention is to provide a non-contact pressure switch control method, including: initializing system parameters and performing pressure calibration; discharging the capacitor to be measured and starting the counter; charging the capacitor to be measured, and when the level signal of the capacitor to be measured is higher than the preset signal value, stopping counting and obtaining a counting result; converting the counting result into a corresponding capacitance change value; calculating the corresponding pressure change value according to the capacitance change value; when the pressure change value is greater than the preset pressure threshold, outputting a switch control signal, and controlling the vibration output signal according to the switch control signal. By converting the capacitance change state into the pressure change state, and then issuing a switch control signal according to the pressure threshold, the function of the pressure switch is realized, the cost is low, and the implementation method is reliable.

[0047] Reference Figure 1 , shows a flowchart of a non-contact pressure switch control method embodiment of the present invention, which may specifically include the following steps:

[0048] S110, initializing system parameters and performing pressure calibration;

[0049] S120, discharging the capacitor to be measured and starting the counter;

[0050] S130, charging the capacitor to be measured, and when the level signal of the capacitor to be measured is higher than a preset signal value, stopping counting to obtain a counting result;

[0051] S140, converting the counting result into a corresponding capacitance change value;

[0052] S150, calculating a corresponding pressure change value according to the capacitance change value;

[0053] S160, when the pressure change value is greater than a preset pressure threshold, output a switch control signal, and control the vibration output signal according to the switch control signal.

[0054] Referring to the above step S110, Figure 3As shown, the system parameters are initialized and the pressure is calibrated; the switch control in this embodiment is mainly based on setting a pad on the PCB board, setting a metal sheet on the pad, separating the metal sheet and the pad with an insulating layer, placing a short circuit between the metal sheet and the pad, setting the metal sheet and the pad in parallel to form a capacitor, grounding the metal sheet, and connecting the pad to the GPIO port (General-purpose input / output) of the control chip, so that the GPIO forms a capacitor to the ground. When powered on, the pressure is automatically calibrated, the current pressure value is automatically stored, and the current pressure state value is used as the "0" point value. When no button is pressed, the capacitance change value within a certain period of time is detected to be less than a preset capacitance change threshold, and automatic calibration is performed. If the operation is normal, there will be a certain jitter because the person is not completely still, and the change value will be greater than the capacitance change threshold, and no calibration will be performed. The calibration time is in milliseconds, and this time difference is not intuitively felt by people. The minimum capacitance value detected at power-on is automatically saved and compared during automatic calibration. Due to the switch and structure, the change in the detected value and the actual minimum pressure change value are within a certain range, and calibration is performed only when the comparison value is less than a certain value.

[0055] Referring to the above step S130, the capacitor to be tested is charged, and when the level signal of the capacitor to be tested is higher than the preset signal value, counting is stopped to obtain a counting result; the metal sheet is deformed by the force, and the capacitance value of the capacitor to be tested changes, the change value of the capacitor to be tested is detected, and converted into a corresponding pressure change value. The greater the force, the greater the deformation of the metal sheet, and the closer the distance between the metal sheet and the pad, the greater the capacitance change value of the capacitor. When the capacitance characteristics are the same charging current, the greater the capacitance value, the longer the charging time, and the pressure value detection is completed through the charging time.

[0056] Referring to the above step S140, the counting result is converted into a corresponding capacitance change value; the GPIO port is set to output and set to a low level, the GPIO port discharges the capacitor to be measured, and then the GPIO port is set to input, and the counter inside the MCU is started at the same time. When the charging voltage reaches the highest state, the counting is stopped, and the counting time value is converted into the corresponding capacitance change, and the capacitance is converted into a pressure value.

[0057] Referring to the above step S160, when the pressure change value is greater than the preset pressure threshold, a switch control signal is output, and the vibration output signal is controlled according to the switch control signal. The switch force is set by setting the threshold reference through the internal software of the MCU, and the electronic switch is turned on or off by outputting the IO high or low level of the switch state. The vibration motor signal output pin outputs a high and low change level to drive the vibration motor to vibrate, realizing the physical sensation of pressing the button. The vibration size and physical sensation are adjusted by adjusting the duty cycle of the drive signal or the resistance size, realizing the touch feedback of the switch, and improving the comfort of the experience.

[0058] Reference Figure 2 As shown, in this embodiment, the step S110 of initializing system parameters and performing pressure calibration includes:

[0059] S111, storing the currently detected pressure value, and recording the current state value as the initial state value;

[0060] S112, detecting whether the capacitance change value within a preset time period is less than a preset change value;

[0061] S113, if yes, perform automatic pressure calibration; if no, do not perform automatic pressure calibration.

[0062] In this embodiment, the step S120 of discharging the capacitor to be measured and starting the counter includes:

[0063] Set the interface function to output and set it to low level;

[0064] After discharging the capacitor to be measured, the interface function is set to input, and the counter is started.

[0065] In this embodiment, the output switch control signal is a high or low level.

[0066] Referring to the above steps, the key pressure is output through a serial port in a one-line manner. In another specific embodiment, the key pressure is output through two pins in IIC data. This embodiment can output the key pressure in the form of a switch state signal or a pressure signal.

[0067] In a specific embodiment, the chip pins can also be used as shared IO ports for software burning.

[0068] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0069] Reference Figure 4 , shows a structural block diagram of an embodiment of a non-contact pressure switch control device of the present invention, which may specifically include the following modules:

[0070] Initialization module 110, used to initialize system parameters and perform pressure calibration;

[0071] The counting module 120 is used to discharge the capacitor to be measured and start the counter;

[0072] The charging module 130 is used to charge the capacitor to be tested, and when the level signal of the capacitor to be tested is higher than a preset signal value, stop counting to obtain a counting result;

[0073] The capacitance conversion module 140 is used to convert the counting result into a corresponding capacitance change value;

[0074] A pressure conversion module 150, configured to calculate a corresponding pressure change value according to the capacitance change value;

[0075] The signal output module 160 is used to output a switch control signal when the pressure change value is greater than a preset pressure threshold, and control the vibration output signal according to the switch control signal.

[0076] Reference Figure 5 As shown, in this embodiment, the initialization module 110 includes:

[0077] Initialization recording unit 111, used for storing the currently detected pressure value and recording the current state value as the initial state value;

[0078] A detection unit 112, used to detect whether a capacitance change value within a preset time period is less than a preset change value;

[0079] The automatic calibration unit 113 is used to perform automatic pressure calibration if the capacitance change value within the preset time period is less than the preset change value; if the capacitance change value within the preset time period is greater than the preset change value, then no automatic pressure calibration is performed.

[0080] In this embodiment, the signal output module 160 includes:

[0081] A level setting unit, used to set the interface function to output and set it to a low level;

[0082] The counting unit is used to set the interface function to input after discharging the capacitor to be measured, and start the counter.

[0083] In this embodiment, the output switch control signal is a high or low level.

[0084] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0085] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0086] An embodiment of the present invention discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the non-contact pressure switch control method as described above when executed by the processor.

[0087] An embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the non-contact pressure switch control method as described above are implemented.

[0088] Reference Figure 6 , showing a computer device of a non-contact pressure switch control method of the present invention, which may specifically include the following:

[0089] The computer device 12 is in the form of a general-purpose computing device, and the components of the computer device 12 may include but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).

[0090] The bus 18 represents one or more of several types of bus 18 structures, including a memory bus 18 or memory controller, a peripheral bus 18, an accelerated graphics port, a processor or a local bus 18 using any of a variety of bus 18 architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus 18, a Micro Channel Architecture (MAC) bus 18, an Enhanced ISA bus 18, an Audio Video Electronics Standards Association (VESA) local bus 18, and a Peripheral Component Interconnect (PCI) bus 18.

[0091] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0092] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, which are configured to perform the functions of various embodiments of the present invention.

[0093] A program / utility 40 having a set (at least one) of program modules 42 may be stored in, for example, a memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0094] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, cameras, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs)), wide area networks (WANs), and / or public networks (e.g., the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 6Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.

[0095] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the non-contact pressure switch control method provided in the embodiment of the present invention.

[0096] That is, when the processing unit 16 executes the program, the following steps are achieved: initializing system parameters and performing pressure calibration; discharging the capacitor to be measured and starting a counter; charging the capacitor to be measured, and when the level signal of the capacitor to be measured is higher than a preset signal value, stopping counting to obtain a counting result; converting the counting result into a corresponding capacitance change value; calculating a corresponding pressure change value based on the capacitance change value; and when the pressure change value is greater than a preset pressure threshold, outputting a switch control signal, and controlling the vibration output signal based on the switch control signal.

[0097] In an embodiment of the present invention, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the non-contact pressure switch control method provided in all embodiments of the present application is implemented:

[0098] That is, when the program is executed by the processor, the following are achieved: initializing system parameters and performing pressure calibration; discharging the capacitor to be measured and starting the counter; charging the capacitor to be measured, and when the level signal of the capacitor to be measured is higher than the preset signal value, stopping counting to obtain a counting result; converting the counting result into a corresponding capacitance change value; calculating the corresponding pressure change value according to the capacitance change value; when the pressure change value is greater than the preset pressure threshold, outputting a switch control signal, and controlling the vibration output signal according to the switch control signal.

[0099] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPOM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device.

[0100] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0101] The computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.

[0102] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0103] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0104] The non-contact pressure switch control method and device provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A non-contact pressure switch control method, characterized in that: include: Initialize system parameters and perform pressure calibration; Discharge the capacitor to be measured and start the counter; Charging the capacitor to be tested, and when the level signal of the capacitor to be tested is higher than a preset signal value, stopping counting to obtain a counting result; Converting the counting result into a corresponding capacitance change value; Calculating a corresponding pressure change value according to the capacitance change value; When the pressure change value is greater than a preset pressure threshold, a switch control signal is output, and the vibration output signal is controlled according to the switch control signal; The system parameter initialization and pressure calibration include: Store the currently detected pressure value and record the current state value as the initial state value; Detecting whether the capacitance change value within a preset time period is less than a preset change value; If yes, automatic pressure calibration is performed; If not, no automatic pressure calibration is performed.

2. The method according to claim 1, characterized in that The step of discharging the capacitor to be measured and starting the counter includes: Set the interface function to output and set it to low level; After discharging the capacitor to be measured, the interface function is set to input, and the counter is started.

3. The method according to claim 1, characterized in that: The output switch control signal is a high or low level.

4. A non-contact pressure switch control device, characterized in that: include: Initialization module, used to initialize system parameters and perform pressure calibration; A counting module, used for discharging the capacitor to be measured and starting a counter; A charging module, used for charging the capacitor to be tested, and when the level signal of the capacitor to be tested is higher than a preset signal value, stopping counting to obtain a counting result; A capacitance conversion module, used for converting the counting result into a corresponding capacitance change value; A pressure conversion module, used to calculate a corresponding pressure change value according to the capacitance change value; A signal output module, used for outputting a switch control signal when the pressure change value is greater than a preset pressure threshold, and controlling the vibration output signal according to the switch control signal; Wherein, the initialization module includes: Initialize the recording unit, which is used to store the currently detected pressure value and record the current state value as the initial state value; A detection unit, used to detect whether a capacitance change value within a preset time period is less than a preset change value; The automatic calibration unit is used to perform automatic pressure calibration if the capacitance change value within the preset time period is less than the preset change value; if the capacitance change value within the preset time period is greater than the preset change value, then no automatic pressure calibration is performed.

5. The device according to claim 4, characterized in that The signal output module comprises: A level setting unit, used to set the interface function to output and set it to a low level or a high level; The counting unit is used to set the interface function to input after discharging the capacitor to be measured, and start the counter.

6. The device according to claim 4, characterized in that The output switch control signal is a low level or a high level.

7. An electronic device, characterized in that The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the non-contact pressure switch control method as claimed in any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium, characterized in that The computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the non-contact pressure switch control method according to any one of claims 1 to 3 are implemented.