Single-switch multifunctional circuit and electronic equipment

By designing a single-switch multi-function circuit in electronic products and utilizing the charge and discharge control module and the function control module, power supply and function control are realized through one switch, which solves the problems of inconvenient power supply control and high cost in the existing technology, and improves efficiency. Convenience and cost-saving effects.

CN221633723UActive Publication Date: 2024-08-30APUTURE IMAGING IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323258145.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2024-08-30
Estimated Expiration
2033-11-29

AI Technical Summary

Technical Problem

The one-switch multi-function design in existing electronic products relies on a control circuit that is always powered, which results in inconvenient and high cost power supply control and function control. It is impossible to realize power supply control and function control of the entire system through one switch.

Method used

A single-switch multi-function circuit is designed, including a control switch, a charge and discharge control module and a function control module. The power supply and function are controlled by controlling the closing and opening of the switch. The charge and discharge control module discharges when it is disconnected, and the function control After powering on, the module collects the initial voltage signal to implement function switching.

Benefits of technology

Power supply control and function control are realized through one switch, which improves control convenience and saves costs, and realizes flexible function switching and power supply management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221633723U
    Figure CN221633723U
Patent Text Reader

Abstract

The utility model discloses a single-switch multifunctional circuit and an electronic device, and the single-switch multifunctional circuit comprises a control switch, a charging and discharging control module, a charging and discharging module, and a function control module. The power supply supplies power to the single-switch multifunctional circuit and the controlled module, and current output by the power supply charges the charging and discharging module after flowing through the charging and discharging control module; after being electrified, the function control module acquires an initial voltage signal of the charging and discharging module and then provides the initial voltage signal to the control unit, so that the control unit controls the controlled module to execute a matched function; when the control switch is switched off, the power supply stops supplying power, the charging and discharging module discharges, and under the action of the charging and discharging control module, discharging current generated when the charging and discharging module discharges does not flow through the charging and discharging control module. Therefore, according to the utility model, power supply control and function control can be realized through one switch, the control convenience is improved, and the cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of switch circuits, in particular to a single-switch multifunctional circuit and electronic equipment. Background Art

[0002] At present, there are electronic products with "one switch and multiple functions" on the market, that is, multiple functions can be switched through one switch. In practical applications, it is found that the one switch and multiple functions in most electronic products basically need to ensure that the corresponding control circuit (such as a single-chip microcomputer) is always powered, and the function to be realized is determined according to the pre-defined correspondence between the number of key presses and the function, that is, the current "one switch and multiple functions" depends on the single-chip microcomputer or other control circuits and requires program assistance. Since the control circuit needs to be powered on all the time, if the power needs to be cut off, a switch needs to be added. It cannot truly realize the power supply control and function control of the entire system through one switch, which is not conducive to improving the convenience of control and is costly.

[0003] It can be seen that it is particularly important to provide a new single-switch multifunctional circuit to improve control convenience and save costs. Utility Model Content

[0004] The utility model provides a single-switch multifunctional circuit and electronic equipment, which can realize power supply control and function control through one switch, thereby improving control convenience and saving costs.

[0005] In order to solve the above technical problems, the utility model discloses a single-switch multi-function circuit in the first aspect, and the single-switch multi-function circuit includes:

[0006] Control switch, charge and discharge control module, charge and discharge module and function control module;

[0007] The first end of the control switch is used to electrically connect to the power supply, the second end of the control switch is electrically connected to the first end of the charge and discharge control module and is also used to electrically connect to the controlled module; the second end of the charge and discharge control module is electrically connected to the first end of the charge and discharge module and the detection end of the function control module respectively; the control end of the function control module is used to electrically connect to the control unit corresponding to the controlled module, and the second end of the charge and discharge module is used to ground and the second end of the controlled module is used to ground, and the output end of the control unit is electrically connected to the control end of the controlled module;

[0008] Wherein, the power supply is used to supply power to the single-switch multifunctional circuit, the controlled module and the control unit when the control switch is closed; when the control switch is closed, the current output by the power supply is used to charge the charge-discharge module after flowing through the charge-discharge control module; the function control module is used to collect the initial voltage signal of the charge-discharge module after power-on and provide it to the control unit, and the control unit is used to control the controlled module to perform a matching function according to the initial voltage signal;

