Detection method, detection device, household appliance and computer readable storage medium

文档序号:1648790 发布日期:2019-12-24 浏览:17次 中文

阅读说明:本技术 检测方法、检测装置、家电设备和计算机可读存储介质 (Detection method, detection device, household appliance and computer readable storage medium ) 是由 秦继祥 麻百忠 李娟� 周升 卢伟杰 于 2018-06-14 设计创作,主要内容包括:本发明提供了一种检测方法、检测装置、家电设备和计算机可读存储介质,其中,检测方法包括:在家电设备上电运行时,根据预设的采集频率采集开关电源电路的输出电压对应的AD值;确定AD值相对于上电AD阈值之间的偏差值;在检测到偏差值大于或等于预设掉电检测阈值时,确定交流输入掉电。根据本发明的技术方案,一方面,掉电检测的可靠性高,另一方面,防止了由于掉电对家电设备造成损伤,进而保证了家电设备能够不会因为掉电产生烧坏等现象。(The invention provides a detection method, a detection device, household electrical appliance equipment and a computer readable storage medium, wherein the detection method comprises the following steps: when the household appliance equipment is powered on and operated, the AD value corresponding to the output voltage of the switching power supply circuit is collected according to the preset collection frequency; determining a deviation value between the AD value and a power-on AD threshold value; and when the detected deviation value is larger than or equal to the preset power failure detection threshold value, determining that the AC input is powered down. According to the technical scheme of the invention, on one hand, the reliability of power failure detection is high, and on the other hand, the damage to the household appliance caused by power failure is prevented, so that the household appliance is ensured not to be burnt out and the like caused by power failure.)

1. The alternating current input power failure detection method is suitable for household appliances and is characterized in that a rectification filter voltage and a switch power supply circuit are arranged in the household appliances, alternating current mains supply enters the switch power supply circuit after passing through the rectification filter circuit, and the detection method comprises the following steps:

when the household appliance is powered on and operated, the AD value corresponding to the output voltage of the switching power supply circuit is collected according to a preset collection frequency;

determining a deviation value between the AD value and a power-on AD threshold value;

and when the deviation value is detected to be larger than or equal to a preset power failure detection threshold value, determining the AC input power failure.

2. The ac input power failure detection method of claim 1, wherein the rectifying and filtering circuit has a filtering capacitor, the detection method further comprising:

and when the AC input is determined to be powered down, controlling the switching power supply circuit to be communicated with a discharging load so as to discharge the residual voltage on the input filter capacitor through the discharging load.

3. The ac input power-down detection method according to claim 1, wherein the determining a deviation value between the AD value and the power-up AD threshold specifically comprises:

determining a deviation value between the AD value and the power-on AD threshold value every time the AD value is acquired.

4. The ac input power-down detection method according to claim 1, wherein the determining a deviation value between the AD value and the power-up AD threshold specifically comprises:

acquiring a plurality of AD values acquired in a specified time period;

determining an average of a plurality of the AD values to determine a difference between the average and the power-up AD threshold as the deviation value.

5. The ac input power failure detection method according to any one of claims 1 to 4, wherein before acquiring an AD value corresponding to an output voltage of the switching power supply circuit according to a preset acquisition frequency when the household appliance is powered on and operates, the method further comprises:

respectively acquiring a first power-on AD value of threshold output voltage and a second power-on AD value of second output voltage of the switching power supply circuit according to a preset time interval;

determining the first power-on AD value or the second power-on AD value as the power-on AD threshold value when the first power-on AD value is detected to be equal to the second power-on AD value.

6. The AC input power loss detection method as recited in claim 5,

the preset acquisition frequency is greater than or equal to 10Hz and less than or equal to 200 Hz;

the preset time interval is greater than or equal to 10ms and less than or equal to 200 ms.

7. An AC input power loss detection method according to any one of claims 1 to 4,

the voltage value corresponding to the power-on AD threshold value is 5V;

the preset power failure detection threshold value is greater than or equal to 13.

8. The utility model provides a power failure detection device is imported to exchange, is applicable to household electrical appliances, its characterized in that, be provided with rectification filter voltage and switching power supply circuit in the household electrical appliances, exchange the commercial power process enter behind the rectification filter circuit switching power supply circuit, detection device includes:

