Mode switching method of electric tool, controller and electric tool

Through the cooperation of Hall sensing components and adjustment mechanism, the power tool automatically switches the mode, which solves the problem of labor-intensive switching of traditional mechanical dials, and realizes flexible and labor-saving mode switching.

CN120269504APending Publication Date: 2025-07-08SHENZHEN FANTTIK TECHNOLOGY INNOVATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510284368.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-11
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

Mode switching of traditional power tools is achieved through mechanical dials, resulting in laborious operation and inflexible enough.

Method used

The Hall sensing component and adjustment mechanism are used to determine the target mode type through the mode switching command, and the control mechanism changes the transmission ratio, and the Hall detection signal is used to confirm that the mode switching is successful, generating the switching successful information.

Benefits of technology

It realizes the automation and flexibility of power tool mode switching, which is more labor-saving and more convenient to use than traditional mechanical dials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120269504A_ABST
    Figure CN120269504A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of electric tools, in particular to a mode switching method of an electric tool, a controller and the electric tool, and the method comprises the steps: responding to a mode switching command, determining a target mode type, and controlling an adjusting mechanism to move an inner gear ring according to a target moving direction based on the target mode type, the transmission ratio of the transmission assembly is switched to the transmission ratio matched with the target mode type, a first Hall detection signal sent by the Hall sensing assembly is obtained, and the first Hall detection signal is obtained by detecting the current position of the inner gear ring through the Hall sensing assembly; and in response to the first Hall detection signal, indicating that the current position of the inner gear ring is at the target position matched with the target mode type, controlling the driving mechanism and the adjusting mechanism to stop working, and generating mode switching success information. According to the embodiment, the technical problem that mode switching of the electric tool is strenuous when a mechanical toggle button is used can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of power tools, and in particular, to a method for switching modes of a power tool, a controller, and a power tool. Background Art

[0002] As an efficient tool, power tools play an important role in industrial production and daily life. They can switch different working modes according to different working environments. Currently, they mainly include a screw mode and a drill mode. The screw mode uses low-speed and high-torque output to control the tightening of screws, and the drill mode uses high-speed and low-torque output to drill holes in materials such as wood and metal, achieving precise holes through the rotation and cutting of the drill bit.

[0003] In the traditional mode switching scheme of power tools, mode switching is usually achieved by a mechanical knob. Pushing the mechanical knob changes the transmission ratio of the gears inside the drill through a mechanical structure, thereby achieving different rotational speed outputs and mode switching. However, pushing the mechanical knob is laborious and not flexible enough, causing inconvenience in use. Summary of the Invention

[0004] An object of embodiments of the present application is to provide a method for switching modes of a power tool, a controller, and a power tool, so as to solve the technical problem that it is too laborious to use a mechanical knob to switch the mode of a power tool.

[0005] To solve the above technical problems, embodiments of the present application provide the following technical solutions:

[0006] In a first aspect, embodiments of the present application provide a method for switching modes of a power tool. The power tool includes an internal gear ring, a transmission assembly, a driving mechanism, an adjusting mechanism, and a Hall sensing assembly. The mode switching method includes:

[0007] Respond to a mode switching command and determine the target mode type;

[0008] Based on the target mode type, control the adjusting mechanism to move the internal gear ring in the target moving direction, so as to switch the transmission ratio of the transmission assembly to a transmission ratio matching the target mode type;

[0009] Obtain a first Hall detection signal sent by the Hall sensing assembly, where the first Hall detection signal is obtained by the Hall sensing assembly detecting the current position of the internal gear ring;

[0010] Respond to the first Hall detection signal indicating that the current position of the internal gear ring is already at a target position matching the target mode type, control the driving mechanism and the adjusting mechanism to stop working, and generate a mode switching success message.

[0011] In some embodiments, the target mode type includes a screwdriver mode or a drill mode, the target movement direction includes a first movement direction or a second movement direction, and controlling the adjustment mechanism to move the internal gear ring in the target movement direction based on the target mode type to switch the transmission ratio of the transmission assembly to a transmission ratio matching the target mode type includes:

[0012] In response to the target mode type being the screwdriver mode, controlling the adjustment mechanism to drive the internal gear ring to move in the first movement direction so as to set the transmission ratio of the transmission assembly to a first transmission ratio;

[0013] In response to the target mode type being the drill mode, controlling the adjustment mechanism to drive the internal gear ring to move in the second movement direction so as to set the transmission ratio of the transmission assembly to a second transmission ratio, and the second transmission ratio is less than the first transmission ratio.

[0014] In some embodiments, the first Hall detection signal includes a first type of Hall signal, a second type of Hall signal, and a third type of Hall signal, the target position includes a first position and a second position, and the target mode type includes a screwdriver mode or a drill mode;

[0015] The first type of Hall signal is used to indicate that the current position of the internal gear ring is already at the first position corresponding to the screwdriver mode;

[0016] The second type of Hall signal is used to indicate that the current position of the internal gear ring is already at the second position corresponding to the drill mode;

[0017] The third type of Hall signal is used to indicate that the current position of the internal gear ring is not at the target position matching the target mode type.

[0018] In some embodiments, the power tool further includes a mounting assembly. After responding to the mode switching command and before driving the internal gear ring to move, it further includes:

[0019] Controlling the drive mechanism to drive the transmission assembly to drive the mounting assembly to clamp the working accessory to rotate for a first preset duration at a first preset rotational speed.

[0020] In some embodiments, the mode switching method further includes:

[0021] In response to the first Hall detection signal indicating that the current position of the internal gear ring is not at the target position matching the target mode type, controlling the drive mechanism to stop working, and controlling the adjustment mechanism to drive the internal gear ring to move in the reverse direction opposite to the target movement direction for a second preset duration.

[0022] After the reverse movement of the internal gear ring ends, control the adjusting mechanism to drive the internal gear ring to move forward in the target movement direction for a third preset duration;

[0023] Obtain a second Hall detection signal sent by the Hall sensing component, where the second Hall detection signal is obtained by the Hall sensing component detecting the forward movement of the internal gear ring;

[0024] In response to the second Hall detection signal indicating that the current position of the internal gear ring is already at the target position matching the target mode type, control the driving mechanism and the adjusting mechanism to stop working, and generate a mode switching success message.

[0025] In some embodiments, the third preset duration is greater than the second preset duration.

[0026] In some embodiments, after generating the mode switching success message, it further includes:

[0027] In response to the power tool entering the screw mode and starting to enter the working state, obtain the first driving current output by the driving mechanism to the transmission component within a preset start preparation time;

[0028] In response to the first driving current being continuously greater than or equal to the first preset current threshold within a fourth preset duration, control the driving mechanism to stop working.

[0029] In some embodiments, after generating the mode switching success message, it further includes:

[0030] In response to the power tool entering the screw mode and having worked for a fifth preset duration, obtain the second driving current output by the driving mechanism to the transmission component every sixth preset duration within a preset penetration monitoring time;

[0031] Calculate the first current difference between every two adjacent second driving currents;

[0032] In response to the first specified number of first current differences all being greater than the second preset current threshold, control the driving mechanism to stop working;

[0033] Or,

[0034] In response to the power tool entering the drill mode and starting to enter the working state, obtain the third driving current output by the driving mechanism to the transmission component every seventh preset duration within a preset perforation monitoring time;