[0009] The power supply is also used to stop supplying power to the single-switch multi-function circuit, the controlled module and the control unit when the control switch is disconnected, and the charge and discharge module is used to discharge when the control switch is disconnected. Under the action of the charge and discharge control module, the discharge current of the charge and discharge module does not flow through the charge and discharge control module when discharging.

[0010] As an optional implementation, in the first aspect of the utility model, the charge and discharge control module includes a single-flow component, wherein:

[0011] The first end of the single-flow component is electrically connected to the second end of the control switch, and the second end of the single-flow component is electrically connected to the first end of the charge and discharge module and the detection end of the function control module;

[0012] The single-flow component allows the current to flow in a direction from the first end of the single-flow component to the second end of the single-flow component.

[0013] As an optional implementation, in the first aspect of the utility model, the charge and discharge control module further includes a charging current regulating device, wherein:

[0014] The first end of the charging current regulating device is electrically connected to the second end of the single-flow component, and the second end of the charging current regulating device is electrically connected to the first end of the charging and discharging module and the detection end of the function control module respectively;

[0015] The charging current regulating device is used to determine the current size for charging the charging and discharging module when the control switch is closed.

[0016] As an optional implementation, in the first aspect of the utility model, the charging and discharging module includes an energy storage component and a discharge current regulating device connected in parallel with the energy storage component;

[0017] The energy storage component is used to store energy through the current flowing through the unidirectional component when the control switch is closed; and to discharge energy through the discharge current regulating device when the control switch is opened.

[0018] As an optional implementation, in the first aspect of the utility model, the unidirectional component includes a diode D1, wherein:

[0019] The anode of the diode D1 is electrically connected to the second end of the control switch, and the cathode of the diode D1 is electrically connected to the first end of the charging current regulating device.

[0020] As an optional implementation, in the first aspect of the utility model, the charging current regulating device includes a first resistor R1.

[0021] As an optional implementation, in the first aspect of the present utility model, the energy storage component includes a capacitor C1, and the discharge current regulating device includes a second resistor R2.

[0022] As an optional implementation, in the first aspect of the utility model, the function control module includes a voltage detection device, wherein:

[0023] The first end of the voltage detection device is electrically connected to the first end of the charge and discharge module, and the second end of the voltage detection device is used to electrically connect to the control unit;

[0024] The voltage detection device is used to power on when the control switch is closed and detect the initial voltage signal of the charge and discharge module after powering on, and send the initial voltage signal to the control unit;

[0025] Furthermore, the voltage detection device and the control unit are reset when the control switch is disconnected.

[0026] As an optional implementation, in the first aspect of the utility model, the voltage detection device includes an operational amplifier OPA, wherein:

[0027] The operational amplifier OPA is used to amplify the initial voltage signal of the charge and discharge module detected after the control switch is closed and the operational amplifier OPA is powered on to obtain an amplified signal, and send the amplified signal to the control unit.

[0028] The second aspect of the utility model discloses an electronic device, which comprises an electronic device body and the single-switch multifunctional circuit as described in any one of the first aspects of the utility model.

[0029] The implementation of this utility model has the following beneficial effects:

[0030] In the single-switch multifunctional circuit disclosed by the utility model, the first end of the control switch is used to electrically connect to the power supply, the second end of the control switch is electrically connected to the first end of the charge-discharge control module and is also used to electrically connect to the controlled module; the second end of the charge-discharge control module is electrically connected to the first end of the charge-discharge module and the detection end of the function control module respectively; the control end of the function control module is used to electrically connect to the control unit corresponding to the controlled module, and the second end of the charge-discharge module is used to ground. Specifically, when the control switch is closed, the single-switch multifunctional circuit and the controlled module start working under the power supply of the power supply, and the current output by the power supply flows through the charge-discharge control module to charge the charge-discharge module. After power-on, the function control module collects the initial voltage signal of the charge-discharge module and provides it to the control unit corresponding to the controlled module, so that the control unit determines the function to be started according to the size of the initial voltage signal. Further, when the control switch is disconnected, the power supply stops supplying power to the single-switch multifunctional circuit and the controlled module, and the charge-discharge module discharges when the control switch is disconnected, so that when the control switch is closed again later, the function control module collects an initial voltage signal different from the initial voltage signal when the current control switch is closed, thereby realizing control and switching of different functions. It can be seen that the utility model can realize power supply control and function control (that is, function switching) through one switch, which improves control convenience and saves costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments 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 creative work.

