Cosmetic instrument control method, storage medium and electronic device
By acquiring the temperature and acceleration of the skin in contact with the electrode head of the beauty device in real time, and using the PID algorithm to calculate the PWM control value, the output power of the radio frequency beauty device is adjusted, thus solving the risk of burns caused by inaccurate temperature control in existing technologies and achieving safe and precise temperature control.
Patent Information
- Application Number
- CN202211714107.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2042-12-27
AI Technical Summary
Existing methods for controlling the temperature of radio frequency beauty devices pose a risk of burns, especially when the device is fixed in a certain position on the skin or moves within a small area and outputs a high level, making it difficult to achieve precise temperature control.
By acquiring the current temperature and movement acceleration of the skin when the beauty device's electrode head contacts the skin in real time, the PID coefficient is obtained using a preset acceleration-coefficient relationship table, the PWM control value is calculated, and the output power of the beauty device is adjusted to achieve precise temperature control.
It achieves precise and safe control of the temperature of the beauty device, avoiding burns and improving safety and comfort during use.
Smart Images

Figure CN116036481B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of beauty technology, and in particular to a beauty instrument control method, storage medium, and electronic device. Background Technology
[0002] The working principle of radiofrequency (RF) beauty devices is mainly to utilize the thermal effect generated by electric current or electric field energy on human tissue to achieve the desired treatment purpose. In the treatment of skin and scars, RF beauty devices primarily use the thermal effect generated by electrical energy to act on the dermis or subcutaneous tissue, causing collagen cells to shrink due to heat, resulting in reversible thermal damage. This induces the skin to activate its own repair mechanism, thereby causing the synthesis of new collagen fibers and collagen remodeling. RF beauty devices all have temperature control algorithms used to adjust the RF output power in real time when acting on the human skin.
[0003] Radio frequency (RF) beauty devices often have temperature sensors with large time constants and slow thermal response, meaning the detected temperature is not real-time. Furthermore, heating the skin via RF electrodes results in a very rapid temperature rise, potentially far exceeding the thermal response speed of the temperature sensor. This makes it difficult for RF beauty devices to effectively maintain stable temperature control.
[0004] Existing temperature control methods for radio frequency (RF) beauty devices primarily rely on accelerometers to determine device movement. When the device is moving, it outputs at a set level; when it's stationary, the output stops. However, during the development of this invention, the inventors discovered the following drawbacks in existing RF beauty device temperature control methods:
[0005] 1) If the beauty device is fixed in a certain position on the skin and the user is moving it, there is a risk of burns;
[0006] 2) There is a risk of burns when the beauty device has a small range of motion and the output is at a high level. Summary of the Invention
[0007] The purpose of this invention is to overcome the shortcomings of existing beauty device control methods, such as the risk of burns and inaccurate temperature control, and to provide a beauty device control method, storage medium, and electronic device.
[0008] The technical solution of the present invention provides a method for controlling a beauty device, comprising:
[0009] The current temperature of the skin in contact with the electrode head of the beauty device and the acceleration of the moving beauty device are obtained;
[0010] The PID coefficients are obtained based on the acceleration and the preset acceleration-coefficient relationship table.
[0011] The PWM control value of the beauty device is calculated based on the PID coefficient and the current temperature.
[0012] The output power of the beauty device is controlled according to the PWM control value.
[0013] Furthermore, calculating the PWM control value of the beauty device based on the PID coefficients and the current temperature includes:
[0014] Calculate the current temperature difference between the current temperature and the preset target temperature;
[0015] Calculate the average temperature difference of the current temperature difference within a preset time period;
[0016] Calculate the deviation between the current temperature difference and the historical temperature difference at the previous moment;
[0017] The PWM control value is calculated based on the current temperature difference, the average temperature difference, the deviation temperature difference, and the PID coefficient.
[0018] Furthermore, the PID coefficients include a first weighting coefficient, a second weighting coefficient, and a third weighting coefficient. The step of calculating the PWM control value based on the current temperature difference, the average temperature difference, the deviation temperature difference, and the PID coefficients includes:
[0019] The PWM control value is obtained by summing the product of the current temperature difference and the first weighting coefficient, the product of the average temperature difference and the second weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient.
[0020] Further, the first weighting coefficient includes sequentially increasing first sub-weighting coefficients, second sub-weighting coefficients, third sub-weighting coefficients, and fourth sub-weighting coefficients; the second weighting coefficient includes sequentially increasing fifth sub-weighting coefficients, sixth sub-weighting coefficients, seventh sub-weighting coefficients, and eighth sub-weighting coefficients; and the step of summing the product of the current temperature difference and the first weighting coefficient, the product of the average temperature difference and the second weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value includes:
[0021] If the acceleration meets the preset first speed threshold, the product of the current temperature difference and the first sub-weighting coefficient, the product of the average temperature difference and the fifth sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient are summed to obtain the PWM control value;
[0022] If the acceleration meets the preset second speed threshold, the product of the current temperature difference and the second sub-weighting coefficient, the product of the average temperature difference and the sixth sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient are summed to obtain the PWM control value, wherein the preset second speed threshold is greater than the preset first speed threshold.
[0023] If the acceleration meets the preset third speed threshold, the product of the current temperature difference and the third sub-weighting coefficient, the product of the average temperature difference and the seventh sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient are summed to obtain the PWM control value, and the preset third speed threshold is greater than the preset second speed threshold.
[0024] If the acceleration meets the preset fourth speed threshold, the product of the current temperature difference and the fourth sub-weighting coefficient, the product of the average temperature difference and the eighth sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient are summed to obtain the PWM control value, wherein the preset fourth speed threshold is greater than the preset third speed threshold.
[0025] Furthermore, the step of controlling the output power of the beauty device according to the PWM control value further includes:
[0026] If the PWM control value is greater than the preset control threshold, and the deviation between the current temperature difference and the historical temperature difference at the previous moment is greater than the preset temperature difference threshold, the PWM control value is adjusted according to the deviation temperature difference.
[0027] Furthermore, adjusting the PWM control value based on the temperature deviation includes:
[0028] The PWM compensation value is calculated using the following formula:
[0029] y = a * log 10 xb
[0030] Where y is the PWM compensation value; x is the temperature deviation; a is a constant; b is a constant;
[0031] The PWM control value is adjusted according to the PWM compensation value.
[0032] The present invention also provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform all steps of the beauty device control method described above.
[0033] The present invention also provides an electronic device, comprising:
[0034] At least one processor; and,
[0035] A memory communicatively connected to the at least one processor; wherein,
[0036] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the beauty device control method as described above.
[0037] The above technical solution has the following beneficial effects: By acquiring the current temperature of the skin in contact with the electrode head of the beauty device and the acceleration of the beauty device in real time, the PID coefficient is obtained according to the acceleration and the preset acceleration-coefficient relationship table. The PWM control value of the beauty device is calculated according to the PID coefficient and the current temperature. The output power of the beauty device is controlled according to the PWM control value, thereby controlling the temperature of the beauty device. This achieves more accurate and safer temperature control of the beauty device, avoiding burns when the beauty device is fixed in a certain position on the skin or when the beauty device is used for small-area treatment and the output is at a high level. Attached Figure Description
[0038] The disclosure of this invention will become more readily understood by referring to the accompanying drawings. It should be understood that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this invention. In the drawings:
[0039] Figure 1 A flowchart illustrating the workflow of a beauty device control method provided in Embodiment 1 of the present invention;
[0040] Figure 2 This is a flowchart illustrating a beauty device control method according to Embodiment 2 of the present invention.
[0041] Figure 3 This is a schematic diagram of the hardware structure of an electronic device for controlling a beauty instrument, provided in Embodiment 4 of the present invention. Detailed Implementation
[0042] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0043] It is readily understood that, based on the technical solution of this invention, various structural and implementation methods can be interchanged by those skilled in the art without altering the essential spirit of the invention. Therefore, the following detailed embodiments and accompanying drawings are merely illustrative examples of the technical solution of this invention and should not be considered as the entirety of the invention or as limitations or restrictions on the technical solution of the invention.
[0044] The directional terms such as up, down, left, right, front, back, front, back, top, and bottom mentioned or possibly used in this specification are defined relative to the structures shown in the accompanying drawings. They are relative concepts and may therefore vary depending on their location and usage. Therefore, these or other directional terms should not be interpreted as restrictive.
[0045] Example 1
[0046] like Figure 1 As shown, Figure 1A flowchart of a beauty device control method provided in Embodiment 1 of the present invention includes:
[0047] Step S101: Obtain the current temperature of the skin in contact with the electrode head of the beauty device and the acceleration of the movement of the beauty device;
[0048] Step S102: Obtain the PID coefficients based on the acceleration and the preset acceleration-coefficient relationship table;
[0049] Step S103: Calculate the PWM control value of the beauty device based on the PID coefficients and the current temperature;
[0050] Step S104: Control the output power of the beauty device according to the PWM control value.
[0051] Specifically, when the beauty device starts working, the controller executes step S101 to obtain the current temperature of the skin in contact with the electrode head of the beauty device and the acceleration of the beauty device's movement; then, the controller executes step S102 to obtain the PID coefficient corresponding to the acceleration from a preset acceleration-coefficient relationship table; then, the controller executes step S103 to calculate the PWM control value of the beauty device using a PID algorithm based on the PID coefficient and the current temperature; finally, the controller executes step S104 to control the output power of the beauty device based on the PWM control value, thereby controlling the temperature of the beauty device, achieving more accurate and safer temperature control of the beauty device, and avoiding burns.
[0052] In this embodiment of the invention, the current temperature of the skin in contact with the electrode head of the beauty device and the acceleration of the beauty device's movement are acquired in real time. PID coefficients are obtained based on the acceleration and a preset acceleration-coefficient relationship table. The pulse width modulation (PWM) control value of the beauty device is calculated based on the PID coefficients and the current temperature. The on / off ratio of the PWM is adjusted according to the PWM control value to control the output power of the beauty device, thereby controlling the temperature of the beauty device. This achieves more accurate and safer temperature control of the beauty device, avoiding burns when the beauty device is fixed to a certain position on the skin or when the beauty device is used for small-area treatment and the output is at a high level.
[0053] In one embodiment, step S103 includes:
[0054] Calculate the current temperature difference between the current temperature and the preset target temperature;
[0055] Calculate the average temperature difference of the current temperature difference within the preset time period;
[0056] Calculate the temperature difference between the current temperature difference and the historical temperature difference at the previous moment;
[0057] The PWM control value of the beauty device is calculated based on the current temperature difference, average temperature difference, deviation temperature difference, and PID coefficient.
[0058] Specifically, when the current temperature T is obtained C After adjusting for the PID coefficients, the controller calculates the current temperature and the preset target temperature T. D Current temperature difference T X That is, T X =T D -T C Secondly, the controller calculates the average temperature difference ΔT within a preset time period, i.e., ΔT = (T X1 +T X2 +T X3 +…T Xn The value is calculated as ) / n, where n is the number of current temperatures acquired within a preset time period; then, the controller calculates the current temperature difference T. X The historical temperature difference T from the previous moment X ' temperature difference D' X D X =T X -T X Finally, the controller calculates the PWM control value using the PID algorithm based on the current temperature difference, average temperature difference, deviation temperature difference, and PID coefficient. It then adjusts the PWM on / off ratio according to the PWM control value to control the output power of the beauty device, thereby controlling the temperature of the beauty device. This achieves more accurate and safer temperature control of the beauty device and avoids burns.
[0059] The target temperature and preset time period can be set according to user needs, and these parameters are related to the beauty device's parameters.
[0060] In one embodiment, to further and more accurately and safely control the temperature of the beauty device, the PID coefficients include a first weighting coefficient, a second weighting coefficient, and a third weighting coefficient. The calculation of the PWM control value based on the current temperature difference, the average temperature difference, the deviation temperature difference, and the PID coefficients includes:
[0061] The PWM control value is obtained by summing the product of the current temperature difference and the first weighting coefficient, the product of the average temperature difference and the second weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient.
[0062] In one embodiment, to further and more accurately and safely control the temperature of the beauty device, the step of controlling the output power of the beauty device according to the PWM control value further includes:
[0063] If the PWM control value is greater than the preset control threshold, and the deviation between the current temperature difference and the historical temperature difference at the previous moment is greater than the preset temperature difference threshold, the PWM control value is adjusted according to the deviation temperature difference.
[0064] Specifically, if the PWM control value is greater than the preset control threshold, a large temperature difference will cause the temperature to rise too quickly, which can quickly reduce the output power of the beauty device to ensure safety during use; a small temperature difference will cause the temperature to rise more slowly, which can gradually reduce the output power of the beauty device to improve comfort.
[0065] In one embodiment, to further and more accurately and safely control the temperature of the beauty device, the step of adjusting the PWM control value based on the temperature deviation includes:
[0066] The PWM compensation value is calculated using the following formula:
[0067] y = a * log 10 xb
[0068] Where y is the PWM compensation value; x is the temperature deviation; a is a constant; b is a constant;
[0069] Adjust the PWM control value based on the PWM compensation value.
[0070] Example 2
[0071] Based on the above embodiments, such as Figure 2 As shown, Figure 2 A flowchart of a beauty device control method provided in Embodiment 2 of the present invention includes:
[0072] Step S201: Obtain the acceleration of the moving beauty device;
[0073] Step S202: Determine whether the acceleration meets the preset first velocity threshold;
[0074] Step S203: Determine whether the acceleration meets the preset second velocity threshold;
[0075] Step S204: Determine whether the acceleration meets the preset third velocity threshold;
[0076] Step S205: Determine whether the acceleration meets the preset fourth velocity threshold;
[0077] Step S206: Set the first weighting coefficient as the first sub-weighting coefficient and the second weighting coefficient as the fifth sub-weighting coefficient;
[0078] Step S207: Set the first weighting coefficient as the second sub-weighting coefficient, and set the second weighting coefficient as the sixth sub-weighting coefficient;
[0079] Step S208: Set the first weighting coefficient as the third sub-weighting coefficient and the second weighting coefficient as the seventh sub-weighting coefficient;
[0080] Step S209: Set the first weighting coefficient as the fourth sub-weighting coefficient and the second weighting coefficient as the eighth sub-weighting coefficient;
[0081] Step S210: Sum the product of the current temperature difference and the first weighting coefficient, the product of the average temperature difference and the second weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value;
[0082] Step S211: Control the output power of the beauty device according to the PWM control value.
[0083] Specifically, when the beauty device starts working, the controller executes step S201 to obtain the acceleration of the beauty device's movement in real time through an accelerometer or similar means; then, the controller executes step S202 to determine whether the acceleration meets a preset first speed threshold. If it does, step S206 is executed; otherwise, step S203 is executed. In step S203, it is determined whether the acceleration meets a preset second speed threshold. If it does, step S207 is executed; otherwise, step S204 is executed. In step S204, it is determined whether the acceleration meets a preset third speed threshold. If it does, step S208 is executed; otherwise, step S209 is executed. 05; In step S205, it is determined whether the acceleration meets the preset fourth speed threshold. If yes, step S209 is executed; otherwise, step S201 is executed. Then, the controller executes step S210 to sum the product of the current temperature difference and the first weighting coefficient, the product of the average temperature difference and the second weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value. Finally, the controller executes step S211 to control the output power of the beauty device according to the PWM control value, thereby controlling the output power of the beauty device according to the different moving speeds of the beauty device and the corresponding weighting coefficients, further improving the accuracy.
[0084] The preset first speed threshold, preset second speed threshold, preset third speed threshold, and preset fourth speed threshold can be set according to user needs. The preset second speed threshold is greater than the preset first speed threshold, the preset third speed threshold is greater than the preset second speed threshold, and the preset fourth speed threshold is greater than the preset third speed threshold.
[0085] The first, second, third, fourth, fifth, sixth, seventh, and eighth sub-weighting coefficients can be set according to user needs.
[0086] In this embodiment, the order of steps S202-S209 is only for ease of explanation and does not constitute a limitation on the claims. Those skilled in the art should understand that as long as the controller determines that the acceleration meets the corresponding speed threshold (preset first speed threshold, preset second speed threshold, preset third speed threshold, or preset fourth speed threshold), the corresponding steps can be performed.
[0087] Example 3
[0088] Embodiment 3 of the present invention provides a storage medium for storing computer instructions. When the computer executes the computer instructions, it is used to perform all steps of the beauty device control method in any of the method embodiments described above.
[0089] Example 4
[0090] like Figure 3 As shown in the figure, a hardware structure diagram of an electronic device for controlling a beauty instrument provided in Embodiment 4 of the present invention includes:
[0091] At least one processor 301; and,
[0092] Memory 302 is communicatively connected to at least one processor 301; wherein,
[0093] The memory 302 stores instructions that can be executed by at least one processor 301, which enables the at least one processor 301 to perform the beauty device control method as described above.
[0094] Figure 3 Take processor 301 as an example.
[0095] The electronic device is preferably an electronic control unit (ECU).
[0096] The electronic device may also include an input device 303 and an output device 304.
[0097] The processor 301, memory 302, input device 303 and output device 304 can be connected by a bus or other means. The figure shows an example of connection by bus.
[0098] The memory 302, as a non-volatile computer-readable storage medium, can be used to obtain non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the beauty instrument control method in the embodiments of this application, for example, Figures 1-3 The method flow is shown. The processor 301 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules acquired in the memory 302, thereby realizing the beauty device control method in the above embodiments.
[0099] The memory 302 may include a program acquisition area and a data acquisition area, wherein the program acquisition area may acquire the operating system and applications required for at least one function; the data acquisition area may acquire data created according to the use of the beauty device control method, etc. Furthermore, the memory 302 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 302 may optionally include memory remotely located relative to the processor 301, and these remote memories may be connected to the apparatus performing the beauty device control method via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0100] The input device 303 can receive user clicks and generate signal inputs related to user settings and function control of the beauty device. The output device 304 may include a display screen or other display device.
[0101] When the one or more modules are accessed in the memory 302 and are run by the one or more processors 301, the beauty device control method in any of the above method embodiments is executed.
[0102] The above-described product can perform the methods provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects for performing the methods. Technical details not described in detail in this embodiment can be found in the methods provided in the embodiments of this application.
[0103] The electronic devices of this invention exist in various forms, including but not limited to:
[0104] (1) Electronic Control Unit (ECU), also known as "vehicle computer" or "on-board computer", is mainly composed of a microprocessor (CPU), memory (ROM, RAM), input / output interface (I / O), analog-to-digital converter (A / D), and large-scale integrated circuits for shaping and driving.
[0105] (2) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include: smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones, etc.
[0106] (3) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include: PDAs, MIDs, and UMPCs, etc.
[0107] (4) Portable entertainment devices: These devices can display and play multimedia content. This category includes: audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0108] (5) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0109] (6) Other electronic devices with data interaction functions.
[0110] Furthermore, the logical instructions in the aforementioned memory 302 can be implemented as software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a mobile terminal (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of acquiring program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0111] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the embodiments of the present invention according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0112] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and are not intended to limit them. Although the embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling a cosmetic device, the method comprising: receiving a user input; and controlling the cosmetic device based on the user input. The method comprises: obtaining a current temperature of skin in contact with an electrode head of a beauty instrument and an acceleration of movement of the beauty instrument; obtaining PID coefficients according to the acceleration and a preset acceleration-coefficient relationship table, the PID coefficients comprising a first weighting coefficient, a second weighting coefficient and a third weighting coefficient; calculating a PWM control value of the beauty instrument according to the PID coefficients and the current temperature: calculating a current temperature difference between the current temperature and a preset target temperature; calculating an average temperature difference of the current temperature difference in a preset time period; and calculating a deviation temperature difference between the current temperature difference and a historical temperature difference at a previous time; calculating the PWM control value according to the current temperature difference, the average temperature difference, the deviation temperature difference and the PID coefficients: summing a product of the current temperature difference and the first weighting coefficient, a product of the average temperature difference and the second weighting coefficient, and a product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value; controlling an output power of the beauty instrument according to the PWM control value.
2. The cosmetic instrument control method of claim 1, wherein, The first weighting coefficient comprises first, second, third and fourth sub-weighting coefficients that increase in turn, the second weighting coefficient comprises fifth, sixth, seventh and eighth sub-weighting coefficients that increase in turn, and the summing of the product of the current temperature difference and the first weighting coefficient, the product of the average temperature difference and the second weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value comprises: if the acceleration meets a preset first speed threshold, summing the product of the current temperature difference and the first sub-weighting coefficient, the product of the average temperature difference and the fifth sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value; if the acceleration meets a preset second speed threshold, summing the product of the current temperature difference and the second sub-weighting coefficient, the product of the average temperature difference and the sixth sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value, the preset second speed threshold being greater than the preset first speed threshold; if the acceleration meets a preset third speed threshold, summing the product of the current temperature difference and the third sub-weighting coefficient, the product of the average temperature difference and the seventh sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value, the preset third speed threshold being greater than the preset second speed threshold; if the acceleration meets a preset fourth speed threshold, summing the product of the current temperature difference and the fourth sub-weighting coefficient, the product of the average temperature difference and the eighth sub-weighting coefficient, and the product of the deviation temperature difference and the third weighting coefficient to obtain the PWM control value, the preset fourth speed threshold being greater than the preset third speed threshold.
3. The cosmetic instrument control method according to claim 1 or 2, characterized by, Before the controlling of the output power of the beauty instrument according to the PWM control value, the method further comprises: If the PWM control value is greater than a preset control threshold, and a deviation temperature difference between the current temperature difference and a historical temperature difference at a previous time is greater than a preset temperature difference threshold, the PWM control value is adjusted according to the deviation temperature difference.
4. The cosmetic instrument control method of claim 3, wherein, The adjusting the PWM control value according to the deviation temperature difference comprises: A PWM compensation value is calculated by using the following formula: y = a * log 10 x - b Wherein, y is the PWM compensation value; x is the deviation temperature difference; a is a constant; b is a constant; The PWM control value is adjusted according to the PWM compensation value.
5. A storage medium, characterized by The storage medium stores computer instructions, when the computer executes the computer instructions, all steps of the cosmetic instrument control method in any one of claims 1-4 are executed.
6. An electronic device, comprising: Comprise: At least one processor; And, The memory is in communication connection with the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the cosmetic instrument control method in any one of claims 1-4.
Citation Information
Patent Citations
Laser output apparatus, system and method
CN109394341A
Handheld radio frequency instrument temperature control system and method based on gyroscope
CN112545646A