Intelligent self-checking key circuit and key equipment

By introducing the main control chip and detection signal loop into the key circuit, the self-test function is realized, which solves the problems in the existing technology that the key circuit is susceptible to interference and the cost of manual detection is high, improves stability and sensitivity, and reduces the risk of accidental touches. .

CN221669860UActive Publication Date: 2024-09-06PRIMEDIC (JIANGSU) MEDICAL SCI & TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323319436.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-09-06
Estimated Expiration
2033-12-06

AI Technical Summary

Technical Problem

Existing button circuits are susceptible to external signal interference during long-distance connections, leading to misjudgments, and require manual detection, which increases labor costs.

Method used

An intelligent self-check button circuit is designed, which uses the main control chip to determine the button status through the detection signal loop to realize the self-check function, reduce manual intervention, and filter interference signals through resistors and capacitors to improve stability.

Benefits of technology

There is no need to manually trigger the keys, which saves labor costs, improves the stability and sensitivity of the circuit, and reduces the risk of accidental key presses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221669860U
    Figure CN221669860U
Patent Text Reader

Abstract

The utility model discloses an intelligent self-checking key circuit and key equipment. The intelligent self-checking key circuit comprises a key unit and a self-checking circuit connected with the key unit. The key unit is provided with a fixed end and a switching end, and when the fixed end is communicated with the switching end, the key unit is conducted; wherein the switching end is provided with a first contact and a second contact, the self-checking circuit is at least provided with a main control chip, and the main control chip is provided with a first detection port connected with the first contact and a second detection port connected with the second contact. And the first contact, the second contact, the first detection port and the second detection port are communicated with one another to form a first loop. Compared with the prior art, the step of manual operation required by self-inspection can be avoided, and labor force is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to a key circuit, in particular to an intelligent self-checking key circuit and a key device. Background Art

[0002] like Figure 1 As shown in FIG. 1 , it is a design diagram of a key circuit in the prior art, which uses an IO port to receive the falling edge signal of the key. The IO port of the MCU has been kept in a high level state due to the external pull-up resistor. When the key is pressed, the IO port of the MCU is directly grounded through the key, and the IO port will remain in a low level state. When the MCU recognizes that the IO port changes from high to low, it defaults to a key trigger.

[0003] The above solution has defects: when the button is pressed manually, the state of the IO port is flipped, and the rising or falling edge signal is recognized. Then, when the button and MCU wiring are too long, it is very easy to be interfered by external signals and cause

[0004] At the same time, the above solution requires human participation in keystrokes, which requires more labor costs.

[0005] Therefore, how to design an intelligent self-checking key circuit and key device to solve the above problems is a technical problem that needs to be solved urgently in the industry. Utility Model Content

[0006] Aiming at the problem in the prior art that the detection of a key circuit requires human participation, which increases the labor cost, the utility model proposes an intelligent self-checking key circuit and a key device.

[0007] The technical solution of the utility model is to propose an intelligent self-checking key circuit, comprising a key unit and a self-checking circuit connected to the key unit;

[0008] The key unit has a fixed end and a switching end, and when the fixed end and the switching end are connected, the key unit is turned on;

[0009] The switching end has a first contact and a second contact, the self-test circuit has at least one main control chip, the main control chip has a first detection port connected to the first contact, and a second detection port connected to the second contact, and the first contact, the second contact, the first detection port, and the second detection port are interconnected to form a first loop;

[0010] The first detection port can provide a detection signal to the second detection port through the first loop, and the main control chip compares the detection signal sent by the first detection port with the detection signal received by the second detection port to determine the state of the first loop.

[0011] Furthermore, the fixed end has a third contact and a fourth contact, the main control chip also has a third detection port connected to the third contact, and a fourth detection port connected to the fourth contact, and the third contact, the fourth contact, the third detection port, and the fourth detection port are interconnected to form a second loop;

[0012] Furthermore, when the detection signal sent by the third detection port is consistent with the detection signal received by the fourth detection port, the main control chip determines that the second loop is normal.

[0013] Furthermore, the first loop also includes a resistor R1 and a capacitor C1;