[0032] Figure 1 It is a structural schematic diagram of a single-switch multifunctional circuit disclosed in an embodiment of the utility model;

[0033] Figure 2 It is a structural schematic diagram of another single-switch multifunctional circuit disclosed in an embodiment of the utility model;

[0034] Figure 3 This is a structural schematic diagram of another single-switch multifunctional circuit disclosed in an embodiment of the utility model. DETAILED DESCRIPTION

[0035] For better understanding and implementation, the technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] It should be noted that, unless otherwise clearly specified and limited, the term "electrical connection" in the specification and claims of the utility model and the above-mentioned drawings should be understood in a broad sense. For example, it can be a fixed electrical connection, a detachable electrical connection, or an integral electrical connection; it can be a mechanical electrical connection, an electrical electrical connection, or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. In addition, the terms "first", "second", etc. in the specification and claims of the utility model and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. The terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For those of ordinary skill in the art, the specific meanings of the above terms in the utility model can be understood according to specific circumstances.

[0037] The utility model discloses a single-switch multifunctional circuit and electronic equipment, which can realize power supply control and function control through one switch, improve control convenience and save costs. Detailed descriptions are given below.

[0038] Embodiment 1

[0039] See also Figure 1 , Figure 1 This is a schematic diagram of a single-switch multi-function circuit disclosed in an embodiment of the utility model. Figure 1 As shown, the single switch multi-function circuit 10 may include:

[0040] A control switch 101, a charge and discharge control module 102, a charge and discharge module 103, and a function control module 104. The first end of the control switch 101 is used to electrically connect to the power supply 20, the second end of the control switch 101 is electrically connected to the first end of the charge and discharge control module 102 and is also used to electrically connect to the controlled module 30; the second end of the charge and discharge control module 102 is electrically connected to the first end of the charge and discharge module 103 and the detection end of the function control module 104 respectively; the control end of the function control module 104 is used to electrically connect to the control unit 40 corresponding to the controlled module 30, and the second end of the charge and discharge module 103 is used to be grounded and the second end of the controlled module 30 is used to be grounded, and the output end of the control unit 40 is electrically connected to the control end of the controlled module 30.

[0041] Based on the above structure, the specific working principle of the single-switch multi-function circuit 10 is as follows:

[0042] The power supply 20 is used to supply power to the single-switch multifunctional circuit 10, the controlled module 30 and the control unit 40 when the control switch 101 is closed; when the control switch 101 is closed, the current output by the power supply 20 is used to charge the charge-discharge module 103 after flowing through the charge-discharge control module 102; the function control module 104 is used to collect the initial voltage signal of the charge-discharge module 103 after the current power-on and provide it to the control unit 40, and the control unit 40 is used to control the controlled module 30 to perform a matching function according to the initial voltage signal;

[0043] The power supply 20 is also used to stop supplying power to the single-switch multifunctional circuit 10, the controlled module 30 and the control unit 40 when the control switch 101 is disconnected, and the charge and discharge module 103 is used to discharge when the control switch 101 is disconnected. Under the action of the charge and discharge control module 102, the discharge current of the charge and discharge module 103 does not flow through the charge and discharge control module 102 when discharging, that is, the charge and discharge control module 102 is a unidirectional path.

[0044] It should be noted that: the control unit 40 corresponding to the controlled module 30 determines the function corresponding to the initial voltage signal after receiving the initial voltage signal provided by the function control module 104, as the function to be implemented this time. Among them, the function corresponding to the initial voltage signal can be specifically determined based on the corresponding relationship between the voltage signal and the function, and the corresponding relationship between the voltage signal and the function can be pre-set in the control unit 40, which is conducive to improving the efficiency of determining the function corresponding to the initial voltage signal, or the corresponding relationship between the voltage signal and the function can be pre-set in other devices (such as user terminals or cloud servers, etc.), when it is necessary to determine the function to be implemented, the control unit 40 can obtain the corresponding relationship by communicating with other devices or directly obtain the function corresponding to the initial voltage signal, so that the latest function corresponding to the initial voltage signal can be obtained, which is conducive to improving the reliability and accuracy of the function corresponding to the initial voltage signal. In addition, the function control module 104 can be configured to detect the voltage signal of the charge and discharge module 103 as the initial voltage signal only when powered on, and not to collect the voltage signal after collecting the initial voltage signal and before the next closing of the control switch 101, or the control unit 40 can be configured to switch and control the function only according to the initial voltage signal of the charge and discharge module 103 detected by the function control module 104 when powered on, and the latter is preferred.

[0045] In the embodiment of the utility model, the control switch 101 is arranged in the power supply path, and the power supply of the entire system (that is, the single switch multifunctional circuit 10, the control unit 40 and the controlled module 30) can be realized through the control switch 101, and the power supply of the entire system can also be realized through the control switch 101. In addition, when the control switch 101 is closed to power the entire system, the function control module 104 collects the initial voltage signal V0 of the charge and discharge module 103 after powering on, and after providing it to the control unit 40, the control unit 40 can determine the function to be realized by closing the control switch this time according to the initial voltage signal. At the same time, the current output by the power supply 20 flows through the charge and discharge control module 102 to charge the charge and discharge module 103, and the voltage at both ends of the charge and discharge module 103 continues to increase. When the control switch 101 is disconnected, the power supply 20 stops charging the charge and discharge module 103, and stops supplying power to the controlled module 30, the control unit 40 and the function control module 104. At this time, the voltage signal across the charge and discharge module 103 is V1, and V1 is greater than V0. Optionally, whenever the control switch 101 is disconnected, the function control module 104 and the control unit 40 can be reset to improve the reliability and efficiency of voltage signal acquisition and function switching when the control switch 101 is closed again.

[0046] In addition, after the power supply 20 stops charging the charge and discharge module 103, the charge and discharge module 103 starts to discharge and the discharge current does not flow through the charge and discharge control module 102. As the charge and discharge module 103 discharges, the voltage signal at both ends of the charge and discharge module 103 gradually decreases until the control switch 101 is closed again. When the control switch 101 is closed again, the function control module 104 is powered on and collects the initial voltage signal V0 of the charge and discharge module 103 again. ’ , and V1 is greater than V0 ’ In practical applications, as long as V0 ’ Different from V0, it can realize the switching and control of different functions. Specifically, V0 ’ Unlike V0, which can be comprehensively determined based on the closing interval of the control switch 101 and the charge and discharge rate of the charge and discharge module 103. Since the initial voltage signal collected by the function control module 104 is different each time the control switch 101 is closed, the switching and control of the function is achieved through multiple closings of the control switch 101. It can be seen that the utility model can realize power supply control and function control through a control switch 101, which improves the control convenience and saves costs.

[0047] In an optional embodiment, if Figure 2 As shown, the charge and discharge control module 102 may include a single-flow component 1021, wherein:

[0048] A first end of the single-current component 1021 is electrically connected to a second end of the control switch 101 , and a second end of the single-current component 1021 is electrically connected to a first end of the charge and discharge module 103 and a detection end of the function control module 104 .

[0049] The single-flow component 1021 allows the current to flow in a direction from the first end of the single-flow component 1021 to the second end of the single-flow component 1021 .

[0050] It can be seen that this optional embodiment realizes charging the charging and discharging module 103 when the control switch is closed through the single-flow component 1021, and also realizes that when the control switch 101 is disconnected, the discharge current of the charging and discharging module 103 does not flow through the charging and discharging control module 102, and thus does not supply power to the controlled module 30, thereby improving the reliability of power-off control based on the control switch 101 and helping to reduce control costs.

[0051] In this optional embodiment, further optional, such as Figure 2 As shown, the charge and discharge control module 102 may further include a charge current regulating device 1022, wherein:

