Disclosure of Invention
An object of an embodiment of the present invention is to provide a method, a system, an electronic device, and a readable storage medium for splash prevention of an electric toothbrush.
In a first aspect, embodiments of the present invention provide a method for preventing splashing of an electric toothbrush, the method including:
receiving request operation information input by a user;
judging whether the request operation information is starting request information or not;
if yes, controlling the working parameters of the motor of the electric toothbrush to linearly increase to a preset value within a preset time.
Optionally, the request operation information includes power on, mode switching, and power off;
the operating parameters of the motor include frequency and duty cycle.
Optionally, the controlling the motor operating parameter of the electric toothbrush increases linearly to a preset value within a preset time, including:
controlling the duty ratio in the motor working parameters to be kept unchanged; at the same time
And controlling the frequency in the working parameters of the motor to linearly increase to a preset value within a preset time.
Optionally, the controlling the motor operating parameter of the electric toothbrush increases linearly to a preset value within a preset time, including:
control the electric machine
The frequency in the parameter is kept unchanged; at the same time
And controlling the duty ratio of the motor working parameters to be linearly increased to a preset value within a preset time.
Optionally, the controlling the motor operating parameter of the electric toothbrush increases linearly to a preset value within a preset time, including:
controlling the frequency in the motor working parameters to linearly increase to a preset value within preset time; at the same time
And controlling the duty ratio of the motor working parameters to be linearly increased to a preset value within a preset time.
Optionally, the modes include a cleaning mode, a whitening mode, a care mode, and a tongue coating mode;
the preset value of the frequency in the working parameters of the motor in the cleaning mode is 265-275 HZ, and the duty ratio is 45-55%;
the preset value of the frequency in the working parameters of the motor in the whitening mode is 275HZ-285HZ, and the duty ratio is 60% -70%;
the preset value of the frequency in the working parameters of the motor in the care mode is 245HZ-255HZ, and the duty ratio is 45% -55%;
the preset value of the frequency in the working parameters of the motor in the tongue coating mode is 295HZ-305HZ, and the duty ratio is 15% -25%.
Optionally, the preset time is 3-5 seconds.
In a second aspect, the present invention provides a splash guard system for a power toothbrush, comprising:
the receiving unit is used for receiving request operation information input by a user;
the judging unit is used for judging whether the request operation information is starting request information or not;
and a controller unit for controlling the motor operating parameter of the electric toothbrush to be linearly increased to a preset value within a preset time.
In a third aspect, the present invention provides a readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the method for splash protection of an electric toothbrush of the first aspect or any of the optional designs of the first aspect.
In a fourth aspect, the present invention provides an electronic device comprising: a readable storage medium of the third aspect, and one or more processors to execute a program in the readable storage medium of the third aspect.
By the invention, the following beneficial effects can be realized:
in the embodiment of the invention, when the toothbrush is started, the working parameters of the motor of the electric toothbrush are linearly increased to the preset values within the preset time, so that the bristles of the toothbrush head are gradually swung open, and unpleasant feeling brought to a user due to splashing of toothpaste and foam is avoided; by the anti-splash method and system for the electric toothbrush, the electronic equipment and the readable storage medium, the problem that toothpaste foam and water stain splash are caused due to the fact that the toothbrush head has extremely strong throwing force due to the fact that the toothbrush head reaches the preset working frequency and duty ratio of the motor instantly when the electric toothbrush is started can be effectively prevented.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An object of an embodiment of the present invention is to provide a method, a system, an electronic device, and a readable storage medium for splash prevention of an electric toothbrush.
In a first aspect, referring to fig. 1, a first embodiment of the present invention provides a method for splash proofing a power toothbrush, the method comprising:
s1: receiving request operation information input by a user;
s2: judging whether the request operation information is starting request information or not;
s3: if yes, controlling the working parameters of the motor of the electric toothbrush to linearly increase to a preset value within a preset time.
In one embodiment of the invention, the electric toothbrush receives request operation information input by a user, wherein the request operation information comprises starting up, switching modes and closing down; when the requested operation information received by the electric toothbrush is starting request information, controlling the working parameters of the motor of the electric toothbrush to be linearly increased to a preset value within preset time; said linear increase means an increase of 1HZ per second for the frequency of the motor; the duty ratio is increased by 1% per second, so that the frequency and the duty ratio of the motor are in a linear increasing trend along with the increase of time; the preset time is preferably 5 seconds, and within 5 seconds, a user can put the toothbrush into the oral cavity to start tooth brushing, so that toothpaste foam and water stains are effectively prevented from splashing on the body; the preset values are different when the electric toothbrush is in different modes; the modes of the electric toothbrush mainly comprise a cleaning mode, a whitening mode, a care mode and a tongue coating mode; when the electric toothbrush is in a cleaning mode, the preset value of the frequency in the working parameters of the motor is 270, and the duty ratio is 50 percent; when the electric toothbrush is in the whitening mode, the preset value of the frequency in the working parameters of the motor is 280HZ, and the duty ratio is 65%; when the electric toothbrush is in a care mode, the preset value of the frequency in the working parameters of the motor is 250HZ, and the duty ratio is 50 percent; when the electric toothbrush is in the tongue coating mode, the preset value of the frequency in the working parameters of the motor is 300Hz, and the duty ratio is 20%.
Optionally, the request operation information includes power on, mode switching, and power off;
specifically, the request operation information includes startup, mode switching and shutdown; the electric toothbrush has a mode memory function, when the electric toothbrush is powered off last time, the mode of the electric toothbrush is in, and after the electric toothbrush is powered on next time, the electric toothbrush is still in the mode of the power off last time and is started to work; the modes of the electric toothbrush include, but are not limited to, a cleaning mode, a whitening mode, a caring mode and a tongue coating mode, the four modes can be switched freely, and the modes can be switched through a touch screen or a button; for the electric toothbrush with the same button as the power-on and power-off button and the mode switching button, the electric toothbrush is turned on by pressing the button once, and is in a mode of last power-off, such as a whitening mode; then pressing a second button to switch modes, pressing one mode for switching once, and after pressing the second button, switching from the whitening mode to the caring mode; according to the third time, the care mode is switched to the tongue coating mode; when the user presses the fourth time, the tongue coating mode is switched to the cleaning mode, and the user is turned off when the user presses the fifth time; of course, this is only a partial and incomplete example, and the switching relationship between the number of times a button is pressed and the mode is not unique, which depends entirely on the setting of the program.
The operating parameters of the motor include frequency and duty cycle.
Specifically, the swinging amplitude and the force of the brush hair of the toothbrush head can be adjusted by adjusting the frequency and the duty ratio of the motor; the frequency refers to the number of times of motor swinging in 1s, and the higher the frequency is, the greater the number of times of motor swinging is; the duty ratio refers to the proportion of the power-on time relative to the total time in a pulse cycle, and the higher the duty ratio is, the longer the power-on time is, and the larger the amplitude and the force of the toothbrush swing are.
Further, referring to fig. 2, the controlling the operating parameter of the motor of the electric toothbrush to increase linearly to the preset value within the preset time includes:
s301: controlling the duty ratio in the motor working parameters to be kept unchanged; at the same time
S302: and controlling the frequency in the working parameters of the motor to linearly increase to a preset value within a preset time.
Specifically, in this embodiment, the controller unit controls the duty ratio in the operating parameters of the motor to be kept unchanged, that is, when the electric toothbrush is powered on, the duty ratio of the motor is the default duty ratio of the tooth brushing mode, for example, when the electric toothbrush is powered on, the default mode of the electric toothbrush is the whitening mode, and when the default duty ratio of the motor in the whitening mode is 65%, when the electric toothbrush is powered on, the duty ratio of the motor is 65%; meanwhile, the controller unit controls the frequency in the working parameters of the motor to be linearly increased to a preset value within preset time; after the motor is started, the frequency of the motor can be linearly increased to a preset value from a fixed value, the fixed value can be set in a program, and the fixed value is smaller than the preset value; for example, the fixed value of the frequency may be set to 230HZ or 220HZ, and preferably, the fixed value is set to 230HZ in the present embodiment; the frequency of the control motor is linearly increased from 230HZ to a preset value 280HZ at this time; by a linear increase of the motor frequency is meant that the motor frequency is gradually increased by 1HZ per second.
Further, referring to fig. 3, the controlling the operating parameter of the motor of the electric toothbrush to increase linearly to the preset value within the preset time includes:
s311: controlling the frequency in the working parameters of the motor to be kept unchanged; at the same time
S312: and controlling the duty ratio of the motor working parameters to be linearly increased to a preset value within a preset time.
Specifically, in this embodiment, the controller unit controls the frequency in the operating parameters of the motor to remain unchanged, that is, when the electric toothbrush is powered on, the frequency of the motor is the default frequency of the tooth brushing mode, for example, when the electric toothbrush is powered on, the mode of the electric toothbrush mode is the whitening mode, and when the default frequency of the motor in the whitening mode is 280HZ, when the electric toothbrush is powered on, the frequency of the motor is 280 HZ; meanwhile, the controller unit controls the duty ratio of the working parameters of the motor to be linearly increased to a preset value within preset time; the duty ratio of the motor can be linearly increased to a preset value from a fixed value after the motor is started, the fixed value can be set in a program, and the fixed value is smaller than the preset value; for example, the fixed value of the duty ratio may be set to 0% or 10%, preferably, the fixed value is set to 0% in this embodiment, and then the duty ratio of the control motor is linearly increased from 0% to the preset value of 65%; by a linear increase in the motor duty cycle is meant that the motor duty cycle is gradually increased by 1% per second.
Further, referring to fig. 4, the controlling the operating parameter of the motor of the electric toothbrush to increase linearly to the preset value within the preset time includes:
s321: controlling the frequency in the motor working parameters to linearly increase to a preset value within preset time; at the same time
S322: and controlling the duty ratio of the motor working parameters to be linearly increased to a preset value within a preset time.
Specifically, in this embodiment, the controller unit is to control the frequency of the operating parameter of the motor to be linearly increased to a preset value within a preset time; after the motor is started, the frequency of the motor can be linearly increased to a preset value from a fixed value, the fixed value can be set in a program, and the fixed value is smaller than the preset value; for example, the fixed value of the frequency may be set to 230HZ or 220HZ, and preferably, the fixed value is set to 230HZ in the present embodiment; the frequency of the control motor is linearly increased from 230HZ to a preset value 280HZ at this time; the linear increase of the motor frequency means that the motor frequency gradually increases in a manner of increasing by 1HZ per second; meanwhile, the controller unit controls the duty ratio of the working parameters of the motor to be linearly increased to a preset value within a preset time; the duty ratio of the motor can be linearly increased to a preset value from a fixed value after the motor is started, the fixed value can be set in a program, and the fixed value is smaller than the preset value; for example, the fixed value of the duty ratio may be set to 0% or 10%, preferably, the fixed value is set to 0% in this embodiment, and then the duty ratio of the control motor is linearly increased from 0% to the preset value of 65%; by a linear increase in the motor duty cycle is meant that the motor duty cycle is gradually increased by 1% per second.
Further, the modes include a cleaning mode, a whitening mode, a care mode, and a tongue coating mode;
the preset value of the frequency in the working parameters of the motor in the cleaning mode is 265-275 HZ, and the duty ratio is 45-55%;
specifically, the preset value of the frequency in the operating parameters of the motor in the cleaning mode may be 270HZ, and the preset value of the duty ratio is 50%.
The preset value of the frequency in the working parameters of the motor in the whitening mode is 275HZ-285HZ, and the duty ratio is 60% -70%;
specifically, the preset value of the frequency in the working parameters of the motor in the whitening mode may be 280HZ, and the preset value of the duty ratio is 65%.
The preset value of the frequency in the working parameters of the motor in the care mode is 245HZ-255HZ, and the duty ratio is 45% -55%;
specifically, the preset value of the frequency in the working parameters of the motor in the care mode may be 250HZ, and the preset value of the duty ratio is 50%.
The preset value of the frequency in the working parameters of the motor in the tongue coating mode is 295HZ-305HZ, and the duty ratio is 15% -25%.
Specifically, the preset value of the frequency in the working parameters of the motor in the tongue coating mode may be 300HZ, and the preset value of the duty ratio is 20%.
Optionally, the preset time is 3-5 seconds.
Specifically, the working parameters of the motor are linearly increased to a preset value within a preset time, and the preset time is 5 seconds.
In a second aspect, referring to fig. 5, the present invention provides a splash guard system for a power toothbrush, comprising:
a receivingunit 1 for receiving request operation information input by a user;
specifically, the receivingunit 1 is configured to receive request operation information input by a user, where the request operation information includes a power-on mode, a switching mode, and a power-off mode.
The judgingunit 3 is used for judging whether the request operation information is starting request information or not;
specifically, the judgingunit 3 judges whether the operation information of the request received by thecurrent receiving unit 1 is the starting request information, and if so, controls the working parameters of the motor of the electric toothbrush to be linearly increased to the preset value within the preset time.
And acontroller unit 2 for controlling the motor operating parameter of the electric toothbrush to be linearly increased to a preset value within a preset time.
Specifically, thecontroller unit 2 may be a single chip microcomputer, and is configured to control the working parameter of the motor to be linearly increased to a preset value within a preset time. Said linear increase means an increase of 1HZ per second for the frequency of the motor; the duty ratio is increased by 1% per second, so that the frequency and the duty ratio of the motor are in a linear increasing trend along with the increase of time; the preset time is preferably 5 seconds, and within 5 seconds, a user can put the toothbrush into the oral cavity to start tooth brushing, so that toothpaste foam and water stains are effectively prevented from splashing on the body; the preset values are different when the electric toothbrush is in different modes; the modes of the electric toothbrush mainly comprise a cleaning mode, a whitening mode, a care mode and a tongue coating mode; when the electric toothbrush is in a cleaning mode, the preset value of the frequency in the working parameters of the motor is 270, and the duty ratio is 50 percent; when the electric toothbrush is in the whitening mode, the preset value of the frequency in the working parameters of the motor is 280HZ, and the duty ratio is 65%; when the electric toothbrush is in a care mode, the preset value of the frequency in the working parameters of the motor is 250HZ, and the duty ratio is 50 percent; when the electric toothbrush is in the tongue coating mode, the preset value of the frequency in the working parameters of the motor is 300Hz, and the duty ratio is 20%.
In a third aspect, the present invention provides a readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the method for splash protection of an electric toothbrush of the first aspect or any of the optional designs of the first aspect.
The splashproof method or system of the electric toothbrush, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the present readable storage medium. Based on such understanding, all or part of the flow in the method of implementing the above embodiments of the present invention may also be implemented by hardware related to computer program instructions.
The computer program may be stored in a readable storage medium, which is a computer readable storage medium, and when being executed by a processor module, the computer program may implement the steps of the embodiments of the processing method for operating commands of a bluetooth device, where the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate file form, and the like. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording media, U-disk, removable hard disk, magnetic diskette, optical disk, computer memory, random access memory, software distribution media and the like.
In a fourth aspect, referring to fig. 6, the present invention provides an electronic device, including: a readable storage medium of the third aspect, and one or more processors to execute a program in the readable storage medium of the third aspect.
Specifically, fig. 6 is a schematic diagram of a hardware entity of an embodiment of an electronic device according to the present invention. Specifically, theelectronic device 4 includes an electric toothbrush; the hardware entities of theelectronic device 4 as shown comprise: acommunication interface 401, aprocessor 402, amemory 403, and abus 404. Wherein the processor generally controls the overall operation of the electronic device. The communication interface may enable theelectronic device 4 to communicate with other terminals or servers via a network. The readable Memory is configured to store instructions and applications executable by the processor, and may also cache data to be processed or already processed by the processor and modules in theelectronic device 4, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
Here, it should be noted that: the above description of the readable storage medium and the embodiment of the electronic apparatus is similar to the above description of the embodiment of the splashproof method of the electric toothbrush, with similar advantageous effects to the embodiment of the splashproof method of the electric toothbrush. For technical details not disclosed in the embodiments of the readable storage medium and the electronic device of the present invention, reference is made to the description of the embodiments of the splashproof method of the electric toothbrush of the present invention described above.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.