Multifunctional key on-off circuit of unmanned aerial vehicle hangar and control method of multifunctional key on-off circuit

By designing a multi-function button switch circuit of the drone hangar, the level signal control of the function button switch and button detection circuit is controlled by using the microcontroller control chip and low dropout linear voltage regulator, the problem of single function and instantaneous power loss in the existing technology is solved, and the multi-function switch operation and the effect of reducing the probability of crash is achieved.

CN120065863APending Publication Date: 2025-05-30GUANGDONG ELECTRIC POWER SCI RES INST ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510224720.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the motherboard design of the existing drone hangar, the single function switch button cannot realize the multi-function switch operation, and there will be power loss at the moment when the switch is turned on and off, which may cause a crash.

Method used

A multi-function button switch circuit of the UAV hangar is designed, including a microcontroller control chip control circuit, a function button switch, a button detection circuit and a low dropout linear voltage regulator. The function button switch and button detection circuit are controlled level signals through the microcontroller control chip and a low dropout linear voltage regulator to realize a variety of power switches and button detection circuits.

Benefits of technology

The multi-functional implementation of the function button switch is realized, so that the power switch is no instantaneously power loss, significantly reducing the probability of the system crash when the system is turned on again.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065863A_ABST
    Figure CN120065863A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of on-off circuits, and discloses a multifunctional key on-off circuit of an unmanned aerial vehicle hangar and a control method of the multifunctional key on-off circuit, and the circuit comprises a single-chip microcomputer control chip control circuit, a function key switch, a key detection circuit and a low-dropout linear voltage regulator. Wherein the first end of the function key switch is electrically connected with a first external power supply; and the current input end of the low dropout linear regulator is electrically connected with the second external power supply. The single-chip microcomputer control chip control circuit and the low-dropout linear voltage regulator are used for performing level signal control on the function key switch and the key detection circuit, so that the function key switch and the key detection circuit are controlled according to the level signal to execute a plurality of startup and shutdown actions. According to the invention, the multifunctional realization effect of the functional key switch can be achieved, so that no power loss exists at the moment of startup and shutdown, and the probability of crash when the system is restarted is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power-on and power-off circuits, and particularly to a multi-functional button power-on and power-off circuit for a drone hangar and a control method thereof. Background Art

[0002] In the power grid power industry, the application field of drone aircraft is becoming more and more extensive, and many iterative products related to drones have emerged, one of which is the unmanned aircraft hangar.

[0003] At present, the power-on and power-off functions designed for the main boards of drone hangars on the market are all realized by a functional switch button. The defect of this design is that the function is very single. A single function button can only perform power-on and power-off operations. There will be a relatively large power loss during the power-on and power-off moments, and it is also possible to occasionally experience a system crash when powering on, and the host system cannot be awakened when the system is in sleep mode. Summary of the Invention

[0004] The present invention provides a multi-functional button power-on and power-off circuit for a drone hangar and a control method thereof, achieving the multi-functional realization of the function button switch, so that there is no power loss during the power-on and power-off moments, and greatly reducing the probability of system crashes when powering on.

[0005] To solve the above technical problems, the present invention provides a multi-functional button power-on and power-off circuit for a drone hangar, including: a single-chip microcontroller control chip control circuit, a function button switch, a button detection circuit, and a low-dropout linear regulator;

[0006] The first current input terminal of the single-chip microcontroller control chip control circuit is electrically connected to the current output terminal of the low-dropout linear regulator;

[0007] The first end of the function button switch is electrically connected to a first external power supply;

[0008] The first current input terminal of the button detection circuit is electrically connected to the current output terminal of the low-dropout linear regulator;

[0009] The current input terminal of the low-dropout linear regulator is electrically connected to a second external power supply;

[0010] The second current input terminal of the single-chip microcontroller control chip control circuit is electrically connected to the first end of the function button switch;

[0011] The button recognition terminal of the single-chip microcontroller control chip control circuit is electrically connected to the first current output terminal of the button detection circuit;

[0012] The current output terminal of the single-chip microcontroller control chip control circuit is electrically connected to the current input terminal of the low-dropout linear regulator;

[0013] The second end of the function key switch is electrically connected to the second current input end of the key detection circuit;

[0014] The second current output end of the key detection circuit is electrically connected to the current input end of the low dropout linear regulator;

[0015] The single-chip microcomputer control chip control circuit and the low dropout linear regulator are used to perform level signal control on the function key switch and the key detection circuit, so that the function key switch and the key detection circuit execute several power-on and power-off actions according to the level signal control.