[0052] The first end of the charging current regulating device 1022 is electrically connected to the second end of the single-current component 1021 , and the second end of the charging current regulating device 1022 is electrically connected to the first end of the charging and discharging module 103 and the detection end of the function control module 104 .

[0053] The charging current regulating device 1022 is used to determine the current size for charging the charging and discharging module 103 when the control switch 101 is closed.

[0054] It can be seen that this optional embodiment can also adjust the charging current when the power supply 20 charges the charging and discharging module 103 through the charging current regulating device 1022, thereby realizing flexible control of the charging rate of the charging and discharging module 103.

[0055] In another optional embodiment, Figure 2 As shown, the charge and discharge module 103 includes an energy storage component 1031 and a discharge current regulating device 1032 connected in parallel with the energy storage component 1031;

[0056] The energy storage component 1031 is used to store energy through the current flowing through the unidirectional component 1021 when the control switch 101 is closed; and to discharge energy through the discharge current regulating component 1032 when the control switch 101 is opened.

[0057] The energy storage component 1031 has energy storage and discharge functions, that is, the voltage signal at both ends of the energy storage component 1031 will not change suddenly.

[0058] It can be seen that this optional embodiment adjusts the initial voltage signal of the charge and discharge module 103 detected after the function control module 104 is powered on (it can also be understood as the voltage signal of the charge and discharge module 103 initially detected after the function control module 104 is powered on) through the energy storage component 1031 with energy storage function and discharge function, which is conducive to realizing the switching and control of different functions. In addition, the discharge current regulating device 1032 can also realize the flexible adjustment of the discharge current of the charge and discharge module 103, thereby realizing the flexible control of the discharge rate of the charge and discharge module 103.

[0059] In yet another optional embodiment, Figure 2 As shown, the function control module 104 may include a voltage detection device 1041, wherein:

[0060] A first end of the voltage detection device 1041 is electrically connected to a first end of the charge and discharge module 103 , and a second end of the voltage detection device 1041 is used to electrically connect to the control unit 40 ;

[0061] The voltage detection device 1041 is used to power on when the control switch 101 is closed and detect the initial voltage signal of the charge and discharge module 103 after powering on, and send the initial voltage signal to the control unit 40;

[0062] Furthermore, the voltage detection device 1041 and the control unit 40 are reset when the control switch 101 is turned off.

[0063] It can be seen that this optional embodiment can detect the initial voltage signal of the charge and discharge module 103 based on the voltage detection device 1041, and the detection is convenient and low-cost.

[0064] In yet another optional embodiment, Figure 3 As shown, the single-current component 1021 includes a diode D1, wherein:

[0065] An anode of the diode D1 is electrically connected to the second end of the control switch 101 , and a cathode of the diode D1 is electrically connected to a first end of the charging current regulating device 1022 .

[0066] It can be seen that this optional embodiment realizes the selection and control of the current flow direction through the diode D1, which is beneficial to reducing the cost of the single-switch multi-function circuit 10.

[0067] Further, such as Figure 3As shown, the charging current regulating device 1022 may include a first resistor R1. Optionally, the first resistor R1 may be a fixed resistor or a variable resistor. It should be particularly noted that the first resistor R1 does not refer to only one resistor, it may include one resistor or multiple resistors. Further, when it includes multiple resistors, all resistors may be connected in series, or all resistors may be connected in parallel, or some resistors may be connected in parallel, and some resistors may be connected in series and then connected in series or in parallel. This is not limited in the embodiments of the present invention. It should be noted that Figure 3 A resistor R1 is used as an example.

[0068] It can be seen that this optional embodiment can adjust the charging current when the power supply 20 charges the charging and discharging module 103 through a resistor, which is convenient and low-cost, and can also improve the flexibility of adjusting the charging current.

[0069] Furthermore, if Figure 3 As shown, the energy storage component 1031 includes a capacitor C1, and the discharge current regulating component 1032 includes a second resistor R2. It should be noted that other descriptions of the second resistor R2 can refer to the description of the first resistor R1, which will not be repeated here.

[0070] It can be seen that this optional embodiment can adjust the discharge current of the charge and discharge module 103 during discharge by means of a resistor, which is convenient and low-cost to adjust, and can also improve the adjustment flexibility of the discharge current.

