Key function detection circuit and motor driving circuit

Through the key function detection circuit and motor drive circuit, and by utilizing the cooperation of the voltage detection module and the control module, the problem of limited MCU chip pins is solved, and the control of multiple function keys and the various drive requirements of the motor are realized.

CN223436073UActive Publication Date: 2025-10-14KEDU ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422824292.2
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-10-14
Estimated Expiration
2034-11-19

AI Technical Summary

Technical Problem

Due to the limited number of MCU chip pins, it is impossible to meet the needs of multiple function buttons and motor drive, resulting in the motor being unable to rotate as required.

Method used

A key function detection circuit is designed. The voltage detection module outputs a detection voltage of corresponding amplitude to the control module. The control module identifies the detection voltage and outputs the corresponding control command to realize the recognition of the key function and the drive of the motor.

Benefits of technology

Even when the MCU chip pins are insufficient, it can still realize the control of multiple function buttons and meet the various driving requirements of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223436073U_ABST
    Figure CN223436073U_ABST
Patent Text Reader

Abstract

The utility model relates to the field of DC electric tool control, and discloses a button function detection circuit and a motor drive circuit, comprising a control module and a voltage detection module, an input end of the control module is connected with an output end of the voltage detection module, an output end of the control module is connected with a control end of an external device, and the control module is connected with the voltage detection module. The voltage detection module is connected with the plurality of functional keys; a plurality of control commands corresponding to the detection voltage are pre-stored in the control module, the control commands are in one-to-one correspondence with functions indicated by the function keys, and the control commands are used for controlling the running state of the external equipment; when a certain function key is pressed down, the voltage detection module outputs the detection voltage with the corresponding amplitude to the control module, and the control module identifies the detection voltage and outputs a corresponding control command, so that the function of identifying the function key by identifying the detection voltage is realized. Therefore, the situation that the external equipment cannot be controlled due to insufficient pin positions of the control module is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the field of direct current electric tool control, in particular to a key function detection circuit and a motor drive circuit. Background Art

[0002] With the development of science and technology, the use of motors has brought convenience to all walks of life. The main function of the motor is to generate driving torque, serving as a power source for electrical appliances or various machines, thereby controlling the movement of the equipment. It has good applications in industrial control, household appliances, and power tools. As a driving module, the motor's rotation direction and speed will lead to different functional effects. In order to control the motor to rotate according to demand, related technologies often use multiple function buttons. By pressing a function button, the motor can be controlled to rotate as needed.

[0003] For each function button, each single function button needs to be connected to a pin of the MCU chip. However, due to the limited number of MCU pins, it is impossible to expand peripherals, resulting in the motor being unable to meet multiple driving requirements. Utility Model Content

[0004] In view of this, the present invention provides a key function detection circuit and a motor drive circuit to solve the problem that each single function key needs to be connected to a pin of an MCU chip.

[0005] In the first aspect, the utility model provides a key function detection circuit, including: a control module and a voltage detection module, wherein the input end of the control module is connected to the output end of the voltage detection module, the output end of the control module is connected to the control end of an external device, and the voltage detection module is connected to multiple function keys; the control module pre-stores multiple control commands corresponding to the detection voltages, the control commands correspond one-to-one to the functions indicated by the function keys, and the control commands are used to control the operating status of the external device; when a function key is pressed, the voltage detection module outputs a detection voltage of corresponding amplitude to the control module, and the control module identifies the detection voltage and outputs a corresponding control command.

[0006] In the present invention, when a function button is pressed, the voltage detection module outputs a detection voltage of corresponding amplitude to the control module. The control module recognizes the detection voltage and outputs a corresponding control command, thereby realizing the function of identifying the function button by identifying the detection voltage, thereby avoiding the situation where the external device cannot be controlled due to insufficient pins of the control module.

[0007] In an optional implementation, the control module includes an MCU chip.

[0008] In an optional embodiment, the voltage detection module includes: multiple voltage divider circuits, wherein the input end of each voltage divider circuit is connected to a function key, and the output end of each voltage divider circuit is connected to the input end of the control module; each voltage divider circuit divides the supply voltage to obtain a detection voltage of different amplitudes.