[0016] Further, the single-chip microcomputer control chip control circuit includes: a single-chip microcomputer control chip, a first triode, a field effect transistor, and a first resistor;

[0017] The power input pin of the single-chip microcomputer control chip is electrically connected to the current output end of the low dropout linear regulator;

[0018] The power output pin of the single-chip microcomputer control chip is electrically connected to the control end of the first triode;

[0019] The current input end of the first triode is electrically connected to the control end of the field effect transistor;

[0020] The current input end of the field effect transistor is electrically connected to the first end of the function key switch;

[0021] The current output end of the field effect transistor is electrically connected to the current input end of the low dropout linear regulator;

[0022] The first end of the first resistor is electrically connected to the first end of the function key switch;

[0023] The second end of the first resistor is electrically connected to the current input end of the first triode;

[0024] The current output end of the first triode is grounded;

[0025] The key recognition pin of the single-chip microcomputer control chip is electrically connected to the first current output end of the key detection circuit;

[0026] The ground pin of the single-chip microcomputer control chip is grounded.

[0027] Further, the key detection circuit includes: a diode and a second triode;

[0028] The current input end of the second triode is electrically connected to the current output end of the low dropout linear regulator;

[0029] The current input terminal of the second triode is electrically connected to the key recognition terminal of the single-chip microcomputer control chip control circuit;

[0030] The current output terminal of the second triode is grounded;

[0031] The control terminal of the second triode is electrically connected to the negative electrode of the diode;

[0032] The positive electrode of the diode is electrically connected to the second terminal of the function key switch;

[0033] The negative electrode of the diode is electrically connected to the current input terminal of the low-dropout linear regulator.

[0034] Further, the multi-functional key on-off circuit of the drone hangar further includes: a light-emitting diode and a second resistor;

[0035] The positive electrode of the light-emitting diode is electrically connected to the first terminal of the second resistor;

[0036] The second terminal of the second resistor is electrically connected to the current output terminal of the low-dropout linear regulator;

[0037] The negative electrode of the light-emitting diode is electrically connected to the first IO pin of the single-chip microcomputer control chip.

[0038] Further, the multi-functional key on-off circuit of the drone hangar further includes: a program burning pad;

[0039] The first terminal of the program burning pad is electrically connected to the received data pin of the single-chip microcomputer control chip;

[0040] The second terminal of the program burning pad is electrically connected to the transmitted data pin of the single-chip microcomputer control chip;

[0041] The third terminal of the program burning pad is electrically connected to the current output terminal of the low-dropout linear regulator;

[0042] The fourth terminal of the program burning pad is grounded.

[0043] Further, the multi-functional key on-off circuit of the drone hangar further includes: a first filter capacitor and a second filter capacitor;

[0044] The first terminal of the first filter capacitor is electrically connected to the current output terminal of the low-dropout linear regulator;

[0045] The second terminal of the first filter capacitor is grounded;

[0046] The first terminal of the second filter capacitor is electrically connected to the power input pin of the single-chip microcomputer control chip;

[0047] The second terminal of the second filter capacitor is grounded.

[0048] Further, the multi-functional button power-on / off circuit of the drone hangar further includes: a third filter capacitor and a fourth filter capacitor;

[0049] The first terminal of the third filter capacitor is electrically connected to the current output terminal of the field effect transistor;

[0050] The second terminal of the third filter capacitor is grounded;

[0051] The first terminal of the fourth filter capacitor is electrically connected to the current input terminal of the low dropout linear regulator;

[0052] The second terminal of the fourth filter capacitor is grounded.

[0053] Further, the multi-functional button power-on / off circuit of the drone hangar further includes: a fifth filter capacitor and a sixth filter capacitor;

[0054] The first terminal of the fifth filter capacitor is electrically connected to the current output terminal of the low dropout linear regulator;

[0055] The second terminal of the fifth filter capacitor is grounded;

[0056] The first terminal of the sixth filter capacitor is electrically connected to the first terminal of the first filter capacitor;

[0057] The second terminal of the sixth filter capacitor is grounded.

[0058] Further, the multi-functional button power-on / off circuit of the drone hangar further includes: a third resistor;

[0059] The first terminal of the third resistor is electrically connected to the control terminal of the first triode;

[0060] The second terminal of the third resistor is grounded.

[0061] The present invention provides a multi-functional button power-on / off circuit for a drone hangar. The circuit includes a single-chip microcomputer control chip control circuit, a function button switch, a button detection circuit, and a low dropout linear regulator. Among them, the first terminal of the function button switch is electrically connected to a first external power supply; the current input terminal of the low dropout linear regulator is electrically connected to a second external power supply. The single-chip microcomputer control chip control circuit and the low dropout linear regulator are used to perform level signal control on the function button switch and the button detection circuit, so that the function button switch and the button detection circuit perform several power-on / off actions according to the level signal control. The present invention can achieve the multi-functional implementation effect of the function button switch, so that there is no power loss during the power-on and power-off moments, and greatly reduces the probability of the system crashing when restarting.

[0062] Correspondingly, the present invention provides a control method for a multi-functional button power-on / off circuit of a drone hangar, which is used to control the multi-functional button power-on / off circuit of the drone hangar as described above. The control method includes:

[0063] When the first external power supply outputs a signal, the first-level control of the button detection circuit is performed by controlling the signal output of the second external power supply.

[0064] When the first external power supply outputs a signal, the second-level control of the single-chip microcomputer control chip control circuit is performed by controlling the signal output of the low-dropout linear regulator.

[0065] Based on the first-level control result and the second-level control result, several power-on / off operations are performed.

[0066] The present invention provides a control method for a multi-functional button power-on / off circuit of a drone hangar. When the first external power supply outputs a signal, the first-level control of the button detection circuit is performed by controlling the signal output of the second external power supply, and the second-level control of the single-chip microcomputer control chip control circuit is performed by controlling the signal output of the low-dropout linear regulator. Based on the first-level control result and the second-level control result, several power-on / off operations are performed. By detecting the signal output of the first external power supply and controlling the single-chip microcomputer control chip control circuit and the low-dropout linear regulator to perform corresponding control on the function button switch and the button detection circuit, the present invention can achieve the multi-functional implementation effect of the function button switch, so that there is no power loss during power-on and power-off, and the probability of the system crashing when restarting is greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a schematic flowchart of an embodiment of the multi-functional button power-on / off circuit of the drone hangar provided by the present invention;

[0068] Figure 2 It is a schematic flowchart of another embodiment of the multi-functional button power-on / off circuit of the drone hangar provided by the present invention;

[0069] Figure 3 It is a schematic flowchart of an embodiment of the control method for the multi-functional button power-on / off circuit of the drone hangar provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0070] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art without making creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0071] The flowcharts shown in the drawings are only illustrative examples, and do not necessarily include all the content and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can be decomposed, combined, or partially merged, so the actual execution order may change according to the actual situation.

[0072] The following will describe in detail some embodiments of the present invention with reference to the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0073] Embodiment 1

[0074] Refer to Figure 1 , which is a schematic structural diagram of an embodiment of the multi-functional key power-on and power-off circuit for a drone hangar provided by the present invention. The circuit includes: a single-chip microcontroller control chip control circuit, a function key switch, a key detection circuit, and a low-dropout linear regulator;

[0075] The first current input terminal of the single-chip microcontroller control chip control circuit is electrically connected to the current output terminal of the low-dropout linear regulator;

[0076] The first end of the function key switch is electrically connected to a first external power supply;

[0077] The first current input terminal of the key detection circuit is electrically connected to the current output terminal of the low-dropout linear regulator;

[0078] The current input terminal of the low-dropout linear regulator is electrically connected to a second external power supply;

[0079] The second current input terminal of the single-chip microcontroller control chip control circuit is electrically connected to the first end of the function key switch;

[0080] The key recognition terminal of the single-chip microcontroller control chip control circuit is electrically connected to the first current output terminal of the key detection circuit;

[0081] The current output terminal of the single-chip microcontroller control chip control circuit is electrically connected to the current input terminal of the low-dropout linear regulator;

[0082] The second end of the function key switch is electrically connected to the second current input terminal of the key detection circuit;

[0083] The second current output terminal of the key detection circuit is electrically connected to the current input terminal of the low-dropout linear regulator;

[0084] The single-chip microcomputer control chip control circuit and the low-dropout linear regulator are used to control the level signals of the function key switch and the key detection circuit, so that the function key switch and the key detection circuit perform several power-on and power-off operations according to the level signals.

[0085] In the embodiment of the present invention, the single-chip microcomputer control chip control circuit and the low-dropout linear regulator are used to control the level signals of the function key switch and the key detection circuit, so that the function key switch and the key detection circuit perform several power-on and power-off operations according to the level signals. By detecting the pressing time of the function key switch and combining with the program code of the single-chip microcomputer, the present invention controls the function key switch and the key detection circuit accordingly, achieving the effect of realizing multiple functions of the function key switch, without power loss during power-on and power-off, and greatly reducing the probability of system crash when restarting.

[0086] Further, in the embodiment of the present invention, the single-chip microcomputer control chip control circuit includes: a single-chip microcomputer control chip, a first triode, a field effect transistor, and a first resistor;

[0087] The power input pin of the single-chip microcomputer control chip is electrically connected to the current output terminal of the low-dropout linear regulator;

[0088] The power output pin of the single-chip microcomputer control chip is electrically connected to the control end of the first triode;

[0089] The current input terminal of the first triode is electrically connected to the control end of the field effect transistor;

[0090] The current input terminal of the field effect transistor is electrically connected to the first end of the function key switch;

[0091] The current output terminal of the field effect transistor is electrically connected to the current input terminal of the low-dropout linear regulator;

[0092] The first end of the first resistor is electrically connected to the first end of the function key switch;

[0093] The second end of the first resistor is electrically connected to the current input terminal of the first triode;

[0094] The current output terminal of the first triode is grounded;

[0095] The key recognition pin of the single-chip microcomputer control chip is electrically connected to the first current output terminal of the key detection circuit;

[0096] The ground pin of the single-chip microcomputer control chip is grounded.

[0097] Further, in the embodiment of the present invention, the key detection circuit includes: a diode and a second triode;

[0098] The current input terminal of the second triode is electrically connected to the current output terminal of the low-dropout linear regulator;

[0099] The current input terminal of the second triode is electrically connected to the key recognition terminal of the single-chip microcomputer control chip control circuit;

[0100] The current output terminal of the second triode is grounded;

[0101] The control terminal of the second triode is electrically connected to the negative electrode of the diode;

[0102] The positive electrode of the diode is electrically connected to the second terminal of the function key switch;

[0103] The negative electrode of the diode is electrically connected to the current input terminal of the low-dropout linear regulator.

[0104] Further, in the embodiment of the present invention, the multi-functional key switch-on and -off circuit of the drone hangar further includes: a light-emitting diode and a second resistor;

[0105] The positive electrode of the light-emitting diode is electrically connected to the first terminal of the second resistor;

[0106] The second terminal of the second resistor is electrically connected to the current output terminal of the low-dropout linear regulator;

[0107] The negative electrode of the light-emitting diode is electrically connected to the first IO pin of the single-chip microcomputer control chip.

[0108] Further, in the embodiment of the present invention, the multi-functional key switch-on and -off circuit of the drone hangar further includes: a program burning pad;

[0109] The first terminal of the program burning pad is electrically connected to the receiving data pin of the single-chip microcomputer control chip;

[0110] The second terminal of the program burning pad is electrically connected to the transmitting data pin of the single-chip microcomputer control chip;

[0111] The third terminal of the program burning pad is electrically connected to the current output terminal of the low-dropout linear regulator;

[0112] The fourth terminal of the program burning pad is grounded.

[0113] Further, in the embodiment of the present invention, the multi-functional key switch-on and -off circuit of the drone hangar further includes: a first filter capacitor and a second filter capacitor;

[0114] The first terminal of the first filter capacitor is electrically connected to the current output terminal of the low-dropout linear regulator;

[0115] The second terminal of the first filter capacitor is grounded;

[0116] The first terminal of the second filter capacitor is electrically connected to the power input pin of the microcontroller control chip;

[0117] The second terminal of the second filter capacitor is grounded.

[0118] Further, in the embodiment of the present invention, the multi-functional button power-on and power-off circuit of the drone hangar further includes: a third filter capacitor and a fourth filter capacitor;

[0119] The first terminal of the third filter capacitor is electrically connected to the current output terminal of the field effect transistor;

[0120] The second terminal of the third filter capacitor is grounded;

[0121] The first terminal of the fourth filter capacitor is electrically connected to the current input terminal of the low dropout linear regulator;

[0122] The second terminal of the fourth filter capacitor is grounded.

[0123] Further, in the embodiment of the present invention, the multi-functional button power-on and power-off circuit of the drone hangar further includes: a fifth filter capacitor and a sixth filter capacitor;

[0124] The first terminal of the fifth filter capacitor is electrically connected to the current output terminal of the low dropout linear regulator;

[0125] The second terminal of the fifth filter capacitor is grounded;

[0126] The first terminal of the sixth filter capacitor is electrically connected to the first terminal of the first filter capacitor;

[0127] The second terminal of the sixth filter capacitor is grounded.

[0128] Further, in the embodiment of the present invention, the multi-functional button power-on and power-off circuit of the drone hangar further includes: a third resistor;

[0129] The first terminal of the third resistor is electrically connected to the control terminal of the first triode;

[0130] The second terminal of the third resistor is grounded.

[0131] For better illustration of this embodiment, please refer to Figure 2 , which is a schematic flowchart of another embodiment of the multi-functional button power-on and power-off circuit of the drone hangar provided by the present invention. The circuit includes: a microcontroller control chip control circuit ①, a function button switch ②, a button detection circuit ③, and a microcontroller control chip power supply circuit ④.

[0132] The single-chip microcomputer control chip control circuit ① includes a first filter capacitor C1, a second filter capacitor C2, a single-chip microcomputer control chip U1, a program burning pad, a first triode Q1, a first resistor R1, a PMOS field-effect transistor Q2, a second resistor R2, a third resistor R3, a sixth resistor R6, a ninth resistor R9, and a light-emitting diode LED1.

[0133] The key detection circuit ③ includes a diode D1, a second triode Q3, a fourth resistor R4, a fifth resistor R5, a seventh resistor R7, and an eighth resistor R8. Among them, the diode can be a Schottky diode.

[0134] The power supply circuit ④ of the single-chip microcomputer control chip includes a third filter capacitor C3, a fourth filter capacitor C4, a fifth filter capacitor C5, a sixth filter capacitor C6, a low-dropout linear regulator U2, and a second external power supply VCC.

[0135] In the first embodiment of the present invention, the filter capacitors in the circuit are used to provide power filtering, reduce the ripple of the input power supply voltage, and at the same time play an energy storage effect. Since the DC power supply voltage has high-frequency components and low-frequency components, two filter capacitors with different capacitance values are set as a group of capacitor banks to achieve high-frequency component filtering and low-frequency component filtering.

[0136] In the first embodiment of the present invention, the working principle of the overall circuit is as follows: in response to the key operation of the function key switch ②, the signal output of the second external power supply VCC is controlled, and then the conduction state of the second triode Q2 is controlled. According to the single-chip microcomputer program input by the program burning pad, the power output pin and the level output of the first IO pin of the single-chip microcomputer control chip are controlled to control the conduction states of the diode D1 and the first triode Q1, so as to achieve different power-on and power-off operations.

[0137] In summary, the first embodiment of the present invention provides a multi-functional key power-on and power-off circuit for an unmanned aerial vehicle hangar. The circuit includes a single-chip microcomputer control chip control circuit, a function key switch, a key detection circuit, and a low-dropout linear regulator. Among them, the first end of the function key switch is electrically connected to the first external power supply; the current input end of the low-dropout linear regulator is electrically connected to the second external power supply. The single-chip microcomputer control chip control circuit and the low-dropout linear regulator are used to control the level signals of the function key switch and the key detection circuit, so that the function key switch and the key detection circuit perform several power-on and power-off operations according to the level signals. The present invention can achieve the effect of multi-function realization of the function key switch, so that there is no power loss during power-on and power-off, and the probability of the system crashing when restarting is greatly reduced.

[0138] Embodiment 2

[0139] See Figure 3, is a schematic flowchart of an embodiment of the control method for the multi-functional button power-on / off circuit of the drone hangar provided by the present invention. This control method is used to control the multi-functional button power-on / off circuit of the drone hangar as described above. The control method includes steps 101 to 103, and the specific steps are as follows:

[0140] Step 101: When the first external power supply outputs a signal, the first-level control of the button detection circuit is performed by controlling the signal output of the second external power supply.

[0141] Step 102: When the first external power supply outputs a signal, the second-level control of the microcontroller control chip control circuit is performed by controlling the signal output of the low-dropout linear regulator.

[0142] Step 103: Based on the first-level control result and the second-level control result, several power-on / off actions are executed.

[0143] As an example of the second embodiment of the present invention, different power-on / off actions can be controlled for the multi-functional button power-on / off circuit of the drone hangar by setting the microcontroller program. The following table lists four different power-on / off actions, and the corresponding multi-functional button power-on / off circuit of the drone hangar is specifically:

[0144] Push-button switch KEY1 Diode D1 Bipolar junction transistor Q1 Field-effect transistor Q2 Bipolar junction transistor Q3 Microcontroller system Light-emitting diode LED1 Microcontroller PIN3 Keep pressing Conduct Cut off Cut off Conduct Power on Light up Other logic functions Release Cut off Cut off Cut off Cut off Power off Go out No output Press and hold for 10 seconds and then release Conduct for 10 seconds and then cut off Conduct Conduct Conduct Power on Flash for 10 seconds and then keep lighting up Other logic functions Press briefly for 2 seconds and then release Conduct for 2 seconds and then cut off Cut off Cut off Conduct Power off Flash for 2 seconds and then go out Other logic functions

[0145] When the power switch circuit function button switch KEY1 is pressed, the first external power supply VCC_IN is loaded onto the positive electrode of the diode D1 through the function button switch KEY1. At this time, the diode D1 conducts, and the first external power supply VCC_IN is loaded onto the third filter capacitor C3 and the fourth filter capacitor C4 through the diode D1. At this time, the third interface of the low-dropout linear regulator U2 obtains the supply voltage, and VCC_IN is stepped down inside the low-dropout linear regulator U2 to stably output a 3.3V voltage, that is, VCC_MCU. VCC_MCU is loaded onto the first filter capacitor C1, and the second filter capacitor C2 supplies power to the microcontroller control chip U1. The microcontroller control chip U1 starts to work normally. At the same time, the second external power supply VCC is loaded onto the control end of the second triode Q3, and the second triode Q3 conducts. The PIN8 foot KEY_DETE of the microcontroller control chip U1 detects a low level. At this time, no other input / output ports of the microcontroller control chip U1 perform any actions, only realizing the power-on function of the microcontroller. At this time, the microcontroller system is in the power-on state. According to the program code, the PIN1 of the microcontroller control chip U1 can output a low level to light up the light-emitting diode LED1, thereby indicating that the microcontroller system is in the power-on state.

[0146] When the function key switch KEY1 is released, the power supply circuit of the first external power supply VCC_IN is disconnected, and the single-chip microcomputer system powers off and shuts down, realizing the shutdown function of the key. At this time, the single-chip microcomputer system is in the shutdown state, and the light-emitting diode LED1 goes out correspondingly, indicating that the single-chip microcomputer system is in the shutdown state.

[0147] When the function key switch KEY1 is pressed for 10 seconds, according to the program, it is determined as the action of long pressing the key. At this time, the first external power supply VCC_IN is loaded to the positive electrode of the diode D1 through the function key switch KEY1. At this time, the diode D1 conducts, and the first external power supply VCC_IN is loaded to the third filter capacitor C3 and the fourth filter capacitor C4 through the diode D1. At this time, the 3PIN of the low-dropout linear regulator U2 obtains the supply voltage. VCC_IN is stepped down inside the low-dropout linear regulator U2 and stably outputs a 3.3V voltage, that is, VCC_MCU. VCC_MCU is loaded to the first filter capacitor C1 and the second filter capacitor C2 to supply power to the single-chip microcomputer control chip U1, and the single-chip microcomputer starts to work normally. At the same time, the second external power supply VCC is loaded to the control end of the second triode Q3, and the second triode Q3 conducts. The PIN8 foot KEY_DETE of the single-chip microcomputer control chip U1 detects a low level. When KEY_DETE detects a low level, according to the program setting, the PIN7 foot of the single-chip microcomputer control chip U1, that is, the POWER_ON pin, outputs a high level. At this time, the first triode Q1 conducts, and the PMOS field effect transistor Q2 conducts. At this time, the first external power supply VCC_IN has two conduction paths. One path is loaded to the positive electrode of the diode D1 through the function key switch KEY1, and the other path is loaded to the negative electrode of the diode D1 through the PMOS field effect transistor Q2. At this time, the positive and negative voltage difference of the diode D1 does not reach the conduction condition, and the diode D1 is cut off. The conduction path of the power supply circuit of the first external power supply VCC_IN maintains the normal power supply of the single-chip microcomputer system due to the conduction state of the PMOS field effect transistor Q2. At this time, according to the program setting, the PIN1 foot of the single-chip microcomputer control chip U1 outputs a low level for 10 seconds, and the light-emitting diode LED1 flashes for 10 seconds. At this time, when the function key switch KEY1 is released, because the first triode Q1 and the PMOS field effect transistor Q2 are in the conduction state, the single-chip microcomputer system can continuously maintain the power supply circuit and will not execute the shutdown action because the function key switch KEY1 is released.