[0035] Calculate the second current difference between every two adjacent third driving currents;

[0036] When the second current differences corresponding to the second specified quantity are all greater than the third preset current threshold and each of the third driving currents is greater than the preset standby current, control the driving mechanism to stop working.

[0037] In some embodiments, the screwdriver mode includes an automatic screwdriver mode or a normal screwdriver mode, the drill mode includes an automatic drill mode or a normal drill mode, the mode switching command includes a mode selection command and a status mode command, the power tool includes an interaction component, and the responding to the mode switching command to determine the target mode type includes:

[0038] Responding to the mode switching operation received by the interaction component, obtain the mode selection command;

[0039] Responding to the status switching operation received by the interaction component, obtain the status mode command;

[0040] Responding to the mode selection command indicating the screwdriver mode and the status mode command indicating the automatic mode, determine the automatic screwdriver mode as the target mode type;

[0041] Responding to the mode selection command indicating the screwdriver mode and the status mode command indicating the normal mode, determine the normal screwdriver mode as the target mode type;

[0042] Responding to the mode selection command indicating the drill mode and the status mode command indicating the automatic mode, determine the automatic drill mode as the target mode type;

[0043] Responding to the mode selection command indicating the drill mode and the status mode command indicating the normal mode, determine the normal drill mode as the target mode type.

[0044] In a second aspect, an embodiment of the present application provides a controller, including:

[0045] At least one processor, and

[0046] A memory, the memory is communicatively connected to the at least one processor, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the mode switching method of the power tool as described in the first aspect above.

[0047] In a third aspect, an embodiment of the present application provides a power tool, including a mounting assembly, an internal gear ring, a transmission assembly, a driving mechanism, an adjusting mechanism, a Hall sensing assembly, and a controller as described in the second aspect above. The transmission assembly is respectively connected to the mounting assembly and the driving mechanism, and is configured to be driven by the driving mechanism to drive the mounting assembly to hold a working accessory and rotate. The internal gear ring is meshed and connected to the transmission assembly. The adjusting mechanism is connected to the internal gear ring and is configured to control the internal gear ring to change the transmission ratio of the transmission assembly. The Hall sensing assembly is configured to detect the current position of the internal gear ring. The controller is respectively electrically connected to the driving mechanism, the adjusting mechanism, and the Hall sensing assembly.

[0048] The embodiments of the present application can achieve the following technical effects: Different from the prior art, the mode switching method of the power tool provided by the embodiments of the present application determines the target mode type by responding to a mode switching command, controls the adjusting mechanism to change the transmission ratio based on the target mode type to perform mode switching, uses the Hall detection signal to determine the success of mode switching, controls the driving mechanism and the adjusting mechanism to stop working, and generates a mode switching success message. It can automatically implement the mode switching of the power tool by inputting a mode switching command, and can confirm the success of mode switching through the Hall signal. Compared with the traditional mechanical knob switching, it is more labor-saving, flexible, and convenient to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0050] Figure 1 is a schematic structural diagram of a power tool provided by some embodiments of the present application;

[0051] Figure 2 is an exploded structural diagram of a power tool provided by some embodiments of the present application;

[0052] Figure 3 is a cross-sectional structural view of a power tool provided by some embodiments of the present application;

[0053] Figure 4 is a circuit principle structural block diagram of a power tool provided by some embodiments of the present application;

[0054] Figure 5 is a circuit structural schematic diagram of an adjusting mechanism of a power tool provided by some embodiments of the present application;

[0055] Figure 6It is a schematic circuit diagram of a Hall sensing component of a power tool provided by some embodiments of the present application;

[0056] Figure 7 It is a schematic flowchart of a mode switching method for a power tool in some embodiments of the present application;

[0057] Figure 8 It is a schematic diagram of the structure of a controller in a power tool provided by some embodiments of the present application. Detailed implementation manners

[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0059] It should be noted that if there is no conflict, the various features in the embodiments of the present application can be combined with each other, and all are within the protection scope of the present application. In addition, although functional module division is performed in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the sequence in the flowchart. Furthermore, the terms "first", "second", "third", etc. used in the present application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0060] As an efficient tool, power tools play an important role in industrial production and daily life. It can switch different working modes according to different working environments. Currently, it mainly includes a screw mode and a drill mode. The screw mode adopts low speed and high torque output for controlling screw tightening, and the drill mode adopts high speed and low torque output for drilling holes in materials such as wood and metal, and achieving precise holes through the rotation and cutting of the drill bit.

[0061] In the traditional mode switching scheme of power tools, mode switching is usually achieved through a mechanical knob. By pushing the mechanical knob, the transmission ratio of the gears inside the drill is changed by using a mechanical structure, so as to achieve different rotational speed outputs and realize mode switching. However, pushing the mechanical knob is relatively laborious and not flexible enough, which brings inconvenience in use.

[0062] In view of this, an embodiment of the present application provides a method for switching modes of a power tool. By responding to a mode switching command, the target mode type is determined, and based on the target mode type, the adjustment mechanism is controlled to change the transmission ratio for mode switching. The Hall detection signal is used to determine the success of mode switching, and the drive mechanism and the adjustment mechanism are controlled to stop working, and a mode switching success message is generated. The mode switching of the power tool can be automatically realized by inputting a mode switching command, and the success of mode switching can be confirmed by the Hall signal. Compared with the traditional mechanical knob switching, it is more labor-saving, flexible and convenient to use.

[0063] To facilitate the understanding of the mode switching method of the power tool provided by the embodiment of the present application, hereinafter, an embodiment of the present application provides a power tool. It can be understood that the mode switching method of the power tool provided below can be applied to various suitable types of power tools, and is not limited to the power tools provided in the following embodiments.

[0064] Please refer to Figure 1-4 , Figure 1 which schematically shows the structural diagram of the power tool provided by some embodiments of the present application. Figure 2 which schematically shows the exploded view of the structure of the power tool provided by some embodiments of the present application. Figure 3 which schematically shows the cross-sectional view of the structure of the power tool provided by some embodiments of the present application. Figure 4 which schematically shows the circuit principle block diagram of the power tool provided by some embodiments of the present application.

[0065] As Figure 1-4 shown, the power tool 100 includes: an adjustment mechanism 11, a drive mechanism 12, a Hall sensing assembly 13, a controller 14, a mounting assembly 15, an internal gear ring 16, and a transmission assembly 17.

[0066] The transmission assembly 17 is respectively connected to the mounting assembly 15 and the drive mechanism 12, and is configured to be driven by the drive mechanism 12 to drive the mounting assembly 15 to hold a working accessory and rotate. The internal gear ring 16 is meshed and connected to the transmission assembly 17. The adjustment mechanism 11 is connected to the internal gear ring 16 and is configured to control the internal gear ring 16 to change the transmission ratio of the transmission assembly 17. The Hall sensing assembly 13 is configured to detect the moving position of the internal gear ring 16.