the acquisition unit is used for acquiring an AD value corresponding to the output voltage of the switching power supply circuit according to a preset acquisition frequency when the household appliance is powered on and operates;

a first determination unit for determining a deviation value between the AD value with respect to a power-on AD threshold;

and the second determining unit is used for determining the AC input power failure when the deviation value is detected to be greater than or equal to a preset power failure detection threshold value.

9. The ac input power loss detection device of claim 8, wherein the rectifying-filtering circuit has a filtering capacitor, the detection device further comprising:

and the control unit is used for controlling the switching power supply circuit to be communicated with a discharging load when the alternating current input power failure is determined so as to discharge the residual voltage on the input filter capacitor through the discharging load.

10. An ac input power loss detection apparatus according to claim 8, wherein the first determination unit includes:

and the first determining subunit is used for determining a deviation value between the AD value and the power-on AD threshold value every time the AD value is acquired.

11. The ac input power failure detection apparatus according to claim 8, wherein the first determination unit further comprises:

the acquisition subunit is used for acquiring a plurality of AD values acquired in a specified time period;

a second determination subunit configured to determine an average value of the plurality of AD values to determine a difference between the average value and the power-on AD threshold as the deviation value.

12. An AC input power loss detection apparatus as claimed in any one of claims 8 to 11,

the acquisition unit is further configured to: respectively acquiring a first power-on AD value of threshold output voltage and a second power-on AD value of second output voltage of the switching power supply circuit according to a preset time interval;

the detection device further comprises:

a third determining unit, configured to determine, when it is detected that the first power-on AD value is equal to the second power-on AD value, the first power-on AD value or the second power-on AD value as the power-on AD threshold.

13. An appliance comprising a memory, a processor and a detection program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the remote control program.

14. A computer-readable storage medium, on which a detection program is stored, characterized in that the detection program, when executed by a processor, implements the method of any one of claims 1 to 7.

Technical Field

The invention relates to the field of household appliances, in particular to an alternating current input power failure detection method, an alternating current input power failure detection device, household appliance equipment and a computer readable storage medium.

Background

Aiming at household appliances such as an induction cooker, in the process of production debugging and use by a user, due to factors such as instability of a power grid or looseness of a power cord plug, instant power failure of alternating current of the household appliances can be caused, due to instant power failure, the household appliances are easy to work abnormally, and therefore voltage reduction needs to be carried out quickly in a short time, and whether a power failure phenomenon occurs or not needs to be determined before the voltage reduction is carried out quickly in order to realize the voltage reduction in the short time.

Disclosure of Invention

In order to solve at least one of the above technical problems, an object of the present invention is to provide a method for detecting ac input power failure.

The invention also aims to provide an alternating current input power failure detection device.

It is yet another object of the present invention to provide a home appliance.

It is yet another object of the present invention to provide a computer-readable storage medium.

In order to achieve the above object, a first aspect of the present invention provides an ac input power failure detection method, including: when the household appliance equipment is powered on and operated, the AD value corresponding to the output voltage of the switching power supply circuit is collected according to the preset collection frequency; determining a deviation value between the AD value and a power-on AD threshold value; and when the detected deviation value is larger than or equal to the preset power failure detection threshold value, determining that the AC input is powered down.

According to the alternating current input power failure detection method provided by the embodiment of the invention, the AD value of the output voltage is acquired according to the preset acquisition frequency, the output voltage value of the switching power supply circuit is represented by the AD value, the AD value is compared with the preset power-on AD threshold value to determine the difference value between the AD value and the preset power-on AD threshold value, when the deviation value is detected to reach the preset power failure detection threshold value, the alternating current output is indicated to have the power failure phenomenon, the household appliance equipment is prevented from being damaged by the power failure phenomenon through adopting response measures, and whether the power failure phenomenon exists is detected through the mode of detecting the AD value of the voltage.

