Voltage alarm method and device applied to food processor, and electronic equipment

By obtaining the motor voltage in the food processor and adding accumulated impairment within the preset threshold range, the false alarm problem caused by the floating mains voltage when the heating element is in the wave loss driving mode is solved, and higher power supply safety and reliability are achieved.

CN119716218APending Publication Date: 2025-03-28JOYOUNG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311257952.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The false alarm problem caused by floating mains voltage when the heating parts of the existing food processor are in the wave loss drive mode.

Method used

By obtaining the motor voltage and accumulating the accumulated impairment within the preset threshold range, a motor voltage alarm is issued when the accumulated value reaches the preset accumulated value to avoid false alarms caused by floating mains voltage.

Benefits of technology

It effectively reduces false alarms caused by floating mains voltage and improves the power supply safety and reliability of food processors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119716218A_ABST
    Figure CN119716218A_ABST
Patent Text Reader

Abstract

The invention provides a voltage alarm method and device applied to a food processor, and electronic equipment, and relates to the field of food processors. The voltage alarm method applied to the food processor comprises the following steps: acquiring a motor voltage; if the motor voltage is greater than a first preset threshold value, increasing a first accumulated value; wherein the first preset threshold value is equal to the maximum input voltage value of the motor; if the motor voltage is smaller than a second preset threshold value, increasing a second accumulated value; wherein the second preset threshold value is equal to the minimum input voltage value of the motor; the first preset threshold value is greater than the second preset threshold value; if the motor voltage is smaller than the first preset threshold value and larger than the second preset threshold value, the first accumulated value and the second accumulated value are reduced; and if the first accumulated value is greater than a first preset accumulated value, or the second accumulated value is greater than a second preset accumulated value, sending a motor voltage alarm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of food processing machines, and in particular, to a voltage alarm method, device, and electronic equipment applied to food processing machines. Background Art

[0002] At present, food processing machines such as wall breakers usually have heating elements to achieve electric heating functions. The heating element can have a variety of different driving modes, such as wave-dropping driving mode and chopping driving mode. However, in the chopping driving mode, the heating element will generate a lot of noise, and the heating element is easily affected by the environment. Therefore, in order to reduce the noise generated by the heating element and reduce the impact of the environment on the heating element, the wave-dropping driving method can be used to drive the heating element.

[0003] However, when the heating element of the food processor is in the lost-wave drive mode, the AC voltage input to the food processor will fluctuate with the driving waveform of the heating element, so that the maximum value of the AC voltage will exceed the maximum value of the AC voltage under normal conditions. In existing food processors, it is usually determined whether the power supply to the motor is normal by detecting the input voltage value of the motor. When the electric heating function of the food processor is in the lost-wave drive mode, the AC voltage input to the food processor will fluctuate with the driving waveform of the heating element, thereby increasing the maximum input voltage value of the motor, which leads to a false alarm. Summary of the invention

[0004] The present application provides a voltage alarm method, device, and electronic device applied to a food processing machine, so as to reduce the problem of false alarm caused by a heating element in a lost wave driving mode of an existing food processing machine.

[0005] In a first aspect, the present application provides a voltage alarm method applied to a food processing machine, wherein the food processing machine includes a heating element and a motor, wherein the heating element is driven in a wave loss drive mode, and comprises: obtaining the motor voltage; if the motor voltage is greater than a first preset threshold, increasing a first accumulated value; wherein the first preset threshold is equal to the maximum input voltage value of the motor; if the motor voltage is less than a second preset threshold, increasing a second accumulated value; wherein the second preset threshold is equal to the minimum input voltage value of the motor; the first preset threshold is greater than the second preset threshold; if the motor voltage is less than the first preset threshold and greater than the second preset threshold, reducing the first accumulated value and the second accumulated value; if the first accumulated value is greater than the first preset accumulated value, or the second accumulated value is greater than the second preset accumulated value, issuing a motor voltage alarm.

[0006] In the embodiment of the present application, when the motor voltage is greater than the first preset threshold value or less than the second preset threshold value, an alarm will not be directly issued. Instead, an alarm will be issued only when the first accumulated value or the second accumulated value meets the preset conditions. This can reduce the occurrence of false alarms caused by the AC voltage input to the food processor fluctuating up and down with the driving waveform of the heating element, causing the maximum input voltage value of the motor to suddenly increase or decrease.

[0007] In combination with the technical solution provided in the first aspect above, in some possible implementations, if the motor voltage is greater than a first preset threshold, the first accumulated value is increased, including: if the motor voltage is greater than the first preset threshold and less than a preset third preset threshold, a first value is accumulated on the first accumulated value; if the motor voltage is greater than or equal to the third preset threshold, a second value is accumulated on the first accumulated value; wherein the third preset threshold is greater than the first preset threshold, and the second value is greater than the first value.

[0008] In the embodiment of the present application, since the greater the voltage of the motor, the more it exceeds the normal working voltage, the greater the possibility of danger. Therefore, the greater the motor voltage, the faster the first accumulated value increases, so that the alarm speed is faster, which improves the safety of the present solution.

[0009] In combination with the technical solution provided in the first aspect above, in some possible implementations, if the motor voltage is less than a second preset threshold, the second accumulated value is increased, including: if the motor voltage is less than the second preset threshold and greater than a preset fourth preset threshold, a third value is accumulated on the second accumulated value; if the motor voltage is less than or equal to the fourth preset threshold, a fourth value is accumulated on the second accumulated value; wherein the fourth preset threshold is less than the second preset threshold, and the fourth value is greater than the third value.

[0010] In the embodiment of the present application, since the smaller the motor voltage is, the more it exceeds the normal working voltage, the greater the possibility of danger. Therefore, the smaller the motor voltage is set, the faster the second accumulated value increases, so that the alarm speed is faster, which improves the safety of the present solution.

[0011] In combination with the technical solution provided in the first aspect above, in some possible implementations, if the first accumulated value is greater than the first preset accumulated value, a motor high voltage alarm is issued. After the motor voltage alarm is issued, the method also includes: if the first accumulated value is less than or equal to a third preset accumulated value, stopping the motor high voltage alarm; wherein the third preset accumulated value is less than the first preset accumulated value.

[0012] In an embodiment of the present application, when a motor high voltage alarm is issued, the alarm will not stop until the first accumulated value is less than the third preset accumulated value, thereby preventing multiple alarms from occurring in a short period of time due to the motor voltage fluctuating above and below the first preset threshold.