[0071] It can be seen that the implementation Figure 3 The described single-switch multi-function circuit 10 can set the sizes of the first resistor R1, the second resistor R2 and the capacitor C1, and utilize the characteristic that the voltage across the capacitor C1 cannot change suddenly, so that each time the control switch 101 is closed and the voltage detection device 1041 is powered on, different voltage signals of the charging and discharging module 103 are detected, thereby realizing switching and control of multiple different functions based on one control switch 101, with fewer electronic devices, a simple circuit structure and low cost.

[0072] For example, by setting relevant parameters, it takes about 1 second for the capacitor C1 to be fully charged and about 2 seconds for it to be fully discharged, and it is assumed that the control switch 101 is closed once every 100ms. The specific function switching and control principle are as follows:

[0073] If the control switch 101 is closed once (i.e. pressed once), assuming that it takes 100ms for the voltage detection device 1041 to work from power-on, the voltage signal detected by the voltage detection device 1041 is voltage 1. After the voltage detection device 1041 feeds back to the control unit 40, the control unit 40 issues a function 1 instruction to the controlled module 30;

[0074] If the control switch 101 is closed twice (i.e. pressed twice), although function 1 has been set when it is closed for the first time, the set function will be reset when it is closed for the second time because the system has been powered off, and the capacitor C1 cannot be fully discharged after 100ms of power off. That is, after the control switch 101 is closed again, the voltage detection device 1041 will detect voltage 2 and feed it back to the control unit 40, and the control unit 40 will issue a function 2 instruction to the controlled module 30;

[0075] Similarly, if the control switch 101 is closed three times (ie pressed three times), after the third closure, the voltage detection device 1041 will detect the voltage 3 and feed it back to the control unit 40, and the control unit 40 will issue a function 3 instruction to the controlled module 30.

[0076] Furthermore, if Figure 3 As shown, the voltage detection device 1041 includes an operational amplifier OPA, wherein:

[0077] The operational amplifier OPA is used to amplify the initial voltage signal of the charge and discharge module 103 detected after the control switch 101 is closed and the operational amplifier OPA is powered on to obtain an amplified signal, and send the amplified signal to the control unit 40.

[0078] It can be seen that this optional embodiment can also amplify the voltage signal through the operational amplifier OPA, reduce the occurrence of situations where function switching cannot be achieved due to small differences in voltage signals, and is beneficial to improving the control reliability and control accuracy of function switching based on the initial voltage signal of the charging and discharging module 103 collected each time the control switch 101 is closed.

[0079] Embodiment 2

[0080] The utility model discloses an electronic device, which includes an electronic device body and any single switch multi-function circuit 10 described in Embodiment 1. The electronic device integrates multiple functions, and the user can switch and control the functions through the single switch multi-function circuit 10.

[0081] A single-switch multifunctional circuit and an electronic device disclosed in an embodiment of the utility model are introduced in detail above. The principle and implementation mode of the utility model are explained in this article by using specific embodiments. However, the above preferred embodiments are not used to limit the utility model. The description of the above embodiments is only used to help understand the method and core idea of ​​the utility model. At the same time, for a person skilled in the art, according to the idea of ​​the utility model, there will be changes in the specific implementation mode and the scope of application without departing from the spirit and scope of the utility model. Therefore, the protection scope of the utility model shall be based on the scope defined in the claims.

Claims

1. A single switch multifunctional circuit, characterized in that: The single-switch multifunctional circuit (10) comprises: A control switch (101), a charge and discharge control module (102), a charge and discharge module (103) and a function control module (104); The first end of the control switch (101) is used to electrically connect to the power supply (20), the second end of the control switch (101) is electrically connected to the first end of the charge and discharge control module (102) and is also used to electrically connect to the controlled module (30); the second end of the charge and discharge control module (102) is respectively electrically connected to the first end of the charge and discharge module (103) and the detection end of the function control module (104); the control end of the function control module (104) is used to electrically connect to the control unit (40) corresponding to the controlled module (30), and the second end of the charge and discharge module (103) and the second end of the controlled module (30) are used to be grounded, and the output end of the control unit (40) is electrically connected to the control end of the controlled module (30); The power supply (20) is used to supply power to the single-switch multifunctional circuit (10), the controlled module (30) and the control unit (40) when the control switch (101) is closed; when the control switch (101) is closed, the current output by the power supply (20) is used to charge the charge and discharge module (103) after flowing through the charge and discharge control module (102); the function control module (104) is used to collect the initial voltage signal of the charge and discharge module (103) after powering on and provide it to the control unit (40); the control unit (40) is used to control the controlled module (30) to perform a matching function according to the initial voltage signal; The power supply (20) is further used to stop supplying power to the single-switch multifunctional circuit (10), the controlled module (30) and the control unit (40) when the control switch (101) is disconnected, and the charge-discharge module (103) is used to discharge when the control switch (101) is disconnected, and under the action of the charge-discharge control module (102), the discharge current of the charge-discharge module (103) when discharging does not flow through the charge-discharge control module (102).

2. The single-switch multi-function circuit according to claim 1, characterized in that: The charge and discharge control module (102) comprises a single-flow component (1021), wherein: The first end of the single-flow component (1021) is electrically connected to the second end of the control switch (101), and the second end of the single-flow component (1021) is electrically connected to the first end of the charge and discharge module (103) and the detection end of the function control module (104); The current allowed to flow through the single-flow component (1021) is flowing from the first end of the single-flow component (1021) to the second end of the single-flow component (1021).

3. The single-switch multi-function circuit according to claim 2, characterized in that: The charge and discharge control module (102) further comprises a charge current regulating device (1022), wherein: The first end of the charging current regulating device (1022) is electrically connected to the second end of the single-flow component (1021), and the second end of the charging current regulating device (1022) is electrically connected to the first end of the charging and discharging module (103) and the detection end of the function control module (104) respectively; The charging current regulating device (1022) is used to determine the current size for charging the charging and discharging module (103) when the control switch (101) is closed.

4. The single-switch multi-function circuit according to claim 3, characterized in that: The charging and discharging module (103) comprises an energy storage component (1031) and a discharge current regulating device (1032) connected in parallel with the energy storage component (1031); The energy storage component (1031) is used to store energy through the current flowing through the unidirectional component (1021) when the control switch (101) is closed; and to discharge energy through the discharge current regulating device (1032) when the control switch (101) is opened.

5. The single-switch multi-function circuit according to claim 4, characterized in that: The single-current component (1021) comprises a diode D1, wherein: The anode of the diode D1 is electrically connected to the second end of the control switch (101), and the cathode of the diode D1 is electrically connected to the first end of the charging current regulating device (1022).

6. The single-switch multi-function circuit according to claim 5, characterized in that: The charging current regulating device (1022) includes a first resistor R1.

7. The single-switch multifunctional circuit according to any one of claims 4 to 6, characterized in that: The energy storage component (1031) includes a capacitor C1, and the discharge current regulating device (1032) includes a second resistor R2.

8. The single-switch multi-function circuit according to any one of claims 1 to 4, characterized in that: The function control module (104) comprises a voltage detection device (1041), wherein: The first end of the voltage detection device (1041) is electrically connected to the first end of the charge and discharge module (103), and the second end of the voltage detection device (1041) is used to electrically connect to the control unit (40); The voltage detection device (1041) is used to power on when the control switch (101) is closed, detect an initial voltage signal of the charge and discharge module (103) after powering on, and send the initial voltage signal to the control unit (40); Furthermore, the voltage detection device (1041) and the control unit (40) are reset when the control switch (101) is disconnected.

9. The single-switch multi-function circuit according to claim 8, characterized in that: The voltage detection device (1041) comprises an operational amplifier OPA, wherein: The operational amplifier OPA is used to perform an amplification operation on the initial voltage signal of the charge and discharge module (103) detected when the control switch (101) is closed and the operational amplifier OPA is powered on to obtain an amplified signal, and send the amplified signal to the control unit (40).

10. An electronic device, characterized in that: The electronic device comprises an electronic device body and a single-switch multi-function circuit as described in any one of claims 1-9.