Disclosure of Invention
In view of the above deficiencies of the prior art, the present invention provides a method for adjusting power of a microwave oven, a device for adjusting power of a microwave oven, and a computer readable storage medium, which can effectively achieve consistency of output power of a microwave oven.
In order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides a power adjustment method for a microwave oven, which is applied to the microwave oven; the method comprises the following steps: step S1, powering on the microwave oven;
s2, detecting an actual input power value of an external variable frequency power supply connected with the microwave oven, comparing the actual input power value with a theoretical input power value prestored in the microwave oven to obtain a difference value, increasing or decreasing a duty ratio of a PWM (pulse-width modulation) signal generated by a microcontroller of the microwave oven according to a preset value according to the difference value, generating frequency regulation information according to the duty ratio, and storing the frequency regulation information;
and S3, adjusting the microwave oven variable frequency output by the microwave oven variable frequency driver during the actual work of the microwave oven according to the frequency adjusting information, and controlling the current power output value of the magnetron of the microwave oven according to the microwave oven variable frequency so as to enable the power output value to be the same as a preset power output theoretical value.
Preferably, the microwave oven has N-grade firepower, wherein N is a positive integer greater than or equal to 2;
the step S2 specifically includes the steps of:
step S21, setting the firepower level of the microwave oven to be 1 level, detecting the input power of an external variable frequency power supply connected with the microwave oven in real time and generating a first input power value;
step S210, comparing the first input power value with a theoretical input power value corresponding to a firepower level of 1 pre-stored in the microwave oven to obtain a first difference value, and judging whether the first difference value is a positive number:
if so, reducing a first duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to a preset value according to the first difference value, generating first frequency regulation information according to the first duty ratio, and storing the first frequency regulation information;
if not, increasing a first duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to a preset value according to the first difference value, generating first frequency regulation information according to the first duty ratio, and storing the first frequency regulation information;
step S22, increasing the firepower level of the microwave oven by one level and setting the firepower level as 2 levels, detecting the input power of an external variable frequency power supply connected with the microwave oven in real time and generating a second input power value;
step S220, comparing the second input power value with a theoretical input power value corresponding to a firepower level of 2 pre-stored in the microwave oven to obtain a second difference value, and judging whether the second difference value is a positive number:
if so, reducing a second duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to the second difference value and a preset value, generating second frequency regulation information according to the second duty ratio, and storing the second frequency regulation information;
if not, increasing a second duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to a preset value according to the second difference value, generating second frequency regulation information according to the second duty ratio, and storing the second frequency regulation information;
sequentially increasing the firepower level of the microwave oven by one level until reaching N levels, and setting two steps corresponding to the firepower level when the firepower level of the microwave oven is increased by one level, wherein the setting contents of the two steps when the firepower level is the N level are respectively the same as the step S2N and the step S2N 0;
S2N, setting the firepower level of the microwave oven to be N, detecting the input power of an external variable frequency power supply connected with the microwave oven in real time and generating an Nth input power value;
S2N0, comparing the Nth input power value with a theoretical input power value corresponding to an N-gear fire gear prestored in the microwave oven to obtain an Nth difference value, and judging whether the Nth difference value is a positive number:
if so, reducing the Nth duty cycle of a PWM signal generated by a microcontroller of the microwave oven according to the Nth difference value and a preset value, generating Nth frequency regulation information according to the Nth duty cycle, and storing the Nth frequency regulation information;
if not, increasing the Nth duty cycle of a PWM signal generated by a microcontroller of the microwave oven according to the Nth difference value and a preset value, generating Nth frequency regulation information according to the Nth duty cycle, and storing the Nth frequency regulation information;
and S2N +1, setting the firepower gear of the microwave oven to be in a state to be set by an external user.
Preferably, the step S3 specifically includes the following steps:
s31, detecting a firepower gear of the microwave oven in real time during actual working;
step S32, selecting one of the first to the Nth frequency adjustment information corresponding to the firepower gear in actual operation as corresponding frequency adjustment information according to the detected firepower gear in actual operation of the microwave oven;
and S33, adjusting the variable frequency of the microwave oven output by a variable frequency driver of the microwave oven according to the frequency adjusting information, and controlling the current power output value of the magnetron of the microwave oven according to the variable frequency of the microwave oven.
In a second aspect, an embodiment of the present invention further provides a microwave oven, including: the power supply equipment is used for connecting an external variable frequency power supply to supply power;
the input equipment is used for detecting the actual input power value of an external variable frequency power supply connected with the microwave oven, comparing the actual input power value with a theoretical input power value prestored in the microwave oven to obtain a difference value, increasing or decreasing the duty ratio of a PWM (pulse width modulation) signal generated by a microcontroller of the microwave oven according to a preset value according to the difference value, and generating frequency regulation information according to the duty ratio;
a storage device for storing the frequency adjustment information;
the output equipment is used for adjusting the microwave oven variable frequency output by the microwave oven variable frequency driver when the microwave oven actually works according to the frequency adjusting information, and then controlling the current power output value of the magnetron of the microwave oven according to the microwave oven variable frequency so as to enable the power output value to be the same as the preset power output theoretical value;
wherein the input device, the storage device and the output device are connected in sequence.
Preferably, the input device comprises a power test program processor, a display and a knob device;
the power test program processor is used for detecting the actual input power value of an external variable frequency power supply connected with the microwave oven in real time, comparing the actual input power value with a theoretical input power value prestored in the microwave oven and obtaining a difference value;
the display is used for displaying the difference value, the variable frequency of the microwave oven and the preset numerical value;
the knob is used for adjusting the duty ratio of a PWM signal generated by a microcontroller of the microwave oven.
Preferably, the storage device is a charged erasable programmable read only memory.
Preferably, the output device comprises a microcontroller, a magnetron and a microwave oven variable frequency driver;
the microcontroller is used for generating the duty ratio of the PWM signal according to the difference value and generating frequency regulation information according to the duty ratio;
the microwave oven variable frequency driver is used for generating the frequency adjusting information into microwave oven variable frequency, and controlling the working power of the magnetron according to the microwave oven variable frequency so as to adjust the current power output value of the microwave oven;
the magnetron is used for adjusting and outputting microwaves for heating according to the frequency conversion frequency of the microwave oven.
In a third aspect, an embodiment of the present invention further provides a microwave oven power adjustment apparatus, including a processor and a memory, where the processor is configured to read a program in the memory and execute the steps in the microwave oven power adjustment method provided in the embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, implement the steps in the microwave oven power adjustment method as described above.
The invention has the beneficial effects that: the invention provides a microwave oven power adjusting method, a microwave oven, microwave oven power adjusting equipment and a computer readable storage medium, wherein the microwave oven power adjusting method comprises the following steps: step S1, powering on the microwave oven; s2, detecting an actual input power value of an external variable frequency power supply connected with the microwave oven, comparing the actual input power value with a theoretical input power value prestored in the microwave oven to obtain a difference value, increasing or decreasing the duty ratio of a PWM (pulse-width modulation) signal generated by a microcontroller of the microwave oven according to a preset value according to the difference value, generating frequency regulation information according to the duty ratio, and storing the frequency regulation information; and S3, adjusting the microwave oven variable frequency output by the microwave oven variable frequency driver during the actual work of the microwave oven according to the frequency adjusting information, and controlling the current power output value of the magnetron of the microwave oven according to the microwave oven variable frequency so as to enable the power output value to be the same as a preset power output theoretical value. According to the operation from the step S1 to the step S3, the duty ratio of the PWM signal is adjusted through the step S2 to generate frequency adjustment information, and then the power output value of the microwave oven is adjusted through the step S3, so that the problem that the microwave oven has individual difference in components in batch production is solved, the frequency conversion frequency of the microwave oven can be flexibly corrected, the power output of each microwave oven is close to an ideal value, and the consistency of the output power of the microwave oven can be effectively realized.
Detailed Description
The following detailed description of the embodiments of the invention refers to the accompanying drawings.
The embodiments/examples described herein are specific embodiments of the present invention, are intended to be illustrative of the concepts of the present invention, are intended to be illustrative and exemplary, and should not be construed as limiting the embodiments and scope of the invention. In addition to the embodiments described herein, those skilled in the art will be able to employ other technical solutions which are obvious based on the disclosure of the claims and the specification of the present application, and these technical solutions include those which make any obvious replacement or modification of the embodiments described herein, and all of which are within the scope of the present invention.
The invention provides a power adjusting method for a microwave oven. The microwave oven power adjusting method is applied to a microwave oven.
Referring to fig. 1, fig. 1 is a block diagram illustrating a power adjustment method of a microwave oven according to the present invention.
And S1, powering on the microwave oven.
S2, detecting an actual input power value of an external variable frequency power supply connected with the microwave oven, comparing the actual input power value with a theoretical input power value prestored in the microwave oven to obtain a difference value, increasing or decreasing the duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to a preset value according to the difference value, generating frequency regulation information according to the duty ratio, and storing the frequency regulation information.
In this embodiment, the microwave oven has N levels of fire power, where N is a positive integer greater than or equal to 2. And when the step S2 is implemented, the microwave oven enters a power test mode.
Referring to fig. 2, fig. 2 is a block diagram illustrating a flow of step S2 of a power adjustment method for a microwave oven according to the present invention. The step S2 specifically includes the following steps:
and S21, setting the firepower level of the microwave oven to be 1 level, detecting the input power of an external variable frequency power supply connected with the microwave oven in real time and generating a first input power value.
Step S210, comparing the first input power value with a theoretical input power value corresponding to a firepower level of 1 pre-stored in the microwave oven to obtain a first difference value, and judging whether the first difference value is a positive number:
if so, reducing a first duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to the first difference value and a preset value, generating first frequency regulation information according to the first duty ratio, and storing the first frequency regulation information.
If not, increasing the first duty ratio of the PWM signal generated by the microcontroller of the microwave oven according to the first difference value and a preset value, generating first frequency regulation information according to the first duty ratio, and storing the first frequency regulation information.
And S22, increasing the firepower level of the microwave oven by one level and setting the firepower level as 2 levels, detecting the input power of an external variable frequency power supply connected with the microwave oven in real time and generating a second input power value.
Step S220, comparing the second input power value with a theoretical input power value corresponding to a firepower level of 2 pre-stored in the microwave oven to obtain a second difference value, and judging whether the second difference value is a positive number:
if so, reducing a second duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to the second difference value and a preset value, generating second frequency regulation information according to the second duty ratio, and storing the second frequency regulation information;
and if not, increasing a second duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to the second difference value and a preset value, generating second frequency regulation information according to the second duty ratio, and storing the second frequency regulation information.
And sequentially increasing the firepower level of the microwave oven by one level till N levels, setting two steps corresponding to the firepower level when the firepower level of the microwave oven is increased by one level, wherein the setting contents of the two steps when the firepower level is the N level are respectively the same as the steps S2N and S2N 0.
And S2N, setting the firepower grade of the microwave oven to be N grade, detecting the input power of an external variable frequency power supply connected with the microwave oven in real time and generating an Nth input power value.
S2N0, comparing the Nth input power value with a theoretical input power value corresponding to an N-gear fire gear prestored in the microwave oven to obtain an Nth difference value, and judging whether the Nth difference value is a positive number:
if so, reducing the Nth duty cycle of a PWM signal generated by a microcontroller of the microwave oven according to the Nth difference value and a preset value, generating Nth frequency regulation information according to the Nth duty cycle, and storing the Nth frequency regulation information;
if not, increasing the Nth duty ratio of the PWM signal generated by the microcontroller of the microwave oven according to the Nth difference value and a preset value, generating Nth frequency adjusting information according to the Nth duty ratio, and storing the Nth frequency adjusting information.
And S2N +1, setting the firepower gear of the microwave oven to be in a state to be set by an external user. Step S2N +1 is actually a mode of exiting the power test of the microwave oven.
Step S2 is implemented to adjust the input power of each fire range to the frequency adjustment information corresponding to the fire range by increasing or decreasing the duty ratio of the PWM signal, so as to make the input power of each microwave oven consistent.
And S3, adjusting the microwave oven variable frequency output by the microwave oven variable frequency driver during the actual work of the microwave oven according to the frequency adjusting information, and controlling the current power output value of the magnetron of the microwave oven according to the microwave oven variable frequency so as to enable the power output value to be the same as a preset power output theoretical value. And when the step S3 is implemented, the microwave oven enters a normal working mode. The normal operation mode is a mode in which a user selects a fire gear of the microwave oven to operate, that is, the microwave oven is turned on to normally heat.
Referring to fig. 3, fig. 3 is a block diagram illustrating a flow chart of step S3 of a power adjustment method for a microwave oven according to the present invention. The step S3 specifically includes the following steps:
and S31, detecting the firepower gear of the microwave oven in real time during actual working. Namely, the real-time monitoring user selects a specific fire gear.
And step S32, selecting one corresponding to the fire gear in the actual working time from the first to the Nth frequency adjustment information as the corresponding frequency adjustment information according to the detected fire gear in the actual working time of the microwave oven. And when the microwave oven enters a working state, the microwave oven operates according to the frequency adjustment information stored in the step S2. When one of the fire gears is used, the frequency adjustment information corresponding to the fire gear is rotated. For example, when the 2 nd range fire power is selected, the second frequency adjustment information is used as the frequency adjustment information.
And S33, adjusting the variable frequency of the microwave oven output by a variable frequency driver of the microwave oven according to the frequency adjusting information, and controlling the current power output value of a magnetron of the microwave oven according to the variable frequency of the microwave oven.
The steps S1 to S3 are implemented, so that the problem of individual difference of components of the microwave oven in batch production can be solved, the variable frequency of the microwave oven output by the variable frequency driver of the microwave oven can be flexibly corrected, the power output of each microwave oven is close to an ideal value, and the consistency of the output power of the microwave oven can be effectively realized.
The present invention also provides amicrowave oven 100. Themicrowave oven 100 applies the microwave oven power adjustment method of the present invention.
Referring to fig. 4, fig. 4 is a schematic structural diagram of amicrowave oven 100 according to the present invention. Specifically, themicrowave oven 100 includes apower supply device 1, aninput device 2, astorage device 3, and anoutput device 4. Wherein, theinput device 2, thestorage device 3 and theoutput device 4 are connected in sequence. Theoutput device 4 includes amicrocontroller 41, amagnetron 42 and a microwave ovenvariable frequency drive 43.
Thepower supply device 1 is used for connecting an external variable frequency power supply to supply power. The external variable frequency power supply is mains supply.
Theinput device 2 is configured to detect an actual input power value of an external variable frequency power supply connected to themicrowave oven 100, compare the actual input power value with a theoretical input power value prestored in themicrowave oven 100 to obtain a difference value, and increase or decrease a duty ratio of a PWM signal generated by themicrocontroller 41 of themicrowave oven 100 according to the difference value.
Specifically, theinput device 2 includes a powertest program processor 21, adisplay 22, and aknob 23.
The powertest program processor 21 is configured to detect an actual input power value of an external variable frequency power supply connected to themicrowave oven 100 in real time, compare the actual input power value with a theoretical input power value prestored in themicrowave oven 100, and obtain a difference. In this embodiment, the operation of the powertest program processor 21 is performed by a key of themicrowave oven 100. Of course, without being limited thereto, the operation of the powertest program processor 21 may be performed by voice by also setting a voice device.
Thedisplay 22 is used for displaying the difference value, the frequency conversion frequency of the microwave oven and the preset numerical value. The user can know various information in the operation of the microwave oven power adjustment method, such as information of the frequency conversion frequency of the microwave oven, adjustment value information, progress, and operation help, through the display of thedisplay 22.
Theknob 23 is used to adjust the duty ratio of the PWM signal generated by themicrocontroller 41 of themicrowave oven 100. Of course, without being limited thereto, the operation of theknob 23 is operated by voice by also providing a voice device.
Thestorage device 3 is used for storing the frequency adjustment information.
In this embodiment, thestorage device 3 is a charged erasable programmable read only memory. The Electrically Erasable Programmable Read Only Memory (EEPROM) is a memory chip with no data loss after power failure. Thestorage device 3 can erase existing information on themicrowave oven 100 and be reprogrammed.
Theoutput device 4 is configured to adjust the microwave oven frequency conversion frequency output by the microwave ovenfrequency conversion driver 43 when themicrowave oven 100 actually works according to the frequency adjustment information, and then control the current power output value of themagnetron 42 of themicrowave oven 100 according to the microwave oven frequency conversion frequency, so that the power output value is the same as a preset theoretical power output value.
Themicrocontroller 41 is configured to generate frequency adjustment information according to a duty cycle of a PWM signal generated according to the difference.
Themagnetron 42 is used for adjusting and outputting the microwave for heating according to the frequency conversion of the microwave oven. Themagnetron 42 generates microwaves, themagnetron 42 is a main power consumption component of themicrowave oven 100 for the work input power, and the work output power can also bring deviation due to the difference of specifications of different manufacturers and different production processes of themagnetron 42.
The microwave ovenvariable frequency driver 43 is configured to generate a microwave oven variable frequency from the frequency adjustment information, and then control the working power of themagnetron 42 according to the microwave oven variable frequency, so as to adjust the current power output value of themicrowave oven 100. In this embodiment, themicrocontroller 41 may output the frequency adjustment information to thevariable frequency driver 43 of the microwave oven according to actual requirements, and themicrocontroller 41 outputs the frequency adjustment information in one-to-one correspondence with the duty ratio of the PWM signal, so that the higher the duty ratio of the PWM signal is, the higher the power is.
The present invention also provides apower adjusting apparatus 1000 for a microwave oven. Referring to fig. 5, fig. 5 is a schematic structural diagram of a microwave ovenpower adjusting apparatus 1000 according to the present invention.
The microwave ovenpower adjustment device 1000 comprises a processor 1001, amemory 1002, anetwork interface 1003 and a computer program stored on thememory 1002 and capable of running on the processor 1001, wherein the processor 1001 is used for reading the program in thememory 1002, and the steps in the microwave oven power adjustment method provided by the embodiment are realized when the processor 1001 executes the computer program. That is, the processor 1001 performs the steps of the microwave oven power adjustment method.
Specifically, the processor 1001 is configured to perform the following steps:
and S1, powering on the microwave oven.
S2, detecting an actual input power value of an external variable frequency power supply connected with the microwave oven, comparing the actual input power value with a theoretical input power value prestored in the microwave oven to obtain a difference value, increasing or decreasing the duty ratio of a PWM signal generated by a microcontroller of the microwave oven according to a preset value according to the difference value, generating frequency regulation information according to the duty ratio, and storing the frequency regulation information.
And S3, adjusting the microwave oven variable frequency output by the microwave oven variable frequency driver during the actual work of the microwave oven according to the frequency adjusting information, and controlling the current power output value of the magnetron of the microwave oven according to the microwave oven variable frequency so as to enable the power output value to be the same as a preset power output theoretical value.
The microwave ovenpower adjustment device 1000 provided in the embodiment of the present invention can implement each implementation manner in the microwave oven power adjustment method embodiment and corresponding beneficial effects, and for avoiding repetition, details are not repeated here.
It is noted that only 1001-1003 with components are shown in fig. 5, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the microwave ovenpower adjustment device 1000 is a device capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
Thememory 1002 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, thememory 1002 may be an internal storage unit of the microwave ovenpower adjustment device 1000, such as a hard disk or a memory of the microwave ovenpower adjustment device 1000. In other embodiments, thememory 1002 may also be an external storage device of the microwave ovenpower adjustment device 1000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the microwave ovenpower adjustment device 1000. Of course, thememory 1002 may also include both an internal storage unit and an external storage device of the microwave ovenpower adjustment device 1000. In this embodiment, thememory 1002 is generally used for storing an operating system and various types of application software installed in the microwave ovenpower adjustment apparatus 1000, such as program codes of a microwave oven power adjustment method of the microwave ovenpower adjustment apparatus 1000. Thememory 1002 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 1001 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 1001 is generally used to control the overall operation of the microwave ovenpower adjustment apparatus 1000. In this embodiment, the processor 1001 is configured to run the program codes or process data stored in thememory 1002, for example, the program codes of the microwave oven power adjusting method of the microwave ovenpower adjusting apparatus 1000.
Thenetwork interface 1003 may include a wireless network interface or a wired network interface, and thenetwork interface 1003 is generally used to establish a communication connection between the microwave ovenpower adjustment apparatus 1000 and other electronic devices.
The present invention also provides a computer readable storage medium storing a computer program comprising program instructions which, when executed by the processor 1001, implement the steps in the microwave oven power adjustment method as described.
It will be understood by those skilled in the art that all or part of the processes of the microwave oven power adjustment method for implementing the microwave ovenpower adjustment apparatus 1000 according to the embodiments may be implemented by instructing the relevant hardware through a computer program, and the program may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The present embodiment mentioned in the examples of the present invention is for convenience of description. While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
The present invention provides a microwave oven power adjusting method, amicrowave oven 100, a microwave ovenpower adjusting apparatus 1000 and a computer readable storage medium, the microwave oven power adjusting method comprising the steps of: step S1, powering on themicrowave oven 100; step S2, detecting an actual input power value of an external variable frequency power supply connected with themicrowave oven 100, comparing the actual input power value with a theoretical input power value prestored in themicrowave oven 100 to obtain a difference value, increasing or decreasing the duty ratio of a PWM signal generated by amicrocontroller 41 of themicrowave oven 100 according to a preset value according to the difference value, generating frequency regulation information according to the duty ratio, and storing the frequency regulation information; and S3, adjusting the microwave oven variable frequency output by the microwave ovenvariable frequency driver 43 when themicrowave oven 100 actually works according to the frequency adjusting information, and controlling the current power output value of themagnetron 42 of themicrowave oven 100 according to the microwave oven variable frequency so as to enable the power output value to be the same as a preset power output theoretical value. According to the operations of the steps S1 to S3, the duty ratio of the PWM signal is adjusted in the step S2 to generate the frequency adjustment information, and the power output value of themicrowave oven 100 is adjusted in the step S3, so that the problem of individual difference of the components of themicrowave oven 100 in mass production is solved, the magnitude of the variable frequency of the microwave oven can be flexibly corrected, the power output of eachmicrowave oven 100 is close to an ideal value, and the consistency of the output power of themicrowave oven 100 can be effectively achieved.
While the foregoing is directed to embodiments of the present invention, it will be understood by those skilled in the art that various changes may be made without departing from the spirit and scope of the invention.