[0013] In combination with the technical solution provided in the first aspect above, in some possible implementations, if the second accumulated value is greater than the second preset accumulated value, a motor low voltage alarm is issued. After the motor voltage alarm is issued, the method also includes: if the second accumulated value is less than or equal to a fourth preset accumulated value, stopping the motor low voltage alarm; wherein the fourth preset accumulated value is less than the second preset accumulated value.

[0014] In an embodiment of the present application, when a motor low voltage alarm is issued, the alarm will not stop until the second accumulated value is less than the fourth preset accumulated value, thereby preventing multiple alarms from occurring in a short period of time due to the motor voltage fluctuating above and below the second preset threshold.

[0015] In combination with the technical solution provided in the first aspect above, in some possible implementations, after issuing a motor voltage alarm, the method also includes: turning off the motor; obtaining an average voltage value of the AC voltage within a preset time length; if the average voltage value is greater than a first preset AC voltage value, increasing a third cumulative value; if the average voltage value is less than a second preset AC voltage value, increasing a fourth cumulative value; wherein the second preset AC voltage value is less than the first preset AC voltage value; if the average voltage value is less than the first preset AC voltage value and greater than the second preset AC voltage value, reducing the third cumulative value and the fourth cumulative value; determining whether to issue a AC voltage alarm based on a size relationship between the third cumulative value and the third preset cumulative value, and a size relationship between the fourth cumulative value and the fourth preset cumulative value; determining whether to restart the motor based on a size relationship between the third cumulative value and the fifth preset cumulative value, and a size relationship between the fourth cumulative value and the sixth preset cumulative value; wherein the fifth preset cumulative value is less than or equal to the third preset cumulative value, and the sixth preset cumulative value is less than or equal to the fourth preset cumulative value.

[0016] In the embodiment of the present application, after the motor is turned off, the first preset mains voltage, the second preset mains voltage, the third preset cumulative value, the fourth preset cumulative value, the fifth preset cumulative value, and the sixth preset cumulative value are used to determine whether the mains voltage is normal. Since the food processor is more likely to be at risk when the mains voltage is abnormal, an alarm is directly issued when the mains voltage is abnormal. When the mains voltage is normal, the motor voltage alarm may be an accidental situation, for example, an alarm may be caused by accidental voltage fluctuations, or an alarm may be caused by the driving waveform of the heating element floating up and down for too long. Therefore, restarting the motor and determining whether the motor voltage is normal again can reduce the situation where the motor voltage is falsely alarmed due to accidental situations, causing the motor to fail to work normally.

[0017] In combination with the technical solution provided in the first aspect above, in some possible implementations, whether to restart the motor is determined based on the size relationship between the third accumulated value and the fifth preset accumulated value and the size relationship between the fourth accumulated value and the sixth preset accumulated value, including: if the third accumulated value is less than the fifth preset accumulated value, the fourth accumulated value is less than the sixth preset accumulated value, and the number of motor voltage alarms is less than the preset number threshold, restarting the motor.

[0018] In the embodiment of the present application, when the number of motor voltage alarms is greater than or equal to a preset number threshold, it indicates that there may be a problem with the internal circuit of the food processor. Therefore, the motor is no longer restarted, thereby improving the safety of the present solution.

[0019] In a second aspect, the present application provides a voltage alarm device for a food processing machine, the food processing machine comprising a heating element and a motor, the heating element being driven in a wave loss driving mode, the voltage alarm device comprising: an acquisition module for acquiring the motor voltage; a processing module for increasing a first accumulated value if the motor voltage is greater than a first preset threshold value; wherein the first preset threshold value is equal to the maximum input voltage value of the motor; the processing module is also used to increase a second accumulated value if the motor voltage is less than a second preset threshold value; wherein the first preset threshold value is equal to the minimum input voltage value of the motor; the processing module is also used to reduce the first accumulated value and the second accumulated value if the motor voltage is less than the first preset threshold value and greater than the second preset threshold value; the processing module is also used to issue a motor voltage alarm if the first accumulated value is greater than the first preset accumulated value, or the second accumulated value is greater than the second preset accumulated value.

[0020] In a third aspect, the present application provides an electronic device, comprising: a memory and a processor, the memory and the processor being connected; the memory being used to store programs; and the processor being used to call the programs stored in the memory to execute the method described in the first aspect above and / or in combination with any possible implementation of the first aspect above.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, the computer program executes the method described in the first aspect and / or in combination with any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 A schematic flow chart of a voltage alarm method applied to a food processing machine shown in an embodiment of the present application;

[0024] Figure 2 A circuit diagram of a circuit for obtaining motor voltage shown in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a process for determining whether to restart a motor according to a mains voltage according to an embodiment of the present application;

[0026] Figure 4 A schematic flow chart of a second voltage alarm method applied to a food processing machine shown in an embodiment of the present application;

[0027] Figure 5 This is a structural block diagram of a voltage alarm device applied to a food processing machine shown in an embodiment of the present application;

[0028] Figure 6 A structural block diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0030] It should be noted that similar numbers and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0031] The technical solution of the present application will be described in detail below with reference to the accompanying drawings.

[0032] The present application provides a voltage alarm method applied to a food processing machine, wherein the food processing machine includes a heating element and a motor, and the heating element is driven in a wave loss driving mode. The voltage alarm method includes: obtaining the motor voltage. If the motor voltage is greater than a first preset threshold, increase the first cumulative value; wherein the first preset threshold is equal to the maximum input voltage value of the motor. If the motor voltage is less than a second preset threshold, increase the second cumulative value; wherein the second preset threshold is equal to the minimum input voltage value of the motor; the first preset threshold is greater than the second preset threshold. If the motor voltage is less than the first preset threshold and greater than the second preset threshold, reduce the first cumulative value and the second cumulative value. If the first cumulative value is greater than the first preset cumulative value, or the second cumulative value is greater than the second preset cumulative value, a motor voltage alarm is issued.

[0033] The prior art generally detects the input voltage value of the motor to determine whether the power supply of the motor is normal. Specifically, the prior art directly issues a voltage alarm when it is detected that the input voltage value of the motor is greater than a preset threshold.

[0034] In this solution, when the motor voltage is greater than the first preset threshold value, or when the motor voltage is less than the second preset threshold value, an alarm will not be directly issued, but an alarm will be issued only when the first cumulative value or the second cumulative value meets the preset conditions, thereby reducing the occurrence of false alarms caused by the AC voltage input to the food processor fluctuating up and down with the driving waveform of the heating element, causing the maximum input voltage value of the motor to suddenly increase or decrease. Compared with the prior art, this solution can reduce the problem of false alarms caused by the heating element in the existing food processor being in the wave-dropping driving mode.