Specifically, be provided with the commercial power rectification filter circuit of establishing ties at the input of household electrical appliances, switching power supply circuit and voltage detection circuit, the commercial power is connected to switching power supply circuit's input through rectification filter circuit, switching power supply circuit's output is connected to voltage detection circuit's input, voltage detection circuit's output is connected to an input pin of MCU, with the AD value that gathers switching power supply circuit's output voltage correspondence, sampling value promptly, so that the treater knows output voltage's size through the sampling value, go on with the last AD threshold value of electricity through with the sampling value and detect whether the sampling value deviates, furthermore, when detecting that the deviation value is great, indicate to have the AC input power down phenomenon.

The skilled person in the art can understand that the AD value corresponding to the output voltage of the switching power supply circuit is collected according to a preset collection frequency, and the AD value may be collected continuously in the operation process of the household electrical appliance or collected in a specified certain stage.

The AD value is a value obtained by digitizing a sampling value in an analog circuit, and may be a 2-system value or a 10-system value.

In addition, the ac input power failure detection method in the above embodiment provided by the present invention may further have the following additional technical features:

in the above technical solution, the rectifying and filtering circuit has a filter capacitor, and the detection method further includes: and when the AC input is determined to be powered down, controlling the switching power supply circuit to be communicated with the discharging load so as to discharge the residual voltage on the input filter capacitor through the discharging load.

In the scheme, the discharging load is connected in series with the switching power supply circuit, so that when power failure is detected, the discharging load is controlled to be connected, the residual voltage on the filter capacitor is consumed through the discharging load, the requirement that the voltage at the plug is reduced to 34V within 1 second is met, and the safety of household appliances is improved.

Specifically, taking an electromagnetic oven as an example, besides an electromagnetic heating assembly, a fan is further arranged in the electromagnetic oven, and when power failure is detected, the fan is controlled to be started so as to convert the residual electric energy on the filter capacitor into kinetic energy to be quickly discharged.

Of course, different discharge loads may be used for different home appliances.

In the above technical solution, determining an offset value between the AD value and the power-on AD threshold specifically includes: and determining a deviation value between the AD value and the power-on AD threshold value every time the AD value is acquired.

In the scheme, the deviation value is calculated through the AD value acquired at a single time to determine whether the power failure phenomenon exists, if the power failure phenomenon exists, the judgment of the power failure phenomenon can be responded within the time interval of the acquisition of the AD value, namely, the power failure judgment within the shortest time is realized, the detection efficiency is high, and correspondingly, the safety of the household appliance is higher.

The time interval of the acquisition is in ms unit, so as to accord with the actual use condition of the household appliance.

In any of the above technical solutions, determining an offset value between the AD value and the power-on AD threshold specifically includes: acquiring a plurality of AD values acquired in a specified time period; an average value of the plurality of AD values is determined to determine a difference between the average value and the power-on AD threshold as a deviation value.

In the scheme, as another detection mode, in order to prevent power failure misjudgment caused by voltage fluctuation, average value calculation can be performed by collecting a plurality of AD values within a period of time, so that a corresponding deviation value is determined through the average value, and the reliability of the detected structure is higher through the detection mode.

In any one of the above technical solutions, before the power-on operation of the household electrical appliance and according to the preset acquisition frequency, acquiring the AD value corresponding to the output voltage of the switching power supply circuit, the method further includes: respectively acquiring a first power-on AD value of threshold output voltage and a second power-on AD value of second output voltage of the switching power supply circuit according to a preset time interval; and when the first power-on AD value is detected to be equal to the second power-on AD value, determining the first power-on AD value or the second power-on AD value as a power-on AD threshold value.

In the scheme, the power-on AD threshold value, namely the AD value corresponding to the normal output of the voltage of the switch power supply circuit, is acquired according to the preset time interval, the first power-on AD value and the second power-on AD value are acquired respectively, the condition that the voltage output of the switch power supply circuit is normal at the moment is judged that the first power-on AD value and the second power-on AD value are the same, and the first power-on AD value or the second power-on AD value is determined as the power-on AD threshold value to be used as a reference value for deviation comparison, so that the automatic acquisition of the power-on AD threshold value is realized.