[0067] The adjustment mechanism 11 is connected to the internal gear ring 16, and the adjustment mechanism 11 is electrically connected to the controller 14. The adjustment mechanism 11 is used to move the internal gear ring 16 in the target moving direction under the control of the controller 14, so that the internal gear ring is in a fixed state or a rotating state to change the transmission ratio of the transmission assembly 17, and to adjust the rotational speed of the drive mechanism 12 driving the transmission mechanism 17 to drive the mounting assembly 15 to hold the working accessory and rotate. In some embodiments, the adjustment mechanism 11 is a DC motor.

[0068] In some embodiments, the adjusting mechanism 11 is a DC motor. Please refer to Figure 5 , and the adjusting mechanism 11 is driven by Figure 5 the DC motor drive circuit shown.

[0069] In this embodiment, the driving of the DC motor, i.e., the adjusting mechanism 11, uses AT8236 for control. AT8236 is a DC brushed motor driver that can bidirectionally control the motor with a peak current of up to 6A. Using the current decay mode, the motor speed can be controlled by pulse width modulation (PWM) of the input signal, and it also has a low-power sleep mode.

[0070] As Figure 5 shown, the power supply enters the circuit through the R12 resistor and then is respectively connected to the two motor drive input terminals DC_M_IN1 and DC_M_IN2. The forward and reverse rotation of the DC motor is controlled by controlling the states of the input signals DC_M_IN1 and DC_M_IN2. When DC_M_IN1 and DC_M_IN2 are both high level or low level at the same time, the DC motor does not operate. When DC_M_IN1 is high level and DC_M_IN2 is low level, the DC motor rotates forward. When DC_M_IN1 is low level and DC_M_IN2 is high level, the DC motor rotates in reverse.

[0071] The IN1 and IN2 pins of the main control chip AT8236 receive the input signals, and the OUT1 and OUT2 pins are directly connected to the motor. The internal structure of the chip switches the current direction through the H-bridge structure to achieve the forward and reverse rotation of the motor. The VM pin of the chip is connected to the main power supply, and the VREF pin provides an internal reference voltage. The resistors R14 and R15 are used to limit the current to prevent the chip from being overloaded. The resistor R11 is used to detect the motor current and feedback it to the ISEN pin to achieve overcurrent protection. Multiple capacitors C17 - C25 are used to filter out power fluctuations and maintain voltage stability.

[0072] It can be understood that Figure 7 only schematically shows the motor drive circuit provided by some embodiments of the present application, and those skilled in the art can allocate the drive circuit for driving the adjusting mechanism 11 according to the design requirements.

[0073] The driving mechanism 12 is connected to the transmission assembly 17, the driving mechanism 12 is electrically connected to the controller 14, and the driving mechanism 12 is used to provide power for the transmission assembly 17. Under the control of the controller 14, it drives the transmission assembly 17 to drive the mounting assembly 15 to hold the working attachment and rotate. In some embodiments, the driving mechanism 12 is a brushless motor.

[0074] The Hall sensing component 13 is electrically connected to the controller 14. The Hall sensing component 13 is used to detect the moving position of the internal gear ring 16, generate a Hall signal, and send the Hall signal to the controller 14. In some embodiments, when the internal gear ring moves to a specified position, the Hall sensing component generates a Hall signal and sends the Hall signal to the controller.

[0075] In some embodiments, the Hall sensing component 13 includes two Hall sensors and a magnet. The magnet is arranged on the internal gear ring 16. The two Hall sensors are arranged at intervals on the mounting shell in front of the internal gear ring. When the internal gear ring 16 rotates, the Hall sensors detect the position of the internal gear ring through the magnet, generate a Hall signal, and the Hall sensors are connected to the controller 14 to send the Hall signal to the controller 14. In some embodiments, the rotation of the internal gear ring 16 drives the magnet to move. When the magnet moves to a specified position, the Hall sensor generates a Hall signal. In some embodiments, the Hall signals generated by the two Hall sensors are different. When the internal gear ring 16 moves to the first position, the first Hall sensor detects the magnet and generates a first Hall signal; when the internal gear ring 16 moves to the second position, the second Hall sensor detects the magnet and generates a second Hall signal; the position of the internal gear ring can be determined by the type of Hall signal.

[0076] In some embodiments, the Hall sensing component 13 includes two Hall sensors and a magnet. The magnet is arranged on the mounting shell in front of the internal gear ring. The two Hall sensors are arranged at intervals on the internal gear ring 16. It should be understood that the Hall sensing component 13 can also be any other suitable device capable of detecting the moving position of the internal gear ring 16. Those skilled in the art can select any suitable device as the Hall sensing component according to actual needs, and the embodiments of the present application do not make any limitations in this regard.

[0077] In some embodiments, please refer to Figure 6 , the Hall sensing component 13 detects the Hall signal through the Hall signal detection circuit as shown in Figure 6 .

[0078] Among them, the voltage is detected through the sampling port HALL_AD1, and it is connected to the Hall sensor through the connector JC15. In this embodiment, the Hall sensing component 13 includes two Hall sensors and an induction magnet. It is connected to the Hall sensor 1 through the interface 2 of the connector JC15 to receive the Hall signal H1, and is connected to the Hall sensor 2 through the interface 3 to receive the Hall signal H2. The Hall sensor outputs a Hall signal by identifying the induction magnet. If the induction magnet is not recognized, the output Hall signal is at a high level, and if the induction magnet is recognized, the output Hall signal is at a low level.

[0079] Specifically, when the detected voltage of HALL_AD1 is 1.6 ± 0.3V, the Hall signal H2 is at a low level, and the Hall sensor 2 recognizes the induction magnet. At this time, the power tool is in the drill mode. When the detected voltage of HALL_AD1 is 2.5 ± 0.3V, the Hall signal H1 is at a low level, and the Hall sensor 1 recognizes the induction magnet. At this time, the power tool is in the screwdriver mode. When the detected voltage of HALL_AD1 is other voltage values, the detection is abnormal, and the Hall sensor does not recognize the correct Hall signal.

[0080] It can be understood that Figure 6 only schematically shows the Hall signal detection circuit provided by some embodiments of the present application. Those skilled in the art can deploy the detection circuit for detecting the Hall signal according to design requirements.

[0081] The controller 14 is electrically connected to the adjustment mechanism 11, the drive mechanism 12, and the Hall sensing assembly 13 respectively. The controller 14 is used to control the start and stop of the adjustment mechanism 11 and the start and stop of the drive mechanism 12. When the power tool needs to be used, the controller 14 controls the drive mechanism 12 to start running, and the drive mechanism 12 drives the transmission mechanism 17 to drive the mounting assembly 15 to clamp the working accessory and rotate.

[0082] The power tool 100 includes two operating modes with different rotation speeds. The user can control the operating mode switch. By sending a mode switch command to the controller 14, the controller 14 obtains the mode switch command, determines the mode to be switched according to the mode switch command, controls the adjustment mechanism 11 to start moving the internal gear ring 16 in the target direction, changes the transmission ratio of the transmission assembly 17, and adjusts the rotation speed of the drive mechanism 12 driving the transmission mechanism 17 to drive the mounting assembly 15 to clamp the working accessory and rotate, so as to change the operating mode of the power tool.

[0083] The controller 14 is also used to receive the Hall detection signal sent by the Hall sensing assembly 13. During the process of mode switching, the controller 14 receives the Hall detection signal sent by the Hall sensing assembly 13. If it is determined that the internal gear ring 16 reaches the specified position through the Hall detection signal, that is, it is determined that the power tool 100 has been switched to the target mode, the controller 14 controls the adjustment mechanism 11 and the drive mechanism 12 to stop running.