[0035] Optionally, the motor included in the food processor may be a brushless DC motor.

[0036] The heating element included in the food processing machine can be a device that can generate heat, such as a heating tube, etc. The specific type of the heating element is not limited here.

[0037] The process of the voltage alarm method is as follows Figure 1 As shown, the following will be combined Figure 1 Describe the steps it involves.

[0038] S100: Get the motor voltage.

[0039] The motor voltage is also the input voltage of the motor of the food processor, or the bus voltage of the motor, and can be obtained by collecting the motor voltage through a hardware circuit, or can also be received from other devices. The specific method of obtaining the motor voltage is not limited here.

[0040] The frequency of obtaining the motor voltage can be set according to actual needs. For example, the motor voltage can be obtained once every millisecond, or once every 2 milliseconds. The examples here are only for ease of understanding and should not be regarded as limitations on this application.

[0041] Correspondingly, each time the motor voltage is obtained, the voltage alarm method is executed once.

[0042] Optionally, when a hardware circuit is used to collect the motor voltage, the hardware circuit can be as follows: Figure 2 shown.

[0043] Figure 2 The ACL (AC live wire) and ACN (AC neutral wire) shown are rectified into DC power by a rectifier bridge. The U_MOT port is used to connect the motor to power the motor. Resistors R1 and R2 form a first voltage divider circuit, resistor R3 and capacitor C2 form a first filter circuit, and the MOT interface is used to connect the processing unit of the food processing machine (such as MCU (Microcontroller Unit, micro control unit) etc.), and the processing unit of the food processing machine obtains the motor voltage through the first voltage divider circuit and the first filter circuit.

[0044] The switching power supply is used to convert the direct current converted by D1 and D2 into a specified size, and the VCC port is used to connect the processing unit of the food processor to power the processing unit of the food processor.

[0045] Figure 2 This is only an example of a circuit for obtaining motor voltage in this application. Figure 2 In addition to the circuit shown, any other hardware circuit that can obtain the motor voltage can also be used, which should not be regarded as a limitation to the present application.

[0046] S200: If the motor voltage is greater than a first preset threshold, increase the first accumulated value.

[0047] The first preset threshold is equal to the maximum input voltage value of the motor.

[0048] Optionally, the initial value of the first accumulated value may be set according to actual needs, for example, may be set to 0, and the initial value of the first accumulated value is not limited here.

[0049] In one implementation, the specific way to increase the first accumulated value may be to increase it by a fixed value each time, for example, by 1, 2, 3, etc., which is only for ease of understanding and should not be used as a limitation to the present application.

[0050] Since the greater the motor voltage, the higher the possibility of danger, in addition to the first preset threshold, multiple other thresholds greater than the first preset threshold can also be set. Each threshold corresponds to an accumulated value increase value, and a larger threshold corresponds to a larger accumulated value, so that the greater the motor voltage, the faster the growth rate of the first accumulated value.

[0051] Optionally, a third preset threshold value greater than the first preset threshold value may be set. In this case, if the motor voltage is greater than the first preset threshold value, the specific method of increasing the first accumulated value may be: if the motor voltage is greater than the first preset threshold value and less than the preset third preset threshold value, the first value is accumulated on the first accumulated value. If the motor voltage is greater than or equal to the third preset threshold value, the second value is accumulated on the first accumulated value.

[0052] Among them, the third preset threshold is greater than the first preset threshold, and the second value is greater than the first value.

[0053] For ease of understanding, an example is given in which the first preset threshold is 420V, the third preset threshold is 440V, the first value is 1, and the second value is 5.

[0054] When the motor voltage is greater than 420V and less than 440V, add 1 to the first accumulated value to obtain a new first accumulated value; when the motor voltage is greater than or equal to 440V, add 5 to the first accumulated value to obtain a new first accumulated value.

[0055] The examples given here are only for ease of understanding and should not be construed as limiting the present application.

[0056] Optionally, a third preset threshold and a fifth preset threshold greater than the first preset threshold may also be set, wherein the first preset threshold < the third preset threshold < the fifth preset threshold. In this case, if the motor voltage is greater than the first preset threshold, the specific method of increasing the first cumulative value may be: if the motor voltage is greater than the first preset threshold and less than the preset third preset threshold, the first value is accumulated on the first cumulative value. If the motor voltage is greater than or equal to the third preset threshold and less than the preset fifth preset threshold, the second value is accumulated on the first cumulative value. If the motor voltage is greater than or equal to the fifth preset threshold, the fifth value is accumulated on the first cumulative value.

[0057] The second value is greater than the first value, and the fifth value is greater than the second value.

[0058] In addition to the two methods listed above, more other thresholds greater than the first preset threshold may be set, and the two methods listed above should not be regarded as limitations to the present application.

[0059] S300: If the motor voltage is less than the second preset threshold, increase the second accumulated value.

[0060] Among them, the second preset threshold is equal to the minimum input voltage value of the motor; the first preset threshold is greater than the second preset threshold.

[0061] Optionally, the initial value of the second accumulated value may be set according to actual needs, for example, may be set to 0, and the initial value of the second accumulated value is not limited here.

[0062] In one implementation, the specific way to increase the second accumulated value may be to increase it by a fixed value each time, for example, by 1, 2, 3, etc., which is only for ease of understanding and should not be used as a limitation to the present application.

[0063] Since the smaller the motor voltage is, the greater the possibility that the food processor has a problem, in addition to the second preset threshold, multiple other thresholds that are smaller than the second preset threshold can also be set. Each threshold corresponds to an increase value of the cumulative value, and the smaller the threshold, the larger the cumulative value corresponding to the smaller the motor voltage is compared to the second preset threshold, and the faster the growth rate of the first cumulative value is.

[0064] Optionally, a fourth preset threshold value that is smaller than the second preset threshold value may be set. In this case, if the motor voltage is smaller than the second preset threshold value, the specific implementation method of increasing the second accumulated value may be: if the motor voltage is smaller than the second preset threshold value and larger than the preset fourth preset threshold value, the third value is accumulated on the second accumulated value; if the motor voltage is smaller than or equal to the fourth preset threshold value, the fourth value is accumulated on the second accumulated value.

[0065] Among them, the fourth preset threshold is smaller than the second preset threshold, and the fourth value is larger than the third value.

[0066] For ease of understanding, an example is given in which the second preset threshold is 220V, the fourth preset threshold is 140V, the third value is 1, and the fourth value is 5.