[0009] In an optional embodiment, the key function detection circuit also includes: a power supply module, the power supply module includes: at least one battery pack, wherein, when only one battery pack is included, the positive output end of the battery pack is connected to the power supply end of the control module and the positive power supply end of the external device, the negative output end of the battery pack is connected to the negative power supply end of the external device, and the battery pack is used to power the control module; when multiple battery packs are included, the positive output ends of the multiple battery packs connected in series are connected to the power supply end of the control module and the positive power supply end of the external device, the negative output ends of the multiple battery packs connected in series are connected to the negative power supply end of the external device, and the battery pack is used to power the control module.

[0010] In an optional embodiment, the key function detection circuit also includes: a battery voltage monitoring module, a battery temperature monitoring module, a battery code identification module, and a battery power display module, wherein the input end of the battery voltage monitoring module is connected to the output end of the battery pack, the output end of the battery voltage monitoring module is connected to the input end of the control module, and the battery voltage monitoring module is used to obtain the output voltage of the battery pack and send it to the control module; the output end of the battery temperature monitoring module is connected to the input end of the control module, and the battery temperature monitoring module is used to obtain the temperature of the battery pack and send it to the control module; the input end of the battery code identification module is connected to the output end of the battery pack, the output end of the battery code identification module is connected to the input end of the control module, and the battery code identification module is used to obtain the code of the battery pack and send it to the control module; the input end of the battery power display module is connected to the output end of the control module, and the control module controls the battery power display module to display the current power of the battery pack based on the output voltage of the battery pack.

[0011] In an optional embodiment, the battery power display module includes: a plurality of LED lights, wherein the control module controls a corresponding number of LED lights to turn on based on the output voltage of the battery pack.

[0012] In an optional embodiment, the key function detection circuit also includes: a switching circuit, wherein the input end of the switching circuit is connected to the positive output end of the battery pack, the output end of the switching circuit is connected to the positive power supply end of the external device, the control end of the switching circuit is connected to the output end of the control module, and the negative power supply end of the external device is connected to the negative output end of the battery pack; the control module controls the power supply of the external device by controlling the on-off state of the switching circuit; when the control module determines that the battery pack is abnormal based on the output voltage and temperature of the battery pack, the control module controls the switching circuit to disconnect.

[0013] In an alternative embodiment, the key function detection circuit further comprises: a tool switch and a tool temperature monitoring module, wherein the power supply end of the control module is connected with the output end of the battery pack through the tool switch, and the tool switch is used for controlling the power supply of the control module; the output end of the tool temperature monitoring module is connected with the input end of the control module, and the tool temperature monitoring module is used for monitoring the temperature of the external device.

[0014] In an alternative embodiment, the key function detection circuit further comprises: a man-machine interface, wherein the function key and the battery power display module are connected with the voltage detection module and the control module respectively through the man-machine interface.

[0015] In a second aspect, the utility model provides a kind of motor drive circuit, comprising: the key function detection circuit of the partial alternative embodiment of first aspect, multiple function keys and drive circuit, wherein the input end of the control module is connected with the output end of the voltage detection module, the output end of the control module is connected with the control end of the drive circuit, and the voltage detection module is connected with multiple function keys;The positive supply end of the drive circuit is connected with the output end of the switching circuit, the negative supply end of the drive circuit is connected with the negative output end of the battery pack, and the output end of the drive circuit is connected with motor;Multiple detection voltages corresponding control command are pre-stored in the control module, control command is one-to-one with the function indicated by function key, and control command is used to control the operating state of drive circuit;When a certain function key is pressed, the voltage detection module outputs corresponding amplitude detection voltage to the control module, the control module identifies detection voltage and outputs corresponding control command, and the drive circuit is based on control command to drive the rotation state of motor. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the specific embodiments of the utility model or the technical solutions in the prior art, the drawings needed in the specific embodiments or prior art description will be briefly introduced below. Obviously, the drawings described below are some embodiments of the utility model, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.

[0017] Figure 1 It is the composition diagram of the key function detection circuit according to the embodiment of the utility model;

[0018] Figure 2 It is the composition diagram of another key function detection circuit according to the embodiment of the utility model;

[0019] Figure 3 It is the composition diagram of another key function detection circuit according to the embodiment of the utility model;

[0020] Figure 4 is another key function detection circuit according to an embodiment of the utility model;