[0084] The controller 14 is also used to generate a mode switch success message after the operating mode of the power tool 100 is switched. The controller 14 receives the Hall detection signal sent by the Hall sensing assembly 13. If it is determined that the internal gear ring 16 reaches the specified position through the Hall detection signal, that is, it is determined that the power tool 100 has been switched to the target mode, the position of the internal gear ring 16 is determined according to the Hall detection signal, and a mode switch success message is generated.

[0085] The mounting assembly 15 is connected to the transmission mechanism 17. The mounting assembly 15 clamps the working attachment, and is used to clamp the working attachment and rotate it under the drive of the transmission mechanism 17. It should be noted that the type of the working attachment clamped by the mounting assembly 15 can be selected according to the user's needs. For example, it can be a drill bit, or a screwdriver, or of course others.

[0086] The internal gear ring 16 is connected to the adjusting mechanism 11 and meshed with the transmission assembly 17. The internal gear ring 16 is used to move to different positions under the drive of the adjusting mechanism 11 to change the transmission ratio of the transmission assembly 17. In some embodiments, the power tool 100 further includes a mounting shell. The internal gear ring 16 moves to different positions and is clamped or unclamped with the mounting shell under the drive of the adjusting mechanism 11, so as to adjust the transmission ratio of the transmission assembly 17, thereby adjusting the rotation speed of the mounting assembly 15.

[0087] The transmission assembly 17 is respectively connected to the mounting assembly 15 and the driving mechanism 12, and is configured to be driven by the driving mechanism 12 to drive the mounting assembly 15 to clamp the working attachment and rotate. The transmission assembly 17 is meshed with the internal gear ring 16. When the internal gear ring 16 is in different positions, the transmission assembly 17 provides different transmission ratios.

[0088] It should be understood that Figure 1-4 only some embodiments of the power tool 100 provided by the present application are schematically shown, which does not impose any limitation on the structure, type, etc. of the power tool in other some embodiments. The power tool may also have more or fewer components than Figure 1-4 the power tool 100 shown, or have a configuration different from that of Figure 1-4 the power tool 100 shown.

[0089] It can be understood that the mode switching method of the power tool provided by the embodiments of the present application is not only applicable to the power tools provided by the above-mentioned various embodiments, but also applicable to other types of power tools. The embodiments of the present application do not make any limitation thereto.

[0090] Hereinafter, the embodiments of the present application provide a mode switching method for a power tool.

[0091] Please refer to Figure 7 , Figure 7 which shows a schematic flowchart of the mode switching method of the power tool provided by some embodiments of the present application.

[0092] As Figure 7 shown, the mode switching method of the power tool includes but is not limited to the following steps S100 - S400:

[0093] S100: Respond to the mode switching command and determine the target mode type.

[0094] In this step, the mode switching command is a command indicating mode switching, and the target mode type is the mode type to which it is desired to switch.

[0095] In some embodiments, the power tool includes an interaction component. The power tool provides the function of mode switching through the interaction component, and determines the target mode type in response to the mode switching command. For example, the power tool provides an interaction component, and the user selects mode switching through the input method provided by the interaction component (such as a touch screen, button selection, voice command, etc.), and issues a mode switching command.

[0096] In some embodiments, the interaction component includes a mode switching button, and generates a mode switching command in response to the mode switching button being pressed.

[0097] In this step, a mode switching button is provided on the power tool, and the user can control mode switching by pressing the mode switching button. For example, the user can indicate the power tool to perform mode switching by clicking the mode button.

[0098] In some embodiments, the target mode types include a screw file mode and a drill file mode. The screw file mode outputs at a low speed and high torque for controlling screw tightening, and the drill file mode outputs at a high speed and low torque for drilling.

[0099] In some embodiments, the power tool further includes a mounting component. In step S100, after responding to the mode switching command, and before step S200 of driving the internal gear ring to move, the mode switching method further includes but is not limited to the following step S110:

[0100] S110: Control the drive mechanism to drive the transmission component to drive the mounting component to clamp the working accessory and rotate for a first preset duration at a first preset speed.

[0101] In this step, after responding to the mode switching command, control the drive mechanism to drive the transmission component to drive the mounting component to clamp the working accessory and rotate for a first preset duration at a first preset speed. Among them, the mounting component is used to clamp the working accessory and rotates the working accessory under the drive of the transmission mechanism. The first preset speed is a relatively low speed set in advance. The first preset duration is a preset duration. In some embodiments, the first preset duration is 250 ms.

[0102] In this example, before controlling the internal gear ring to move to switch the mode of the power tool, controlling the drive mechanism to run at a low speed for a period of time can make the internal gear ring meshed and connected with the transmission component, and to a certain extent, avoid the components of the transmission component and the internal gear ring being meshed too tightly, which affects the movement of the internal gear ring, and facilitates the subsequent control of the adjustment mechanism to move the internal gear ring and adjust the transmission ratio of the transmission component.

[0103] S200: Based on the target mode type, control the adjusting mechanism to move the internal gear ring in the target moving direction, so as to switch the transmission ratio of the transmission assembly to the transmission ratio matching the target mode type.

[0104] In this step, after determining the target mode type, determine the target moving direction according to the target moving type, control the adjusting mechanism to move the internal gear ring in the target moving direction, change the transmission ratio of the transmission assembly, and make the transmission ratio of the transmission assembly the same as the transmission ratio of the target mode type.

[0105] Among them, the target moving direction is the direction in which the internal gear ring needs to move, and this direction is determined according to the target mode type. The adjusting mechanism is used to drive the internal gear ring to move. The internal gear ring is used to move to different positions under the drive of the adjusting mechanism to change the transmission ratio of the transmission assembly. The transmission assembly is used to drive the working accessory of the power tool to rotate so that the power tool works. The transmission ratio determines the output speed and torque of the power tool. Under different transmission ratios of the transmission assembly, the power tool works at different speeds.

[0106] In some embodiments, the target mode type includes a screw file mode or a drill file mode, the target moving direction includes a first moving direction or a second moving direction. Step S200, based on the target mode type, control the adjusting mechanism to move the internal gear ring in the target moving direction, so as to switch the transmission ratio of the transmission assembly to the transmission ratio matching the target mode type, includes but is not limited to the following steps S210 - S220:

[0107] S210: In response to the target mode type being the screw file mode, control the adjusting mechanism to drive the internal gear ring to move in the first moving direction, so as to set the transmission ratio of the transmission assembly to the first transmission ratio.

[0108] In this step, the target mode type includes a screw file mode or a drill file mode. After determining that the target mode type is the screw file mode, determine the target moving direction as the first moving direction, control the adjusting mechanism to drive the internal gear ring to move in the first moving direction, and set the transmission ratio of the transmission assembly to the first transmission ratio, so that the power tool outputs a speed matching the screw file mode during work. Among them, the first transmission ratio is the transmission ratio that can make the power tool output the screw file speed. The first moving direction is the moving direction that can make the internal gear ring set the transmission ratio of the transmission assembly to the first transmission ratio.