[0067] When the motor voltage is less than 220V and greater than 140V, add 1 to the second accumulated value to obtain a new second accumulated value; when the motor voltage is less than 140V, add 5 to the second accumulated value to obtain a new second accumulated value.

[0068] The examples given here are only for ease of understanding and should not be construed as limiting the present application.

[0069] Optionally, a fourth preset threshold value and a sixth preset threshold value that are less than the second preset threshold value may also be set, wherein the second preset threshold value>the fourth preset threshold value>the sixth preset threshold value. In this case, if the motor voltage is less than the second preset threshold value, the specific method of increasing the second accumulated value may be: if the motor voltage is less than the second preset threshold value and greater than the preset fourth preset threshold value, the third value is accumulated on the second accumulated value. If the motor voltage is less than or equal to the third preset threshold value and greater than the preset sixth preset threshold value, the fourth value is accumulated on the second accumulated value. If the motor voltage is less than or equal to the sixth preset threshold value, the sixth value is accumulated on the second accumulated value.

[0070] Among them, the fourth value is smaller than the third value, and the sixth value is smaller than the fourth value.

[0071] In addition to the two methods listed above, more other thresholds that are smaller than the second preset threshold may be set, and the two methods listed above should not be regarded as limitations to the present application.

[0072] In one implementation manner, the above-mentioned S200 and S300 may be executed in parallel, that is, it is simultaneously determined whether the motor voltage is greater than a first preset threshold value, and whether the motor voltage is less than a second preset threshold value.

[0073] Alternatively, the above S200 and S300 may be executed sequentially. For example, S200 may be executed first and then S300; or S300 may be executed first and then S200.

[0074] The specific method and logic for executing S200 and S300 have been clearly described in the previous text, and will not be repeated here for the sake of brevity.

[0075] S400: If the motor voltage is less than the first preset threshold and greater than the second preset threshold, reduce the first accumulated value and the second accumulated value.

[0076] Optionally, the specific value of the first accumulated value reduced each time and the specific value of the second accumulated value reduced each time can be the same or different. The specific value of the first accumulated value reduced each time and the specific value of the second accumulated value reduced each time can be set according to actual needs and are not limited here.

[0077] For example, the specific numerical value of each reduction of the first accumulated value may be 1, 2, 3, etc., and the specific numerical value of each reduction of the second accumulated value may be 1, 2, 3, etc. The examples here are only for ease of understanding and should not be regarded as limitations on the present application.

[0078] In one implementation, when the motor voltage is less than a first preset threshold, the first accumulated value is reduced; when the motor voltage is greater than a second preset threshold, the second accumulated value is reduced.

[0079] For ease of understanding, the first preset threshold is 420V and the second preset threshold is 220V. When the motor voltage is 440V, the first accumulated value is increased and the second accumulated value is decreased; when the motor voltage is 300V, the first accumulated value and the second accumulated value are decreased; when the motor voltage is 200V, the first accumulated value is decreased and the second accumulated value is increased. The examples here are only for ease of understanding and should not be used as limitations on this application.

[0080] Alternatively, it may be configured that the first accumulated value and the second accumulated value are reduced only when the motor voltage is less than the first preset threshold and greater than the second preset threshold.

[0081] For ease of understanding, the first preset threshold is 420V and the second preset threshold is 220V. When the motor voltage is 440V, the first accumulated value is increased and the second accumulated value remains unchanged; when the motor voltage is 300V, the first accumulated value and the second accumulated value are reduced; when the motor voltage is 200V, the first accumulated value remains unchanged and the second accumulated value is increased. The examples here are only for ease of understanding and should not be used as limitations on this application.

[0082] In order to prevent the first accumulated value and the second accumulated value from decreasing without limit, optionally, a first minimum accumulated value and a second minimum accumulated value may be set. When the first accumulated value decreases to the first minimum accumulated value, it will not decrease further. When the second accumulated value decreases to the second minimum accumulated value, it will not decrease further.

[0083] For example, if the first minimum accumulated value is 0 and the second minimum accumulated value is 0, then after the first accumulated value decreases to 0, even if the motor voltage is less than the first preset threshold and greater than the second preset threshold, the first accumulated value will no longer continue to decrease but remain at 0. Similarly, after the second accumulated value decreases to 0, even if the motor voltage is less than the first preset threshold and greater than the second preset threshold, the second accumulated value will no longer continue to decrease but remain at 0.

[0084] S500: If the first accumulated value is greater than the first preset accumulated value, or the second accumulated value is greater than the second preset accumulated value, a motor voltage alarm is issued.

[0085] Optionally, the motor voltage alarm issued when the first accumulated value is greater than the first preset accumulated value can be set to be the same as the motor voltage alarm issued when the second accumulated value is greater than the second preset accumulated value.

[0086] Alternatively, it is also possible to set the motor voltage alarm issued when the first accumulated value is greater than the first preset accumulated value to be different from the motor voltage alarm issued when the second accumulated value is greater than the second preset accumulated value.

[0087] For example, when the first accumulated value is greater than the first preset accumulated value, a motor high voltage alarm is issued, and when the second accumulated value is greater than the second preset accumulated value, a motor low voltage alarm is issued.

[0088] Among them, the alarm signals of the motor high voltage alarm and the motor low voltage alarm are different.

[0089] After the motor voltage alarm is issued, in one implementation, the motor voltage alarm can be stopped by: when the motor voltage is less than a first preset threshold and the motor voltage is greater than a second preset threshold, the motor voltage alarm is stopped.

[0090] In another embodiment, after issuing the motor voltage alarm, the voltage alarm method may further include: if the first accumulated value is less than the third preset accumulated value, and the second accumulated value is less than the fourth preset accumulated value, stopping the motor voltage alarm. The third preset accumulated value is less than the first preset accumulated value, and the fourth preset accumulated value is less than the second preset accumulated value.

[0091] When a motor voltage alarm is issued, the alarm will not stop until the first accumulated value is less than the third preset accumulated value, and the second accumulated value is less than the fourth preset accumulated value. This can prevent multiple alarms in a short period of time caused by the motor voltage fluctuating above and below the first preset threshold, or the motor voltage fluctuating above and below the second threshold.

[0092] Optionally, the third preset accumulated value may be an initial value of the first accumulated value. For example, if the initial value of the first accumulated value is 0, the third preset accumulated value is 0. The examples here are only for ease of understanding and should not be used as a limitation to the present application.