[0021] Figure 5 is another key function detection circuit according of the utility model embodiment;

[0022] Figure 6 is another key function detection circuit according to an embodiment of the utility model;

[0023] Figure 7 is another key function detection circuit according to an embodiment of the utility model;

[0024] Figure 8 is the component diagram of motor drive circuit according to an embodiment of the utility model. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical scheme and advantage of the utility model embodiment clearer, the technical scheme in the utility model embodiment will be described clearly and completely below in conjunction with the drawings in the utility model embodiment. Obviously, the described embodiments are part of the embodiments of the utility model, not all the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by the person skilled in the art without creative labor belong to the protection scope of the utility model.

[0026] A key function detection circuit 1 is provided in the embodiment, as shown in Figure 1 , comprising: control module 101, voltage detection module 102. The input end of control module 101 is connected with the output end of voltage detection module 102, the output end of control module 101 is connected with the control end of external device, and voltage detection module 102 is connected with multiple function keys 2, wherein the external device can be the drive circuit of motor.

[0027] Specifically, a plurality of detection voltages corresponding control commands are pre-stored in control module 101, the control command is one-to-one corresponding with the function indicated by function key 2, and the control command is used to control the running state of external device.

[0028] Exemplarily, if there are forward rotation function key, reverse rotation function key and stop rotation function key, the detection voltage of forward rotation function key is 1V, the detection voltage of reverse rotation function key is 2V, and the detection voltage of stop rotation function key is 3V, and the control commands corresponding to the pre-stored 1V, 2V and 3V detection voltages are forward rotation control command, reverse rotation control command and stop rotation control command respectively. But only as an example, not as a limitation.

[0029] Specifically, when a certain function button 2 is pressed, the voltage detection module 102 outputs a detection voltage of corresponding amplitude to the control module 101 , and the control module 101 identifies the detection voltage and outputs a corresponding control command.

[0030] For example, if there is a forward function button, a reverse function button, and a stop function button, the detection voltage of the forward function button pre-stored in the control module 101 is 1V, the detection voltage of the reverse function button is 2V, and the detection voltage of the stop function button is 3V. When the voltage detection module 102 detects that the forward function button is pressed, the voltage detection module 102 outputs a 1V voltage to the control module 101. When the control module 101 recognizes that the received detection voltage is 1V, the control module 101 outputs the forward control command to the external device.

[0031] Optionally, multiple voltage detection modules 102 can be set up, the output end of each voltage detection module 102 is connected to an input end of the control module 101, and the input end of each voltage detection module 102 is connected to a group of function buttons 2, wherein each group of function buttons 2 includes multiple function buttons 2, for example: the function buttons 2 for controlling the rotation direction of the motor are one group, and the function buttons 2 for controlling the speed of the motor are one group.

[0032] It should be noted that the methods of outputting control instructions involved in the control module are all mature methods in the relevant technology and will not be described in detail here.

[0033] In some optional embodiments, the control module 101 includes an MCU chip. Specifically, one pin of the MCU chip is connected to the output end of one voltage detection module 102, and one input end of the voltage detection module 102 is connected to multiple function keys 2, thereby achieving on-demand control of external devices even when the number of MCU chip pins is insufficient.

[0034] In some optional embodiments, such as Figure 2 As shown, the voltage detection module 102 includes: multiple voltage divider circuits 1021, wherein the input end of each voltage divider circuit 1021 is connected to a function key 2, and the output end of each voltage divider circuit 1021 is connected to the input end of the control module 101; each voltage divider circuit 1021 divides the supply voltage to obtain a detection voltage of different amplitudes.

[0035] Specifically, the function button 2 can actually control the power supply of the voltage divider circuit 1021 at the same time, that is, the voltage divider circuit 1021 inputs the power supply voltage through the function button 2. When a function button 2 is pressed, the voltage divider circuit 1021 is powered and divides the power supply voltage and then transmits it to the control module 101.

[0036] Specifically, in order to make the function key 2 correspond to the detection voltage of corresponding amplitude, the voltage divider circuit 1021 should realize different degrees of voltage division of the supply voltage. Optionally, each voltage divider circuit 1021 may include resistors with different resistance values.