It can be understood that, the AD values corresponding to the multiple output voltages may also be collected according to a preset time interval, so that when the AD values corresponding to the multiple output voltages are detected to be equal, it indicates that the voltage output is normal, and the voltage output is determined as the power-on AD threshold.

In any of the above technical solutions, the preset acquisition frequency is greater than or equal to 10Hz and less than or equal to 200 Hz; the preset time interval is greater than or equal to 10ms and less than or equal to 200 ms.

In the scheme, the preset acquisition frequency is limited to be within the range of 10Hz to 200Hz, the preset time interval is limited to be within the range of 10ms to 200ms, so that the acquisition time interval of the AD value is limited to be at the unit level of ms, and the time interval of the power-on AD value sampling is limited to be at the unit level of ms, so that the acquisition precision is ensured, and the requirement that the voltage at the plug is reduced to 34V within 1 second is met.

In any of the above technical solutions, the voltage value corresponding to the power-on AD threshold is 5V; the preset power down detection threshold is greater than or equal to 13.

In the scheme, when the voltage value corresponding to the power-on AD threshold is 5V, the minimum value of the preset power-down detection threshold is set to be 13 (decimal), and the power-down detection process is completed through the limitation of the minimum value.

According to a second aspect of the present invention, an ac input power failure detection apparatus is provided, including: the acquisition unit is used for acquiring an AD value corresponding to the output voltage of the switching power supply circuit according to a preset acquisition frequency when the household appliance is powered on and operates; a first determination unit for determining a deviation value between the AD value with respect to a power-on AD threshold; and the second determining unit is used for determining the AC input power failure when the deviation value is detected to be greater than or equal to the preset power failure detection threshold value.

In the scheme, the AD value of the output voltage is collected according to the preset collection frequency, the output voltage value of the switching power supply circuit is represented through the AD value, the AD value is compared with the preset power-on AD threshold value, the difference value between the AD value and the preset power-on AD threshold value is determined, when the deviation value is detected to reach the preset power-off detection threshold value, the AC output is indicated to have the power-off phenomenon, the power-off phenomenon can be prevented from damaging the household appliance through response measures, whether the power-off phenomenon exists is detected through the mode of detecting the AD value of the voltage, on one hand, the detection mode is simple, but the reliability is high, on the other hand, the household appliance is prevented from being damaged due to power-off, and the phenomena that the household appliance is burnt out due to power.

Specifically, be provided with the commercial power rectification filter circuit of establishing ties at the input of household electrical appliances, switching power supply circuit and voltage detection circuit, the commercial power is connected to switching power supply circuit's input through rectification filter circuit, switching power supply circuit's output is connected to voltage detection circuit's input, voltage detection circuit's output is connected to an input pin of MCU, with the AD value that gathers switching power supply circuit's output voltage correspondence, sampling value promptly, so that the treater knows output voltage's size through the sampling value, go on with the last AD threshold value of electricity through with the sampling value and detect whether the sampling value deviates, furthermore, when detecting that the deviation value is great, indicate to have the AC input power down phenomenon.

The skilled person in the art can understand that the AD value corresponding to the output voltage of the switching power supply circuit is collected according to a preset collection frequency, and the AD value may be collected continuously in the operation process of the household electrical appliance or collected in a specified certain stage.

The AD value is a value obtained by digitizing a sampling value in an analog circuit, and may be a 2-system value or a 10-system value.

Among the above-mentioned technical scheme, the rectification filter circuit has filter capacitor, and detection device still includes: and the control unit is used for controlling the switching power supply circuit to be communicated with the discharging load when the alternating current input is determined to be in power failure so as to discharge the residual voltage on the input filter capacitor through the discharging load.

In the scheme, the discharging load is connected in series with the switching power supply circuit, so that when power failure is detected, the discharging load is controlled to be connected, the residual voltage on the filter capacitor is consumed through the discharging load, the requirement that the voltage at the plug is reduced to 34V within 1 second is met, and the safety of the household appliance is improved.

Specifically, taking an electromagnetic oven as an example, besides an electromagnetic heating assembly, a fan is further arranged in the electromagnetic oven, and when power failure is detected, the fan is controlled to be started so as to convert the residual electric energy on the filter capacitor into kinetic energy to be quickly discharged.