[0109] S220: In response to the target mode type being the drill file mode, control the adjusting mechanism to drive the internal gear ring to move in the second moving direction, so as to set the transmission ratio of the transmission assembly to the second transmission ratio, and the second transmission ratio is less than the first transmission ratio.

[0110] In this step, after determining that the target mode type is the electric drill gear mode, determine the target moving direction as the second moving direction, control the adjusting mechanism to drive the internal gear ring to move in the second moving direction, and set the transmission ratio of the transmission component to the second transmission ratio, so that the power tool outputs a rotational speed matching the electric drill gear mode during operation. Among them, the second transmission ratio is the transmission ratio that can make the power tool output the electric drill gear rotational speed, the second transmission ratio is less than the first transmission ratio, and the rotational speed of the screw gear mode is less than the rotational speed of the electric drill gear mode. The second moving direction is the moving direction that can make the internal gear ring set the transmission ratio of the transmission component to the second transmission ratio.

[0111] In this embodiment, by determining whether the target mode type is the screw gear mode or the electric drill gear mode, determining the target moving direction, and controlling the adjusting mechanism to drive the internal gear ring to move in the first moving direction or the second moving direction, so as to set the transmission ratio of the transmission component to the first transmission ratio or the second transmission ratio, so that the power tool switches to the target mode type. This method does not require manual adjustment to change the mode and can automatically switch the power tool to the screw gear mode / electric drill gear mode.

[0112] S300: Obtain the first Hall detection signal sent by the Hall sensing component.

[0113] In this step, during the process of controlling the adjusting mechanism to move the internal gear ring in the target moving direction based on the target mode type, the Hall signal is detected by the Hall sensing component, and the first Hall detection signal sent by the Hall sensing component is obtained. Among them, the Hall sensing component is arranged on the power tool and is used to detect the Hall signal. The first Hall detection signal is obtained by the Hall sensing component detecting the current position of the internal gear ring and is used to indicate the position of the internal gear ring.

[0114] In some embodiments, the first Hall detection signal includes a first type of Hall signal, a second type of Hall signal, and a third type of Hall signal, the target positions include a first position and a second position, and the target mode type includes a screw gear mode or an electric drill gear mode;

[0115] The first type of Hall signal is used to indicate that the current position of the internal gear ring has reached the first position corresponding to the screw gear mode;

[0116] The second type of Hall signal is used to indicate that the current position of the internal gear ring has reached the second position corresponding to the electric drill gear mode;

[0117] The third type of Hall signal is used to indicate that the current position of the internal gear ring is not at the target position matching the target mode type.

[0118] In this step, the first Hall detection signal includes three types of Hall signals. The position of the internal gear ring can be determined according to the specific type of the first Hall detection signal, so as to determine whether the power tool has completed the mode switch and what specific mode the power tool is in. If the first Hall detection signal is the first type of Hall signal, it is determined that the power tool has successfully switched to the screwdriver mode or is currently in the screwdriver mode. If the first Hall detection signal is the second type of Hall signal, it is determined that the power tool has successfully switched to the drill mode or is currently in the drill mode. If the first Hall detection signal is the third type of Hall signal, it is determined that the power tool has not completed the mode switch.

[0119] In some embodiments, the first Hall detection signal is detected by a Hall signal detection circuit. The voltage values of the first type of Hall signal, the second type of Hall signal, and the third type of Hall signal are different, and the first type of Hall signal, the second type of Hall signal, and the third type of Hall signal can be distinguished by the voltage values.

[0120] S400: In response to the first Hall detection signal indicating that the current position of the internal gear ring is at the target position matching the target mode type, control the drive mechanism and the adjustment mechanism to stop working, and generate a mode switch success message.

[0121] In this step, in response to the first Hall detection signal indicating that the current position of the internal gear ring is at the target position matching the target mode type, that is, it is determined that the power tool has switched to the target mode type, then control the drive motor and the adjustment mechanism to stop working, and generate a mode switch success message. Among them, the mode switch success message is used to indicate that the power tool has successfully switched the mode.

[0122] In some embodiments, the mode switch success message includes mode information, and the mode information is the mode of the power tool after successfully switching the mode.

[0123] In some embodiments, the power tool includes an interaction component, and after generating the mode switch success message, the mode switch information is displayed through the interaction component.

[0124] In some embodiments, the mode switch method specifically includes: responding to a mode switch command, determining that the target mode type is the screwdriver mode; in response to the target mode type being the screwdriver mode, controlling the adjustment mechanism to drive the internal gear ring to move in the first moving direction to set the transmission ratio of the transmission component to the first transmission ratio; obtaining the first type of Hall signal sent by the Hall sensing component, in response to the first type of Hall signal, determining that the mode has been successfully switched to the screwdriver mode, controlling the drive mechanism and the adjustment mechanism to stop working, and generating a mode switch success message.

[0125] In some embodiments, the mode switching method specifically includes: responding to a mode switching command, determining that the target mode type is the electric drill mode; in response to the target mode type being the electric drill mode, controlling the adjusting mechanism to drive the internal gear ring to move in a second moving direction, so as to set the transmission ratio of the transmission assembly to a second transmission ratio; obtaining a second type of Hall signal sent by the Hall sensing assembly, in response to the second type of Hall signal, determining that the electric drill mode is successfully switched, controlling the driving mechanism and the adjusting mechanism to stop working, and generating a mode switching success message.

[0126] In this embodiment, by responding to the mode switching command, determining the target mode type, controlling the adjusting mechanism to change the transmission ratio based on the target mode type to perform mode switching, using the Hall detection signal to determine the success of mode switching, controlling the driving mechanism and the adjusting mechanism to stop working, and generating a mode switching success message, the mode switching of the power tool can be automatically realized by inputting the mode switching command, and the success of mode switching can be confirmed by the Hall signal. Compared with the traditional mechanical dial switching, it is more labor-saving and flexible, and is convenient to use.

[0127] In some embodiments, the mode switching method of the power tool further includes but is not limited to the following steps S510 - S540:

[0128] S510: In response to the first Hall detection signal indicating that the current position of the internal gear ring is not at the target position matching the target mode type, controlling the driving mechanism to stop working, and controlling the adjusting mechanism to drive the internal gear ring to move in a reverse direction opposite to the target moving direction for a second preset duration;

[0129] In this step, after obtaining the first Hall detection signal sent by the Hall sensor, in response to the first Hall detection signal indicating that the current position of the internal gear ring is not at the target position matching the target mode type, that is, determining that the power tool has not been successfully switched to the target mode type, then controlling the driving mechanism to stop working, and controlling the adjusting mechanism to drive the internal gear ring to move in a reverse direction opposite to the target moving direction for a second preset duration. Wherein, the second preset duration is the duration for the internal gear ring to move in the reverse direction.

[0130] In some embodiments, the first Hall detection signal includes a third type of Hall signal, and the third type of Hall signal is used to indicate that the current position of the internal gear ring is not at the target position matching the target mode type;

[0131] The response that the first Hall detection signal indicates that the current position of the internal gear ring is not at the target position matching the target mode type includes: responding that all the first Hall detection signals sent by the Hall sensing component within a preset switching duration are the third type of Hall signals, and the preset switching duration is the preset duration for mode switching and Hall signal detection. It should be understood that only when the Hall signals detected within a period of time are all the third type of Hall signals is it considered that the internal gear ring has not moved in place and the power tool has not successfully switched the mode.

