CN117614315A - Motor control method, motor control device, electronic equipment and storage medium - Google Patents

Motor control method, motor control device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117614315A
CN117614315A CN202211724809.XA CN202211724809A CN117614315A CN 117614315 A CN117614315 A CN 117614315A CN 202211724809 A CN202211724809 A CN 202211724809A CN 117614315 A CN117614315 A CN 117614315A
Authority
CN
China
Prior art keywords
motor
module
driving voltage
pulse width
width modulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211724809.XA
Other languages
Chinese (zh)
Other versions
CN117614315B (en
Inventor
刘权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Stars Pulse Co Ltd
Original Assignee
Guangzhou Stars Pulse Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Stars Pulse Co Ltd filed Critical Guangzhou Stars Pulse Co Ltd
Priority to CN202211724809.XA priority Critical patent/CN117614315B/en
Publication of CN117614315A publication Critical patent/CN117614315A/en
Application granted granted Critical
Publication of CN117614315B publication Critical patent/CN117614315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/006Controlling linear motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/08Arrangements for controlling the speed or torque of a single motor

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Brushes (AREA)

Abstract

The application discloses a motor control method, a motor control device, electronic equipment and a storage medium. Wherein the method comprises the following steps: generating a first pulse width modulation signal in response to a starting instruction, controlling a power supply module to output a first driving voltage, detecting a pressure value received by a target position, and enabling a switching tube module to control a motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal; under the condition that the pressure value is larger than a first preset threshold value, generating a second pulse width modulation signal according to a working mode determined by responding to a preset condition in a micro-vibration mode, controlling a power supply module to output a second driving voltage larger than the first driving voltage, and enabling a switching tube module to control a motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal; the driving parameters of the first pulse width modulation signal are smaller than those of the second pulse width modulation signal, and by adjusting the sizes of the modulation signal and the driving voltage, the toothpaste can be prevented from splashing, and the electric energy loss can be saved.

Description

Motor control method, motor control device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a motor control method, a motor control device, an electronic device, and a storage medium.
Background
At present, in the process of using the electric toothbrush, toothpaste is generally applied first, and then the electric toothbrush is started. And after the user presses the switch button, the toothbrush can be started to work in the set tooth brushing mode immediately. Therefore, when the electric toothbrush is used by a user, the user generally presses the switch button after putting the brush head into the oral cavity to attach to the teeth after applying the toothpaste, and if the user does not notice that the brush head is not put into the oral cavity, the problem that the toothpaste splashes can be generated, so that great inconvenience is brought to the user during brushing teeth, and the use experience of the user is affected.
Disclosure of Invention
The embodiment of the application provides a motor control method, a motor control device, electronic equipment and a storage medium, which can better prevent the problem that the brush head and teeth are not attached to cause the splash of toothpaste after a user is well coated with toothpaste and starts an electric toothbrush by adjusting the pulse width modulation signal and the driving voltage, and can also save the loss of electric energy. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a motor control method, where the method includes:
Receiving a starting instruction, responding to the starting instruction, generating a first pulse width modulation signal, controlling a power supply module to output a first driving voltage, and detecting a pressure value received by a target position through a pressure detection module;
transmitting the first pulse width modulation signal to a switching tube module, and transmitting the first driving voltage to a motor through the power supply module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal;
in the micro-vibration mode, determining the working mode of the motor in response to a preset condition;
generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than a first preset threshold value, and controlling the power supply module to output a second driving voltage;
transmitting the second pulse width modulation signal to the switching tube module, and transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal;
The driving parameter of the first pulse width modulation signal is smaller than the driving parameter of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameter of the motor in the micro-vibration mode is smaller than the vibration parameter of the motor in the normal mode.
In one possible implementation manner, after the transmitting the first pwm signal to the switching tube module and the transmitting the first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the micro-vibration mode based on the first driving voltage according to the first pwm signal, the method further includes:
and controlling the motor to maintain the micro-vibration mode under the condition that the pressure value is smaller than or equal to the first preset threshold value.
In one possible implementation, the driving parameters include duty cycle and/or frequency.
In one possible implementation manner, the method further includes, after the transmitting the second pwm signal to the switching tube module and the transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal:
Detecting a pressure value received by the target position through the pressure detection module;
if the pressure value is smaller than a second preset threshold value, generating the first pulse width modulation signal and controlling the power module to output the first driving voltage;
transmitting the first pulse width modulation signal to a switching tube module, and transmitting the first driving voltage to a motor through the power supply module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal;
wherein the second preset threshold is less than or equal to the first preset threshold.
In one possible implementation manner, after the transmitting the first pwm signal to the switching tube module and the transmitting the first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the micro-vibration mode based on the first driving voltage according to the first pwm signal, the method further includes:
acquiring continuous micro-vibration working time corresponding to the micro-vibration mode;
and if the continuous micro-vibration working time length is longer than or equal to the first preset time length, controlling the motor to stop working.
In one possible implementation manner, the method further includes, after the transmitting the second pwm signal to the switching tube module and the transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal:
acquiring the total working time length corresponding to the normal mode;
and if the total working time length is greater than or equal to a second preset time length, controlling the motor to stop working.
In one possible implementation, the above method is applied to an electric toothbrush; the pressure value received by the target location is related to the pressure value received by the brush head of the electric toothbrush.
In one possible implementation manner, in the micro-vibration mode, the first pwm signals and the first driving voltages corresponding to the different operation modes are different;
or alternatively
In the micro-vibration mode, the first pulse width modulation signals and the first driving voltages corresponding to the different operation modes are the same.
In a second aspect, an embodiment of the present application provides a motor control device, where the motor control device includes:
The receiving module is used for receiving the starting instruction;
the first generation module is used for responding to the starting instruction and generating a first pulse width modulation signal;
the first control module is used for controlling the power supply module to output a first driving voltage;
the pressure detection module is used for detecting a pressure value received by the target position;
the first transmission module is used for transmitting the first pulse width modulation signal to the switching tube module and transmitting the first driving voltage to the motor through the power supply module so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal;
the determining module is used for responding to a preset condition to determine the working mode of the motor under the micro-vibration mode;
the second generation module is used for generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than the first preset threshold value;
the second control module is used for controlling the power supply module to output a second driving voltage under the condition that the pressure value is larger than the first preset threshold value;
the second transmission module is used for transmitting the second pulse width modulation signal to the switching tube module and transmitting the second driving voltage to the motor through the power supply module so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal;
The driving parameter of the first pulse width modulation signal is smaller than the driving parameter of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameter of the motor in the micro-vibration mode is smaller than the vibration parameter of the motor in the normal mode.
In one possible implementation manner, the motor control device further includes:
and the third control module is used for controlling the motor to maintain the micro-vibration mode under the condition that the pressure value is smaller than or equal to the first preset threshold value.
In one possible implementation, the driving parameters include duty cycle and/or frequency.
In one possible implementation manner, the motor control device further includes:
the third generation module is used for generating the first pulse width modulation signal and controlling the power supply module to output the first driving voltage if the pressure value is smaller than a second preset threshold value;
wherein the second preset threshold is less than or equal to the first preset threshold.
In one possible implementation manner, the motor control device further includes:
the first acquisition module is used for acquiring continuous micro-vibration working time length corresponding to the micro-vibration mode;
And the fourth control module is used for controlling the motor to stop working if the continuous micro-vibration working time length is longer than or equal to the first preset time length.
In one possible implementation manner, the motor control device further includes:
the second acquisition module is used for acquiring the total working time length corresponding to the normal mode;
and the fifth control module is used for controlling the motor to stop working if the total working time length is greater than or equal to a second preset time length.
In one possible implementation, the above method is applied to an electric toothbrush; the pressure value received by the target location is related to the pressure value received by the brush head of the electric toothbrush.
In one possible implementation manner, in the micro-vibration mode, the first pwm signals and the first driving voltages corresponding to the different operation modes are different;
or alternatively
In the micro-vibration mode, the first pulse width modulation signals and the first driving voltages corresponding to the different operation modes are the same.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor;
The memory is connected with the processor;
the memory is used for storing executable program codes;
the processor executes a program corresponding to the executable program code stored in the memory by reading the executable program code for performing the method steps provided by the first aspect of the embodiments or any one of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps provided by the first aspect of the embodiments of the present application or any one of the possible implementations of the first aspect.
The technical scheme provided by some embodiments of the present application has the beneficial effects that at least includes:
in one or more embodiments of the present application, a start command is received, a first pulse width modulation signal is generated in response to the start command, a power supply module is controlled to output a first driving voltage, and a pressure value received by a target position is detected by a pressure detection module; transmitting a first pulse width modulation signal to the switching tube module, and transmitting a first driving voltage to the motor through the power supply module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal; in the micro-vibration mode, determining the working mode of the motor in response to a preset condition; generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than a first preset threshold value, and controlling the power supply module to output a second driving voltage; transmitting a second pulse width modulation signal to the switching tube module, and transmitting a second driving voltage to the motor through the power supply module, so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal; the driving parameters of the first pulse width modulation signal are smaller than those of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameters of the motor in the micro-vibration mode are smaller than those of the motor in the normal mode.
In the embodiment of the application, after the electric toothbrush is started, the motor can be controlled to enter a micro-vibration mode with vibration parameters smaller than those in a normal mode, so that a user knows that the electric toothbrush is normally started, the problem that the toothpaste splashes due to the fact that the brush head is not attached to teeth when the user normally applies the toothpaste to the brush head can be better prevented, and the loss of electric energy can be saved; meanwhile, the pulse width modulation signal and the driving voltage can be adjusted according to the detected pressure value received by the target position, for example, when the pressure value is larger than a first preset threshold value, the brush head and the teeth are considered to be attached, and the motor can be controlled to enter a normal mode that the vibration parameter is larger than that in a micro-vibration mode, so that a user can normally complete oral cavity cleaning operation.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above and other objects, features and advantages of the present invention more clearly understood, the following specific embodiments of the present invention will be described.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a motor control system according to an exemplary embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a motor control method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart of another motor control method according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flow chart of another motor control method according to an exemplary embodiment of the present disclosure;
FIG. 5 is a flow chart of another motor control method according to an exemplary embodiment of the present disclosure;
FIG. 6 is a flow chart of another motor control method according to an exemplary embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a motor control device according to an exemplary embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the features and advantages of the present application more comprehensible, the following description will be given in detail with reference to the accompanying drawings in which embodiments of the present application are shown, and it is apparent that the described embodiments are merely some but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second, third and the like in the description and in the claims of the application and in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
A motor control system provided in an exemplary embodiment of the present application is described next. Referring specifically to fig. 1, a schematic structural diagram of a motor control system according to an exemplary embodiment of the present application is shown. As shown in fig. 1, the motor control system includes: the device comprises a pressure detection module 110, a control module 120, a power module 130, a switching tube driving module 140, a switching tube module 150 and a motor 160. Wherein:
the pressure detection module 110 is configured to detect a pressure value received by the target position. The motor control system may be, but is not limited to being, applied to an electric toothbrush, and the target location may be, but is not limited to, a location of a brush head of the electric toothbrush. The pressure detection module 110 may be disposed on the head of the electric toothbrush, and/or inside the handle, and/or on the drive shaft of the electric toothbrush, as embodiments of the present application are not limited in this regard.
The control module 120 is respectively connected to the pressure detection module 110, the power module 130, and the switching tube driving module 140, and is configured to receive a start command, and in response to the start command, control the switching tube driving module 140 to generate a first pulse width modulation signal, and control the power module 130 to output a first driving voltage. Meanwhile, the control module 120 may further obtain a pressure value detected by the pressure detection module 110, and control the switching tube driving module 140 to generate a corresponding pulse width modulation signal (PWM signal) according to the pressure value, and control the power module 130 to output a corresponding driving voltage. For example, but not limited to, when the pressure value is greater than the first preset threshold, the control module 120 may control the switching tube driving module 140 to generate the second pwm signal, and control the power module 130 to output the second driving voltage.
The switching tube driving module 140 is connected to the switching tube module 150, and is configured to transmit a pulse width modulation signal (PWM signal) to the switching tube module 150.
It is to be understood that the switching tube driving module 140 may include a plurality of driving modules, such as a first driving module and a second driving module, and the plurality of driving modules may respectively provide different pulse width modulation signals (PWM signals) for the motor 160, for example, but not limited to, the first driving module provides a first pulse width modulation signal for the motor 160, the second driving module provides a second pulse width modulation signal for the motor 160, and the embodiment of the present application is not limited thereto.
The power module 130 is connected to the motor 160 for supplying a driving voltage to the motor 160.
It is to be understood that the power module 130 may include a plurality of power modules, such as a first power module and a second power module, and the plurality of power modules may respectively provide different driving voltages for the motor 160, for example, but not limited to, the first power module provides the first driving voltage for the motor 160, the second power module provides the second driving voltage for the motor 160, and the embodiment of the present application is not limited thereto.
The switching tube module 880 is configured to control the motor 860 to enter a corresponding operation mode based on the driving voltage according to the pulse width modulation signal (PWM signal).
The motor 860 is configured to enter a corresponding operation mode according to a driving parameter of a pulse width modulation signal (PWM signal) transmitted by the switching tube module 150 based on a driving voltage provided by the power module 130. For example, but not limited to, based on the first driving voltage provided by the power module 130, entering the micro-vibration mode according to the driving parameter of the first pwm signal transmitted by the switching tube module 150; based on the second driving voltage provided by the power module 130, the driving parameter of the second pwm signal transmitted by the switching tube module 150 enters a normal mode, and so on. The driving parameter of the first pulse width modulation signal is smaller than the driving parameter of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage. The vibration parameters of the motor 860 in the micro-vibration mode are smaller than those in the normal mode.
The motor control system is applied to an electric toothbrush, and the motor 860 is used for driving the brush head of the electric toothbrush to vibrate according to vibration parameters corresponding to the operation mode.
Next, in connection with fig. 1, a motor control method according to an exemplary embodiment of the present application will be described by taking an example in which the motor control method is applied to an electric toothbrush. Referring specifically to fig. 2, a schematic flow chart of a motor control method according to an embodiment of the present application is shown. As shown in fig. 2, the motor control method includes the steps of:
step 201, a start command is received, a first pulse width modulation signal is generated in response to the start command, the power supply module is controlled to output a first driving voltage, and a pressure value received by the target position is detected by the pressure detection module.
Step 202, transmitting a first pwm signal to the switching tube module, and transmitting a first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pwm signal.
Specifically, the activation command may be from a switch button of the electric toothbrush. When the user presses the switch key, a start instruction is transmitted to the control module. The control module can receive a starting instruction triggered by a user, responds to the starting instruction to control the switching tube driving module to transmit a first pulse width modulation signal to the switching tube module, and controls the power supply module to output a first driving voltage to the motor, so that the motor is controlled to enter a micro-vibration mode, namely, the electric toothbrush directly enters the micro-vibration mode after being started, the brush head of the electric toothbrush slightly vibrates in the micro-vibration mode, and the vibration duty ratio, the vibration frequency and the vibration amplitude of the brush head are very small, so that the user is reminded of successful starting of the electric toothbrush through small vibration and the consumption of electric energy is saved, the situation that the electric toothbrush is started to cause the splash of toothpaste when the user smears the toothpaste is prevented, and the user experience is improved. Meanwhile, after receiving the starting instruction, the control module can also control the pressure detection module to detect the pressure value received by the target position of the electric toothbrush in response to the starting instruction. The pressure detection module may be disposed on the head of the electric toothbrush, and/or inside the handle, and/or on the drive shaft of the electric toothbrush, as embodiments of the present application are not limited in this respect.
Further, in order to prevent the problem that the brush head and teeth are not attached to cause the toothpaste to splash, the pressure value received by the target position is related to the pressure value received by the brush head of the electric toothbrush, so that whether the brush head is attached to the teeth or not is known according to the pressure value received by the brush head, and the power supply module is controlled to output the driving voltage according to the pressure value received by the brush head of the electric toothbrush and the switching tube driving module generates the first pulse width modulation signal.
And 203, in the micro-vibration mode, determining the working mode of the motor in response to a preset condition.
Specifically, the preset condition has a corresponding relation with the working mode of the motor. The above-described operation modes may include, but are not limited to, a cleaning mode, a sensing mode, a whitening mode, a nursing mode, a polishing mode, and the like. The preset condition may be, but is not limited to, an operation mode adjustment command triggered by a corresponding operation mode of the electric toothbrush selected by the user.
In the micro-vibration mode, for example, after the user presses the button corresponding to the cleaning mode, a cleaning command is transmitted to the control module. After receiving the cleaning command, the control module determines that the working mode of the motor is a cleaning mode in response to the cleaning command, namely, in a micro-vibration mode, the control module controls the motor to drive the brush head of the electric toothbrush to vibrate according to the corresponding vibration frequency, vibration amplitude and vibration duty ratio based on the first driving voltage corresponding to the cleaning mode and the first pulse width modulation signal corresponding to the cleaning mode.
Optionally, in the micro vibration mode, the first pulse width modulation signals corresponding to the different working modes can be different, and the first driving voltages corresponding to the different working modes can be different, namely, in the micro vibration mode, aiming at the difference of the working modes of the motor, the motor can be controlled to work with pertinence by adopting corresponding working parameters (the first pulse width modulation signals and the first driving voltages), so that a user is informed of the micro vibration mode of the electric toothbrush in which working mode is currently located, the user can intuitively feel the difference of the motor in different working modes in the micro vibration module, and the user can intuitively know the current working mode of the electric toothbrush and whether the electric toothbrush is regulated to the self-wanted working mode or not conveniently.
Optionally, in the micro-vibration mode, the first pulse width modulation signals corresponding to the different working modes may be the same, and the first driving voltages corresponding to the different working modes may be the same, that is, in the micro-vibration mode, no matter what working mode the motor is in, the motor may work by adopting the same working parameters (the first pulse width modulation signal and the first driving voltage), so that the user is intuitively informed that the electric toothbrush is in the micro-vibration mode, the user can put on the brush head to apply toothpaste, and the use experience of the user is improved.
Step 204, determining whether the pressure value is greater than a first preset threshold.
Specifically, after the pressure value to which the target position is subjected is detected by the pressure detection module, it may also be determined whether the pressure value is greater than a first preset threshold. The first preset threshold may be, but is not limited to, 0.2N, 0.1N, etc.
And step 205, generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than a first preset threshold value, and controlling the power supply module to output a second driving voltage.
Step 206, transmitting the second pwm signal to the switching tube module, and transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal.
Specifically, if the pressure value received by the target position is detected to be greater than the first preset threshold value, it can be considered that the brush head is attached to the teeth, and the user wants to clean the teeth attached to the brush head, then the switch tube driving module can be controlled to transmit a corresponding second pulse width modulation signal to the switch tube module according to the determined working mode in the micro-vibration mode, and the power supply module is controlled to output a corresponding second driving voltage to the motor, so that the switch tube module can control the motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal, namely, the electric toothbrush is controlled to enter the normal mode corresponding to the working mode. The driving parameters of the first pulse width modulation signal are smaller than those of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameters of the motor in the micro vibration mode are smaller than those of the motor in the normal mode, the vibration amplitude, the vibration frequency and the like of the brush head in the micro vibration mode are smaller than those in the normal mode, a user can know that the electric toothbrush is normally started through slight vibration, and the problem that toothpaste splashes due to overlarge vibration amplitude and/or vibration frequency of the brush head when the brush head is not attached to teeth can be prevented.
The first driving voltage may be, but is not limited to, half the second driving voltage.
Further, the driving parameters include duty ratio and/or frequency, and the switching tube module can control the motor to vibrate at the corresponding duty ratio and/or frequency based on the driving voltage according to the pulse width modulation signal.
In step 207, the motor is controlled to maintain the micro-vibration mode when the pressure value is less than or equal to the first preset threshold value.
Specifically, after the switch tube module responds to the starting instruction to enable the motor to be controlled to enter the micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal, if the pressure value received by the target position is detected to be smaller than or equal to a first preset threshold value, the brush head can be considered to be not attached to the teeth, the motor can be continuously controlled to maintain the micro-vibration mode with smaller vibration parameters, the problem that toothpaste splashes when the brush head is not attached to the teeth can be further prevented, and the loss of electric energy when the brush head is not attached to the teeth can be further saved.
In the embodiment of the application, after the electric toothbrush is started, the motor can be controlled to enter a micro-vibration mode with vibration parameters smaller than those in a normal mode, so that a user knows that the electric toothbrush is normally started, the problem that the toothpaste splashes due to the fact that the brush head is not attached to teeth when the user normally applies the toothpaste to the brush head can be better prevented, and the loss of electric energy can be saved; meanwhile, the pulse width modulation signal and the driving voltage can be adjusted according to the detected pressure value received by the target position, for example, when the pressure value is larger than a first preset threshold value, the brush head and the teeth are considered to be attached, and the motor can be controlled to enter a normal mode that the vibration parameter is larger than that in a micro-vibration mode, so that a user can normally complete oral cavity cleaning operation.
Referring next to fig. 3, a flowchart of another motor control method according to an embodiment of the present application is shown. As shown in fig. 3, the motor control method includes the steps of:
step 301, receiving a start command, generating a first pulse width modulation signal in response to the start command, controlling the power module to output a first driving voltage, and detecting a pressure value received by the target position through the pressure detection module.
Specifically, step 301 corresponds to step 201, and will not be described here.
Step 302, a first pwm signal is transmitted to the switching tube module, and a first driving voltage is transmitted to the motor through the power module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pwm signal.
Specifically, step 302 corresponds to step 202, and will not be described in detail herein.
Step 303, in the micro-vibration mode, determining the working mode of the motor in response to a preset condition.
Specifically, step 303 corresponds to step 203, and will not be described herein.
Step 304, it is determined whether the pressure value is greater than a first preset threshold.
Specifically, step 304 corresponds to step 204, and will not be described here.
And 305, generating a second pulse width modulation signal according to the determined working mode in the micro-vibration mode under the condition that the pressure value is larger than a first preset threshold value, and controlling the power supply module to output a second driving voltage.
Specifically, step 305 corresponds to step 205, and will not be described herein.
Step 306, transmitting the second pwm signal to the switching tube module, and transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal.
Specifically, step 306 corresponds to step 206, and will not be described here.
Step 307, controlling the motor to maintain the micro-vibration mode under the condition that the pressure value is less than or equal to the first preset threshold value.
Specifically, step 307 corresponds to step 207, and will not be described in detail herein.
In step 308, the pressure value received by the target location is detected by the pressure detection module.
Specifically, after the motor enters the normal brushing mode, i.e., the normal mode, from the micro-vibration mode, the pressure detection module can also continue to detect the pressure value received by the target position of the electric toothbrush.
Step 309, determining whether the pressure value is less than a second preset threshold.
In step 310, if the pressure value is smaller than the second preset threshold, a first pwm signal is generated, and the power module is controlled to output a first driving voltage.
Step 311, if the pressure value is greater than or equal to the second preset threshold value, the motor is controlled to maintain the normal mode.
Specifically, after the motor enters the normal brushing mode from the micro-vibration mode, if the pressure value received by the target position is detected to be smaller than the second preset threshold value, it can be considered that the user switches brushing areas in the brushing process, in order to avoid uncomfortable feeling in oral cavity areas such as gums of the user in the process of switching brushing areas due to larger vibration frequency, vibration amplitude and the like of the brush head in the normal mode, the switch tube driving module can be controlled to generate a first pulse width modulation signal, the power supply module is controlled to output a first driving voltage, and after the first pulse width modulation signal is generated and the power supply module is controlled to output the first driving voltage, namely, step 310 is executed again, so that the motor is controlled to switch from the normal mode to the micro-vibration mode with smaller vibration frequency and/or smaller vibration amplitude in the middle of switching brushing areas, and brushing experience of the user is further improved.
Further, in order to prevent the user experience from being affected by frequent switching to the micro-vibration mode during the normal brushing process of the user, the second preset threshold is smaller than or equal to the first preset threshold, that is, after entering the normal brushing mode, the motor is controlled to switch from the normal mode to the micro-vibration mode with smaller vibration frequency and/or smaller vibration amplitude only when detecting that the pressure value is smaller than the second preset threshold, that is, when detecting that the user switches the brushing area during the brushing process; if the detected pressure value is greater than or equal to the second preset threshold value, the user can be considered to be in the normal tooth brushing process, and the motor can be controlled to continuously maintain the normal mode, so that the electric toothbrush can continuously complete the tooth cleaning work in the normal mode.
For example, if the first preset threshold is 5N and the second preset threshold is 3N, in order to prevent the problem that the brush head vibrates to cause the splash of the toothpaste when the electric toothbrush is started in the process that the toothpaste is applied or the toothpaste is applied but the brush head is not attached to the teeth, after a starting instruction is received, i.e. the electric toothbrush is just started, the motor can be controlled to drive the brush head to enter a micro vibration mode with smaller vibration frequency and/or vibration amplitude; after the electric toothbrush is started and the motor enters the micro-vibration mode, the motor is controlled to switch from the micro-vibration mode to the normal mode only when the pressure value received by the target position (such as but not limited to a brush head and the like) of the electric toothbrush is detected to be larger than a first preset threshold value of 5N, and the brush head is considered to be attached to teeth; in the normal brushing process of the user, if the pressure value received by the target position (such as but not limited to a brush head and the like) of the electric toothbrush is detected to be smaller than the second preset threshold value 3N, the user can be considered to switch the brushing area in the normal brushing process, and the motor can be controlled to return to the micro-vibration mode in the middle of switching the brushing area, so that the uncomfortable feeling of the oral cavity area such as the gum and the like of the user caused by the larger vibration frequency, the larger vibration amplitude and the like in the normal mode is avoided, and the brushing experience of the user is improved; if the pressure value received by the target position (such as but not limited to the brush head and the like) of the electric toothbrush is detected to be greater than or equal to the second preset threshold value 3N in the normal tooth brushing process of the user, the brush head and the teeth can be considered to be in a joint state all the time, the motor can be controlled to continuously maintain the normal mode, and accordingly the electric toothbrush can be ensured to continuously complete tooth cleaning work in the normal mode.
Referring next to fig. 4, a flowchart of another motor control method according to an embodiment of the present application is shown. As shown in fig. 4, the motor control method includes the steps of:
step 401, receiving a start command, generating a first pulse width modulation signal in response to the start command, controlling the power module to output a first driving voltage, and detecting a pressure value received by the target position through the pressure detection module.
Specifically, step 401 corresponds to step 201, and will not be described here.
Step 402, transmitting a first pwm signal to the switching tube module, and transmitting a first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the micro-vibration mode based on the first driving voltage according to the first pwm signal.
Specifically, step 402 corresponds to step 202, and will not be described in detail herein.
Step 403, in the micro-vibration mode, determining the working mode of the motor in response to a preset condition.
Specifically, step 403 corresponds to step 203, and will not be described here.
And step 404, generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than the first preset threshold value, and controlling the power supply module to output a second driving voltage.
Specifically, step 404 corresponds to step 205, and will not be described here.
Step 405, transmitting a second pwm signal to the switching tube module, and transmitting a second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pwm signal.
Specifically, step 405 corresponds to step 206, and is not described herein.
Step 406, obtaining continuous micro-vibration working time length corresponding to the micro-vibration mode.
And step 407, if the continuous micro-vibration working time is longer than or equal to the first preset time, controlling the motor to stop working.
In this embodiment of the application, after the motor enters the micro vibration mode, can count the continuous micro vibration operating time that corresponds when the motor is in the micro vibration mode, if the continuous micro vibration operating time is longer than or equal to first default duration, can think that the user can not brush teeth with electric toothbrush any more or the user leaves and forgets to close electric toothbrush power after starting electric toothbrush, in order to practice thrift electric toothbrush's electric energy consumption, can control the motor stop work, and then avoid electric toothbrush electric energy's waste. The first preset time period may be, but is not limited to, 3 minutes, 2 minutes, etc.
Next, please refer to fig. 5, which schematically illustrates a flowchart of another motor control method according to an embodiment of the present application. As shown in fig. 5, the motor control method includes the steps of:
step 501, a start command is received, a first pulse width modulation signal is generated in response to the start command, the power module is controlled to output a first driving voltage, and a pressure value received by the target position is detected by the pressure detection module.
Specifically, step 501 corresponds to step 201, and will not be described here.
Step 502, transmitting a first pwm signal to the switching tube module, and transmitting a first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pwm signal.
Specifically, step 502 corresponds to step 202, and will not be described here.
In step 503, in the micro-vibration mode, the operation mode of the motor is determined in response to a preset condition.
Specifically, step 503 corresponds to step 203, and will not be described herein.
Step 504, it is determined whether the pressure value is greater than a first preset threshold.
Specifically, step 504 corresponds to step 204, and will not be described here.
And step 505, controlling the motor to maintain the micro-vibration mode under the condition that the pressure value is smaller than or equal to a first preset threshold value.
Specifically, step 505 corresponds to step 207, and will not be described in detail herein.
And step 506, generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than the first preset threshold value, and controlling the power supply module to output a second driving voltage.
Specifically, step 506 corresponds to step 205, and will not be described here.
Step 507, transmitting the second pwm signal to the switching tube module, and transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal.
Specifically, step 507 corresponds to step 206, and will not be described here.
Step 508, obtaining the total working time corresponding to the normal mode.
And 509, if the total working time length is greater than or equal to the second preset time length, controlling the motor to stop working.
In this embodiment of the present application, after the motor enters the normal mode, the total working time length corresponding to the motor in the normal mode may be counted, and if the total working time length is greater than or equal to the second preset time length, that is, when the accumulated time of working in the normal mode corresponding to the current working mode is too long, in order to avoid the user's erroneous long-time tooth brushing, the motor may be controlled to stop working, and further, when the tooth cleaning work is completed, the user's tooth health may be further cared.
Referring next to fig. 6, a flowchart of another motor control method according to an embodiment of the present application is shown. As shown in fig. 6, the motor control method includes the steps of:
step 601, controlling the motor to enter a normal mode based on the second driving voltage.
Specifically, in the normal brushing process of the user, the motor can be controlled to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal, so that the motor is controlled to drive the brush head to vibrate according to vibration parameters corresponding to the normal mode, and the user can perform oral cleaning operation normally.
In step 602, a pressure value received by the target location is detected by a pressure detection module.
Specifically, step 602 corresponds to step 308, and will not be described in detail herein.
Step 603, determining whether the pressure value is smaller than a second preset threshold.
In step 604, if the pressure value is smaller than the second preset threshold, a first pwm signal is generated, and the power module is controlled to output a first driving voltage.
Step 605, a first pwm signal is transmitted to the switching tube module, and a first driving voltage is transmitted to the motor through the power module, so that the switching tube module controls the motor to enter the micro-vibration mode based on the first driving voltage according to the first pwm signal.
Specifically, after the motor is controlled to enter the normal mode, if the pressure value received by the target position of the electric toothbrush is detected to be greater than or equal to the second preset threshold value, the brush head and the teeth can be considered to be in a fitting state, namely, the user needs to use the electric toothbrush to perform oral cleaning operation, so that the motor can be controlled to continuously maintain the normal mode, and the user can use the electric toothbrush to continuously complete oral cleaning operation.
Step 606, in the micro-vibration mode, determining an operation mode of the motor in response to a preset condition.
Specifically, step 606 corresponds to step 203, and will not be described here.
In step 607, it is determined whether the pressure value is greater than a first preset threshold.
Specifically, step 607 corresponds to step 204, and will not be described herein.
And 608, generating a second pulse width modulation signal according to the determined working mode in the micro-vibration mode under the condition that the pressure value is larger than the first preset threshold value, and controlling the power supply module to output a second driving voltage.
Specifically, step 608 corresponds to step 205, and will not be described herein.
Step 609, transmitting the second pwm signal to the switching tube module, and transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal.
Specifically, step 609 corresponds to step 206, and will not be described in detail herein.
Further, after the motor is controlled to switch from the micro-vibration mode to the normal mode, if it is detected that the pressure value received by the target position of the electric toothbrush is less than or equal to the first preset threshold, step 603 may be executed again to determine whether the pressure value is less than the second preset threshold.
Step 610, obtaining a total working time length corresponding to the normal mode.
And step 612, if the total working time length is greater than or equal to the second preset time length, controlling the motor to stop working.
In the embodiment of the application, the total working time length corresponding to the motor in the normal mode can be counted, if the total working time length is greater than or equal to the second preset time length, namely, when the accumulated time of working in the normal mode corresponding to the current working mode is too long, the motor can be controlled to stop working in order to avoid the user to brush teeth for a long time in error, and further, the tooth health of the user can be further cared while the tooth cleaning work is completed.
Step 613, obtaining the continuous micro-vibration working time length corresponding to the micro-vibration mode.
And 614, if the continuous micro-vibration working time is longer than or equal to the first preset time, controlling the motor to stop working.
In this embodiment of the application, after the control motor is switched from normal mode to normal mode, can count the continuous micro vibration operating time that corresponds when the motor is in micro vibration mode, if continuous micro vibration operating time is longer than or equal to first default duration, can consider that the electric toothbrush brush head has been operated and leave the oral cavity and need not carry out the operation of brushing teeth again, in order to practice thrift electric toothbrush's electric energy consumption, can control motor stop work, and then avoid the user not need carrying out the waste of electric toothbrush electric energy after the operation of brushing teeth.
Next, please refer to fig. 7, which is a schematic diagram of a motor control device according to an embodiment of the present application. As shown in fig. 7, the motor control device 700 includes:
a receiving module 710, configured to receive a start instruction;
a first generating module 720, configured to generate a first pwm signal in response to the start command;
a first control module 730 for controlling the power supply module to output a first driving voltage;
a pressure detection module 740 for detecting a pressure value received by the target position;
the first transmission module 750 is configured to transmit the first pwm signal to the switching tube module, and transmit the first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pwm signal;
A determining module 760, configured to determine, in response to a preset condition, an operation mode of the motor in the micro-vibration mode;
a second generation module 770, configured to generate a second pwm signal according to the operation mode determined in the micro-vibration mode when the pressure value is greater than the first preset threshold value;
a second control module 780, configured to control the power module to output a second driving voltage if the pressure value is greater than the first preset threshold value;
a second transmission module 790, configured to transmit the second pwm signal to the switching tube module, and transmit the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pwm signal;
the driving parameter of the first pulse width modulation signal is smaller than the driving parameter of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameter of the motor in the micro-vibration mode is smaller than the vibration parameter of the motor in the normal mode.
In one possible implementation manner, the motor control device 700 further includes:
and the third control module is used for controlling the motor to maintain the micro-vibration mode under the condition that the pressure value is smaller than or equal to the first preset threshold value.
In one possible implementation, the driving parameters include duty cycle and/or frequency.
In one possible implementation manner, the motor control device 700 further includes:
the third generation module is used for generating the first pulse width modulation signal and controlling the power supply module to output the first driving voltage if the pressure value is smaller than a second preset threshold value;
wherein the second preset threshold is less than or equal to the first preset threshold.
In one possible implementation manner, the motor control device 700 further includes:
the first acquisition module is used for acquiring continuous micro-vibration working time length corresponding to the micro-vibration mode;
and the fourth control module is used for controlling the motor to stop working if the continuous micro-vibration working time length is longer than or equal to the first preset time length.
In one possible implementation manner, the motor control device 700 further includes:
the second acquisition module is used for acquiring the total working time length corresponding to the normal mode;
And the fifth control module is used for controlling the motor to stop working if the total working time length is greater than or equal to a second preset time length.
In one possible implementation, the above method is applied to an electric toothbrush; the pressure value received by the target location is related to the pressure value received by the brush head of the electric toothbrush.
In one possible implementation manner, in the micro-vibration mode, the first pwm signals and the first driving voltages corresponding to the different operation modes are different;
or alternatively
In the micro-vibration mode, the first pulse width modulation signals and the first driving voltages corresponding to the different operation modes are the same.
The above-described division of the modules in the motor control device is merely for illustration, and in other embodiments, the motor control device may be divided into different modules as needed to perform all or part of the functions of the motor control device. The implementation of each module in the motor control device provided in the embodiments of the present specification may be in the form of a computer program. The computer program may run on a terminal or a server. Program modules of the computer program may be stored in the memory of the terminal or server. Which when executed by a processor, implements all or part of the steps of the motor control method described in the embodiments of the present specification.
Next, please refer to fig. 8, which is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic device 800 may include: at least one processor 810, a pressure detection module 820, a user interface 830, a memory 840, at least one network interface 850, a motor 860, a power module 870, a switch tube module 880, and at least one communication bus 890.
Wherein the electronic device 800 may be, but is not limited to, an oral cleaning device such as an electric toothbrush.
Wherein a communication bus 890 is used to enable connected communication among these components.
The pressure detection module 820 is configured to detect a pressure value received by the target location.
Wherein, the motor 860 is used for driving the brush head of the oral cavity cleaning device to vibrate according to the vibration parameters corresponding to the working mode.
Wherein, the power module 870 is configured to transmit the first driving voltage or the second driving voltage to the motor 860.
The switching tube module 880 is configured to control the motor 860 to enter the micro-vibration mode based on the first driving voltage according to the first pwm signal, or to control the motor 860 to enter the normal mode based on the second driving voltage according to the second pwm signal.
The user interface 830 may include a Display screen (Display) and a Camera (Camera), and the user interface 830 may also include a standard wired interface and a wireless interface.
The network interface 850 may optionally include, among other things, a bluetooth module, a near field communication (Near Field Communication, NFC) module, a wireless fidelity (Wireless Fidelity, wi-Fi) module, and the like.
Wherein processor 810 may include one or more processing cores. The processor 810 utilizes various interfaces and lines to connect various portions of the overall electronic device 800, perform various functions of the electronic device 800, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 840, and invoking data stored in the memory 840. Alternatively, the processor 810 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 810 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. Wherein, the CPU mainly processes an operating system, application programs and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 810 and may be implemented on a single chip.
The Memory 840 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 840 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 840 may be used to store instructions, programs, code sets, or instruction sets. The memory 840 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (e.g., a receiving function, a control function, a transmitting function, etc.), instructions for implementing the various method embodiments described above, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 840 may also optionally be at least one storage device located remotely from the aforementioned processor 810. As shown in fig. 8, an operating system, network communication modules, user interface modules, and program instructions may be included in memory 840, which is a type of computer storage medium.
In some possible embodiments, the electronic device 800 may be the aforementioned motor control device, or may include an electric toothbrush, etc., which is not limited in this embodiment. In the electronic device shown in fig. 8, the processor 810 may be configured to call program instructions stored in the memory 840 and specifically perform the following operations:
Receiving a starting instruction, responding to the starting instruction, generating a first pulse width modulation signal, controlling a power supply module to output a first driving voltage, and detecting a pressure value received by a target position through a pressure detection module; transmitting the first pulse width modulation signal to a switching tube module, and transmitting the first driving voltage to a motor through the power supply module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal; in the micro-vibration mode, determining the working mode of the motor in response to a preset condition; generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than a first preset threshold value, and controlling the power supply module to output a second driving voltage; transmitting the second pulse width modulation signal to the switching tube module, and transmitting the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal; the driving parameter of the first pulse width modulation signal is smaller than the driving parameter of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameter of the motor in the micro-vibration mode is smaller than the vibration parameter of the motor in the normal mode.
In some possible embodiments, the processor 810 transmits the first pwm signal to a switching tube module, and transmits the first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the micro-vibration mode based on the first driving voltage according to the first pwm signal, and then further performs:
and controlling the motor to maintain the micro-vibration mode under the condition that the pressure value is smaller than or equal to the first preset threshold value.
In some possible embodiments, the driving parameters include duty cycle and/or frequency.
In some possible embodiments, the processor 810 transmits the second pwm signal to the switching tube module, and transmits the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal, and then further performs:
detecting a pressure value received by the target position through the pressure detection module; if the pressure value is smaller than a second preset threshold value, generating the first pulse width modulation signal and controlling the power module to output the first driving voltage; transmitting the first pulse width modulation signal to a switching tube module, and transmitting the first driving voltage to a motor through the power supply module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal; wherein the second preset threshold is less than or equal to the first preset threshold.
In some possible embodiments, the processor 810 transmits the first pwm signal to a switching tube module, and transmits the first driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the micro-vibration mode based on the first driving voltage according to the first pwm signal, and then further performs:
acquiring continuous micro-vibration working time corresponding to the micro-vibration mode; and if the continuous micro-vibration working time length is longer than or equal to the first preset time length, controlling the motor to stop working.
In some possible embodiments, the processor 810 transmits the second pwm signal to the switching tube module, and transmits the second driving voltage to the motor through the power module, so that the switching tube module controls the motor to enter the normal mode based on the second driving voltage according to the second pwm signal, and then further performs:
acquiring the total working time length corresponding to the normal mode; and if the total working time length is greater than or equal to a second preset time length, controlling the motor to stop working.
In some possible embodiments, the above method is applied to an electric toothbrush; the pressure value received by the target location is related to the pressure value received by the brush head of the electric toothbrush.
In some possible embodiments, in the micro-vibration mode, the first pwm signals and the first driving voltages corresponding to the different operation modes are different;
or alternatively
In the micro-vibration mode, the first pulse width modulation signals and the first driving voltages corresponding to the different operation modes are the same.
Embodiments also provide a computer storage medium having instructions stored therein which, when run on a computer or processor, cause the computer or processor to perform one or more steps of any of the methods described above. The above-described constituent modules of the motor control apparatus may be stored in the storage medium if implemented in the form of software functional units and sold or used as independent products.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disk (Digital Versatile Disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program, which may be stored in a computer-readable storage medium, instructing relevant hardware, and which, when executed, may comprise the embodiment methods as described above. And the aforementioned storage medium includes: various media capable of storing program code, such as ROM, RAM, magnetic or optical disks. The technical features in the present examples and embodiments may be arbitrarily combined without conflict.
The above-described embodiments are merely illustrative of the preferred embodiments of the present application and are not intended to limit the scope of the present application, and various modifications and improvements made by those skilled in the art to the technical solutions of the present application should fall within the protection scope defined by the claims of the present application without departing from the design spirit of the present application.

Claims (11)

1. A motor control method, characterized by comprising:
receiving a starting instruction, responding to the starting instruction, generating a first pulse width modulation signal, controlling a power supply module to output a first driving voltage, and detecting a pressure value received by a target position through a pressure detection module;
Transmitting the first pulse width modulation signal to a switching tube module, and transmitting the first driving voltage to a motor through the power supply module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal;
in the micro-vibration mode, determining the working mode of the motor in response to a preset condition;
generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than a first preset threshold value, and controlling the power supply module to output a second driving voltage;
transmitting the second pulse width modulation signal to the switching tube module, and transmitting the second driving voltage to the motor through the power supply module, so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal;
the driving parameters of the first pulse width modulation signal are smaller than those of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameters of the motor in the micro-vibration mode are smaller than those of the motor in the normal mode.
2. The method of claim 1, wherein after transmitting the first pwm signal to a switching tube module and transmitting the first driving voltage to a motor through the power module to cause the switching tube module to control the motor to enter a micro-vibration mode based on the first driving voltage according to the first pwm signal, the method further comprises:
and under the condition that the pressure value is smaller than or equal to the first preset threshold value, controlling the motor to maintain the micro-vibration mode.
3. The method of claim 1, wherein the drive parameters include duty cycle and/or frequency.
4. The method of claim 1, wherein the transmitting the second pwm signal to the switching tube module and transmitting the second driving voltage to the motor through the power module, such that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pwm signal, further comprises:
detecting a pressure value received by the target position through the pressure detection module;
If the pressure value is smaller than a second preset threshold value, generating the first pulse width modulation signal and controlling the power supply module to output the first driving voltage;
transmitting the first pulse width modulation signal to a switching tube module, and transmitting the first driving voltage to a motor through the power supply module, so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal;
wherein the second preset threshold is less than or equal to the first preset threshold.
5. The method of any of claims 1-4, wherein after transmitting the first pwm signal to a switching tube module and transmitting the first drive voltage to a motor through the power module to cause the switching tube module to control the motor to enter a micro-vibration mode based on the first drive voltage according to the first pwm signal, the method further comprises:
acquiring continuous micro-vibration working time length corresponding to the micro-vibration mode;
and if the continuous micro-vibration working time length is longer than or equal to the first preset time length, controlling the motor to stop working.
6. The method of any of claims 1-4, wherein after transmitting the second pwm signal to the switching tube module and transmitting the second drive voltage to the motor through the power module to cause the switching tube module to control the motor to enter a normal mode based on the second drive voltage according to the second pwm signal, the method further comprises:
acquiring the total working time length corresponding to the normal mode;
and if the total working time length is greater than or equal to the second preset time length, controlling the motor to stop working.
7. The method of claim 1, wherein the method is applied to an electric toothbrush; the pressure value received by the target location is related to the pressure value received by the head of the electric toothbrush.
8. The method of claim 1, wherein in the micro-vibration mode, the first pwm signals and the first driving voltages corresponding to the different operation modes are different;
or alternatively
In the micro-vibration mode, the first pulse width modulation signals and the first driving voltages corresponding to the different working modes are the same.
9. A motor control device, the device comprising:
the receiving module is used for receiving the starting instruction;
the first generation module is used for responding to the starting instruction and generating a first pulse width modulation signal;
the first control module is used for controlling the power supply module to output a first driving voltage;
the pressure detection module is used for detecting a pressure value received by the target position;
the first transmission module is used for transmitting the first pulse width modulation signal to the switching tube module and transmitting the first driving voltage to the motor through the power supply module so that the switching tube module controls the motor to enter a micro-vibration mode based on the first driving voltage according to the first pulse width modulation signal;
the determining module is used for responding to a preset condition to determine the working mode of the motor in the micro-vibration mode;
the second generation module is used for generating a second pulse width modulation signal according to the working mode determined in the micro-vibration mode under the condition that the pressure value is larger than the first preset threshold value;
the second control module is used for controlling the power supply module to output a second driving voltage under the condition that the pressure value is larger than the first preset threshold value;
The second transmission module is used for transmitting the second pulse width modulation signal to the switching tube module and transmitting the second driving voltage to the motor through the power supply module so that the switching tube module controls the motor to enter a normal mode based on the second driving voltage according to the second pulse width modulation signal;
the driving parameters of the first pulse width modulation signal are smaller than those of the second pulse width modulation signal, and the first driving voltage is smaller than the second driving voltage, so that the vibration parameters of the motor in the micro-vibration mode are smaller than those of the motor in the normal mode.
10. An electronic device, comprising: a memory and a processor;
the memory is connected with the processor;
the memory is used for storing executable program codes;
the processor runs a program corresponding to executable program code stored in the memory by reading the executable program code for performing the method according to any one of claims 1-8.
11. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any of claims 1-8.
CN202211724809.XA 2022-12-30 2022-12-30 Motor control method, motor control device, electronic equipment and storage medium Active CN117614315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211724809.XA CN117614315B (en) 2022-12-30 2022-12-30 Motor control method, motor control device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211724809.XA CN117614315B (en) 2022-12-30 2022-12-30 Motor control method, motor control device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117614315A true CN117614315A (en) 2024-02-27
CN117614315B CN117614315B (en) 2024-07-09

Family

ID=89952138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211724809.XA Active CN117614315B (en) 2022-12-30 2022-12-30 Motor control method, motor control device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117614315B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010012605A1 (en) * 2000-01-31 2001-08-09 Matsushita Electric Industrial Co., Ltd. Oral cavity washer with video scope
CN107432775A (en) * 2016-05-27 2017-12-05 深圳减字科技有限公司 The oscillation intensity control method and system of a kind of electric toothbrush
CN108309486A (en) * 2017-12-21 2018-07-24 深圳瑞湖科技有限公司 Electric toothbrush with detection brush-head pressure device
CN110327126A (en) * 2019-08-08 2019-10-15 上海飞科电器股份有限公司 Electric toothbrush control system and electric toothbrush
CN110680536A (en) * 2019-11-11 2020-01-14 石家庄谷堆科技有限公司 Control method and device of electric toothbrush
CN111839789A (en) * 2020-06-22 2020-10-30 东莞微感电子技术有限公司 Electric toothbrush control method
CN213047424U (en) * 2020-05-22 2021-04-27 深圳素士科技股份有限公司 Electric tooth brush
CN112886794A (en) * 2021-04-02 2021-06-01 九江历源整流设备有限公司 Control method and control device of high-power high-frequency switching power supply
CN113017889A (en) * 2019-12-24 2021-06-25 广州星际悦动股份有限公司 Electric toothbrush and electric toothbrush control method
JP2021525138A (en) * 2018-05-24 2021-09-24 プレイブラッシュ リミテッド Electric toothbrush system
WO2021196571A1 (en) * 2020-03-31 2021-10-07 江西瑞圣特科技有限责任公司 Electric toothbrush
CN215019477U (en) * 2021-03-05 2021-12-07 赫比(厦门)精密塑胶制品有限公司 Sound wave electric toothbrush capable of preventing toothpaste from splashing and controlling tooth brushing force
WO2022121037A1 (en) * 2020-12-11 2022-06-16 上海向方科技有限公司 Current circulation detection type toothbrush control method and device, medium and electric toothbrush
CN115105238A (en) * 2021-03-17 2022-09-27 江苏美的清洁电器股份有限公司 Electric toothbrush control method and device, storage medium and electric toothbrush

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010012605A1 (en) * 2000-01-31 2001-08-09 Matsushita Electric Industrial Co., Ltd. Oral cavity washer with video scope
CN107432775A (en) * 2016-05-27 2017-12-05 深圳减字科技有限公司 The oscillation intensity control method and system of a kind of electric toothbrush
CN108309486A (en) * 2017-12-21 2018-07-24 深圳瑞湖科技有限公司 Electric toothbrush with detection brush-head pressure device
JP2021525138A (en) * 2018-05-24 2021-09-24 プレイブラッシュ リミテッド Electric toothbrush system
CN110327126A (en) * 2019-08-08 2019-10-15 上海飞科电器股份有限公司 Electric toothbrush control system and electric toothbrush
CN110680536A (en) * 2019-11-11 2020-01-14 石家庄谷堆科技有限公司 Control method and device of electric toothbrush
CN113017889A (en) * 2019-12-24 2021-06-25 广州星际悦动股份有限公司 Electric toothbrush and electric toothbrush control method
WO2021196571A1 (en) * 2020-03-31 2021-10-07 江西瑞圣特科技有限责任公司 Electric toothbrush
CN213047424U (en) * 2020-05-22 2021-04-27 深圳素士科技股份有限公司 Electric tooth brush
CN111839789A (en) * 2020-06-22 2020-10-30 东莞微感电子技术有限公司 Electric toothbrush control method
WO2022121037A1 (en) * 2020-12-11 2022-06-16 上海向方科技有限公司 Current circulation detection type toothbrush control method and device, medium and electric toothbrush
CN215019477U (en) * 2021-03-05 2021-12-07 赫比(厦门)精密塑胶制品有限公司 Sound wave electric toothbrush capable of preventing toothpaste from splashing and controlling tooth brushing force
CN115105238A (en) * 2021-03-17 2022-09-27 江苏美的清洁电器股份有限公司 Electric toothbrush control method and device, storage medium and electric toothbrush
CN112886794A (en) * 2021-04-02 2021-06-01 九江历源整流设备有限公司 Control method and control device of high-power high-frequency switching power supply

Also Published As

Publication number Publication date
CN117614315B (en) 2024-07-09

Similar Documents

Publication Publication Date Title
CN112515801B (en) Control method and device based on vibration strength of toothbrush motor
CN113288487B (en) Tooth brushing guiding method, tooth brushing device, tooth brushing system and storage medium
CN106037973B (en) The control method and device of a kind of electric toothbrush
WO2014016718A1 (en) Tooth cleaning device and method of operation therefor
CN108448373B (en) Laser pulse power control method, pulse fiber laser and laser cutting system
CN107920880B (en) Personal hygiene system
CN116578253B (en) Display control method, display control device, storage medium and oral care system
CN117614315B (en) Motor control method, motor control device, electronic equipment and storage medium
JP2022504145A (en) Personal care equipment
CN117179941B (en) Information prompting method, device, equipment and storage medium of oral care equipment
CN116831768A (en) Output control method, device, equipment and storage medium of oral care equipment
CN109965999B (en) Method and device for controlling equipment operation
CN116831769A (en) Output control method, device, equipment and storage medium of oral care equipment
CN117598811A (en) Control method and device of electric toothbrush, electric toothbrush and medium
CN111904140B (en) Method and device for cleaning electric toothbrush and electric toothbrush
CN115381572A (en) Control method and device of oral care equipment, electronic equipment and storage medium
CN117796942B (en) Toothbrush control method, toothbrush control device, toothbrush and storage medium
CN117598816A (en) Mothproof method and device based on oral cavity cleaning equipment and storage medium
CN117612745A (en) Oral care prompting method, device, equipment and storage medium
CN117608713B (en) Oral care target management method, system, device, equipment and storage medium
CN117193681B (en) Device connection method, system and storage medium based on oral cleaning interaction system
CN114469418B (en) Control method and device of intelligent toothbrush, intelligent toothbrush and medium
CN117292837A (en) Dental plaque generation prediction method, device, equipment and storage medium
CN117598818A (en) Method, device, equipment and storage medium for controlling oral care equipment
CN117651261A (en) Output control method, device, equipment and storage medium of beauty equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant