Single IO port detectable multiple key circuit

By designing a circuit that can detect multiple buttons using a single IO port, and utilizing a low-dropout voltage regulator circuit, button hardware circuit, and detection and control circuit, the problems of wasted MCU resources and increased circuit board costs are solved, and efficient detection of multiple buttons is achieved.

CN224319351UActive Publication Date: 2026-06-02DONGGUAN QIYI ELECTRIC APPLIANCE MASCH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
DONGGUAN QIYI ELECTRIC APPLIANCE MASCH CO LTD
Filing Date
2025-05-09
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In existing technologies, one I/O port of an MCU can only detect one button. Multiple buttons require multiple I/O ports, resulting in wasted resources and increased circuit board manufacturing costs.

Method used

Design a circuit that can detect multiple buttons using a single IO port, including a low-dropout voltage regulator circuit, button hardware circuit, and detection and control circuit. The low-dropout voltage regulator circuit outputs a stable 5V voltage signal, the button hardware circuit outputs a trigger signal, and the detection and control circuit determines the button status.

Benefits of technology

This enables a single I/O port to detect multiple buttons, reducing resource waste and circuit board manufacturing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224319351U_ABST
    Figure CN224319351U_ABST
Patent Text Reader

Abstract

The utility model relates to port detection technical field discloses a single IO port can detect multiple key circuit with simple structure and higher accuracy ratio, including low voltage difference voltage stabilizing circuit (110), key hardware circuit (120) and detection and control circuit (130), wherein, when key hardware circuit (120) is triggered or is not triggered, its output at least one way trigger signal, detection and control circuit (130) are used to obtain the trigger signal of key hardware circuit (120) being triggered or not being triggered and judge the key state of key hardware circuit (120) according to trigger signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of port detection technology, and more specifically, to a circuit that can detect multiple buttons from a single IO port. Background Technology

[0002] Currently, most circuit board developers design button detection by using one I / O port of the MCU (microcontroller) to detect one button. However, multiple buttons require multiple I / O ports for detection, which not only wastes resources but also increases the manufacturing cost of the circuit board.

[0003] Therefore, how to implement a circuit that can detect multiple buttons on a single I / O port has become a technical problem that urgently needs to be solved by those skilled in the art. Utility Model Content

[0004] The technical problem this invention aims to solve is that, in the existing MCU (microcontroller) technology, one I / O port is used to detect one button, while multiple buttons require multiple I / O ports for detection. This not only wastes resources but also increases the manufacturing cost of the circuit board. The invention provides a circuit with a simple structure and high accuracy that can detect multiple buttons using a single I / O port.

[0005] The technical solution adopted by this utility model to solve its technical problem is: to construct a circuit that can detect multiple buttons with a single IO port, which has the following features:

[0006] A low-dropout voltage regulator circuit is configured within multiple button circuits to receive the voltage signal input from the VCC terminal, and to perform voltage regulation and filtering on the voltage signal to output a 5V voltage signal.

[0007] The button hardware circuit has its power input terminal connected to the output terminal of the low-dropout voltage regulator circuit to receive the 5V voltage signal.

[0008] When the button hardware circuit is triggered or not triggered, it outputs at least one trigger signal;

[0009] The detection and control circuit has its power input terminal connected to the output terminal of the low-dropout voltage regulator circuit to receive the 5V voltage signal.

[0010] The signal input terminal of the detection and control circuit is coupled to the output terminal of the button hardware circuit, and is used to obtain the trigger signal output when the button hardware circuit is triggered or not triggered, and to determine the button state of the button hardware circuit based on the trigger signal.

[0011] In some embodiments, the button hardware circuit includes multiple sets of button branches, and when any of the button branches is triggered, the voltage of the trigger signal output by the branch corresponds to a voltage value.

[0012] In some embodiments, the button hardware circuit includes a first button branch, a second button branch, a third button branch, and a fourth button branch connected in parallel.

[0013] One end of the first button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal.

[0014] One end of the second button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal.

[0015] One end of the third button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal.

[0016] One end of the fourth button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal.

[0017] In some embodiments, the first button branch includes a second diode, a fourth diode, a sixth diode, and a first tactile switch connected in sequence.

[0018] The anode of the second diode is connected to the signal input terminal of the detection and control circuit.

[0019] The cathode of the sixth diode is connected to one end of the first tactile switch.

[0020] The other end of the first tactile switch is connected to the common terminal.

[0021] When the first tactile switch is triggered, it outputs a first trigger signal to the detection and control circuit.

[0022] In some embodiments, the second button branch includes a third diode, a fifth diode, and a second tactile switch connected in sequence.

[0023] The anode of the third diode is connected to the signal input terminal of the detection and control circuit.

[0024] The cathode of the fifth diode is connected to one end of the first tactile switch.

[0025] The other end of the second tactile switch is connected to the common terminal.

[0026] When the second tactile switch is triggered, it outputs a second trigger signal to the detection and control circuit.

[0027] In some embodiments, the third button branch includes a seventh diode and a third tactile switch connected in sequence.

[0028] The anode of the seventh diode is connected to the signal input terminal of the detection and control circuit.

[0029] The cathode of the seventh diode is connected to one end of the third tactile switch.

[0030] The other end of the third tactile switch is connected to the common terminal.

[0031] When the third tactile switch is triggered, it outputs a third trigger signal to the detection and control circuit.

[0032] In some embodiments, the fourth button branch includes a fourth tactile switch.

[0033] One end of the fourth tactile switch is connected to the signal input terminal of the detection and control circuit.

[0034] The other end of the fourth tactile switch is connected to the common terminal.

[0035] When the fourth tactile switch is triggered, it outputs a fourth trigger signal to the detection and control circuit.

[0036] The single I / O port detection circuit of this invention includes a low-dropout voltage regulator circuit, a button hardware circuit, and a detection and control circuit. When the button hardware circuit is triggered or not triggered, it outputs at least one trigger signal. The detection and control circuit acquires the trigger signal output when the button hardware circuit is triggered or not triggered, and determines the button state of the button hardware circuit based on the trigger signal. Compared with the prior art, when the button hardware circuit is triggered or not triggered, it outputs at least one trigger signal. The detection and control circuit determines the button state in the button hardware circuit based on the voltage value of the current trigger signal, enabling one-to-many detection. This effectively solves the problem that current MCUs (microcontrollers) use one I / O port to detect one button, while multiple buttons require multiple I / O ports for detection, which not only wastes resources but also increases the manufacturing cost of the circuit board. Attached Figure Description

[0037] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:

[0038] Figure 1 This is a circuit diagram of an embodiment of the low dropout voltage regulator circuit provided by this utility model;

[0039] Figure 2 This is a circuit schematic diagram of an embodiment of the button hardware circuit provided by this utility model;

[0040] Figure 3 This is a circuit diagram of an embodiment of the detection and control circuit provided by this utility model. Detailed Implementation

[0041] To provide a clearer understanding of the technical features, objectives, and effects of this utility model, the specific embodiments of this utility model will now be described in detail with reference to the accompanying drawings.

[0042] like Figures 1-3 As shown, in the first embodiment of the single IO port detection circuit of this utility model, the single IO port detection circuit includes a low dropout voltage regulator circuit 110, a button hardware circuit 120, and a detection and control circuit 130.

[0043] It should be noted that I / O refers to input / output ports;

[0044] Among them, the low dropout voltage regulator circuit 110 has the function of voltage regulation and filtering, and is used to output a 5V voltage signal;

[0045] The button hardware circuit 120 has multiple button branches. When any button branch is triggered, it outputs a trigger signal with a different voltage.

[0046] The detection and control circuit 130 has the function of signal reception, analysis and processing, that is, it is used to receive trigger signals, analyze the voltage value of the current trigger signal, and determine the button state of the button hardware circuit 120.

[0047] Specifically, the low-dropout voltage regulator circuit 110 is configured in multiple button circuits to receive the voltage signal input from the VCC terminal, and to perform voltage regulation and filtering on the voltage signal to output a 5V voltage signal.

[0048] The low-dropout voltage regulator circuit 110 includes a low-dropout voltage regulator U101, a first capacitor C101, and a second capacitor C102.

[0049] The low dropout regulator U101 is used to provide a stable DC voltage power supply;

[0050] The first capacitor C101 is used to filter the input voltage signal.

[0051] The second capacitor C102 is used to filter the voltage signal output by the low-dropout regulator U101.

[0052] One end of the first capacitor C101 and the input terminal of the low-dropout regulator U101 are connected to the VCC terminal.

[0053] One end of the second capacitor C102 is connected to the output terminal of the low-dropout regulator U101;

[0054] Furthermore, the power input terminal of the button hardware circuit 120 is connected to the output terminal of the low-dropout voltage regulator circuit 110 to receive a 5V voltage signal.

[0055] When the button hardware circuit 120 is triggered or not triggered, it outputs at least one trigger signal.

[0056] The power input terminal of the detection and control circuit 130 is connected to the output terminal of the low dropout voltage regulator circuit 110 to receive a 5V voltage signal.

[0057] The signal input terminal of the detection and control circuit 130 is coupled to the output terminal of the button hardware circuit 120. It is used to obtain the trigger signal output by the button hardware circuit 120 when it is triggered or not triggered, and to determine the button state of the button hardware circuit 120 based on the voltage value of the trigger signal, and to identify the corresponding button.