[0148] When the function button switch KEY1 is pressed for 2 seconds, according to the program, it is determined as an action of a short press of the button. At this time, the first external power supply VCC_IN is loaded to the positive electrode of the diode D1 through the function button switch KEY1. At this time, the diode D1 conducts, and the first external power supply VCC_IN is loaded to the third filter capacitor C3 and the fourth filter capacitor C4 through the diode D1. At this time, the 3PIN of the low-dropout linear regulator U2 obtains the supply voltage. VCC_IN undergoes step-down inside the low-dropout linear regulator U2 and stably outputs a 3.3V voltage, that is, VCC_MCU. VCC_MCU is loaded to the first filter capacitor C1, and the second filter capacitor C2 supplies power to the microcontroller control chip U1, and the microcontroller starts up and works normally. At the same time, the second external power supply VCC is loaded to the control end of the second triode Q3, and the second triode Q3 conducts. The PIN8 of the microcontroller control chip U1, KEY_DETE, detects a low level. After KEY_DETE detects a low level, through program setting, the PIN7 of the microcontroller control chip U1, that is, the POWER_ON pin, outputs a low level. At this time, the first triode Q1 is cut off, and the PMOS field-effect transistor Q2 is cut off. At this time, through program setting, the PIN1 of the microcontroller control chip U1 outputs a low level for 2 seconds, and the light-emitting diode LED1 flashes for 2 seconds. At this time, when the function button switch KEY1 is released, due to the first triode Q1 and the PMOS field-effect transistor Q2 being in the cut-off state, the microcontroller system powers off and shuts down.

[0149] Optionally, by setting the program of the microcontroller, the long press time and short press time of the function button switch KEY1 can be realized. At the same time, in cooperation with the flashing display state of the light-emitting diode LED1, the PIN3 of the microcontroller control chip U1 outputs high and low levels to realize other arbitrary logic functions.

[0150] Therefore, in the embodiment of the present invention, by controlling the signal output of the second external power supply, the conduction state of the second triode is controlled; by controlling the power output pin and the level output of the first IO pin of the microcontroller control chip, the conduction states of the diode and the first triode are controlled; when the first external power supply outputs a signal, based on the conduction states of the second triode, the diode and the first triode, several power-on and power-off actions are executed. The present invention can realize a variety of different power-on and power-off actions by detecting the time when the function button switch is pressed and in cooperation with the code of the microcontroller, and there is no power loss at the moment of power-on and power-off, greatly reducing the probability of the system crashing when restarting. And when the system is in the sleep state, the system can be woken up by pressing a button. After restarting, other logic functions can also be realized by setting the long press and short press times, achieving the multi-function realization of the function button switch.

[0151] In summary, the second embodiment of the present invention provides a control method for a multi-functional button power-on and power-off circuit of a drone hangar. When the first external power supply outputs a signal, the first-level control of the button detection circuit is performed by controlling the signal output of the second external power supply, and the second-level control of the single-chip microcomputer control chip control circuit is performed by controlling the signal output of the low-dropout linear regulator; based on the first-level control result and the second-level control result, several power-on and power-off actions are executed. By detecting the signal output of the first external power supply and controlling the single-chip microcomputer control chip control circuit and the low-dropout linear regulator to perform corresponding control on the function button switch and the button detection circuit, the present invention can achieve the multi-functional implementation effect of the function button switch, so that there is no power loss during the power-on and power-off moments, and the probability of the system crashing when restarting is greatly reduced.

[0152] In the specific embodiments described above, the purpose, technical solutions, and beneficial effects of the present invention have been further described in detail. It should be understood that the above description is only the specific embodiments of the present invention and is not used to limit the protection scope of the present invention. In particular, it is pointed out that for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A multi-function key switch circuit for a drone hangar, characterized in that: include: Single chip microcomputer control chip control circuit, function key switch, key detection circuit and low voltage drop linear regulator; The first current input terminal of the single-chip control chip control circuit is electrically connected to the current output terminal of the low voltage drop linear regulator; The first end of the function key switch is electrically connected to the first external power supply; The first current input terminal of the key detection circuit is electrically connected to the current output terminal of the low voltage drop linear regulator; The current input terminal of the low voltage drop linear regulator is electrically connected to a second external power supply; The second current input terminal of the single-chip control chip control circuit is electrically connected to the first terminal of the function key switch; The key recognition terminal of the single-chip control chip control circuit is electrically connected to the first current output terminal of the key detection circuit; The current output terminal of the control circuit of the single-chip microcomputer control chip is electrically connected to the current input terminal of the low voltage difference linear regulator; The second end of the function key switch is electrically connected to the second current input end of the key detection circuit; The second current output terminal of the key detection circuit is electrically connected to the current input terminal of the low voltage drop linear regulator; The single-chip control chip control circuit and the low voltage difference linear regulator are used to perform level signal control on the function key switch and the key detection circuit, so that the function key switch and the key detection circuit perform several power on and off actions according to the level signal control.