In any of the above technical solutions, the first determining unit includes: and the first determining subunit is used for determining a deviation value between the AD value and the power-on AD threshold value every time the AD value is acquired.

In the scheme, the deviation value is calculated through the AD value acquired at a single time to determine whether the power failure phenomenon exists, if the power failure phenomenon exists, the judgment of the power failure phenomenon can be responded within the time interval of the acquisition of the AD value, namely, the power failure judgment within the shortest time is realized, the detection efficiency is high, and correspondingly, the safety of the household appliance is higher.

The time interval of the acquisition is in ms unit, so as to accord with the actual use condition of the household appliance.

In any of the above technical solutions, the first determining unit further includes: the acquisition subunit is used for acquiring a plurality of AD values acquired in a specified time period; and a second determining subunit, configured to determine an average value of the plurality of AD values, to determine a difference value between the average value and the power-on AD threshold value as the deviation value.

In the scheme, as another detection mode, in order to prevent power failure misjudgment caused by voltage fluctuation, average value calculation can be performed by collecting a plurality of AD values within a period of time, so that a corresponding deviation value is determined through the average value, and the reliability of the detected structure is higher through the detection mode.

In any of the above technical solutions, the acquisition unit is further configured to: respectively acquiring a first power-on AD value of threshold output voltage and a second power-on AD value of second output voltage of the switching power supply circuit according to a preset time interval; and a third determining unit, configured to determine the first power-on AD value or the second power-on AD value as a power-on AD threshold when it is detected that the first power-on AD value is equal to the second power-on AD value.

In the scheme, the power-on AD threshold value, namely the AD value corresponding to the normal output of the voltage of the switch power supply circuit, is acquired according to the preset time interval, the first power-on AD value and the second power-on AD value are acquired respectively, the condition that the voltage output of the switch power supply circuit is normal at the moment is judged that the first power-on AD value and the second power-on AD value are the same, and the first power-on AD value or the second power-on AD value is determined as the power-on AD threshold value to be used as a reference value for deviation comparison, so that the automatic acquisition of the power-on AD threshold value is realized.

It can be understood that, the AD values corresponding to the multiple output voltages may also be collected according to a preset time interval, so that when the AD values corresponding to the multiple output voltages are detected to be equal, it indicates that the voltage output is normal, and the voltage output is determined as the power-on AD threshold.

According to a third aspect of the present invention, there is provided a home appliance comprising: a processor; a memory for storing executable instructions of a processor, wherein the processor is configured to implement the steps of the power down detection method according to any of the above-mentioned solutions of the first aspect when executing the executable instructions stored in the memory.

Wherein the household appliances are induction cookers, electric pressure cookers and the like.

According to a fourth aspect of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the power failure detection method according to any one of the above-mentioned solutions of the first aspect.

Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

Drawings

The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:

FIG. 1 shows a flow diagram of an AC input power loss detection method according to one embodiment of the invention;

FIG. 2 shows a schematic block diagram of an AC input power loss detection apparatus according to one embodiment of the present invention;

FIG. 3 shows a circuit schematic of an AC input power down detection scheme according to a first embodiment of the present invention;

fig. 4 shows a schematic block diagram of a home device according to an embodiment of the present invention.

Detailed Description

In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.

The ac input power loss detection method according to some embodiments of the present invention is described below with reference to fig. 1 to 4.

As shown in fig. 1, the ac input power failure detection method according to an embodiment of the present invention includes: step 102, when the household electrical equipment is powered on and operated, acquiring an AD value corresponding to the output voltage of the switching power supply circuit according to a preset acquisition frequency; 104, determining a deviation value between the AD value and a power-on AD threshold value; and step 106, determining the AC input power failure when the detected deviation value is greater than or equal to the preset power failure detection threshold value.

According to the alternating current input power failure detection method provided by the embodiment of the invention, the AD value of the output voltage is acquired according to the preset acquisition frequency, the output voltage value of the switching power supply circuit is represented by the AD value, the AD value is compared with the preset power-on AD threshold value to determine the difference value between the AD value and the preset power-on AD threshold value, when the deviation value is detected to reach the preset power failure detection threshold value, the alternating current output is indicated to have the power failure phenomenon, the household appliance equipment is prevented from being damaged by the power failure phenomenon through adopting response measures, and whether the power failure phenomenon exists is detected through the mode of detecting the AD value of the voltage.