[0014] The resistor R1 is connected in series between the first contact and the first detection port, one end of the capacitor C1 is connected between the second contact and the second detection port, and the other end is grounded.

[0015] Furthermore, the resistance of the resistor R1 is 1000Ω, and the capacitance of the capacitor C1 is 100pF.

[0016] Furthermore, the second loop also includes a resistor R2 and a capacitor C2;

[0017] The resistor R2 is connected in series between the third contact and the third detection port, one end of the capacitor C2 is connected between the fourth contact and the fourth detection port, and the other end is grounded.

[0018] Furthermore, the resistance of the resistor R2 is 1000Ω, and the capacitance of the capacitor C2 is 100pF.

[0019] Furthermore, the fixed end has a third contact and a fourth contact, the third contact and the fourth contact are grounded, and the third contact and the fourth contact are connected to each other.

[0020] The present invention also provides a key device, which has the above-mentioned intelligent self-checking key circuit.

[0021] Compared with the prior art, the present invention has at least the following beneficial effects:

[0022] The present invention can realize the self-check of the key circuit through a main control chip, without the need for manual triggering of the key, thus saving labor costs;

[0023] In the utility model, the emission and reception of the detection signal are realized by the same main control chip, and the sensitivity thereof can be adjusted automatically, so that the stability of the circuit can be improved and the risk of accidental key touch can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0025] Figure 1 It is a connection diagram of a key circuit in the prior art;

[0026] Figure 2 This is a connection diagram of the intelligent self-checking button circuit in the first embodiment of the utility model;

[0027] Figure 3 Schematic diagram of the connection of the intelligent self-checking button circuit in the second embodiment of the utility model. DETAILED DESCRIPTION

[0028] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0029] Thus, a feature indicated in this specification will be used to illustrate one of the features of an embodiment of the utility model, rather than implying that each embodiment of the utility model must have the described feature. In addition, it should be noted that this specification describes many features. Although some features can be combined together to illustrate possible system designs, these features can also be used in other combinations that are not explicitly described. Thus, unless otherwise stated, the described combinations are not intended to be limiting.

[0030] The principle and structure of the present utility model are described in detail below with reference to the accompanying drawings and embodiments.

[0031] like Figure 1 As shown in FIG. 1 , it is a design diagram of a key circuit in the prior art, which uses an IO port to receive the falling edge signal of the key. The IO port of the MCU has been kept in a high level state due to the external pull-up resistor. When the key is pressed, the IO port of the MCU is directly grounded through the key, and the IO port will remain in a low level state. When the MCU recognizes that the IO port changes from high to low, it defaults to a key trigger.

[0032] However, the above solution has defects: when a button is pressed manually, the state of the IO port is flipped, and the rising or falling edge signal is identified. Then, when the button and MCU wiring are too long, it is very easy to be interfered by external signals and misjudgment occurs. At the same time, the above solution requires human participation in button pressing, which requires more labor costs.

[0033] In view of the above problems, the utility model proposes an intelligent self-checking key circuit, which includes a key unit and a self-checking circuit connected to the key unit;

[0034] The key unit has a fixed end and a switching end, and when the fixed end and the switching end are connected, the key unit is turned on;

[0035] The switching end has a first contact and a second contact, the self-test circuit has at least one main control chip, the main control chip has a first detection port connected to the first contact, and a second detection port connected to the second contact, and the first contact, the second contact, the first detection port, and the second detection port are interconnected to form a first loop;

[0036] The first detection port can provide a detection signal to the second detection port through the first loop, and the main control chip compares the detection signal sent by the first detection port with the detection signal received by the second detection port to determine the state of the first loop.

[0037] like Figure 2 and Figure 3 As shown, the key unit is Figure 2 and Figure 3 The key part in the device has a fixed end which is a fixedly connected end and a switch end which is a controlled end which can be disconnected or connected. When the key is triggered, the fixed end and the switch end are connected, so that the key unit is turned on, and the key unit can be put into use.

[0038] The first contact is contact 1, the second contact is contact 2, the first detection port is IO1 port, the second detection port is IO2 port, the main control chip is MCU, and the first contact, the second contact, the first detection port, and the second detection port are interconnected to form a first loop;