[0093] Optionally, the fourth preset accumulated value may be an initial value of the second accumulated value. For example, if the initial value of the second accumulated value is 0, the fourth preset accumulated value is 0. The examples here are only for ease of understanding and should not be used as a limitation to the present application.

[0094] In one implementation, if the first accumulated value is greater than the first preset accumulated value, a motor high voltage alarm is issued. After the motor voltage alarm is issued, the voltage alarm method further includes: if the first accumulated value is less than or equal to a third preset accumulated value, stopping the motor high voltage alarm.

[0095] Among them, the specific implementation method of the third preset threshold is the same as the aforementioned third preset threshold, and for the sake of brief description, it will not be repeated here.

[0096] When a motor high voltage alarm is issued, the alarm will not stop until the first accumulated value is less than the third preset accumulated value, thereby preventing multiple alarms from occurring in a short period of time due to the motor voltage fluctuating above and below the first preset threshold.

[0097] Optionally, when a first minimum accumulated value is set, the third preset threshold value may be the same as the aforementioned first minimum accumulated value, or the third preset threshold value may be greater than the aforementioned first minimum accumulated value.

[0098] For ease of understanding, the third preset cumulative value is 0 and the first preset cumulative value is 10. When the first cumulative value is 11, a motor high voltage alarm is issued. Afterwards, when the first cumulative value is reduced to 5, the motor high voltage alarm is still issued. When the first cumulative value is reduced to 0, the motor high voltage alarm is stopped. The examples here are only for ease of understanding and should not be used as limitations on this application.

[0099] In one implementation, if the second accumulated value is greater than the second preset accumulated value, a motor low voltage alarm is issued, and after the motor voltage alarm is issued, the voltage alarm method further includes: if the second accumulated value is less than the fourth preset accumulated value, stopping the motor low voltage alarm;

[0100] Among them, the specific implementation method of the fourth preset threshold is the same as the aforementioned fourth preset threshold, and for the sake of brief description, it will not be repeated here.

[0101] When a motor low voltage alarm is issued, the alarm will not stop until the second accumulated value is less than the fourth preset accumulated value, thereby preventing multiple alarms from occurring in a short period of time due to the motor voltage fluctuating above and below the second preset threshold.

[0102] Optionally, when a second minimum accumulated value is set, the fourth preset threshold value may be the same as the aforementioned second minimum accumulated value, or the fourth preset threshold value may be greater than the aforementioned second minimum accumulated value.

[0103] For ease of understanding, the fourth preset cumulative value is 0 and the second preset cumulative value is 10. When the second cumulative value is 11, a motor low voltage alarm is issued. Afterwards, when the second cumulative value is reduced to 5, the motor low voltage alarm is still issued. When the second cumulative value is reduced to 0, the motor low voltage alarm stops being issued. The examples here are only for ease of understanding and should not be used as limitations on this application.

[0104] In one implementation manner, after the motor voltage alarm is issued, the voltage alarm method further includes S510-S570, such as Figure 3 shown.

[0105] S510: Turn off the motor.

[0106] Turning off the motor means stopping the motor from working. For example, the motor may be turned off by turning off the power supply of the motor, or by sending a stop instruction to the motor. The specific method of turning off the motor is not limited here.

[0107] S520: Obtain an average voltage value of the mains voltage within a preset time length.

[0108] Since the mains voltage is alternating current, the specific method for calculating the average voltage value of the alternating current is well known to those skilled in the art and will not be described in detail here for the sake of brevity.

[0109] Among them, the preset time length can be set according to actual needs, for example, it can be 1 second, 2 seconds, 3 seconds, etc., and the specific value of the preset time length is not limited here.

[0110] The mains voltage may be obtained by collecting the mains voltage through a hardware circuit, or may be received from other devices. The specific method of obtaining the mains voltage is not limited here.

[0111] It can be used as Figure 2 The circuit shown obtains the mains voltage within a preset time length and then calculates the average value of the mains voltage.

[0112] in, Figure 2The diodes D1 and D2 are used to convert AC power into DC power, the resistors R4 and R5 form a second voltage divider circuit, and the resistor R6 and the capacitor C3 form a second filter circuit. The HEAT port is used to connect the processing unit of the food processor, and the processing unit of the food processor obtains the mains voltage through the second voltage divider circuit and the second filter circuit. Then the processing unit of the food processor calculates the average voltage value of the mains voltage based on all the mains voltages obtained within a preset time length.

[0113] Figure 2 This is only an example of a circuit for obtaining an average voltage value in this application. Figure 2 In addition to the circuit shown, any other hardware circuit that can obtain the average voltage value can also be used, which should not be regarded as a limitation to the present application.

[0114] S530: If the average voltage value is greater than the first preset AC voltage value, increase the third accumulated value.

[0115] The first preset mains voltage value is the maximum value acceptable for the food processor to operate safely.

[0116] Optionally, the initial value of the third accumulated value may be set according to actual needs, for example, may be set to 0, and the initial value of the third accumulated value is not limited here.

[0117] In one implementation, the specific way to increase the third accumulated value may be to increase it by a fixed value each time, for example, by 1, 2, 3, etc., which is only for ease of understanding and should not be used as a limitation to the present application.

[0118] S540: If the average voltage value is less than the second preset mains voltage value, increase the fourth accumulated value.

[0119] The second preset mains voltage value is smaller than the first preset mains voltage value, and the second preset mains voltage value is the minimum value acceptable for the food processing machine to work safely.

[0120] Optionally, the initial value of the fourth accumulated value may be set according to actual needs, for example, may be set to 0, and the initial value of the fourth accumulated value is not limited here.

[0121] In one implementation, the specific way to increase the fourth accumulated value may be to increase it by a fixed value each time, for example, by 1, 2, 3, etc., which is only for ease of understanding and should not be used as a limitation to the present application.

[0122] S550: If the average voltage value is less than the first preset mains voltage value and greater than the second preset mains voltage value, reduce the third accumulated value and the fourth accumulated value.

[0123] Optionally, the specific value of the third accumulated value reduced each time and the specific value of the fourth accumulated value reduced each time can be the same or different. The specific value of the third accumulated value reduced each time and the specific value of the fourth accumulated value reduced each time can be set according to actual needs and are not limited here.

[0124] For example, the specific numerical value of each reduction of the third accumulated value may be 1, 2, 3, etc., and the specific numerical value of each reduction of the fourth accumulated value may be 1, 2, 3, etc. The examples here are only for ease of understanding and should not be regarded as limitations on the present application.