[0037] In some optional embodiments, the key function detection circuit 1 also includes: a power supply module, the power supply module includes at least one battery pack 103, wherein the output end of the battery pack 103 is connected to the power supply end of the control module 101, and the battery pack 103 is used to power the control module 101.

[0038] like Figure 3 As shown, when only one battery pack is included, the positive output terminal of the battery pack is connected to the power supply terminal of the control module and the positive power supply terminal of the external device, and the negative output terminal of the battery pack is connected to the negative power supply terminal of the external device. The battery pack is used to power the control module;

[0039] When multiple battery packs are included, the positive output terminals of the multiple battery packs connected in series are connected to the power supply terminal of the control module and the positive power supply terminal of the external device, and the negative output terminals of the multiple battery packs connected in series are connected to the negative power supply terminal of the external device. The battery packs are used to power the control module.

[0040] Optionally, since the control module 101 can be an MCU chip, a DC-DC circuit can be added between the battery pack 103 and the control module 101. The DC-DC circuit can convert the output voltage of the battery pack 103 into the power supply voltage of the control module 101.

[0041] In some optional embodiments, such as Figure 4 As shown, the key function detection circuit 1 further includes: a battery voltage monitoring module 104 , a battery temperature monitoring module 105 , a battery code identification module 106 , and a battery power display module 107 .

[0042] like Figure 4 As shown, the input end of the battery voltage monitoring module 104 is connected to the output end of the battery pack 103, and the output end of the battery voltage monitoring module 104 is connected to the input end of the control module 101. The battery voltage monitoring module 104 is used to obtain the output voltage of the battery pack 103 and send it to the control module 101.

[0043] Specifically, the control module 101 determines the battery voltage status based on the output voltage of the battery pack 103. When the battery voltage is abnormal, the control module 101 can issue a corresponding alarm signal and take appropriate rescue measures. For example, when the control module 101 determines that the battery pack 103 is low on power, it controls the status of the battery power display module 107 to indicate low power.

[0044] like Figure 4As shown, the output end of the battery temperature monitoring module 105 is connected to the input end of the control module 101 . The battery temperature monitoring module 105 is used to obtain the temperature of the battery pack 103 and send it to the control module 101 .

[0045] Specifically, the control module 101 determines whether the battery pack 103 is abnormal based on the temperature of the battery pack 103 . When the battery pack 103 is abnormal, the control module 101 may cut off the main circuit.

[0046] like Figure 4 As shown, the input end of the battery code identification module 106 is connected to the output end of the battery pack 103, and the output end of the battery code identification module 106 is connected to the input end of the control module 101. The battery code identification module 106 is used to obtain the code of the battery pack 103 and send it to the control module 101.

[0047] Specifically, in order to adapt to various battery packs 103, the control module 101 pre-stores parameters of multiple types of battery packs 103 to determine the status of the battery pack 103. Among them, the battery code identification module 106 sends the code of the battery pack 103 to the control module 101, and the control module 101 retrieves the corresponding battery pack 103 parameters according to the code of the battery pack 103.

[0048] like Figure 4 As shown, the input end of the battery power display module 107 is connected to the output end of the control module 101 , and the control module 101 controls the battery power display module 107 to display the current power of the battery pack 103 based on the output voltage of the battery pack 103 .

[0049] Optionally, the battery power display module 107 includes: a plurality of LED lights, wherein the control module 101 controls a corresponding number of LED lights to turn on based on the output voltage of the battery pack 103 .

[0050] Exemplarily, the battery power display module 107 has 3 LED lights. When all 3 are on, it means the battery is fully charged. When 2 are on at the same time, it means the battery is medium. When only 1 is on, it means the battery is low. When only 1 is on and flashes continuously, it means the battery is insufficient and needs to be charged.

[0051] In some optional embodiments, such as Figure 5 As shown, the key function detection circuit 1 further includes: a switch circuit 108, wherein the input end of the switch circuit 108 is connected to the positive output end of the battery pack 103, the output end of the switch circuit 108 is connected to the positive power supply end of the external device, the control end of the switch circuit 108 is connected to the output end of the control module 101, and the negative power supply end of the external device is connected to the negative output end of the battery pack 103;

