Key circuit for displaying electric quantity of battery of electric tool and control method
By introducing a working mode switching mechanism of the voltage divider module and the control module in the power display key circuit, the MCU continuous activation problem caused by long-term pressing of the button is solved, and the standby power consumption of the battery pack is reduced.
Patent Information
- Application Number
- CN202310813009.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-04
- Publication Date
- 2025-01-07
AI Technical Summary
When the existing power display button is not released for a long time, the MCU is in an active state, increasing the standby power consumption of the battery pack, thereby increasing the standby power consumption.
A key circuit including a power supply module, a voltage divider module and a control module is designed. Through a series structure of the key unit and a charging unit, the piezoelectric signal of the first working mode is entered in the charging state, and after charging is completed, the second working mode is entered. The control module outputs the power display signal according to different electrical signal states or enters standby mode to avoid continuous activation of the MCU.
It effectively reduces the power consumption of the key circuit in standby state, and even if the key is stuck, the MCU will not be continuously activated, reducing the standby power consumption of the battery pack.
Smart Images

Figure CN119275950A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor circuits, and in particular to a key circuit and a control method for displaying the battery power of an electric tool. Background Art
[0002] With the advancement of material technology, lithium batteries are currently widely used in electronic products, household appliances and other fields. However, when lithium batteries are in a low-power state for a long time, they will not be able to be charged and used. Therefore, it is usually necessary to reduce the standby power consumption of the protection board as much as possible.
[0003] In the prior art, the power display function of electronic products is usually achieved by setting a power display button. After pressing the button, the MCU (Microcontroller Unit) is activated, so that the MCU detects the battery pack power and outputs a signal to display the power. However, there is a risk of the power display button getting stuck. When the power display button of the external battery pack is pressed and not released for a long time, the MCU will remain in an activated state, thereby increasing the standby power consumption of the battery pack and increasing the standby power consumption of the battery pack. Summary of the invention
[0004] Based on this, it is necessary to provide a key circuit and an electric tool for displaying the battery power of an electric tool to address the problem of increased standby power consumption caused by key jamming.
[0005] A key circuit for displaying the battery power of an electric tool comprises a power supply module, a voltage divider module and a control module, wherein the power supply module is used to provide an input electrical signal; the voltage divider module is connected to the power supply module, and comprises a key unit and a charging unit connected in series, wherein in response to the key unit being pressed and the charging unit being in a charging state, the voltage divider module enters a first working mode, and in the first working mode, the input electrical signal input to the control module is voltage-divided into a first electrical signal; the voltage divider module also enters a second working mode in response to the charging unit being in a charging completion state, and in the second working mode, the input electrical signal input to the control module is voltage-divided into a second electrical signal; the control module is connected to the power supply module, and is used to output a power display signal according to the first electrical signal, and the power display signal is used to display the battery power; the control module is also used to enter a standby mode according to the second electrical signal.
[0006] In one embodiment, the control module responds only to level values of the first electrical signal and the second electrical signal, and the level value of the first electrical signal is smaller than the level value of the second electrical signal.
[0007] In one embodiment, when the button unit is not pressed, the control module is in a third working mode. In the third working mode, the control module receives a third electrical signal from the power supply module, and the control module enters the standby mode according to the third electrical signal.
[0008] In one embodiment, the control module responds only to the level value of the third electrical signal, and the level value of the first electrical signal is smaller than the level value of the third electrical signal.
[0009] In one embodiment, the charging unit includes a first capacitor, the voltage divider module also includes a first resistor and a second resistor, the first end of the first resistor is connected to the power supply module, the second end of the first resistor is respectively connected to the first end of the second resistor and the first end of the first capacitor, the second end of the second resistor and the second end of the first capacitor are both connected to the first end of the button unit, and the second end of the button unit is grounded.
[0010] In one embodiment, the power supply module includes a third resistor, a first end of the third resistor is connected to an input end of the control module, and a second end of the third resistor is connected to the voltage divider module.
[0011] In one embodiment, the power supply module further includes a fourth resistor, a first end of the fourth resistor is connected to a voltage-stabilized power supply, and a second end of the fourth resistor is connected to a second end of the third resistor.
[0012] In one embodiment, the resistance of the first resistor is smaller than the resistance of the fourth resistor, and the resistance of the fourth resistor is smaller than the resistance of the second resistor.
[0013] In one of the embodiments, the key circuit further includes a current stabilization module, which is connected between the power supply module and the voltage divider module and is used to stabilize the current.
[0014] In one embodiment, the current stabilization module includes a first diode, an anode of the first diode is connected to the power supply module, and a cathode of the first diode is connected to the voltage divider module.
[0015] An electric tool comprises the key circuit described in any one of the above embodiments.
[0016] A control method for a key circuit is applied to the key circuit described in any one of the above embodiments, the method comprising: in response to a key unit being pressed and a charging unit being in a charging state, a voltage divider module entering a first working mode, and dividing an input electrical signal into a first electrical signal in the first working mode; outputting a power display signal according to the first electrical signal, and the power display signal is used to display the battery power; in response to the charging unit being in a charging completion state, the voltage divider module entering a second working mode, and dividing the input electrical signal into a second electrical signal in the second working mode; and entering a standby mode according to the second electrical signal.
[0017] When the button unit is not pressed, the control module is in a third working mode. In the third working mode, the control module receives a third electrical signal from the power supply module, and the control module enters the standby mode according to the third electrical signal.
[0018] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the key circuit control method described in any one of the above embodiments when executing the computer program.
[0019] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the key circuit control method described in any one of the above embodiments.
[0020] A computer program product includes a computer program, wherein when the computer program is executed by a processor, the steps of the key circuit control method described in any one of the above embodiments are implemented.
[0021] The above-mentioned key circuit for displaying the battery power of the electric tool includes a power supply module, a voltage divider module and a control module. The voltage divider module includes a key unit and a charging unit. When the key unit is pressed and the charging unit enters the charging state, the voltage divider module can enter the first working mode. In the first working mode, the voltage divider module can divide the input electrical signal of the power supply module input to the control module into a first electrical signal. The control module can output a power display signal according to the first electrical signal to display the battery power. When the charging unit completes charging, the voltage divider module can enter the second working mode. In the second working mode, the voltage divider module can divide the input electrical signal of the power supply module input to the control module into a second electrical signal. The control module can enter the standby mode according to the second electrical signal. The control module of the above-mentioned key circuit enters the standby state after the charging unit completes charging. Therefore, even if the key is stuck and is pressed for a long time, the control module will not be continuously activated, which can reduce the power loss of the circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the implementation methods or the description of the prior art. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0023] Figure 1 This is a structural schematic diagram of a key circuit for displaying the battery power of an electric tool in one embodiment of the present application;
[0024] Figure 2 This is a circuit connection diagram of a key circuit in one of the embodiments of the present application;
[0025] Figure 3 This is a structural schematic diagram of a key circuit in another embodiment of the present application;
[0026] Figure 4 This is a flow chart of a method for controlling a key circuit in one of the embodiments of the present application;
[0027] Figure 5 This is a schematic diagram of the structure of a device for implementing a control method for a key circuit in one of the embodiments of the present application;
[0028] Figure 6 This is a diagram of the internal structure of a computer device in one of the embodiments of the present application. DETAILED DESCRIPTION
[0029] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to understand the disclosure of the present invention more thoroughly and comprehensively.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0031] In order to prevent the lithium battery from being in a low-power state for a long time and thus being unable to be charged and used, it is usually necessary to reduce the consumption of battery power by the protection board itself as much as possible in the standby state, that is, to reduce the standby power consumption of the protection board as much as possible. In the prior art, the battery power display function is usually implemented by setting a button on the external battery pack. After pressing the power display button, the MCU is activated, and the MCU detects the battery pack power and outputs a signal to display the battery power. However, if the power display button is not released for a long time after being pressed, the MCU will be in an activated state all the time, thereby increasing the standby power consumption of the battery pack and increasing the standby power consumption of the battery pack.
[0032] Figure 1 This is a structural schematic diagram of a key circuit for displaying the battery power of an electric tool in one of the embodiments of the present application. In one of the embodiments, the key circuit may include a power supply module 100, a voltage divider module 200 and a control module 300.
[0033] The power supply module 100 can be used to provide an input electrical signal. The voltage divider module 200 can be connected to the power supply module 100 to divide the input electrical signal. The control module 300 can be connected to both the power supply module 100 and the voltage divider module 200, and the control module 300 performs different control operations according to the received electrical signal.
[0034] The voltage divider module 200 may include a button unit 210 and a charging unit 220, and the button unit 210 is connected in series with the charging unit 220. When the button unit 210 is pressed and the charging unit 220 is in a charging state, the voltage divider module 200 may enter a first working mode. In the first working mode, the voltage divider module 200 may divide the input electrical signal into a first electrical signal, and the first electrical signal is transmitted to the control module 300. In this embodiment, the first electrical signal may be a low-level signal. When receiving the first electrical signal, the control module 300 may output a power display signal according to the first electrical signal. The power display signal may be used to display the battery power of the power tool.
[0035] After the charging unit 220 is fully charged, the voltage divider module 200 may enter the second working mode, in which the voltage divider module 200 may divide the input electrical signal into a second electrical signal, and the second electrical signal is transmitted to the control module 300. In this embodiment, the second electrical signal may be a high level signal. When receiving the second electrical signal, the control module 300 may also enter the standby mode according to the second electrical signal.
[0036] When the button unit 210 is not pressed, the control module 300 is in the third working mode. In the third working mode, the control module 300 receives a third electrical signal from the power supply module 100 and enters the standby mode according to the third electrical signal. The third electrical signal can also be a high level signal.
[0037] The level in this application refers to the voltage level, so a high level corresponds to a high voltage value and a low level corresponds to a low voltage value.
[0038] In the above-mentioned key circuit, the control module 300 implements different control operations according to different input signals, and uses the voltage divider module 200 to change the electrical signal transmitted from the power supply module 100 to the control module 300. When the control module 300 receives the first electrical signal, a circuit display signal is generated to display the battery power, and when the control module 300 receives the second electrical signal, the control module 300 enters the standby mode. When the key unit 210 of the voltage divider module 200 is pressed and the charging unit 220 of the voltage divider module 200 is in a charging state, the voltage divider module 200 enters the first working mode. In the first working mode, the input electrical signal transmitted to the control module 300 is divided into the first electrical signal. After the charging unit 220 is fully charged, the voltage divider module 200 enters the second working mode. In the second working mode, the input electrical signal transmitted to the control module 300 is divided into the second electrical signal.
[0039] It can be seen that even if the key unit 210 in the key circuit is stuck or in a long-term pressed state, after the charging unit 220 completes charging, the voltage divider module 200 will enter the second working mode so that the control module 300 receives the second electrical signal, and the control module 300 enters the standby mode. That is, the control module 300 in the key circuit will not be continuously activated due to the key unit 210 being stuck, which effectively reduces the standby power consumption of the key circuit.
[0040] In one embodiment, the control module 300 may include an MCU chip, and the I / O interface of the MCU chip is connected to the power supply module 100. In this embodiment, the MCU chip can be designed to be activated after receiving a low-level signal. The activated MCU chip detects the battery pack power of the power tool and outputs a power display signal to achieve the effect of displaying the power. In addition, the MCU chip can also be designed to enter standby mode to reduce power consumption after receiving a high-level signal and no output is detected within a certain period of time (for example, within 10 seconds).
[0041] In some embodiments, the low level and high level thresholds can be adaptively set according to different application requirements, for example, a voltage value between 3-3.3V is determined as a high level, and a voltage value between 0-1V is determined as a low level. The input electrical signal provided by the power supply module 100 can be a high level.
[0042] In one embodiment, the first electrical signal may be a low-level signal, the second electrical signal may be a high-level signal, and the level value of the first electrical signal is less than the level value of the second electrical signal; if the button unit 210 is not pressed, the control module 300 continues to receive the third electrical signal output by the power supply module 100, and the level value of the first electrical signal is also less than the level value of the third electrical signal. That is, the control module 300 can be activated when receiving the first electrical signal, and output a circuit display signal to display the battery pack power; the control module 300 can enter the standby mode when receiving the second electrical signal to reduce power consumption. When the button unit 210 is not pressed and the voltage divider module 200 is in an invalid state, the control module 300 can receive the third electrical signal and enter the standby mode to reduce power consumption.
[0043] Figure 2 This is a circuit connection diagram of a key circuit in one of the embodiments of the present application. In one of the embodiments, the charging unit 220 may include a first capacitor C1, and the voltage divider module 200 may further include a first resistor R1 and a second resistor R2.
[0044] The first end of the first resistor R1 can be connected to the power supply module 100, the second end of the first resistor R1 is respectively connected to the first end of the second resistor R2 and the first end of the first capacitor C1, the second end of the second resistor R2 and the second end of the first capacitor C1 are both connected to the first end of the key unit 210, and the second end of the key unit 210 is grounded. That is, the first resistor R1, the first capacitor C1 and the key unit 210 are connected in series, and the second resistor R2 is connected in parallel with the first capacitor C1.
[0045] In one embodiment, see Figure 2 , the power supply module may include a third resistor R3, a first end of the third resistor R3 may be connected to the input end of the control module 300, and a second end of the third resistor R3 may be connected to the voltage divider module 200. In this embodiment, the control module 300 may include an MCU chip, a first end of the third resistor R3 may be connected to the KEY_INT pin of the MCU chip, and a second end of the third resistor R3 may be connected to the first end of the first resistor R1. The function of the third resistor R3 is to limit current. That is, in extreme cases, to prevent excessive current from entering the MCU chip, thereby damaging the MCU chip.
[0046] In one embodiment, see Figure 2The power supply module 100 may further include a fourth resistor R4, a first end of the fourth resistor R4 may be connected to a voltage-stabilized power supply, and a second end of the fourth resistor R4 may be connected to a second end of the third resistor R3. In this embodiment, the voltage-stabilized power supply may stably provide a high voltage, such as 3.3V. The fourth resistor R4 may be connected to the voltage-stabilized power supply as a pull-up resistor, and is used to keep the input port of the control module 300 in a stable high-level state when the button unit 210 is not in operation, and the fourth resistor R4 may play a role in voltage division when the button unit 210 is grounded.
[0047] In one embodiment, the resistance of the first resistor R1 may be smaller than the resistance of the fourth resistor R4, and the resistance of the fourth resistor R4 may be smaller than the resistance of the second resistor R2. The resistance of the third resistor R3 may be the same as the resistance of the fourth resistor R4. Therefore, when selecting circuit components, a resistor with a smaller resistance value may be selected as the first resistor R1, such as 100Ω; a resistor with a larger resistance value may be selected as the second resistor R2, such as 510kΩ; and a resistor with a moderate resistance value may be selected as the fourth resistor R4, such as 10kΩ.
[0048] In one of the embodiments, when selecting the device, the capacitance of the first capacitor C1 can be selected according to the duration of the low level of the MCU chip port. The discharge time of the capacitor affects the reaction speed of the MCU port to recognize the release of the key, that is, it affects the recognition of continuous key presses. Therefore, when selecting the capacitance of the first capacitor C1, the charging time of the capacitor can be selected to be greater than the minimum time required for the MCU to recognize the low level, and the discharge time of the capacitor can be selected to be less than the minimum time required to recognize that the user presses the key multiple times in succession.
[0049] In this embodiment, Figure 2 The circuit diagram shown illustrates the working process of the key circuit, but it cannot be understood as limiting the scope of the patent disclosed herein. Among them, the first resistor R1 is 100Ω, the second resistor R2 is 510kΩ, the third resistor R3 is 10kΩ, the fourth resistor R4 is 10kΩ, the voltage provided by the voltage-stabilized power supply connected to the fourth resistor R4 is 3.3V, and the control module 300 includes an MCU chip. Since the internal resistance of the MCU chip is relatively large, it is much larger than the third resistor R3 with a resistance of 10kΩ, that is to say, the voltage divided by the third resistor R3 is negligible relative to the voltage received by the MCU chip, and is close to zero, so the voltage received by the MCU chip is almost equal to the voltage of the intersection node of the third resistor R3 and the fourth resistor R4 to the ground.
[0050] When the button unit 210 is not pressed, the voltage dividing module 200 is in an open circuit state, and the high level provided by the voltage stabilizing power supply is directly transmitted to the control module 300. At this time, the control module 300 is continuously in a standby mode to reduce power consumption.
[0051] After the button unit 210 is pressed, the voltage divider module 200 is turned on and the first capacitor C1 enters a charging state. At this time, the voltage divider module 200 can enter a first working mode. In the first working mode, the input electrical signal provided by the power supply module 100 is greatly voltage-divided so that the signal transmitted to the control module 300 is a low-level signal.
[0052] Since the capacitor is equivalent to a short circuit when in the charging state, and the second resistor R2 is connected in parallel with the first capacitor C1, the second resistor R2 is also short-circuited. That is, the first capacitor C1 and the second resistor R2 are both in a short-circuit state before the first capacitor C1 is fully charged. When the first capacitor C1 and the second resistor R2 are both in a short-circuit state, the current transmitted to the voltage divider module 200 can smoothly pass through the first capacitor C1 and then pass through the button unit 210, that is, at this time, the resistance value in the voltage divider module 200 is almost only the resistance value of the first resistor R1.
[0053] At this time, the equivalent resistance between the intersection node of the third resistor R3 and the fourth resistor R4 and the ground is equal to the first resistor R1, and its resistance is 100Ω, which is much smaller than the resistance of the fourth resistor R4, 10KΩ. Since the resistance is proportional to the voltage value, the voltage between the intersection node of the third resistor R3 and the fourth resistor R4 and the ground is much smaller than the voltage of the fourth resistor R4. That is, at this time, the resistance of the intersection node to the ground is divided by the fourth resistor R4, so the first electrical signal obtained after the voltage division is a low level close to 0V, and the first electrical signal is transmitted to the I / O port of the MCU to wake up the MCU. That is, a large part of the high level provided by the power supply module 100 is occupied by the fourth resistor R4, and the level between the intersection node and the ground is the level of the voltage divider module 200. At this time, the resistance of the circuit is only 100Ω of the first resistor R1, so the corresponding voltage value of the circuit is low, so it is transmitted to the input port of the control module 300 as a low level. After receiving the low level, the MCU is awakened, detects the battery pack power and outputs a circuit display signal to display the battery power.
[0054] After the button unit 210 is pressed and not released until the first capacitor C1 is fully charged, the voltage divider module 200 enters the second working mode, and in the second working mode, the input electrical signal provided by the power supply module 100 is slightly divided, that is, the signal transmitted to the control module 300 is a high-level signal. Since the capacitor is equivalent to an open circuit after being fully charged, after the first capacitor C1 is fully charged, when the current flows through the voltage divider module 200, it will flow through the first resistor R1 and the second resistor R2 in sequence and then through the button unit 210.
[0055] At this time, the resistance of the voltage divider module 200 is equivalent to 510KΩ, and since the resistance of the fourth resistor R4 is 10kΩ, the resistance ratio of the cross node of the third resistor R3 and the fourth resistor R4 to the ground is 510:10, so the ratio of the voltage between the cross node to the ground and the voltage on the fourth resistor R4 is 510:10, and the total voltage value is 3.3V output by the voltage-regulated power supply. Therefore, at this time, the voltage received by the I / O interface of the MCU is the voltage on the voltage divider module 200, which is approximately It can be seen that at this time, the resistance value in the path of the voltage divider module 200 is relatively high, so that the voltage occupied by the voltage divider module 200 is relatively large, and the voltage transmitted to the input end of the control module 300 becomes a second electrical signal, that is, a high level signal. When the MCU receives a high level, it can enter the standby mode to reduce the power consumption of the circuit.
[0056] It can be seen that after the first capacitor C1 is fully charged, even if the key unit 210 is still in the pressed state, the MCU will receive a high-level signal, which is consistent with the state when the key unit 210 is not pressed, that is, the performance of the MCU is consistent when the key is long pressed and when no key is pressed.
[0057] When the button unit 210 is released, the second resistor R2 discharges the first capacitor C1 instantly, and the first capacitor C1 can be restored to a state of not being fully charged. The voltage divider module 200 does not contribute any voltage along the entire path due to the release of the button unit 210, that is, it is in a failed state, and due to the pull-up effect of the fourth resistor, the voltage at the intersection node of the third resistor R3 and the fourth resistor R4 to the ground is maintained at a higher voltage value close to 3.3V, so the MCU still receives a high level.
[0058] The above-mentioned key circuit uses the voltage divider module 200 to divide the input electrical signal provided by the power supply module 100 to change the level received by the control module 300. After the key unit 210 is pressed, the first capacitor C1 in the voltage divider module 200 starts to charge. At this time, the 3.3V received by the I / O port of the control module 300 will be pulled down after voltage division, so that the MCU receives a low-level signal; when the first capacitor C1 is full, the first capacitor C1 is equivalent to an open circuit. Even if the key unit 210 is not released at this time, the 3.3V received by the I / O port of the control module 300 is divided to a small extent, so the MCU still receives a high-level signal; when the key unit 210 is released, the circuit of the voltage divider module 200 is disconnected, and the MCU still receives a high-level signal. At the same time, the second resistor R2 instantly discharges the first capacitor C1, so that the first capacitor C1 returns to the initial state and waits for the next key unit 210 to be pressed. It can be seen that when the button fails and is stuck or the button is pressed for a long time, the MCU will not be continuously activated, which effectively reduces the standby power consumption of the battery pack. At the same time, the above button circuit will not affect the display effect of the battery status after the button is pressed again after recovery.
[0059] Figure 3 This is a structural diagram of a key circuit in another embodiment of the present application. In one embodiment, the key circuit may further include a current stabilization module 400. The current stabilization module 400 may be connected between the power supply module 100 and the voltage divider module 200, and the current stabilization module 400 may be used to stabilize the current.
[0060] In one embodiment, the current stabilization module 400 may include a first diode D1, an anode of the first diode D1 may be connected to the power supply module 100, and a cathode of the first diode D1 may be connected to the voltage dividing module 200. Figure 2 In this embodiment, the anode of the first diode D1 can be connected to the second end of the third resistor R3 and the second end of the fourth resistor R4, respectively, and the cathode of the first diode D1 can be connected to the first end of the first resistor R1. The first diode D1 can be used to stabilize the current of the key circuit, and use the unidirectional conduction characteristic of the diode to prevent the current from flowing back to the MCU and causing damage to the MCU.
[0061] In one embodiment, the key circuit may further include a voltage stabilizing module, which may be used to stabilize the voltage. The voltage stabilizing module may include a second diode D2, which may be a voltage stabilizing diode. Figure 2, the cathode of the second diode D2 can be connected to the cathode of the first diode D1 and the first end of the first resistor R1 respectively, and the anode of the second diode D2 is grounded. When the reverse voltage across the second diode D2 is less than its reverse breakdown voltage, the second diode D2 is equivalent to an open circuit, that is, under normal conditions, the cathode of the first diode D1 and the first end of the first resistor R1 are not grounded. When the reverse voltage across the second diode D2 is greater than or equal to its reverse breakdown voltage, the second diode D2 reversely breaks down, which can block high voltages other than the high voltage provided by the voltage-stabilized power supply from entering the MCU, so as to prevent other high voltages (such as static electricity) from damaging the MCU or affecting the judgment of the MCU, thereby achieving the effect of protecting the circuit.
[0062] The present application also provides an electric tool, which may include the key circuit described in any one of the above embodiments. The electric tool may use the key circuit to realize the power display function.
[0063] The present application also provides a control method for a key circuit, which can be applied to the key circuit described in any one of the above embodiments. Figure 4 This is a flow chart of a control method of a key circuit in one of the embodiments of the present application. In one of the embodiments, the control method may include the following steps S100 to S400.
[0064] Step S100: In response to the button unit being pressed and the charging unit being in a charging state, the voltage division module enters a first working mode, and divides the input electrical signal into a first electrical signal in the first working mode.
[0065] The above control method can be applied to a key circuit, which may include a power supply module 100, a voltage divider module 200, and a control module 300. The voltage divider module 200 may include a key unit 210 and a charging unit 220. When the key unit 210 is pressed and the charging unit 220 enters a charging state, the voltage divider module 200 may enter a first working mode, and the voltage divider module 200 may divide the input electrical signal into a first electrical signal in the first working mode, and the first electrical signal is transmitted to the control module 300. In this embodiment, the first electrical signal may be a low-level signal.
[0066] Step S200: outputting a power display signal according to the first electrical signal, wherein the power display signal is used to display the battery power.
[0067] When the control module 300 receives the first electrical signal, it can output a power display signal according to the first electrical signal. The power display signal can be used to display the battery power of the power tool.
[0068] Step S300: In response to the charging unit being in the charging completion state, the voltage division module enters the second working mode, and divides the input electrical signal into a second electrical signal in the second working mode.
[0069] After the charging unit 220 is fully charged, the voltage divider module 200 may enter the second working mode, in which the voltage divider module 200 may divide the input electrical signal into a second electrical signal, which is transmitted to the control module 300. In this embodiment, the second electrical signal may be a high level signal.
[0070] Step S400: entering a standby mode according to a second electrical signal.
[0071] When receiving the second electrical signal, the control module 300 may also enter a standby mode according to the second electrical signal to reduce circuit power consumption.
[0072] When the above control method is applied to the key circuit, the voltage divider module 200 can be used to change the electrical signal transmitted from the power supply module 100 to the control module 300, so that the control module 300 can implement different control operations according to different input signals. The control module 300 can be set to generate a circuit display signal to display the battery power when receiving the first electrical signal, and enter the standby mode when receiving the second electrical signal. When the key unit 210 of the voltage divider module 200 is pressed and the charging unit 220 of the voltage divider module 200 is in a charging state, the voltage divider module 200 can enter the first working mode. In the first working mode, the input electrical signal transmitted to the control module 300 is divided into the first electrical signal, so that the control module 300 generates a circuit display signal to display the battery power. After the charging unit 220 is charged, the voltage divider module 200 enters the second working mode. In the second working mode, the input electrical signal transmitted to the control module 300 is divided into the second electrical signal, so that the control module 300 enters the standby mode.
[0073] It can be seen that even if the key unit 210 in the key circuit is stuck or in a long-term pressed state, after the charging unit 220 completes charging, the voltage divider module 200 will enter the second working mode to make the control module 300 enter the standby mode. That is, the control module 300 in the key circuit will not be continuously activated due to the key unit 210 being stuck, which effectively reduces the standby power consumption of the key circuit.
[0074] It is worth noting that when the button unit 210 is not pressed, the voltage divider module 200 is in a failed state, and the control module 300 receives a third electrical signal from the power supply module 100, and the third electrical signal is still at a high level, so the control module 300 is also in standby mode.
[0075] It should be understood that, although the steps in the flowcharts of the accompanying drawings of the specification are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts of the accompanying drawings of the specification may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0076] It is understandable that the various embodiments of the above methods, devices, etc. in this specification are described in a progressive manner, and the same / similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For related parts, refer to the description of other method embodiments.
[0077] Figure 5 This is a schematic diagram of the structure of a device for implementing a control method of a key circuit in one embodiment of the present application. Figure 5 The control device S00 of the key circuit may include a processing component S20, which further includes one or more processors, and a memory resource represented by a memory S22, for storing instructions executable by the processing component S20, such as an application. The application stored in the memory S22 may include one or more modules each corresponding to a set of instructions. In addition, the processing component S20 is configured to execute the instructions to perform the control method of the key circuit.
[0078] The key circuit control device S00 may further include: a power supply component S24 configured to perform power management of the mower line release control device S00, a wired or wireless network interface S26 configured to connect the key circuit control device S00 to a network, and an input / output (I / O) interface S28. The key circuit control device S00 may operate based on an operating system stored in the memory S22, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD or the like.
[0079] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory S22 including instructions, and the above instructions can be executed by a processor of the control device S00 of the key circuit to complete the above method. The storage medium can be a computer-readable storage medium, for example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0080] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by a processor of the control device S00 of the key circuit to complete the above method.
[0081] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, Figure 6 This is an internal structure diagram of a computer device in one of the embodiments of the present application. The computer device includes a processor, a memory and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data used in the control method of the above-mentioned key circuit. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a control method for a key circuit is implemented.
[0082] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0083] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0084] It should be noted that the above-mentioned devices, electronic devices, servers, etc. may also include other implementation methods according to the description of the method embodiments, and the specific implementation methods may refer to the description of the relevant method embodiments. At the same time, the new embodiments composed of the mutual combination of the features between the various methods and device, equipment, and server embodiments still fall within the scope of implementation covered by the present disclosure, and will not be described one by one here.
[0085] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.
[0086] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0087] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A key circuit for displaying the battery power of an electric tool, characterized in that: Including power supply module, voltage divider module and control module, The power supply module is used to provide an input electrical signal; The voltage dividing module is connected to the power supply module, and includes a key unit and a charging unit connected in series. In response to the key unit being pressed and the charging unit being in a charging state, the voltage dividing module enters a first working mode, and in the first working mode, the input electrical signal input to the control module is divided into a first electrical signal; The voltage division module also enters a second working mode in response to the charging unit being in a charging completion state, and divides the input electrical signal input to the control module into a second electrical signal in the second working mode; The control module is connected to the power supply module, and is used to output a power display signal according to the first electrical signal, wherein the power display signal is used to display the battery power; the control module is also used to enter a standby mode according to the second electrical signal.
2. The key circuit according to claim 1, characterized in that: The control module only responds to the level values of the first electrical signal and the second electrical signal, and the level value of the first electrical signal is smaller than the level value of the second electrical signal.
3. The key circuit according to claim 1, characterized in that: When the button unit is not pressed, the control module is in a third working mode. In the third working mode, the control module receives a third electrical signal from the power supply module, and the control module enters the standby mode according to the third electrical signal. Preferably, the control module only responds to the level value of the third electrical signal, and the level value of the first electrical signal is smaller than the level value of the third electrical signal.
4. The key circuit according to claim 1, characterized in that: The charging unit includes a first capacitor, and the voltage dividing module also includes a first resistor and a second resistor. The first end of the first resistor is connected to the power supply module, the second end of the first resistor is respectively connected to the first end of the second resistor and the first end of the first capacitor, the second end of the second resistor and the second end of the first capacitor are both connected to the first end of the button unit, and the second end of the button unit is grounded; Preferably, the power supply module comprises a third resistor, a first end of the third resistor is connected to the input end of the control module, and a second end of the third resistor is connected to the voltage dividing module; Preferably, the power supply module further includes a fourth resistor, a first end of the fourth resistor is connected to a voltage-stabilized power supply, and a second end of the fourth resistor is connected to the second end of the third resistor; Preferably, the resistance value of the first resistor is smaller than the resistance value of the fourth resistor, and the resistance value of the fourth resistor is smaller than the resistance value of the second resistor.
5. The key circuit according to claim 1, characterized in that: The key circuit also includes: A current stabilizing module, which is connected between the power supply module and the voltage dividing module and is used to stabilize the current; Preferably, the current stabilization module includes a first diode, an anode of the first diode is connected to the power supply module, and a cathode of the first diode is connected to the voltage divider module.
6. An electric tool, characterized in that: A key circuit comprising any one of claims 1 to 5.
7. A control method for a key circuit, applied to the key circuit according to any one of claims 1 to 5, characterized in that: The method comprises: In response to the button unit being pressed and the charging unit being in a charging state, the voltage division module enters a first working mode, and divides the input electrical signal into a first electrical signal in the first working mode; Outputting a power display signal according to the first electrical signal, wherein the power display signal is used to display the battery power; In response to the charging unit being in a charging completion state, the voltage division module enters a second working mode, and divides the input electrical signal into a second electrical signal in the second working mode; entering a standby mode according to the second electrical signal; Preferably, when the button unit is not pressed, the control module is in a third working mode. In the third working mode, the control module receives a third electrical signal from the power supply module, and the control module enters the standby mode according to the third electrical signal.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the key circuit control method according to claim 7 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the key circuit control method according to claim 7 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the key circuit control method according to claim 7 are implemented.