Specifically, be provided with the commercial power rectification filter circuit of establishing ties at the input of household electrical appliances, switching power supply circuit and voltage detection circuit, the commercial power is connected to switching power supply circuit's input through rectification filter circuit, switching power supply circuit's output is connected to voltage detection circuit's input, voltage detection circuit's output is connected to an input pin of MCU, with the AD value that gathers switching power supply circuit's output voltage correspondence, sampling value promptly, so that the treater knows output voltage's size through the sampling value, go on with the last AD threshold value of electricity through with the sampling value and detect whether the sampling value deviates, furthermore, when detecting that the deviation value is great, indicate to have the AC input power down phenomenon.

The skilled person in the art can understand that the AD value corresponding to the output voltage of the switching power supply circuit is collected according to a preset collection frequency, and the AD value may be collected continuously in the operation process of the household electrical appliance or collected in a specified certain stage.

The AD value is a value obtained by digitizing a sampling value in an analog circuit, and may be a 2-system value or a 10-system value.

In addition, the ac input power failure detection method in the above embodiment provided by the present invention may further have the following additional technical features:

in the above embodiment, the rectifying and filtering circuit has a filter capacitor, and the detection method further includes: and when the AC input is determined to be powered down, controlling the switching power supply circuit to be communicated with the discharging load so as to discharge the residual voltage on the input filter capacitor through the discharging load.

In this embodiment, the discharging load is connected in series with the switching power supply circuit, so that when power failure is detected, the discharging load is controlled to be turned on, and the residual voltage on the filter capacitor is consumed by the discharging load, so that the requirement that the voltage at the plug is reduced to 34V within 1 second is met, and the safety of the household appliance is improved.

Specifically, taking an electromagnetic oven as an example, besides an electromagnetic heating assembly, a fan is further arranged in the electromagnetic oven, and when power failure is detected, the fan is controlled to be started so as to convert the residual electric energy on the filter capacitor into kinetic energy to be quickly discharged.

Of course, different discharge loads may be used for different home appliances.

In the foregoing embodiment, determining a deviation value between the AD value and the power-on AD threshold specifically includes: and determining a deviation value between the AD value and the power-on AD threshold value every time the AD value is acquired.

In the embodiment, the deviation value is calculated through the AD value acquired at a single time to determine whether a power failure phenomenon exists, and if the power failure phenomenon exists, the judgment of the power failure phenomenon can be responded within the time interval of the acquisition of the AD value, so that the power failure judgment within the shortest time is realized, the detection efficiency is high, and the safety of the household appliance is correspondingly higher.

The time interval of the acquisition is in ms unit, so as to accord with the actual use condition of the household appliance.

In any of the above embodiments, determining a deviation value between the AD value and the power-on AD threshold specifically includes: acquiring a plurality of AD values acquired in a specified time period; an average value of the plurality of AD values is determined to determine a difference between the average value and the power-on AD threshold as a deviation value.

In this embodiment, as another detection method, in order to prevent power failure misjudgment due to voltage fluctuation, an average value may be calculated by collecting a plurality of AD values over a period of time, so as to determine a corresponding deviation value by the average value.

In any of the above embodiments, before acquiring the AD value corresponding to the output voltage of the switching power supply circuit according to the preset acquisition frequency when the household electrical appliance is powered on, the method further includes: respectively acquiring a first power-on AD value of threshold output voltage and a second power-on AD value of second output voltage of the switching power supply circuit according to a preset time interval; and when the first power-on AD value is detected to be equal to the second power-on AD value, determining the first power-on AD value or the second power-on AD value as a power-on AD threshold value.

In this embodiment, the power-on AD threshold, that is, the AD value corresponding to the normal output of the voltage of the switching power supply circuit, is obtained by respectively collecting the first power-on AD value and the second power-on AD value according to a preset time interval, and when it is determined that the first power-on AD value is the same as the second power-on AD value, it indicates that the voltage output of the switching power supply circuit is normal at this time, and at this time, the first power-on AD value or the second power-on AD value is determined as the power-on AD threshold to be used as a reference value for deviation comparison, so as to achieve the automatic collection of the power-on.