2. The multifunctional key switch circuit of the drone hangar according to claim 1 is characterized in that: The single-chip microcomputer control chip control circuit comprises: a single-chip microcomputer control chip, a first triode, a field effect transistor and a first resistor; The power input pin of the single-chip control chip is electrically connected to the current output end of the low voltage drop linear regulator; The power output pin of the single-chip control chip is electrically connected to the control end of the first transistor; The current input terminal of the first triode is electrically connected to the control terminal of the field effect tube; The current input end of the field effect tube is electrically connected to the first end of the function key switch; The current output terminal of the field effect tube is electrically connected to the current input terminal of the low voltage difference linear regulator; The first end of the first resistor is electrically connected to the first end of the function key switch; The second end of the first resistor is electrically connected to the current input end of the first transistor; The current output terminal of the first triode is grounded; The key recognition pin of the single-chip control chip is electrically connected to the first current output terminal of the key detection circuit; The ground pin of the single chip microcomputer control chip is grounded.

3. The multifunctional key switch circuit of the drone hangar according to claim 1 is characterized in that: The key detection circuit comprises: a diode and a second triode; The current input terminal of the second transistor is electrically connected to the current output terminal of the low voltage drop linear regulator; The current input terminal of the second transistor is electrically connected to the key recognition terminal of the control circuit of the single-chip control chip; The current output terminal of the second triode is grounded; The control end of the second transistor is electrically connected to the cathode of the diode; The anode of the diode is electrically connected to the second end of the function key switch; The cathode of the diode is electrically connected to the current input terminal of the low voltage difference linear regulator.

4. The multifunctional key switch circuit for the UAV hangar according to claim 2 is characterized in that: Also includes: A light emitting diode and a second resistor; The anode of the light emitting diode is electrically connected to the first end of the second resistor; The second end of the second resistor is electrically connected to the current output end of the low voltage drop linear regulator; The cathode of the light emitting diode is electrically connected to the first IO pin of the single chip microcomputer control chip.

5. The multifunctional key switch circuit for the UAV hangar according to claim 2 is characterized in that: Also includes: Program burning pad; The first end of the program burning pad is electrically connected to the receiving data pin of the single-chip control chip; The second end of the program burning pad is electrically connected to the transmission data pin of the single-chip control chip; The third end of the program burning pad is electrically connected to the current output end of the low voltage drop linear regulator; A fourth terminal of the program burning pad is grounded.

6. The multifunctional key switch circuit for the drone hangar according to claim 2 is characterized in that: Also includes: a first filter capacitor and a second filter capacitor; The first end of the first filter capacitor is electrically connected to the current output end of the low voltage drop linear regulator; The second end of the first filter capacitor is grounded; The first end of the second filter capacitor is electrically connected to the power input pin of the single-chip microcomputer control chip; The second terminal of the second filtering capacitor is grounded.

7. The multifunctional key switch circuit for the UAV hangar according to claim 2 is characterized in that: Also includes: A third filter capacitor and a fourth filter capacitor; The first end of the third filter capacitor is electrically connected to the current output end of the field effect tube; The second end of the third filter capacitor is grounded; The first end of the fourth filter capacitor is electrically connected to the current input end of the low voltage drop linear regulator; The second end of the fourth filter capacitor is grounded.

8. The multifunctional key switch circuit for the UAV hangar according to claim 6 is characterized in that: Also includes: a fifth filter capacitor and a sixth filter capacitor; The first end of the fifth filter capacitor is electrically connected to the current output end of the low voltage drop linear regulator; The second end of the fifth filter capacitor is grounded; The first end of the sixth filter capacitor is electrically connected to the first end of the first filter capacitor; The second end of the sixth filter capacitor is grounded.

9. The multifunctional key switch circuit of the drone hangar according to claim 2 is characterized in that: Also includes: The third resistor; The first end of the third resistor is electrically connected to the control end of the first transistor; A second end of the third resistor is grounded.

10. A control method for a multifunctional key switch circuit of a drone hangar, characterized in that: A multifunctional key switch circuit for controlling a drone hangar according to any one of claims 1 to 9, the control method comprising: When the first external power supply outputs a signal, the key detection circuit is controlled at a first level by controlling the signal output of the second external power supply; When the first external power source outputs a signal, the second level control is performed on the control circuit of the single-chip microcomputer control chip by controlling the signal output of the low voltage difference linear regulator; Based on the first level control result and the second level control result, several power on / off actions are performed.