[0039] After the first contact, the second contact, the first detection port, and the second detection port are connected to form a first loop, the detection signal sent through the first detection port can return to the second detection port after passing through the first contact and the second contact in sequence.

[0040] Therefore, the judgment logic of the present invention is: when the detection signal sent by the first detection port is consistent with the detection signal received by the second detection port, the main control chip determines that the first circuit is normal.

[0041] Specifically, when the utility model performs self-test, the first detection port acts as a signal transmitting end to transmit a 1Khz PWM signal, and the second detection port performs synchronous detection to determine whether the second detection port can correctly receive the PWM signal sent by the first detection port, thereby determining whether the first circuit is normal.

[0042] Through this solution, the utility model can realize the transmission, reception and judgment of the detection signal completely by the MCU, without the need for manual triggering of the key, thus saving labor costs. At the same time, since the first detection port for sending the detection signal and the second detection port for receiving the detection signal are on the same MCU, it can use a fixed frequency for transmission and sampling, the sensitivity can be adjusted automatically, and the stability of the circuit can be improved, thereby reducing the risk of misjudgment of the key unit.

[0043] See also Figure 2 In the first embodiment of the utility model, the fixed end has a third contact and a fourth contact, the main control chip also has a third detection port connected to the third contact, and a fourth detection port connected to the fourth contact, and the third contact, the fourth contact, the third detection port, and the fourth detection port are interconnected to form a second circuit;

[0044] The third detection port can provide a detection signal to the fourth detection port through the second loop. The main control chip compares the detection signal sent by the third detection port with the detection signal received by the fourth detection port to determine the state of the second loop.

[0045] like Figure 2 As shown, the fixed end is a fixedly connected end, the third contact is contact 3, the fourth contact is contact 4, the third detection port is IO3 port, the fourth detection port is IO4 port, the main control chip is MCU, and the third contact, the fourth contact, the third detection port, and the fourth detection port are interconnected to form a second loop.

[0046] After the third contact, the fourth contact, the third detection port, and the fourth detection port are connected to form a second loop, the detection signal sent through the third detection port can return to the fourth detection port after passing through the third contact and the fourth contact in sequence.

[0047] Therefore, the judgment logic of the present invention is: when the detection signal sent by the third detection port is consistent with the detection signal received by the fourth detection port, the main control chip determines that the second circuit is normal.

[0048] Specifically, when the utility model performs self-test, the third detection port acts as a signal transmitting end to transmit a 1Khz PWM signal, and the fourth detection port performs synchronous detection to determine whether the third detection port can correctly receive the PWM signal sent by the fourth detection port, thereby determining whether the second circuit is normal.

[0049] Through this solution, the utility model can realize the transmission, reception and judgment of the detection signal completely by the MCU, without the need for manual triggering of the key, thus saving labor costs. At the same time, since the third detection port for sending the detection signal and the fourth detection port for receiving the detection signal are on the same MCU, it can use a fixed frequency for transmission and sampling, and the sensitivity can be adjusted automatically, which can improve the stability of the circuit, thereby reducing the risk of misjudgment of the key unit.

[0050] See also Figure 2 , the first circuit of the utility model also includes a resistor R1 and a capacitor C1;

[0051] The resistor R1 is connected in series between the first contact point and the first detection port, one end of the capacitor C1 is connected between the second contact point and the second detection port, and the other end is grounded.

[0052] Here, the capacitor C1 plays a filtering role and is used to filter out interference signals in the first loop.

[0053] In this embodiment, the resistance of the resistor R1 is set to 1000Ω, and the capacitance of the capacitor C1 is set to 100pF.

[0054] It should be pointed out that the resistance value of the resistor R1 and the capacitance value of the capacitor C1 are set according to actual circuit requirements. In other embodiments of the present invention, the resistance value of the resistor R1 and the capacitance value of the capacitor C1 can be adjusted. As long as they meet the design concept of the present invention, they should be within the protection scope of the present invention.

[0055] See also Figure 2 , the second circuit of the utility model also includes a resistor R2 and a capacitor C2;