[0132] S520: After the internal gear ring finishes moving in the reverse direction, control the adjusting mechanism to drive the internal gear ring to move forward in the target moving direction according to a third preset duration;

[0133] In this step, after the internal gear ring moves in the reverse direction (opposite to the target moving direction) for a second preset duration, control the adjusting mechanism to drive the internal gear ring to move forward in the target moving direction according to a third preset duration. Among them, the third preset duration is the duration required for the internal gear ring to move forward after finishing moving in the reverse direction.

[0134] In some embodiments, the third preset duration is greater than the second preset duration.

[0135] In this embodiment, by controlling the reverse rotation time of the internal gear ring to be less than the forward rotation time, the matching efficiency of the internal gear ring can be improved, which helps to move the internal gear ring to a position matching the target position of the target mode type more quickly.

[0136] S530: Obtain the second Hall detection signal sent by the Hall sensing component, where the second Hall detection signal is obtained by the Hall sensing component detecting the forward movement of the internal gear ring;

[0137] In this step, during the process of controlling the adjusting mechanism to drive the internal gear ring to move forward in the target moving direction according to a third preset duration, the Hall sensing component detects the internal gear ring to obtain the second Hall detection signal.

[0138] S540: Responding that the second Hall detection signal indicates that the current position of the internal gear ring is already at the target position matching the target mode type, control the driving mechanism and the adjusting mechanism to stop working, and generate a mode switching success message.

[0139] In this step, responding that the second Hall detection signal sent by the Hall sensing component indicates that the current position of the internal gear ring is already at the target position matching the target mode type, control the driving mechanism and the adjusting mechanism to stop working, and generate a mode switching success message.

[0140] In some embodiments, the second Hall detection signal includes a first type of Hall signal and a second type of Hall signal. The first type of Hall signal is used to indicate that the current position of the internal gear ring has reached the first position corresponding to the screw file mode; the second type of Hall signal is used to indicate that the current position of the internal gear ring has reached the second position corresponding to the drill file mode. Step S540 includes: in response to the second Hall detection signal being the first type of Hall signal or the second type of Hall signal, controlling the drive mechanism and the adjustment mechanism to stop working, and generating a mode switching success message.

[0141] In this embodiment, after the mode switching of the power tool fails, by first reversing and then forward rotating the internal gear ring, attempting to switch the mode again, and performing Hall detection, determining that the mode switching is successful through the second Hall detection signal, controlling the drive mechanism and the adjustment mechanism to stop working, and generating a mode switching success message, more efficient mode switching is achieved, and the success rate of mode switching is improved.

[0142] In some embodiments, after obtaining the second Hall detection signal sent by the Hall sensing component in step S530, the method includes but is not limited to the following steps S550 - S560;

[0143] S550; In response to the second Hall detection signal indicating that the current position of the internal gear ring is not at the target position matching the target mode type, return to the step of controlling the adjustment mechanism to drive the internal gear ring to move in the reverse direction opposite to the target movement direction for a second preset duration.

[0144] In this step, if it is determined according to the detected second Hall detection signal that the position of the internal gear ring is not in place, repeat steps S510 - S520 to make the internal gear ring rotate forward and backward repeatedly until it is determined through the second Hall sensing signal that the position of the internal gear ring is in place, that is, the current position of the internal gear ring matches the target position of the target mode type.

[0145] S560; When the total movement duration of the internal gear ring is greater than or equal to the preset duration threshold, control the drive mechanism and the adjustment mechanism to stop working, and generate a mode switching failure message. The total movement duration is the sum of the first total duration of the reverse movement of the internal gear ring and the second total duration of the forward movement.

[0146] In this step, control the internal gear ring to adjust its position by forward and backward rotation. If after the preset duration threshold, the position of the internal gear ring is still not in place, that is, in response to the second Hall detection signal indicating that the current position of the internal gear ring is not at the target position matching the target mode type, control the drive mechanism and the adjustment mechanism to stop working, and generate a mode switching failure message. The mode switching failure message is used to indicate that the mode switching of the power tool fails.

[0147] In some embodiments, the power tool includes an interaction component. After generating the mode switching failure message, display the mode switching failure message through the interaction component.

[0148] In some embodiments, after generating the mode switching success information in step S400, the method includes but is not limited to the following steps S610 - S620:

[0149] S610: In response to the power tool entering the screw mode and starting to enter the working state, obtain the first driving current output by the driving mechanism to the transmission component within a preset start - up preparation time.

[0150] S620: In response to the first driving current being greater than or equal to the first preset current threshold continuously within a fourth preset duration, control the driving mechanism to stop working.

[0151] In this step, in response to the power tool entering the screw mode and starting to enter the working state, within the start - up preparation time at the beginning of work, detect the first driving current. If the first driving current is greater than or equal to the first preset current threshold continuously within a fourth preset duration, then control the driving mechanism to stop working. It should be understood that when the power tool starts up, in order to prevent the problem of the screw being sunk again by restarting the motor when the screw has already been driven to the bottom, fastening protection is performed.

[0152] In some embodiments, the preset start - up preparation time is 200 ms, the fourth preset duration is 15 ms, and the first preset current threshold is 16 A. In this step, detect the first driving current within the first 200 ms of the power tool's work. If the first driving current is greater than 16 A and lasts for 15 ms, immediately control the driving mechanism to stop working.

[0153] In this embodiment, by detecting the first driving current and performing fastening protection, the problem of the screw being sunk again by restarting the motor when the screw has already been driven to the bottom can be prevented. After detecting that the screw has been driven to the bottom, the machine will automatically stop, achieving protection.

[0154] In some embodiments, after generating the mode switching success information in step S400, the method includes but is not limited to the following steps S630 - S650:

[0155] S630: In response to the power tool entering the screw mode and having worked for a fifth preset duration, obtain the second driving current output by the driving mechanism to the transmission component every sixth preset duration.

[0156] S640: Calculate the first current difference between every two adjacent second driving currents.

[0157] S650: In response to the first specified number of first current differences all being greater than the second preset current threshold, control the driving mechanism to stop working.

[0158] In this step, if the power tool is in the screw mode, after the fifth preset duration of operation, monitor the second driving current of the power tool. Obtain the second driving current output by the driving mechanism to the transmission component every sixth preset duration, and calculate the first current difference between every two adjacent second driving currents. If the first current differences for a consecutive number of times, i.e., the first specified number of first current differences, are all greater than the second preset current threshold, it is considered that the screw has been driven to the end, and control the driving mechanism to stop working to achieve the automatic shutdown function.

[0159] Among them, the fifth preset duration is greater than the startup preparation time, and the fifth preset duration is the time required for the power tool to reach driving stability. The penetration monitoring time is the time when the power tool operates in the screw mode. The sixth preset duration is the current extraction interval duration.

[0160] In some embodiments, the sixth preset duration is 15 ms, and the first specified number is four times. For example, the method specifically includes: when the power tool enters the screw mode and stabilizes after working for a period of time, sample the driving current every 15 ms during the operation of the power tool in the screw mode, calculate the change amount between every two current values, and if the change amounts between the currents for four consecutive times are all greater than the preset value, it is determined that the screw has been driven to the end, and control the driving mechanism to stop working.