[0058] Using this technical solution, when the button hardware circuit 120 is triggered or not triggered, it outputs at least one trigger signal. The detection and control circuit 130 determines the state of the button in the button hardware circuit 120 based on the voltage value of the current trigger signal. This can achieve one-to-many detection, effectively solving the problem that the current MCU (microcontroller) uses one I / O port to detect one button, while multiple buttons require multiple I / O ports for detection, which not only wastes resources but also increases the manufacturing cost of the circuit board.

[0059] In some implementations, such as Figure 2 As shown, multiple sets of button branches can be set in the button hardware circuit 120 to output trigger signals with multiple voltage values. When any button branch is triggered, the voltage of its output trigger signal corresponds to a voltage value.

[0060] In some implementations, such as Figure 2 As shown, to output trigger signals with multiple voltage values, the button hardware circuit 120 includes a first button branch 121, a second button branch 122, a third button branch 123, and a fourth button branch 124 connected in parallel.

[0061] One end of the first button branch 121 is connected to the signal input terminal of the detection and control circuit 130, and the other end of the first button branch 121 is connected to the common terminal. When the first button branch 121 is triggered, it outputs a first trigger signal to the detection and control circuit 130.

[0062] One end of the second button branch 122 is connected to the signal input terminal of the detection and control circuit 130, and the other end of the first button branch 121 is connected to the common terminal. When the second button branch 122 is triggered, it outputs a second trigger signal to the detection and control circuit 130.

[0063] One end of the third button branch 123 is connected to the signal input terminal of the detection and control circuit 130, and the other end of the first button branch 121 is connected to the common terminal. When the third button branch 123 is triggered, it outputs a third trigger signal to the detection and control circuit 130.

[0064] One end of the fourth button branch 124 is connected to the signal input terminal of the detection and control circuit 130, and the other end of the first button branch 121 is connected to the common terminal. When the fourth button branch 124 is triggered, it outputs a fourth trigger signal to the detection and control circuit 130. The detection and control circuit 130 can analyze the voltage value of the trigger signal based on the trigger signal output when any of the above button branches is triggered in order to determine the corresponding button.

[0065] In some implementations, such as Figure 2 As shown, the first button branch 121 includes a second diode D102, a fourth diode D104, a sixth diode D106, and a first tactile switch SW1 connected in sequence.

[0066] The anode of the second diode D102 is connected to the signal input terminal of the detection and control circuit 130.

[0067] The cathode of the sixth diode D106 is connected to one end of the first tactile switch SW1.

[0068] The other end of the first tactile switch SW1 is connected to the common terminal.

[0069] When the first tactile switch SW1 is triggered, it outputs a first trigger signal to the detection and control circuit 130.

[0070] In some implementations, such as Figure 2 As shown, the second button branch 122 includes a third diode D103, a fifth diode D105, and a second tactile switch SW2 connected in sequence.

[0071] The anode of the third diode D103 is connected to the signal input terminal of the detection and control circuit 130.

[0072] The cathode of the fifth diode D105 is connected to one end of the first tactile switch SW1.

[0073] The other end of the second tactile switch SW2 is connected to the common terminal.

[0074] When the second tactile switch SW2 is triggered, it outputs a second trigger signal to the detection and control circuit 130.

[0075] In some implementations, such as Figure 2 As shown, the third button branch 123 includes a seventh diode D107 and a third tactile switch SW3 connected in sequence.

[0076] The anode of the seventh diode D107 is connected to the signal input terminal of the detection and control circuit 130.

[0077] The cathode of the seventh diode D107 is connected to one end of the third tactile switch SW3.

[0078] The other end of the third tactile switch SW3 is connected to the common terminal.

[0079] When the third tactile switch SW3 is triggered, it outputs a third trigger signal to the detection and control circuit 130.

[0080] In some implementations, such as Figure 2 As shown, the fourth button branch 124 includes a fourth tactile switch SW4.

[0081] One end of the fourth tactile switch SW4 is connected to the signal input terminal of the detection and control circuit 130.

[0082] The other end of the fourth tactile switch SW4 is connected to the common terminal.

[0083] When the fourth tactile switch SW4 is triggered, it outputs a fourth trigger signal to the detection and control circuit 130.

[0084] In some implementations, such as Figure 3 As shown, the detection and control circuit 130 includes at least a main controller U102, wherein the signal input terminal (corresponding to pin 3) of the main controller U102 is connected to the anode of the first diode D101, and the cathode of the first diode D101 is connected to the first button branch 121, the second button branch 122, the third button branch 123 and the fourth button branch 124 respectively.

[0085] In some implementations, such as Figure 2 As shown, it also includes a first resistor R101 and a third capacitor C103 connected in series. One end of the first resistor R101 is connected to the 5V power supply terminal.

[0086] The other end of the first resistor R101 is connected to the signal input terminal (pin 3) of the main controller U102.