[0052] Specifically, the control module 101 controls the power supply of the external device by controlling the on / off state of the switch circuit 108; when the control module 101 determines that the battery pack 103 is abnormal based on the output voltage and temperature of the battery pack 103, the control module 101 controls the switch circuit 108 to be disconnected.

[0053] Optionally, the switching circuit 108 includes a boost circuit, a MOS transistor, and a MOS transistor drive circuit. The control circuit outputs a control voltage to the boost circuit, which can be a turn-on voltage or a turn-off voltage. The boost circuit boosts the control voltage and sends it to the MOS transistor drive circuit. The MOS transistor drive circuit converts the voltage into a drive voltage and drives the MOS transistor on or off. When the MOS transistor is turned on, the positive power supply terminal of the external device is connected to the positive output terminal of the battery pack 103. When the MOS transistor is turned off, the positive power supply terminal of the external device is disconnected from the positive output terminal of the battery pack 103.

[0054] In some optional embodiments, such as Figure 6 As shown, the key function detection circuit 1 also includes: a tool switch 109 and a tool temperature monitoring module 110, wherein the power supply end of the control module 101 is connected to the output end of the battery pack 103 through the tool switch 109, and the tool switch 109 is used to control the power supply of the control module 101; the output end of the tool temperature monitoring module 110 is connected to the input end of the control module 101, and the tool temperature monitoring module 110 is used to monitor the temperature of the external device.

[0055] In some optional embodiments, such as Figure 7 As shown, the key function detection circuit 1 further includes: a human-machine interaction interface 111 , wherein the function key 2 and the battery power display module 107 are connected to the voltage detection module 102 and the control module 101 respectively through the human-machine interaction interface 111 .

[0056] Optionally, the voltage detection module 102 may be disposed inside the human-machine interaction interface 111 , and the human-machine interaction interface 111 may transmit a control signal to the battery power display module 107 .

[0057] In some optional implementations, multiple fuses may be provided at the output end of the battery pack 103 and the control end of the control module 101 to promptly cut off the power supply when the voltage is too high.

[0058] In some optional embodiments, the tool switch 109 can also be connected to the control end of the human-computer interaction interface 111. When the tool switch 109 is closed, the human-computer interaction interface 111 is powered on and started; when the tool switch 109 is turned off, the human-computer interaction interface 111 loses power and stops.

[0059] In this embodiment, a motor driving circuit is provided. Figure 8As shown, it includes: a key function detection circuit 1 of some optional implementation methods of the above embodiments, multiple function keys 2 and a driving circuit 3.

[0060] The input end of the control module 101 is connected to the output end of the voltage detection module 102, the output end of the control module 101 is connected to the control end of the drive circuit 3, and the voltage detection module 102 is connected to the plurality of function buttons 2;

[0061] The positive power supply terminal of the drive circuit 3 is connected to the output terminal of the switch circuit 108, the negative power supply terminal of the drive circuit 3 is connected to the negative output terminal of the battery pack 103, and the output terminal of the drive circuit 3 is connected to the motor;

[0062] The control module 101 internally stores a plurality of control commands corresponding to the detection voltages. The control commands correspond one-to-one to the functions indicated by the function buttons 2. The control commands are used to control the operating state of the drive circuit 3.

[0063] When a function button 2 is pressed, the voltage detection module 102 outputs a detection voltage of corresponding amplitude to the control module 101. The control module 101 identifies the detection voltage and outputs a corresponding control command. The drive circuit 3 drives the rotation state of the motor based on the control command.

[0064] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations shall fall within the scope defined by the appended claims.

Claims

1. A key function detection circuit, characterized in that: include: Control module, voltage detection module, among which, The input end of the control module is connected to the output end of the voltage detection module, the output end of the control module is connected to the control end of the external device, and the voltage detection module is connected to a plurality of function keys; The control module pre-stores a plurality of control commands corresponding to the detection voltages, the control commands corresponding one to one to the functions indicated by the function buttons, and the control commands are used to control the operating state of the external device; When a certain function key is pressed, the voltage detection module outputs a detection voltage of corresponding amplitude to the control module, and the control module identifies the detection voltage and outputs a corresponding control command.

2. The key function detection circuit according to claim 1, characterized in that: The control module includes an MCU chip.