[0161] In this embodiment, by sampling the driving current and calculating the current difference, the situation where the screw is driven to the end can be identified and the power tool can be automatically shut down to achieve protection and realize the self-stop function of the screw mode.

[0162] In some embodiments, after step S400 to generate the mode switching success information, the method includes but is not limited to the following steps S660 - S680:

[0163] S660: In response to the power tool entering the drill mode and starting to enter the working state, obtain the third driving current output by the driving mechanism to the transmission component every seventh preset duration within the preset penetration monitoring time.

[0164] S670: Calculate the second current difference between every two adjacent third driving currents.

[0165] S680: In response to the second specified number of second current differences being all greater than the third preset current threshold and each third driving current being greater than the preset standby current, control the driving mechanism to stop working.

[0166] In this step, if the power tool is in the drill mode, within the preset perforation monitoring time, monitor the third driving current of the power tool. Obtain the third driving current output by the driving mechanism to the transmission component every seventh preset time interval, and calculate the second current difference between every two adjacent third driving currents. If the second current differences of a continuous multiple times, that is, the second specified number of times, are all greater than the third preset current threshold, and each third driving current is greater than the preset standby current, it is considered that the drilled hole has been penetrated, and control the driving mechanism to stop working to achieve the automatic shutdown function.

[0167] Among them, the perforation monitoring time is the time when the power tool works in the drill mode. The seventh preset time interval is the current extraction interval time.

[0168] In some embodiments, the seventh preset time interval is 30 ms, and the second specified number is four times. For example, the method specifically includes: when the power tool enters the drill mode and stabilizes, sample the driving current every 30 ms during the operation of the power tool in the drill mode, calculate the change amount between every two current values. If the change amounts between the currents for four consecutive times are all greater than the preset value, it is determined that the drilled hole has been penetrated, and control the driving mechanism to stop working.

[0169] In this embodiment, by sampling the driving current and calculating the current difference, the situation of hole penetration during drilling can be identified and the power tool can be automatically shut down, realizing the self-stop function of the drill mode.

[0170] In some embodiments, the screw mode includes an automatic screw mode or a normal screw mode, the drill mode includes an automatic drill mode or a normal drill mode, the mode switching command includes a mode selection command and a status mode command, the power tool includes an interaction component. Step S100, in response to the mode switching command, determining the target mode type includes:

[0171] In response to the mode switching operation received by the interaction component, obtain the mode selection command;

[0172] In response to the status switching operation received by the interaction component, obtain the status mode command;

[0173] In response to the mode selection command indicating the screw mode and the status mode command indicating the automatic mode, determine the automatic screw mode as the target mode type;

[0174] In response to the mode selection command indicating the screw mode and the status mode command indicating the normal mode, determine the normal screw mode as the target mode type;

[0175] In response to the mode selection command indicating the drill mode and the status mode command indicating the automatic mode, determine the automatic drill mode as the target mode type;

[0176] The response mode selection command is used to represent the drill file mode, and the status mode command is used to represent the normal mode. It is determined that the normal drill file mode is the target mode type.

[0177] In this step, the target mode type of the power tool can be selected through the interaction component. The mode selection command is used to represent whether to select the screwdriver file mode or the drill file mode, and the status mode command is used to represent whether to select the automatic mode or the normal mode. Among them, the automatic mode is the mode including the self-stop function, and the normal mode is the mode without the self-stop function.

[0178] In some embodiments, the interaction component includes a display screen. The mode switching operation and the status switching operation are performed through the display screen, that is, the screwdriver file mode or the drill file mode and the normal mode or the automatic or automatic mode are selected through the display screen.

[0179] In some embodiments, the interaction component includes a mode switching button. In some embodiments, the mode switching operation is to click the mode switching button. In some embodiments, the status switching operation is to long-press the mode switching button. In some embodiments, it is detected that the mode switching button is clicked. If the current power tool is in the screwdriver file mode, the mode selection command is used to represent the drill file mode; if the current power tool is in the drill file mode, the mode selection command is used to represent the screwdriver file mode; In some embodiments, it is detected that the mode switching button is long-pressed for a first duration (for example, 2 seconds). If the current power tool is in the normal mode, the status mode command is used to represent the automatic mode; if the current power tool is in the automatic mode, the status mode command is used to represent the normal mode.

[0180] In this embodiment, through the mode switching operation and the status switching operation received by the interaction component, the target mode type can be determined, which is convenient for subsequent mode switching and can realize simple and effortless selection and switching of the mode.

[0181] In summary, the mode switching method of the power tool provided by the embodiments of the present application determines the target mode type by responding to the mode switching command, controls the adjustment mechanism to change the transmission ratio based on the target mode type for mode switching, uses the Hall detection signal to determine the success of mode switching, controls the drive mechanism and the adjustment mechanism to stop working, and generates a mode switching success message. The mode switching of the power tool can be automatically realized by inputting the mode switching command, and the success of mode switching can be confirmed by the Hall signal. Compared with the traditional mechanical dial switch, it is more labor-saving and flexible and convenient to use.

[0182] It should be noted that in the above various embodiments, there is not necessarily a certain sequence between the above steps. Those of ordinary skill in the art can understand according to the description of the embodiments of the present application that in different embodiments, the above steps can have different execution sequences, that is, they can be executed in parallel or exchanged, etc.

[0183] As another aspect of the embodiments of the present application, the embodiments of the present application provide a mode switching device. Among them, the mode switching device may be a software module, and the software module includes a number of instructions stored in a memory. The processor can access the memory and call the instructions for execution to complete the mode switching method described in each of the above embodiments.

[0184] In some embodiments, the mode switching device can also be built by hardware devices. For example, the mode switching device can be built by one or more than two chips, and each chip can work in coordination with each other to complete the mode switching method described in each of the above embodiments. For another example, the mode switching device can also be built by various logic devices, such as built by a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine), or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0185] It should be noted that the above mode switching device can execute the mode switching method provided by the embodiments of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For the technical details not described in detail in the embodiments of the mode switching device, reference can be made to the mode switching method provided by the embodiments of the present application.

[0186] It should be noted that the above mode switching device can execute the mode switching method provided by the embodiments of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For the technical details not described in detail in the embodiments of the mode switching device, reference can be made to the mode switching method provided by the embodiments of the present application.

[0187] See Figure 8 , Figure 8 is a schematic structural diagram of a controller in a power tool provided by an embodiment of the present application. The controller 400 includes one or more processors 41 and a memory 42. The memory 42 is connected to one or more processors 41, for example, connected to the processor 41 through a bus.

[0188] The processor 41 is configured to support the computer device in performing the corresponding functions in the methods in the above method embodiments. The processor 41 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The above hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The above PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0189] The memory 42 is used to store program codes and the like. The memory 42 may include a volatile memory (VM), such as a random access memory (RAM); the memory 42 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the memory 42 may further include a combination of the above types of memories.

[0190] The memory 42 can be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as the program instructions / modules corresponding to the mode switching method in the embodiments of the present application. The processor 41 executes various functional applications and data processing of the mode switching method and the mode switching device by running the non-volatile software programs, instructions, and modules stored in the memory 42, that is, realizes the functions of each module or unit of the mode switching method and the mode switching device provided in the above method embodiments.