[0087] One end of the third capacitor C103 is connected to the common terminal. In some implementations, such as... Figure 2As shown, it also includes a second resistor R102, one end of which is connected to a 5V power supply terminal, and the other end of which is connected to the anode of the second diode D102, the anode of the third diode D103, the anode of the seventh diode D107, and one end of the fourth tactile switch SW4, to provide them with a 5V power supply.

[0088] Specifically, the voltage drop of one diode is 0.7V;

[0089] When the first tactile switch SW1 is pressed, the main controller U102 reads the voltage value of the first trigger signal as: 5V-VD1-VD2-VD4-VD6=5V-0.7V*4=2.2V;

[0090] When the second tactile switch SW2 is pressed, the main controller U102 reads the voltage value of the second trigger signal as: 5V-VD1-VD3-VD5=5V-0.7V*3=2.9V;

[0091] When the third tactile switch SW3 is pressed, the main controller U102 reads the voltage value of the third trigger signal as: 5V-VD1-VD7=5V-0.7V*2=3.6V;

[0092] When the fourth tactile switch SW4 is pressed, the main controller U102 reads the voltage value of the fourth trigger signal as: 5V-VD1=5V-0.7V=4.3V;

[0093] When the aforementioned tactile switch is not pressed, the voltage value read by the main controller U102 is 5V;

[0094] The main controller U102 records the key values ​​in its memory via the network "V_SW_AD". When the main controller U102 detects the corresponding voltage value, it can accurately determine the corresponding key. The main controller U102 will then perform corresponding control to realize the required function and meet customer needs.

[0095] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. A circuit capable of detecting multiple buttons using a single I / O port, characterized in that, have: A low-dropout voltage regulator circuit is configured within multiple button circuits to receive the voltage signal input from the VCC terminal, and to perform voltage regulation and filtering on the voltage signal to output a 5V voltage signal. The button hardware circuit has its power input terminal connected to the output terminal of the low-dropout voltage regulator circuit to receive the 5V voltage signal. When the button hardware circuit is triggered or not triggered, it outputs at least one trigger signal; The detection and control circuit has its power input terminal connected to the output terminal of the low-dropout voltage regulator circuit to receive the 5V voltage signal. The signal input terminal of the detection and control circuit is coupled to the output terminal of the button hardware circuit, and is used to obtain the trigger signal output by the button hardware circuit when it is triggered or not triggered, and to determine the button state of the button hardware circuit based on the trigger signal.

2. The single I / O port capable of detecting multiple buttons according to claim 1, characterized in that, The button hardware circuit includes multiple button branches. When any of the button branches is triggered, the voltage of the trigger signal output by the branch corresponds to a voltage value.

3. The single I / O port capable of detecting multiple buttons according to claim 2, characterized in that, The button hardware circuit includes a first button branch, a second button branch, a third button branch, and a fourth button branch connected in parallel. One end of the first button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal. One end of the second button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal. One end of the third button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal. One end of the fourth button branch is connected to the signal input terminal of the detection and control circuit, and the other end of the first button branch is connected to the common terminal.

4. The single I / O port capable of detecting multiple buttons according to claim 3, characterized in that, The first button branch includes a second diode, a fourth diode, a sixth diode, and a first tactile switch connected in sequence. The anode of the second diode is connected to the signal input terminal of the detection and control circuit. The cathode of the sixth diode is connected to one end of the first tactile switch. The other end of the first tactile switch is connected to the common terminal. When the first tactile switch is triggered, it outputs a first trigger signal to the detection and control circuit.

5. The single I / O port capable of detecting multiple buttons according to claim 3, characterized in that, The second button branch includes a third diode, a fifth diode, and a second tactile switch connected in sequence. The anode of the third diode is connected to the signal input terminal of the detection and control circuit. The cathode of the fifth diode is connected to one end of the first tactile switch. The other end of the second tactile switch is connected to the common terminal. When the second tactile switch is triggered, it outputs a second trigger signal to the detection and control circuit.

6. The single I / O port capable of detecting multiple buttons according to claim 3, characterized in that, The third button branch includes a seventh diode and a third tactile switch connected in sequence. The anode of the seventh diode is connected to the signal input terminal of the detection and control circuit. The cathode of the seventh diode is connected to one end of the third tactile switch. The other end of the third tactile switch is connected to the common terminal. When the third tactile switch is triggered, it outputs a third trigger signal to the detection and control circuit.

7. The single I / O port capable of detecting multiple buttons according to claim 3, characterized in that, The fourth button branch includes a fourth tactile switch. One end of the fourth tactile switch is connected to the signal input terminal of the detection and control circuit. The other end of the fourth tactile switch is connected to the common terminal. When the fourth tactile switch is triggered, it outputs a fourth trigger signal to the detection and control circuit.