3. The key function detection circuit according to claim 1, characterized in that: The voltage detection module includes: a plurality of voltage dividing circuits, wherein: The input end of each voltage divider circuit is connected to one of the function keys, and the output end of each voltage divider circuit is connected to the input end of the control module; Each of the voltage divider circuits divides the supply voltage to obtain detection voltages of different amplitudes.

4. The key function detection circuit according to claim 3, characterized in that: It also includes a power supply module, which includes: at least one battery pack, wherein: When only one battery pack is included, the positive output terminal of the battery pack is connected to the power supply terminal of the control module and the positive power supply terminal of the external device, and the negative output terminal of the battery pack is connected to the negative power supply terminal of the external device, and the battery pack is used to power the control module; When multiple battery packs are included, the positive output terminals of the multiple battery packs connected in series are connected to the power supply terminal of the control module and the positive power supply terminal of the external device, and the negative output terminals of the multiple battery packs connected in series are connected to the negative power supply terminal of the external device, and the battery packs are used to power the control module; The output end of the battery pack is connected to the power supply end of the control module, and the battery pack is used to supply power to the control module.

5. The key function detection circuit according to claim 4, characterized in that: Also includes: Battery voltage monitoring module, battery temperature monitoring module, battery code identification module, battery power display module, among which, The input end of the battery voltage monitoring module is connected to the output end of the battery pack, and the output end of the battery voltage monitoring module is connected to the input end of the control module. The battery voltage monitoring module is used to obtain the output voltage of the battery pack and send it to the control module; The output end of the battery temperature monitoring module is connected to the input end of the control module, and the battery temperature monitoring module is used to obtain the temperature of the battery pack and send it to the control module; The input end of the battery code identification module is connected to the output end of the battery pack, and the output end of the battery code identification module is connected to the input end of the control module. The battery code identification module is used to obtain the code of the battery pack and send it to the control module; The input end of the battery power display module is connected to the output end of the control module, and the control module controls the battery power display module to display the current power of the battery pack based on the output voltage of the battery pack.

6. The key function detection circuit according to claim 5, characterized in that: The battery power display module includes: a plurality of LED lights, wherein: The control module controls a corresponding number of LED lights to turn on based on the output voltage of the battery pack.

7. The key function detection circuit according to claim 5, characterized in that: Also includes: Switching circuit, where The input end of the switch circuit is connected to the positive output end of the battery pack, the output end of the switch circuit is connected to the positive power supply end of the external device, the control end of the switch circuit is connected to the output end of the control module, and the negative power supply end of the external device is connected to the negative output end of the battery pack; The control module controls the power supply of the external device by controlling the on / off state of the switch circuit; When the control module determines that the battery pack is abnormal based on the output voltage and temperature of the battery pack, the control module controls the switch circuit to be disconnected.

8. The key function detection circuit according to claim 7, characterized in that: Also includes: Tool switch and tool temperature monitoring module, including: The power supply end of the control module is connected to the output end of the battery pack through the tool switch, and the tool switch is used to control the power supply of the control module; The output end of the tool temperature monitoring module is connected to the input end of the control module, and the tool temperature monitoring module is used to monitor the temperature of the external device.

9. The key function detection circuit according to claim 7, characterized in that: Also includes: Human-computer interaction interface, where The function buttons and the battery power display module are respectively connected to the voltage detection module and the control module through the human-computer interaction interface.

10. A motor drive circuit, characterized in that: include: The key function detection circuit, multiple function keys and driving circuit according to any one of claims 7 to 9, wherein: The input end of the control module is connected to the output end of the voltage detection module, the output end of the control module is connected to the control end of the drive circuit, and the voltage detection module is connected to a plurality of function keys; The positive power supply terminal of the drive circuit is connected to the output terminal of the switch circuit, the negative power supply terminal of the drive circuit is connected to the negative output terminal of the battery pack, and the output terminal of the drive circuit is connected to the motor; The control module pre-stores a plurality of control commands corresponding to the detection voltages, the control commands corresponding one to one to the functions indicated by the function buttons, and the control commands are used to control the operating state of the drive circuit; When a certain function button is pressed, the voltage detection module outputs a detection voltage of corresponding amplitude to the control module. The control module identifies the detection voltage and outputs a corresponding control command. The drive circuit drives the rotation state of the motor based on the control command.