[0191] The memory 42 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store data created according to the use of the mode switching device and the like. In some embodiments, the memory 42 may optionally include a memory remotely provided with respect to the processor 41, and these remote memories may be connected to the mode switching device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0192] The one or more modules are stored in the memory 42 and, when executed by the one or more processors 41, perform the mode switching method in any of the above method embodiments. For example, the method steps described in the above method embodiments are executed to implement the functions of the modules described in the above device embodiments.

[0193] An embodiment of the present application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the program instructions, when executed by a computer, cause the computer to execute the method as described in the foregoing embodiments.

[0194] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, it may include the processes of the above method embodiments. Among them, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like.

[0195] The foregoing disclosure is only for the preferred embodiments of the present application, and of course cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.

Claims

1. A mode switching method for a power tool, characterized in that, The power tool includes an internal gear ring, a transmission assembly, a driving mechanism, an adjusting mechanism, and a Hall sensing assembly. The mode switching method includes: Responding to a mode switching command to determine the target mode type; Based on the target mode type, controlling the adjusting mechanism to move the internal gear ring in a target moving direction to switch the transmission ratio of the transmission assembly to a transmission ratio matching the target mode type; Obtaining a first Hall detection signal sent by the Hall sensing assembly, where the first Hall detection signal is obtained by the Hall sensing assembly detecting the current position of the internal gear ring; Responding to the first Hall detection signal indicating that the current position of the internal gear ring is already at a target position matching the target mode type, controlling the driving mechanism and the adjusting mechanism to stop working, and generating a mode switching success message.

2. The mode switching method according to claim 1, wherein The target mode type includes a screwdriver mode or a drill mode, and the target moving direction includes a first moving direction or a second moving direction. Controlling the adjusting mechanism to move the internal gear ring in the target moving direction based on the target mode type to switch the transmission ratio of the transmission assembly to a transmission ratio matching the target mode type includes: Responding to the target mode type being the screwdriver mode, controlling the adjusting mechanism to drive the internal gear ring to move in the first moving direction to set the transmission ratio of the transmission assembly to a first transmission ratio; Responding to the target mode type being the drill mode, controlling the adjusting mechanism to drive the internal gear ring to move in the second moving direction to set the transmission ratio of the transmission assembly to a second transmission ratio, where the second transmission ratio is less than the first transmission ratio.

3. The mode switching method according to claim 1, wherein: The first Hall detection signal includes a first type of Hall signal, a second type of Hall signal, and a third type of Hall signal. The target position includes a first position and a second position, and the target mode type includes a screwdriver mode or a drill mode; The first type of Hall signal is used to indicate that the current position of the internal gear ring is already at the first position corresponding to the screwdriver mode; The second type of Hall signal is used to indicate that the current position of the internal gear ring is already at the second position corresponding to the drill mode; The third type of Hall signal is used to indicate that the current position of the internal gear ring is not at the target position matching the target mode type.

4. The mode switching method according to claim 1, wherein The power tool further includes a mounting assembly. After responding to the mode switching command and before driving the internal gear ring to move, it further includes: Controlling the driving mechanism to drive the transmission assembly to drive the mounting assembly to clamp a working accessory and rotate for a first preset duration at a first preset rotational speed.

5. The mode switching method according to claim 4, wherein It further includes: Responding to the first Hall detection signal indicating that the current position of the internal gear ring is not at the target position matching the target mode type, controlling the driving mechanism to stop working, and controlling the adjusting mechanism to drive the internal gear ring to move in a reverse direction opposite to the target moving direction for a second preset duration; After the reverse movement of the internal gear ring ends, control the adjusting mechanism to drive the internal gear ring to move forward in the target movement direction for a third preset duration; Obtain a second Hall detection signal sent by the Hall sensing component, where the second Hall detection signal is obtained by the Hall sensing component detecting the forward movement of the internal gear ring; In response to the second Hall detection signal indicating that the current position of the internal gear ring is at a target position matching the target mode type, control the driving mechanism and the adjusting mechanism to stop working, and generate a mode switching success message.

6. The mode switching method according to claim 5, wherein The third preset duration is greater than the second preset duration.

7. The mode switching method according to any one of claims 1 to 6, characterized in that, After generating the mode switching success message, it further includes: In response to the power tool entering the screw mode and starting to enter the working state, obtain a first driving current output by the driving mechanism to the transmission component within a preset start preparation time; In response to the first driving current being continuously greater than or equal to a first preset current threshold within a fourth preset duration, control the driving mechanism to stop working.

8. The mode switching method according to any one of claims 1 to 6, characterized in that, After generating the mode switching success message, it further includes: In response to the power tool entering the screw mode and having worked for a fifth preset duration, obtain a second driving current output by the driving mechanism to the transmission component every sixth preset duration within a preset penetration monitoring time; Calculate a first current difference between every two adjacent second driving currents; In response to a first specified number of first current differences all being greater than a second preset current threshold, control the driving mechanism to stop working; Or, In response to the power tool entering the drill mode and starting to enter the working state, obtain a third driving current output by the driving mechanism to the transmission component every seventh preset duration within a preset perforation monitoring time; Calculate a second current difference between every two adjacent third driving currents; In response to a second specified number of second current differences all being greater than a third preset current threshold and each third driving current being greater than a preset standby current, control the driving mechanism to stop working.

9. The mode switching method according to any one of claims 1 to 6, characterized in that, The screw mode includes an automatic screw mode or a normal screw mode, the drill mode includes an automatic drill mode or a normal drill mode, the mode switching command includes a mode selection command and a status mode command, the power tool includes an interaction component, and the response to the mode switching command to determine the target mode type includes: In response to a mode switching operation received by the interaction component, obtain a mode selection command; In response to a status switching operation received by the interaction component, obtain a status mode command; In response to the mode selection command being used to indicate the screw mode and the status mode command being used to indicate the automatic mode, determine the automatic screw mode as the target mode type; In response to the mode selection command being used to indicate the screw mode and the status mode command being used to indicate the normal mode, determine the normal screw mode as the target mode type; In response to the mode selection command being used to indicate the drill mode and the status mode command being used to indicate the automatic mode, determine the automatic drill mode as the target mode type; In response to the mode selection command for indicating the electric drill gear mode and the status mode command for indicating the normal mode, determine that the normal electric drill gear mode is the target mode type.

10. A controller, characterized in that, Comprising: At least one processor, and A memory communicatively connected to the at least one processor, the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the mode switching method of the power tool according to any one of claims 1-9.

11. An electric tool, characterized in that, Comprising an installation component, an internal gear ring, a transmission component, a driving mechanism, an adjusting mechanism, a Hall sensing component and a controller according to claim 10, the transmission component is respectively connected to the installation component and the driving mechanism, and is configured to be driven by the driving mechanism to drive the installation component to clamp a working accessory to rotate, the internal gear ring is meshed and connected to the transmission component, the adjusting mechanism is connected to the internal gear ring, and is configured to control the internal gear ring to change the transmission ratio of the transmission component, the Hall sensing component is configured to detect the current position of the internal gear ring, and the controller is electrically connected to the driving mechanism, the adjusting mechanism and the Hall sensing component respectively.