It can be understood that, the AD values corresponding to the multiple output voltages may also be collected according to a preset time interval, so that when the AD values corresponding to the multiple output voltages are detected to be equal, it indicates that the voltage output is normal, and the voltage output is determined as the power-on AD threshold.

In any of the above embodiments, the preset acquisition frequency is greater than or equal to 10Hz and less than or equal to 200 Hz; the preset time interval is greater than or equal to 10ms and less than or equal to 200 ms.

In the embodiment, the acquisition precision is ensured by limiting the preset acquisition frequency to be in the range of 10Hz to 200Hz and the preset time interval to be in the range of 10ms to 200ms, so that the acquisition time interval of the AD value is limited to be in the unit level of ms, and the time interval of the power-on AD value sampling is limited to be in the unit level of ms, and the requirement that the voltage at the plug is reduced to 34V in 1 second is met.

In any of the above embodiments, the voltage value corresponding to the power-on AD threshold is 5V; the preset power down detection threshold is greater than or equal to 13.

In this embodiment, when the voltage value corresponding to the power-on AD threshold is 5V, the minimum value of the preset power-down detection threshold is set to 13 (decimal), and the power-down detection process is completed through the limitation of the minimum value.

As shown in fig. 2, an ac input power loss detection apparatus 200 according to an embodiment of the present invention includes: the acquisition unit 202 is configured to acquire an AD value corresponding to an output voltage of the switching power supply circuit according to a preset acquisition frequency when the household appliance is powered on; a first determining unit 204, configured to determine a deviation value between the AD value and the power-on AD threshold; and the second determining unit 206 is configured to determine that the ac input is powered down when the deviation value is detected to be greater than or equal to the preset power down detection threshold.

In this embodiment, the AD value of the output voltage is collected according to the preset collection frequency, the output voltage value of the switching power supply circuit is represented by the AD value, the AD value is compared with the preset power-on AD threshold value, a difference value between the AD value and the preset power-on AD threshold value is determined, when the deviation value is detected to reach the preset power-off detection threshold value, it is indicated that the power-off phenomenon exists in the ac output, the damage to the household appliance due to the power-off phenomenon can be prevented by taking a response measure, whether the power-off phenomenon exists is detected by detecting the AD value of the voltage, on one hand, the detection mode is simple, but the reliability is high, on the other hand, the damage to the household appliance due to the power-off is prevented, and further, the household appliance is ensured.

Specifically, be provided with the commercial power rectification filter circuit of establishing ties at the input of household electrical appliances, switching power supply circuit and voltage detection circuit, the commercial power is connected to switching power supply circuit's input through rectification filter circuit, switching power supply circuit's output is connected to voltage detection circuit's input, voltage detection circuit's output is connected to an input pin of MCU, with the AD value that gathers switching power supply circuit's output voltage correspondence, sampling value promptly, so that the treater knows output voltage's size through the sampling value, go on with the last AD threshold value of electricity through with the sampling value and detect whether the sampling value deviates, furthermore, when detecting that the deviation value is great, indicate to have the AC input power down phenomenon.

The skilled person in the art can understand that the AD value corresponding to the output voltage of the switching power supply circuit is collected according to a preset collection frequency, and the AD value may be collected continuously in the operation process of the household electrical appliance or collected in a specified certain stage.

The AD value is a value obtained by digitizing a sampling value in an analog circuit, and may be a 2-system value or a 10-system value.

In the above embodiment, the rectifying-filtering circuit has a filtering capacitor, and the detecting device 200 further includes: and the control unit 208 is used for controlling the switching power supply circuit to be communicated with the discharging load when the alternating current input is determined to be powered down, so that the residual voltage on the input filter capacitor is discharged through the discharging load.

In this embodiment, the discharging load is connected in series with the switching power supply circuit, so that when the power failure is detected, the discharging load is controlled to be turned on, and the residual voltage on the filter capacitor is consumed by the discharging load, so that the requirement that the voltage at the plug is reduced to 34V within 1 second is met, and the safety of the household appliance is improved.