[0125] In one implementation, when the average voltage value is less than the first preset mains voltage value, the third accumulated value is reduced; when the average voltage value is greater than the second preset mains voltage value, the fourth accumulated value is reduced.

[0126] For ease of understanding, the first preset mains voltage value is 264V and the second preset mains voltage value is 176V. When the average voltage value is 270V, the third cumulative value is increased and the fourth cumulative value is decreased; when the average voltage value is 100V, the third cumulative value and the fourth cumulative value are decreased; when the average voltage value is 1V, the third cumulative value is decreased and the fourth cumulative value is increased. The examples here are only for ease of understanding and should not be used as limitations on this application.

[0127] Alternatively, it may be configured that the third accumulated value and the fourth accumulated value are reduced only when the average voltage value is less than the first preset mains voltage value and greater than the second preset mains voltage value.

[0128] For ease of understanding, the first preset mains voltage value is 264V and the second preset mains voltage value is 176V. When the average voltage value is 270V, the third cumulative value is increased and the fourth cumulative value remains unchanged; when the average voltage value is 200V, the third cumulative value and the fourth cumulative value are reduced; when the average voltage value is 100V, the third cumulative value remains unchanged and the fourth cumulative value is increased. The examples here are only for ease of understanding and should not be used as limitations on this application.

[0129] In order to prevent the third accumulated value and the fourth accumulated value from decreasing without limit, optionally, a first minimum accumulated value and a second minimum accumulated value may be set. When the third accumulated value decreases to the first minimum accumulated value, it will not decrease further. When the fourth accumulated value decreases to the second minimum accumulated value, it will not decrease further either.

[0130] For example, if the first minimum accumulated value is 0 and the second minimum accumulated value is 0, then when the third accumulated value is reduced to 0, even if the average voltage value is less than the first preset mains voltage value and greater than the second preset mains voltage value, the third accumulated value will no longer continue to decrease, but will remain at 0. Similarly, when the fourth accumulated value is reduced to 0, even if the average voltage value is less than the first preset mains voltage value and greater than the second preset mains voltage value, the fourth accumulated value will no longer continue to decrease, but will remain at 0.

[0131] S560: Determine whether to issue a mains voltage alarm according to the magnitude relationship between the third accumulated value and the third preset accumulated value, and the magnitude relationship between the fourth accumulated value and the fourth preset accumulated value.

[0132] The fifth preset accumulated value is less than or equal to the third preset accumulated value.

[0133] In one implementation mode, based on the size relationship between the third accumulated value and the third preset accumulated value, and the size relationship between the fourth accumulated value and the fourth preset accumulated value, a specific implementation method for determining whether to issue a mains voltage alarm may be: if the third accumulated value is greater than the third preset accumulated value, or the fourth accumulated value is greater than the fourth accumulated value, a mains voltage alarm is issued.

[0134] In one implementation manner, according to the magnitude relationship between the third accumulated value and the third preset accumulated value, and the magnitude relationship between the fourth accumulated value and the fourth preset accumulated value, a specific implementation method for determining whether to issue a mains voltage alarm may also be: if the third accumulated value is greater than the third preset accumulated value, a mains high voltage alarm is issued. If the fourth accumulated value is greater than the fourth accumulated value, a mains low voltage alarm is issued.

[0135] Among them, the mains high voltage alarm and the mains low voltage alarm are different.

[0136] S570: Determine whether to restart the motor according to the magnitude relationship between the third accumulated value and the fifth preset accumulated value and the magnitude relationship between the fourth accumulated value and the sixth preset accumulated value.

[0137] The fifth preset accumulated value is less than or equal to the third preset accumulated value. The sixth preset accumulated value is less than or equal to the fourth preset accumulated value.

[0138] In one implementation, based on the size relationship between the third accumulated value and the fifth preset accumulated value and the size relationship between the fourth accumulated value and the sixth preset accumulated value, the specific implementation method for determining whether to restart the motor can be: if the third accumulated value is less than the fifth accumulated value, and the fourth accumulated value is less than the sixth accumulated value, then restart the motor.

[0139] In one implementation mode, the number of motor voltage alarms is also recorded in advance. In this case, based on the size relationship between the third accumulated value and the fifth preset accumulated value and the size relationship between the fourth accumulated value and the sixth preset accumulated value, the specific implementation method for determining whether to restart the motor can be: if the third accumulated value is less than the fifth preset accumulated value, the fourth accumulated value is less than the sixth preset accumulated value, and the number of motor voltage alarms is less than the preset number threshold, restart the motor.

[0140] Correspondingly, based on the size relationship between the third accumulated value and the third preset accumulated value, and the size relationship between the fourth accumulated value and the fourth preset accumulated value, the specific implementation method of determining whether to issue a mains voltage alarm can be: if the third accumulated value is greater than the third preset accumulated value, or the fourth accumulated value is greater than the fourth accumulated value, or the number of motor voltage alarms is greater than or equal to the preset number threshold, then a mains voltage alarm is issued.

[0141] The number of motor voltage alarms is pre-recorded, that is, each time a motor voltage alarm occurs, the number of motor voltage alarms increases by one.

[0142] To understand the voltage alarm method above, please refer to Figure 4 But it should be noted that Figure 4 This is only one implementation of the voltage alarm method provided in this application and should not be regarded as a limitation to this application.

[0143] like Figure 4 As shown, the motor voltage is first acquired, and then the magnitude relationships between the motor voltage and the first preset threshold and the third preset threshold are determined.

[0144] If the motor voltage is greater than the first preset threshold and less than the third preset threshold, the first value is accumulated on the first accumulated value. If the motor voltage is greater than or equal to the third preset threshold, the second value is accumulated on the first accumulated value. If the motor voltage is less than the first preset threshold, the first accumulated value is reduced.

[0145] Determine the magnitude relationship between the first accumulated value and the first preset accumulated value and the third preset accumulated value. If the first accumulated value is greater than the first preset accumulated value, a motor high voltage alarm is issued. If the first accumulated value is less than the third preset accumulated value, turn off the motor high voltage alarm (if there is no motor high voltage alarm, do not process it). If the first accumulated value is less than or equal to the first preset accumulated value, and the first accumulated value is greater than or equal to the third accumulated value, maintain the current motor high voltage alarm state (that is, if the current state is a motor high voltage alarm, continue the motor high voltage alarm; if the current state is not a motor high voltage alarm, do not issue a motor high voltage alarm).

[0146] Determine the magnitude relationship between the motor voltage and the second preset threshold and the fourth preset threshold.

[0147] If the motor voltage is less than the second preset threshold and greater than the preset fourth preset threshold, the third value is accumulated on the second accumulated value. If the motor voltage is less than or equal to the fourth preset threshold, the fourth value is accumulated on the second accumulated value. If the motor voltage is greater than or equal to the second preset threshold, the second accumulated value is reduced.

[0148] Determine the magnitude relationship between the second accumulated value and the second preset accumulated value and the fourth preset accumulated value. If the second accumulated value is greater than the second preset accumulated value, a motor high voltage alarm is issued. If the second accumulated value is less than the fourth preset accumulated value, turn off the motor low voltage alarm (if there is no motor low voltage alarm, do not process it). If the second accumulated value is less than or equal to the second preset accumulated value, and the second accumulated value is greater than or equal to the fourth accumulated value, maintain the current motor low voltage alarm state (that is, if the current state is a motor low voltage alarm, continue the motor low voltage alarm; if the current state is not a motor low voltage alarm, do not issue a motor low voltage alarm).

[0149] When there is a motor low voltage alarm or a motor high voltage alarm, the motor is turned off and an average voltage value of the mains voltage within a preset time length is obtained.

[0150] If the average voltage value is greater than the first preset mains voltage value, the third accumulated value is increased. If the average voltage value is less than the first preset mains voltage value, the third accumulated value is decreased.

[0151] If the average voltage value is less than the second preset mains voltage value, the fourth accumulated value is increased. If the average voltage value is greater than the second preset mains voltage value, the fourth accumulated value is decreased.

[0152] According to the magnitude relationship between the third accumulated value and the third preset accumulated value, the magnitude relationship between the fourth accumulated value and the fourth preset accumulated value, and the number of motor voltage alarms, it is determined whether to issue a mains voltage alarm. That is, if the third accumulated value is less than the fifth preset accumulated value, the fourth accumulated value is less than the sixth preset accumulated value, and the number of motor voltage alarms is less than the preset number threshold, the motor is restarted.

[0153] Whether to restart the motor is determined based on the magnitude relationship between the third accumulated value and the fifth preset accumulated value, the magnitude relationship between the fourth accumulated value and the sixth preset accumulated value, and the number of motor voltage alarms. That is, if the third accumulated value is greater than the third preset accumulated value, or the fourth accumulated value is greater than the fourth accumulated value, or the number of motor voltage alarms is greater than or equal to the preset number threshold, a mains voltage alarm is issued.

[0154] Figure 4 The specific implementation methods and principles of each step shown have been clearly described in the previous text and will not be repeated here for the sake of brevity.

[0155] Based on the same technical concept, the present application provides a voltage alarm device for a food processing machine, wherein the food processing machine includes a heating element and a motor, and the heating element is driven in a wave-dropping driving mode. Figure 5 As shown, the voltage alarm device 100 includes an acquisition module 110 and a processing module 120 .

[0156] The acquisition module 110 is used to acquire the motor voltage.

[0157] The processing module 120 is used to increase the first accumulated value if the motor voltage is greater than a first preset threshold value; wherein the first preset threshold value is equal to the maximum input voltage value of the motor.

[0158] The processing module 120 is further configured to increase a second accumulated value if the motor voltage is less than a second preset threshold value; wherein the first preset threshold value is equal to a minimum input voltage value of the motor.

[0159] The processing module 120 is further configured to reduce the first accumulated value and the second accumulated value if the motor voltage is less than the first preset threshold and greater than the second preset threshold.

[0160] The processing module 120 is further configured to issue a motor voltage alarm if the first accumulated value is greater than a first preset accumulated value, or if the second accumulated value is greater than a second preset accumulated value.

[0161] The processing module 120 is specifically used to accumulate a first value on the first accumulated value if the motor voltage is greater than the first preset threshold and less than a preset third preset threshold; if the motor voltage is greater than or equal to the third preset threshold, accumulate a second value on the first accumulated value; wherein the third preset threshold is greater than the first preset threshold, and the second value is greater than the first value.

[0162] The processing module 120 is specifically used to accumulate a third value on the second accumulated value if the motor voltage is less than the second preset threshold and greater than a preset fourth preset threshold; if the motor voltage is less than or equal to the fourth preset threshold, accumulate a fourth value on the second accumulated value; wherein the fourth preset threshold is less than the second preset threshold, and the fourth value is greater than the third value.

[0163] If the first accumulated value is greater than the first preset accumulated value, a motor high voltage alarm is issued. After the motor voltage alarm is issued, the processing module 120 is also used to stop the motor high voltage alarm if the first accumulated value is less than or equal to a third preset accumulated value; wherein the third preset accumulated value is less than the first preset accumulated value.

[0164] If the second accumulated value is greater than the second preset accumulated value, a motor low voltage alarm is issued. After the motor voltage alarm is issued, the processing module 120 is also used to stop the motor low voltage alarm if the second accumulated value is less than or equal to a fourth preset accumulated value; wherein the fourth preset accumulated value is less than the second preset accumulated value.

[0165] After issuing a motor voltage alarm, the processing module 120 is also used to shut down the motor; obtain an average voltage value of the AC voltage within a preset time length; if the average voltage value is greater than a first preset AC voltage value, increase a third cumulative value; if the average voltage value is less than a second preset AC voltage value, increase a fourth cumulative value; wherein the second preset AC voltage value is less than the first preset AC voltage value; if the average voltage value is less than the first preset AC voltage value and greater than the second preset AC voltage value, reduce the third cumulative value and the fourth cumulative value; determine whether to issue a AC voltage alarm based on a size relationship between the third cumulative value and the third preset cumulative value, and a size relationship between the fourth cumulative value and the fourth preset cumulative value; determine whether to restart the motor based on a size relationship between the third cumulative value and the fifth preset cumulative value, and a size relationship between the fourth cumulative value and the sixth preset cumulative value; wherein the fifth preset cumulative value is less than or equal to the third preset cumulative value, and the sixth preset cumulative value is less than or equal to the fourth preset cumulative value.

[0166] The processing module 120 is specifically configured to restart the motor if the third accumulated value is less than the fifth preset accumulated value, the fourth accumulated value is less than the sixth preset accumulated value, and the number of motor voltage alarms is less than a preset number threshold.

[0167] The voltage alarm device 100 provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned voltage alarm method embodiment applied to a food processing machine. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned voltage alarm method embodiment.

[0168] See also Figure 6 , which is an electronic device 200 provided in an embodiment of the present application. The electronic device 200 includes: a processor 210 and a memory 220.

[0169] The memory 220 and the processor 210 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The memory 220 is used to store computer programs, such as storing Figure 5The software function module shown in is the voltage alarm device 100. The voltage alarm device 100 includes at least one software function module that can be stored in the memory 220 in the form of software or firmware or solidified in the operating system (OS) of the electronic device 200. The processor 210 is used to execute the executable module stored in the memory 220, such as the software function module or computer program included in the voltage alarm device 100. At this time, the processor 210 is used to obtain the motor voltage; if the motor voltage is greater than the first preset threshold, increase the first accumulated value; wherein the first preset threshold is equal to the maximum input voltage value of the motor; if the motor voltage is less than the second preset threshold, increase the second accumulated value; wherein the second preset threshold is equal to the minimum input voltage value of the motor; the first preset threshold is greater than the second preset threshold; if the motor voltage is less than the first preset threshold and greater than the second preset threshold, reduce the first accumulated value and the second accumulated value; if the first accumulated value is greater than the first preset accumulated value, or the second accumulated value is greater than the second preset accumulated value, a motor voltage alarm is issued.

[0170] Among them, the memory 220 can be, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.

[0171] The processor 210 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a CPU (Central Processing Unit), an NP (Network Processor), etc.; it may also be a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor or the processor 240 may also be any conventional processor, etc.

[0172] The above-mentioned electronic device 200 includes but is not limited to a food processor, a wall-breaking machine, a soymilk machine, etc.

[0173] The embodiment of the present application also provides a computer-readable storage medium (hereinafter referred to as storage medium), on which a computer program is stored, and when the computer program is run by a computer such as the above-mentioned electronic device 200, the voltage alarm method shown above is executed. The computer-readable storage medium includes: a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.

[0174] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A voltage alarm method for a food processing machine, characterized in that: The food processing machine comprises a heating element and a motor, the heating element is driven in a wave-dropping driving mode, and the method comprises: Get the motor voltage; If the motor voltage is greater than a first preset threshold, increase the first accumulated value; wherein the first preset threshold is equal to the maximum input voltage value of the motor; If the motor voltage is less than a second preset threshold, increase the second accumulated value; wherein the second preset threshold is equal to the minimum input voltage value of the motor; and the first preset threshold is greater than the second preset threshold; If the motor voltage is less than the first preset threshold and greater than the second preset threshold, reducing the first accumulated value and the second accumulated value; If the first accumulated value is greater than a first preset accumulated value, or the second accumulated value is greater than a second preset accumulated value, a motor voltage alarm is issued.

2. The method according to claim 1, characterized in that If the motor voltage is greater than a first preset threshold, increasing the first accumulated value includes: If the motor voltage is greater than the first preset threshold and less than a preset third preset threshold, accumulating a first value on the first accumulated value; If the motor voltage is greater than or equal to the third preset threshold, accumulating a second value on the first accumulated value; Among them, the third preset threshold is greater than the first preset threshold, and the second value is greater than the first value.

3. The method according to claim 1, characterized in that: If the motor voltage is less than a second preset threshold, increasing the second accumulated value comprises: If the motor voltage is less than the second preset threshold and greater than a fourth preset threshold, accumulating a third value on the second accumulated value; If the motor voltage is less than or equal to the fourth preset threshold, accumulating a fourth value on the second accumulated value; The fourth preset threshold is smaller than the second preset threshold, and the fourth value is larger than the third value.

4. The method according to claim 1, characterized in that: If the first accumulated value is greater than the first preset accumulated value, a motor high voltage alarm is issued. After the motor voltage alarm is issued, the method further includes: If the first accumulated value is less than or equal to a third preset accumulated value, stopping the motor high voltage alarm; The third preset accumulated value is smaller than the first preset accumulated value.

5. The method according to claim 1, characterized in that If the second accumulated value is greater than the second preset accumulated value, a motor low voltage alarm is issued. After the motor voltage alarm is issued, the method further includes: If the second accumulated value is less than or equal to a fourth preset accumulated value, stopping the motor low voltage alarm; The fourth preset accumulated value is smaller than the second preset accumulated value.

6. The method according to any one of claims 1 to 5, characterized in that: After issuing a motor voltage alarm, the method further includes: turning off the motor; Obtaining the average voltage value of the mains voltage within a preset time length; If the average voltage value is greater than the first preset mains voltage value, increasing the third accumulated value; If the average voltage value is less than the second preset mains voltage value, increase the fourth accumulated value; wherein the second preset mains voltage value is less than the first preset mains voltage value; If the average voltage value is less than the first preset mains voltage value and greater than the second preset mains voltage value, reducing the third accumulated value and the fourth accumulated value; Determining whether to issue a mains voltage alarm according to a magnitude relationship between the third accumulated value and the third preset accumulated value, and a magnitude relationship between the fourth accumulated value and the fourth preset accumulated value; Determining whether to restart the motor according to a magnitude relationship between the third accumulated value and the fifth preset accumulated value and a magnitude relationship between the fourth accumulated value and the sixth preset accumulated value; Among them, the fifth preset accumulated value is less than or equal to the third preset accumulated value, and the sixth preset accumulated value is less than or equal to the fourth preset accumulated value.

7. The method according to claim 6, characterized in that Determining whether to restart the motor according to a magnitude relationship between the third accumulated value and the fifth preset accumulated value and a magnitude relationship between the fourth accumulated value and the sixth preset accumulated value includes: If the third accumulated value is less than the fifth preset accumulated value, the fourth accumulated value is less than the sixth preset accumulated value, and the number of motor voltage alarms is less than a preset number threshold, the motor is restarted.

8. A voltage alarm device for a food processing machine, characterized in that: The food processing machine comprises a heating element and a motor, the heating element is driven in a wave-dropping driving mode, and the voltage alarm device comprises: An acquisition module is used to obtain the motor voltage; A processing module, configured to increase a first accumulated value if the motor voltage is greater than a first preset threshold value; wherein the first preset threshold value is equal to a maximum input voltage value of the motor; The processing module is further configured to increase the second accumulated value if the motor voltage is less than a second preset threshold value; wherein the first preset threshold value is equal to the minimum input voltage value of the motor; The processing module is further configured to reduce the first accumulated value and the second accumulated value if the motor voltage is less than the first preset threshold and greater than the second preset threshold; The processing module is further configured to issue a motor voltage alarm if the first accumulated value is greater than a first preset accumulated value, or the second accumulated value is greater than a second preset accumulated value.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are connected; The memory is used to store programs; The processor is used to call the program stored in the memory to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the method according to any one of claims 1 to 7 is executed.