[0056] The resistor R2 is connected in series between the third contact and the third detection port, one end of the capacitor C2 is connected between the fourth contact and the fourth detection port, and the other end is grounded.

[0057] Here, the capacitor C2 plays a filtering role and is used to filter out interference signals in the second loop.

[0058] In this embodiment, the resistance of the resistor R2 is set to 1000Ω, and the capacitance of the capacitor C2 is set to 100pF.

[0059] It should be pointed out that the resistance value of the resistor R2 and the capacitance value of the capacitor C2 are set according to actual circuit requirements. In other embodiments of the present invention, the resistance value of the resistor R2 and the capacitance value of the capacitor C2 can be adjusted. As long as they meet the design concept of the present invention, they should be within the protection scope of the present invention.

[0060] See also Figure 3In the second embodiment of the utility model, the fixed end has a third contact and a fourth contact, the third contact and the fourth contact are grounded, and the third contact and the fourth contact are connected to each other.

[0061] Compared with the first embodiment, this design saves two IO ports, and can also achieve the purpose of self-checking. When the key is triggered, it can also connect the switching end and the fixed end to ensure the normal use of the key unit.

[0062] Compared with the first embodiment, this solution can increase the stability of the circuit design and reduce the risk of failure.

[0063] The utility model also provides a key device, which has the above-mentioned intelligent self-checking key circuit.

[0064] In summary, compared with the prior art, the present invention has at least the following beneficial effects:

[0065] 1. The present invention can realize self-checking of the key circuit through a main control chip, without manually triggering the key, thus saving labor costs;

[0066] 2. In the present invention, the transmission and reception of the detection signal are realized by the same main control chip, and its sensitivity can be adjusted automatically, which can improve the stability of the circuit and reduce the risk of accidental key touches.

[0067] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent self-checking button circuit, characterized in that: It includes a key unit and a self-test circuit connected to the key unit; The key unit has a fixed end and a switching end, and when the fixed end and the switching end are connected, the key unit is turned on; The switching end has a first contact and a second contact, the self-test circuit has at least one main control chip, the main control chip has a first detection port connected to the first contact, and a second detection port connected to the second contact, and the first contact, the second contact, the first detection port, and the second detection port are interconnected to form a first loop; The first detection port can provide a detection signal to the second detection port through the first loop, and the main control chip compares the detection signal sent by the first detection port with the detection signal received by the second detection port to determine the state of the first loop.

2. The intelligent self-checking key circuit according to claim 1, characterized in that: The fixed end has a third contact and a fourth contact, the main control chip also has a third detection port connected to the third contact, and a fourth detection port connected to the fourth contact, and the third contact, the fourth contact, the third detection port, and the fourth detection port are interconnected to form a second loop; The third detection port can provide a detection signal to the fourth detection port through the second loop, and the main control chip compares the detection signal sent by the third detection port with the detection signal received by the fourth detection port to determine the state of the second loop.

3. The intelligent self-checking key circuit according to claim 1, characterized in that: The first loop also includes a resistor R1 and a capacitor C1; The resistor R1 is connected in series between the first contact and the first detection port, one end of the capacitor C1 is connected between the second contact and the second detection port, and the other end is grounded.

4. The intelligent self-checking key circuit according to claim 3, characterized in that: The resistance value of the resistor R1 is 1000Ω, and the capacitance value of the capacitor C1 is 100pF.

5. The intelligent self-checking key circuit according to claim 2, characterized in that: The second loop also includes a resistor R2 and a capacitor C2; The resistor R2 is connected in series between the third contact and the third detection port, one end of the capacitor C2 is connected between the fourth contact and the fourth detection port, and the other end is grounded.

6. The intelligent self-checking key circuit according to claim 5, characterized in that: The resistance value of the resistor R2 is 1000Ω, and the capacitance value of the capacitor C2 is 100pF.

7. The intelligent self-checking key circuit according to claim 1, characterized in that: The fixed end has a third contact and a fourth contact, the third contact and the fourth contact are grounded, and the third contact and the fourth contact are connected to each other.

8. A key device, characterized in that: The key device has the intelligent self-checking key circuit as claimed in any one of claims 1 to 7.