Specifically, taking an electromagnetic oven as an example, besides an electromagnetic heating assembly, a fan is further arranged in the electromagnetic oven, and when power failure is detected, the fan is controlled to be started so as to convert the residual electric energy on the filter capacitor into kinetic energy to be quickly discharged.

In any of the above embodiments, the first determining unit 204 includes: a first determining subunit 2042 is configured to determine a deviation value between the AD value and the power-on AD threshold value each time the AD value is acquired.

In the embodiment, the deviation value is calculated through the AD value acquired at a single time to determine whether a power failure phenomenon exists, and if the power failure phenomenon exists, the judgment of the power failure phenomenon can be responded within the time interval of the acquisition of the AD value, so that the power failure judgment within the shortest time is realized, the detection efficiency is high, and the safety of the household appliance is correspondingly higher.

The time interval of the acquisition is in ms unit, so as to accord with the actual use condition of the household appliance.

In any of the above embodiments, the first determining unit 204 further includes: an obtaining subunit 2044, configured to obtain multiple AD values collected in a specified time period; a second determining subunit 2046 is configured to determine an average value of the plurality of AD values, so as to determine a difference value between the average value and the power-on AD threshold value as the deviation value.

In this embodiment, as another detection method, in order to prevent power failure misjudgment due to voltage fluctuation, an average value may be calculated by collecting a plurality of AD values over a period of time, so as to determine a corresponding deviation value by the average value.

In any of the above embodiments, the acquisition unit 202 is further configured to: respectively acquiring a first power-on AD value of threshold output voltage and a second power-on AD value of second output voltage of the switching power supply circuit according to a preset time interval; a third determining unit 210, configured to determine the first power-on AD value or the second power-on AD value as the power-on AD threshold when it is detected that the first power-on AD value is equal to the second power-on AD value.

In this embodiment, the power-on AD threshold, that is, the AD value corresponding to the normal output of the voltage of the switching power supply circuit, is obtained by respectively collecting the first power-on AD value and the second power-on AD value according to a preset time interval, and when it is determined that the first power-on AD value is the same as the second power-on AD value, it indicates that the voltage output of the switching power supply circuit is normal at this time, and at this time, the first power-on AD value or the second power-on AD value is determined as the power-on AD threshold to be used as a reference value for deviation comparison, so as to achieve the automatic collection of the power-on.

It can be understood that, the AD values corresponding to the multiple output voltages may also be collected according to a preset time interval, so that when the AD values corresponding to the multiple output voltages are detected to be equal, it indicates that the voltage output is normal, and the voltage output is determined as the power-on AD threshold.

As shown in fig. 3, taking an induction cooker as an example, a mains supply rectification filter circuit 302, a switching power supply circuit 304 and a voltage detection circuit 306 are arranged in series at an input end of a household electrical appliance, the switching power supply circuit 304 outputs a voltage of 5V under a normal condition, mains supply is connected to an input end of the switching power supply circuit 304 through the rectification filter circuit 302, an output end of the switching power supply circuit 304 is connected to an input end of the voltage detection circuit 306, and an output end of the voltage detection circuit 306 is connected to an input pin of the MCU308 to collect an AD value corresponding to an output voltage of the switching power supply circuit, that is, a sampling value, so that a processor knows the magnitude of the output voltage through the sampling value, and detects whether the sampling value deviates from an upper AD threshold value, and further, when a deviation value is detected to be large, it indicates that an ac input power-down phenomenon.

As shown in fig. 4, a home appliance 40 according to an embodiment of the present invention includes: a processor 402; a memory 404 for storing executable instructions for the processor 402, wherein the processor 402 is configured to implement the steps of the power down detection method as described in any of the above embodiments when executing the executable instructions stored in the memory 404.

Wherein the household appliances are induction cookers, electric pressure cookers and the like.

A computer-readable storage medium according to an embodiment of the invention, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the power down detection method as described in any of the embodiments of the first aspect above.

The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.

It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于磁芯工作状态切换下的复杂剩余电流检测方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!