CN107942736B - Control method, master control equipment and zero-crossing detection circuit - Google Patents

Control method, master control equipment and zero-crossing detection circuit Download PDF

Info

Publication number
CN107942736B
CN107942736B CN201610890351.3A CN201610890351A CN107942736B CN 107942736 B CN107942736 B CN 107942736B CN 201610890351 A CN201610890351 A CN 201610890351A CN 107942736 B CN107942736 B CN 107942736B
Authority
CN
China
Prior art keywords
input voltage
preset
electronic equipment
signal
crossing point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610890351.3A
Other languages
Chinese (zh)
Other versions
CN107942736A (en
Inventor
李娟�
汪钊
肖小龙
陈伟
王彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority to CN201610890351.3A priority Critical patent/CN107942736B/en
Publication of CN107942736A publication Critical patent/CN107942736A/en
Application granted granted Critical
Publication of CN107942736B publication Critical patent/CN107942736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/175Indicating the instants of passage of current or voltage through a given value, e.g. passage through zero

Abstract

The embodiment of the invention discloses a control method, a main control device and a zero crossing point detection circuit, wherein the control method applied to electronic equipment comprises the following steps: monitoring an input voltage signal; judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result; judging the current state of the electronic equipment according to the first judgment result; and when the current state of the electronic equipment is judged to be the power-off state, controlling a preset discharge device in the electronic equipment to discharge. By adopting the technical scheme of the embodiment of the invention, the accuracy of zero crossing point detection can be improved, and the electronic equipment can consume residual electric quantity in time.

Description

Control method, master control equipment and zero-crossing detection circuit
Technical Field
The invention relates to the technical field of detection control, in particular to a control method, a main control device and a zero-crossing detection circuit.
Background
In various electrical safety standards, there is generally a limited requirement for the discharge of electrical products, for example, the voltage of the residual electricity within 1 second after the power supply is removed is less than a preset voltage value. There are mainly two discharge methods in the prior art: one is to discharge by using a discharge resistor; the other is to monitor the voltage change and determine whether to discharge according to the magnitude of the change.
However, in the discharge method using the discharge resistor for discharge, the size of the discharge resistor needs to be carefully considered, because the selection of the size has a large influence on the speed of discharge and a large dependence on the quality of the discharge resistor, and if the discharge resistor is selected incorrectly or damaged, discharge cannot be completed. The method for judging the voltage variation has the risk of misjudgment, on one hand, misjudgment may occur when surge voltage exists in the voltage fluctuation process, and on the other hand, misjudgment may occur when the sampling circuit cannot obviously distinguish sampling values.
Disclosure of Invention
In view of this, the present invention is expected to provide a control method, a main control device and a zero crossing point detection circuit, which can improve the accuracy of zero crossing point detection, so that the electronic device consumes the remaining power in time.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a control method, which comprises the following steps:
monitoring an input voltage signal;
judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result;
judging the current state of the electronic equipment according to the first judgment result;
and when the current state of the electronic equipment is judged to be the power-off state, controlling a preset discharge device in the electronic equipment to discharge.
In the foregoing solution, optionally, the determining the current state of the electronic device according to the first determination result includes:
if the first judgment result is that a zero crossing point occurs in the preset period,
judging that the current state of the electronic equipment is a non-power-off state, and resetting the count of the non-zero crossing point;
if the first judgment result is that no zero crossing point occurs in the preset period,
adding 1 to a count value of a non-zero crossing point, and judging that the current state of the electronic equipment is a power-off state when the count value of the non-zero crossing point reaches N within a preset time period; and N represents the number of the preset cycles included in the preset time period, and is a positive integer greater than or equal to 2.
In the foregoing solution, optionally, the determining whether a zero crossing point occurs in a preset period based on the input voltage signal includes:
acquiring a voltage waveform corresponding to an input voltage signal in a preset period;
if the voltage waveform is a first input voltage waveform, judging whether a low level appears in a preset period based on the first input voltage waveform; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the first preset voltage value is a critical value used for distinguishing whether the input voltage is represented by a high level or a low level, and when the input voltage value corresponding to the input voltage signal is greater than or equal to the first preset voltage value, the input voltage is judged to be the high level;
and if the low level occurs in the preset period, judging that a zero crossing point occurs.
In the foregoing solution, optionally, the first input voltage waveform is a square waveform.
In the foregoing solution, optionally, the determining whether a zero crossing point occurs in a preset period based on the input voltage signal includes:
acquiring a voltage waveform corresponding to an input voltage signal in a preset period;
if the voltage waveform is a second input voltage waveform, acquiring a second preset voltage value; wherein the second preset voltage value is an upper limit voltage value for judging a zero crossing point;
comparing the second input voltage waveform with a straight line representing the second preset voltage value in the same coordinate system;
if m sections of waveforms with the amplitude values smaller than the second preset voltage value exist, judging that a zero crossing point occurs; wherein m is a positive integer greater than or equal to 2.
In the foregoing aspect, optionally, the second input voltage waveform is a waveform that is continuous and is composed of an upper half wave of a sine wave.
In the foregoing scheme, optionally, the controlling a preset discharge device in the electronic device to discharge includes:
informing the fan of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; and/or
Informing a display panel of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; the display panel is used for displaying the working state of the electronic equipment.
An embodiment of the present invention further provides a master control device, where the master control device includes:
the monitoring unit is used for monitoring an input voltage signal;
the first judging unit is used for judging whether a zero crossing point occurs in a preset period based on the input voltage signal to obtain a first judging result;
the second judging unit is used for judging the current state of the electronic equipment according to the first judging result;
and the control unit is used for controlling a preset discharging device in the electronic equipment to discharge when the current state of the electronic equipment is judged to be the power-off state.
In the foregoing scheme, optionally, the second determining unit is specifically configured to:
if the first judgment result is that a zero crossing point occurs in the preset period,
judging that the current state of the electronic equipment is a non-power-off state, and resetting the count of the non-zero crossing point; if no zero crossing point occurs in the preset period, adding 1 to the count value of the non-zero crossing point;
if the first judgment result is that no zero crossing point occurs in the preset period,
counting non-zero-crossing points, and judging that the current state of the electronic equipment is a power-off state when the count value of the non-zero-crossing points in a preset time period reaches N; and N represents the number of the preset cycles included in the preset time period, and is a positive integer greater than or equal to 2.
In the foregoing scheme, optionally, the first determining unit is specifically configured to:
acquiring a first input voltage waveform corresponding to an input voltage signal in a preset period;
judging whether a low level appears in a preset period or not based on the first input voltage waveform; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the first preset voltage value is a critical value used for distinguishing whether the input voltage is represented by a high level or a low level, and when the input voltage value corresponding to the input voltage signal is greater than or equal to the first preset voltage value, the input voltage is judged to be the high level;
and if the low level occurs in the preset period, judging that a zero crossing point occurs.
In the foregoing scheme, optionally, the first determining unit is further specifically configured to:
acquiring a second input voltage waveform corresponding to the input voltage signal in a preset period;
acquiring a second preset voltage value; wherein the second preset voltage value is an upper limit voltage value for judging a zero crossing point;
comparing the second input voltage waveform with a straight line representing the second preset voltage value in the same coordinate system;
if m sections of waveforms with the amplitude values smaller than the second preset voltage value exist, judging that a zero crossing point occurs; wherein m is a positive integer greater than or equal to 2.
In the foregoing scheme, optionally, the control unit is specifically configured to:
informing the fan of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; and/or
Informing a display panel of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; the display panel is used for displaying the working state of the electronic equipment.
The embodiment of the present invention further provides a zero crossing point detection circuit, where the zero crossing point detection circuit includes:
the rectification device is used for carrying out full-wave rectification on an accessed alternating current signal and rectifying the alternating current signal into a first electric signal; wherein a period of the first electrical signal is half of a period of the alternating current electrical signal, a waveform corresponding to the first electrical signal is a continuous waveform composed of a top half wave of a sine wave, and the sine wave is a waveform corresponding to the alternating current electrical signal;
the sampling device is used for accessing the first electric signal, collecting a second electric signal obtained by a sampling module in the sampling device, and outputting an input voltage signal obtained by filtering the second electric signal;
the master control equipment is used for monitoring an input voltage signal; judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result; judging the current state of the electronic equipment according to the first judgment result; and when the current state of the electronic equipment is judged to be the power-off state, controlling a preset discharge device in the electronic equipment to discharge.
In the foregoing solution, optionally, the sampling device includes:
the sampling module is used for acquiring a second electric signal from the sampling module by the sampling device; the period of the second electrical signal is the same as that of the first electrical signal, and the input voltage value corresponding to the second electrical signal is smaller than that corresponding to the first electrical signal at the same time point;
the voltage division module is connected with the sampling module in series and used for accessing the first electric signal and dividing the voltage of the sampling module;
and the filtering module is used for filtering out ripple signals in the second electric signals.
In the foregoing scheme, optionally, the zero-crossing point detection circuit further includes:
the switching device is used for converting the input voltage signal output by the sampling device into an input voltage signal represented by high and low levels; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the high level is used for indicating that an input voltage value corresponding to the input voltage signal is greater than or equal to a first preset voltage value; the first preset voltage value is a critical value for distinguishing whether the input voltage is represented by a high level or a low level;
and the current limiting equipment is used for limiting the current flowing through the switching equipment and the main control equipment.
In the foregoing scheme, optionally, the zero-crossing point detection circuit further includes:
and the filtering device is used for filtering the glitch signal flowing through the switching device.
In the foregoing scheme, optionally, the zero-crossing point detection circuit further includes:
the voltage following device is used for controlling the speed of the input voltage signal output by the sampling device to follow the change speed of the alternating current signal accessed by the rectifying device to adjust;
the protection device is used for detecting the input voltage signal output by the sampling device; when the input voltage value corresponding to the input voltage signal exceeds a preset threshold value, controlling the input voltage signal to be accessed into the protection device; and when the input voltage value corresponding to the input voltage signal does not exceed a preset threshold value, controlling the input voltage signal to be connected to the main control equipment.
The control method, the main control equipment and the zero-crossing detection circuit provided by the embodiment of the invention are used for monitoring an input voltage signal; judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result; judging the current state of the electronic equipment according to the first judgment result; when the current state of the electronic equipment is judged to be the power-off state, a preset discharge device in the electronic equipment is controlled to discharge; therefore, whether a zero crossing point occurs in the preset period is analyzed through the monitored input voltage signal, and whether the current state of the electronic equipment is the power-off state is judged based on the judgment result of whether the zero crossing point occurs in the preset period obtained in the preset time period; compared with the method for judging whether the electronic equipment is in the power-off state according to the voltage variation, the method for judging the zero-crossing point of the electronic equipment has the advantages that the reference input voltage signal is a continuous signal instead of a discrete signal, the current state of the electronic equipment is judged according to whether the zero-crossing point exists in the preset period, the voltage corresponding to a single time point and the variation of the preset voltage are large, the accuracy of zero-crossing point detection can be improved, and the risk of misjudgment is reduced. Compared with a mode of discharging by adopting a discharging resistor, the technical scheme of the embodiment of the invention does not need to select a special discharging resistor for discharging, further does not need to consider various problems in the process of selecting the discharging resistor, and can finish the consumption of the residual electric quantity in the electronic equipment through a self discharging device in the electronic equipment. When the current state of the electronic equipment is judged to be the power-off state, the preset discharge device in the electronic equipment is controlled to discharge, so that the electronic equipment can consume the residual electric quantity in time, the damage of components in the electronic equipment due to the fact that the internal residual electric quantity cannot be completely consumed after the electronic equipment is powered off can be avoided, and the service life of the electronic equipment can be prolonged.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a control method according to an embodiment of the present invention;
fig. 2(a) is a schematic waveform diagram corresponding to an ac signal accessed by an electronic device according to an embodiment of the present invention; 2(b) is a waveform schematic diagram corresponding to the first electrical signal provided by the embodiment of the present invention; fig. 2(c) is a schematic waveform diagram corresponding to the second electrical signal provided by the embodiment of the present invention; fig. 2(d) is a schematic waveform diagram corresponding to an input voltage signal according to an embodiment of the present invention; FIG. 2(e) is a schematic waveform diagram of another input voltage signal according to an embodiment of the present invention;
FIG. 3(a) is a schematic diagram of determining a current state of an electronic device according to an input voltage signal according to an embodiment of the present invention; FIG. 3(b) is a schematic diagram of determining a current state of an electronic device according to another input voltage signal according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of an implementation of the main control device controlling the discharging of the preset discharging device according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a main control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a zero-crossing point detection circuit according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another zero crossing detection circuit according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an alternative hardware configuration of the zero-crossing detection circuit shown in fig. 7 according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another zero crossing detection circuit according to an embodiment of the present invention;
fig. 10 is a schematic diagram of an alternative hardware structure of the zero-crossing point detection circuit shown in fig. 9 according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
Fig. 1 is a schematic view of an implementation flow of a control method according to an embodiment of the present invention, where the control method in this example is applied to an electronic device, and as shown in fig. 1, the control method mainly includes the following steps:
step 101: an input voltage signal is monitored.
Here, the input voltage signal may be monitored by a master device of the electronic device. Wherein the input voltage signal is a signal input to the master control device.
In one embodiment, the method of obtaining the input voltage signal includes:
full-wave rectification is carried out on an accessed alternating current signal through rectification equipment of electronic equipment, and the alternating current signal is rectified into a first electric signal; wherein a period of the first electrical signal is half of a period of the alternating current electrical signal, a waveform corresponding to the first electrical signal is a continuous waveform composed of a top half wave of a sine wave, and the sine wave is a waveform corresponding to the alternating current electrical signal;
and accessing the first electric signal through a sampling device of the electronic device, collecting a second electric signal obtained by a sampling module in the sampling device, and outputting an input voltage signal obtained by filtering the second electric signal.
Here, the alternating current may be 220V (volt) mains, and then, the frequency of the 220V mains is 50Hz (hertz) and the period is 20ms (milliseconds); wherein 220V means the effective value of the alternating current.
FIG. 2(a) shows an AC signal received by an electronic deviceAs can be seen from fig. 2(a), the corresponding waveform diagram has a period T1 of 20ms, a sine wave and a maximum amplitude UmAnd in fact
Figure GDA0002334657530000081
As shown in fig. 2(b), the period of the first electrical signal is half of the period of the ac electrical signal, that is, the period of the first electrical signal is T2-0.5 × T1, and if the period of the ac electrical signal is 20ms, the period of the first electrical signal is 10 ms; the waveform corresponding to the alternating current signal is a sine wave, and the waveform corresponding to the first electric signal is a continuous waveform consisting of the upper half wave of the sine wave.
In a specific embodiment, accessing the first electrical signal through a sampling device, collecting a second electrical signal obtained by a sampling module in the sampling device, and outputting an input voltage signal obtained by filtering the second electrical signal includes:
the first electric signal is accessed through a voltage division module on the sampling device, and voltage division is carried out on the sampling module;
acquiring a second electrical signal from a sampling module on the sampling device;
and filtering out the ripple signal in the second electric signal through a filtering module on the sampling device.
The voltage division module is connected with the sampling module in series. For example, the voltage dividing module is a voltage dividing resistor, and the sampling module is a sampling resistor.
The ripple is a phenomenon caused by voltage fluctuation of the dc regulated power supply, because the dc regulated power supply is generally formed by rectifying and stabilizing an ac power supply, and so on, which inevitably has some ac components in the dc regulated power supply, and this ac component superimposed on the dc regulated power supply is called the ripple. Generally, the ripple signal can be filtered out through the filter capacitor. Thus, the filter module may be a filter capacitor.
The second electrical signal has the same period as the first electrical signal, and the voltage value corresponding to the second electrical signal is smaller than the voltage value corresponding to the first electrical signal at the same time point. Fig. 2(c) shows a waveform diagram corresponding to the second electrical signal, and as can be seen from fig. 2(c), the waveform diagram corresponding to the second electrical signal is similar to the waveform diagram corresponding to the first electrical signal shown in fig. 2(b), and the periods of the waveforms are the same, but the amplitudes of the voltages are different. Fig. 2(d) shows a waveform diagram corresponding to an input voltage signal obtained after filtering out a ripple signal in the second electrical signal, and as can be seen from fig. 2(d), the waveform diagram corresponding to the input voltage signal is almost the same as the waveform diagram corresponding to the second signal shown in fig. 2(c), and not only the period is the same, but also the voltage amplitude is the same, but fig. 2(d) is smoother than the ripple in fig. 2 (c).
In another specific embodiment, accessing the first electrical signal through a sampling device, collecting a second electrical signal obtained by a sampling module in the sampling device, and outputting an input voltage signal obtained by filtering the second electrical signal, further includes:
converting the input voltage signal output by the sampling device into an input voltage signal represented by high and low levels through a switching device; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the high level is used for indicating that an input voltage value corresponding to the input voltage signal is greater than or equal to a first preset voltage value; the first preset voltage value is a critical value for distinguishing whether the input voltage is represented by a high level or a low level;
and limiting the current flowing through the switching device and the main control device by a current limiting device.
For example, if the first preset voltage value is 2.5V, the input voltage value corresponding to the input voltage signal is less than 2.5V and is represented by a low level; when the input voltage value corresponding to the input voltage signal is greater than or equal to 2.5V, the high level is used for representing.
Fig. 2(e) shows a schematic diagram of another input voltage signal, and as can be seen from fig. 2(e), the waveform diagram corresponding to the input voltage signal is a square wave diagram, and the period corresponds to the waveform diagram corresponding to the input voltage signal shown in fig. 2(d), and is the same, except that the input voltage with the input voltage value greater than or equal to the first preset threshold value in fig. 2(d) is represented by a high level, and the input voltage with the input voltage value less than the first preset threshold value in fig. 2(d) is represented by a low level.
As can be seen from fig. 2(a) to (e), the input voltage signal waveform shown in fig. 2(d) or the input voltage signal waveform shown in fig. 2(e) changes with the ac signal input to the electronic device; therefore, the change condition of the alternating current signal can be well reflected, and a good basis is provided for judging the current state of the electronic equipment according to the input voltage signal.
Step 102: and judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result.
Wherein the zero-crossing points are used to represent a state where the voltage is 0.
In one embodiment, the determining whether a zero crossing point occurs in a preset period based on the input voltage signal includes:
acquiring a voltage waveform corresponding to an input voltage signal in a preset period;
if the voltage waveform is a first input voltage waveform, judging whether a low level appears in a preset period based on the first input voltage waveform; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the first preset voltage value is a critical value used for distinguishing whether the input voltage is represented by a high level or a low level, and when the input voltage value corresponding to the input voltage signal is greater than or equal to the first preset voltage value, the input voltage is judged to be the high level;
and if the low level occurs in the preset period, judging that a zero crossing point occurs.
Optionally, the first input voltage waveform is a square waveform.
For example, the first input voltage waveform is shown in fig. 2 (e). In the normal operation state of the electronic device, the waveform of the input voltage signal is as shown in fig. 2(e), and corresponding to such input voltage signal, the high level and the low level regularly alternate, if the high level is output continuously for a period of time, it is considered as the power-off state, fig. 3(a) shows a schematic diagram for judging the current state of the electronic device based on the input voltage signal represented by the high level and the low level, and as can be seen from fig. 3(a), between [0, t1], the high level and the low level regularly alternate, which indicates that the electronic device is in the non-power-off state during the period of time; and after a period of time t1, if the high level is output continuously for a period of time, the electronic device is considered to be in the power-off state. The method for determining the position of the zero crossing point comprises the following steps: determining each segment of the first input voltage waveform representing a low level; and determining the middle point of each section of wave as a zero crossing point.
In another embodiment, the determining whether a zero crossing point occurs in a preset period based on the input voltage signal includes:
acquiring a voltage waveform corresponding to an input voltage signal in a preset period;
if the voltage waveform is a second input voltage waveform, acquiring a second preset voltage value; wherein the second preset voltage value is an upper limit voltage value for judging a zero crossing point;
comparing the second input voltage waveform with a straight line representing the second preset voltage value in the same coordinate system;
if m sections of waveforms with the amplitude values smaller than the second preset voltage value exist, judging that a zero crossing point occurs; wherein m is a positive integer greater than or equal to 2.
Optionally, the second input voltage waveform is a waveform that is continuous and consists of the upper half of a sine wave.
For example, the second input voltage waveform is shown in fig. 2(d), the waveform of the input voltage signal is shown in fig. 2(d) in the normal operation state of the electronic device, and corresponding to such input voltage signal, a waveform with a magnitude smaller than the second preset voltage value exists at intervals, that is, a zero-crossing point appears, fig. 3(b) shows a schematic diagram for judging the current state of the electronic device based on the input voltage signal represented by the upper half wave of a continuous sine wave, and as can be seen from fig. 3(b), between [0, t2], a plurality of waveforms with a magnitude smaller than the second preset voltage value exist, such as oa, bc, cd, ef, fg, hi, ij, km, mn, indicating that the electronic device is in the non-power-off state during this period; and in a period of time after t2, if the waveform with the amplitude smaller than the second preset voltage value does not appear in a continuous period of time, the electronic equipment is considered to be in a power-off state. The method for determining the position of the zero crossing point comprises the following steps: determining two continuous waves in the m-segment waveform; determining points belonging to the two sections of waves at the same time as zero-crossing points; wherein, in the two sections of waves, the propagation directions of the two sections of waves are different. For example, point c, point f, point i, and point m may be determined as zero-crossing points.
Step 103: and judging the current state of the electronic equipment according to the first judgment result.
In one embodiment, the determining the current state of the electronic device according to the first determination result includes:
if the first judgment result is that a zero crossing point occurs in the preset period,
judging that the current state of the electronic equipment is a non-power-off state, and resetting the count of the non-zero crossing point;
if the first judgment result is that no zero crossing point occurs in the preset period,
adding 1 to a count value of a non-zero crossing point, and judging that the current state of the electronic equipment is a power-off state when the count value of the non-zero crossing point reaches N within a preset time period; and N represents the number of the preset cycles included in the preset time period, and is a positive integer greater than or equal to 2.
Here, the power-off state refers to that the electronic device is not currently connected to the mains supply; here, the non-power-off state refers to that the electronic device is currently connected to the mains supply. In practical applications, the power-off state may also be referred to as a power-off state, and the non-power-off state may also be referred to as a non-power-off state.
In general, when a waveform corresponding to an ac signal input to an electronic device is a continuous waveform, a detected input voltage signal is also a continuous waveform, and the input voltage of a general electronic device varies sinusoidally, and the waveform corresponding to the input voltage signal obtained through any monitoring circuit has a zero-crossing point. Therefore, the zero crossing point of the monitoring circuit can be tracked and monitored to judge whether the current state of the electronic equipment is a power-off state or a non-power-off state, and if the zero crossing point is not monitored for a period of time continuously and the accumulated times reach N times, the fact that the power supply is disconnected can be judged.
For example, the preset time period is 40ms, the preset period is 10ms, and the preset time period includes 4 preset periods. When the electronic device is in the non-power-off state, 2 zero-crossing points should be included in 10ms, and 8 zero-crossing points should be detected in 40 ms. If the zero crossing point is not detected in the time period of [0, 10ms ], changing the count value of the non-zero crossing point from 0 to 1; if no zero crossing point is detected in the (10, 20 ms) time period, changing the count value of the non-zero crossing point from 1 to 2, if no zero crossing point is detected in the (20, 30 ms) time period, changing the count value of the non-zero crossing point from 2 to 3, if no zero crossing point is detected in the (30, 40 ms) time period, changing the count value of the non-zero crossing point from 3 to 4, and judging that the current state of the electronic equipment is the power-off state because the count value of the non-zero crossing point in the preset time period reaches 4.
Step 104: and when the current state of the electronic equipment is judged to be the power-off state, controlling a preset discharge device in the electronic equipment to discharge.
Here, the preset discharging device is a device capable of consuming the remaining power in the electronic apparatus, and preferably, the preset discharging device is a device inherent in the electronic apparatus. For example, the pre-set discharge device may include a heat dissipation device such as a fan; a display device such as a display panel may also be included.
In an embodiment, the controlling a preset discharge device in the electronic device to discharge includes:
and informing the fan of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment.
Specifically, when the current state of the electronic device is determined to be the power-off state, a main control device in the electronic device sets a first determination flag bit, sends the first determination flag bit to a fan starting program, and controls the fan to be started through the fan starting program. And the first judgment zone bit is used as a judgment condition of a fan starting program and supports the running of the fan starting program.
Thus, the residual electric quantity in the electronic equipment is consumed through the fan.
In another embodiment, the controlling a preset discharge device in the electronic device to discharge includes:
informing a display panel of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; the display panel is used for displaying the working state of the electronic equipment.
Specifically, when the current state of the electronic device is determined to be the power-off state, the main control device in the electronic device sets a second determination flag bit, sends the second determination flag bit to the display panel display program, and controls the display panel to display through the display panel display program, for example, the display panel performs full-bright display. The second judgment flag bit is used as a judgment condition of a display program of the display panel and supports the operation of the display program of the display panel.
Therefore, the residual electric quantity in the electronic equipment is consumed in a display panel display mode.
In another embodiment, the controlling a preset discharge device in the electronic device to discharge includes:
informing the fan of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; at the same time, the user can select the desired position,
informing a display panel of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; the display panel is used for displaying the working state of the electronic equipment.
Specifically, when the current state of the electronic device is determined to be the power-off state, the main control device in the electronic device sets a third determination flag bit, sends the third determination flag bit to a fan starting program and a display panel display program at the same time, controls the fan to start through the fan starting program, and controls the display panel to display through the display panel display program. And the third judgment flag bit is used as a judgment condition of a fan starting program and also used as a judgment condition of a display panel display program.
Therefore, the residual electric quantity in the electronic equipment is consumed in a fan opening mode and a display panel display mode. Compared with the method of consuming the residual electric quantity by adopting a single discharging mode, the residual electric quantity in the electronic equipment can be consumed more quickly. In addition, the situation that the fan motor cannot be started due to the fact that the residual electric quantity is small can occur when the fan is singly adopted for discharging, the situation that the residual electric quantity cannot be consumed due to the fact that the display panel is adopted for discharging and displaying the required electric quantity is smaller than the starting electric quantity of the fan can be effectively solved due to the fact that the display panel is started and displayed, and the situation that the residual electric quantity cannot be consumed due to the fact that the fan cannot be started is.
Of course, besides the above-listed discharge forms, the discharge can be performed by other discharge devices, which are not described in detail herein.
According to the control method provided by the embodiment of the invention, whether a zero crossing point occurs in a preset period is analyzed through a monitored input voltage signal, and whether the current state of the electronic equipment is a power-off state is judged based on a judgment result of whether the zero crossing point occurs in the preset period obtained in a preset time period; compared with the discrete quantitative mode of aiming at the voltage variation, which is to judge whether the electronic equipment is in the power-off state, because the reference input voltage signal is a continuous signal and is not a discrete signal, and the current state of the electronic equipment is judged according to whether a zero crossing point exists in a preset period, and the voltage corresponding to a single time point and the variation of the preset voltage are large, the accuracy of zero crossing point detection can be improved, and the risk of misjudgment is reduced. Compared with a mode of discharging by adopting a discharging resistor, the technical scheme of the embodiment of the invention does not need to select a special discharging resistor for discharging, further does not need to consider various problems in the process of selecting the discharging resistor, and can finish the consumption of the residual electric quantity in the electronic equipment through a self discharging device in the electronic equipment. When the current state of the electronic equipment is judged to be the power-off state, the preset discharge device in the electronic equipment is controlled to discharge, so that the electronic equipment can consume residual electric quantity in time, the damage to components in the electronic equipment due to the fact that the residual electric quantity reserved in the electronic equipment cannot be completely consumed after the electronic equipment is powered off can be avoided, and the service life of the electronic equipment can be prolonged.
Example two
Fig. 4 is a schematic diagram of an implementation process of a main control device controlling discharge of a preset discharge device according to an embodiment of the present invention, and as shown in fig. 4, the process includes:
step 401: the master control equipment monitors an input voltage signal;
here, the form of the waveform corresponding to the input voltage signal is not limited, and the waveform corresponding to the input voltage signal may be, for example, a first input voltage waveform diagram as shown in fig. 2 (e). The waveform corresponding to the input voltage signal may be a second input voltage waveform diagram as shown in fig. 2 (d).
Step 402: the main control device judges whether a zero crossing point occurs in a preset period based on the input voltage signal, and if the zero crossing point occurs, the step 403 is executed; if no zero crossing occurs, go to step 405;
step 403: the main control equipment clears the count of the non-zero crossing point; then step 404 is performed;
step 404: the main control device judges that the current state of the electronic device is a non-power-off state, and then returns to step 401;
step 405: the main control device adds 1 to the count value of the non-zero crossing point, and then executes step 406;
step 406: the main control equipment judges whether the count value of the non-zero crossing point in a preset time period reaches N; if N is reached, go to step 407; if not, go to step 401;
and N represents the number of the preset cycles included in the preset time period, and is a positive integer greater than or equal to 2.
Step 407: the main control device determines that the current state of the electronic device is a power-off state, and then executes step 408;
step 408: and the main control equipment controls a preset discharge device in the electronic equipment to discharge.
Specifically, the main control device controls a preset discharge device in the electronic device to discharge, including:
informing the fan of the electronic equipment to be started; and/or
And informing the opening of a display panel of the electronic equipment to enable the display panel to carry out full-bright display.
In the control process of this embodiment, whether a zero crossing point occurs in a preset period is analyzed through a monitored input voltage signal, and whether the current state of the electronic device is the power-off state is determined based on a determination result of whether the zero crossing point occurs in the preset period obtained in a preset time period; the accuracy rate of zero crossing point detection can be improved, and the risk of misjudgment is reduced. When the current state of the electronic equipment is judged to be the power-off state, the preset discharge device in the electronic equipment is controlled to discharge, so that the electronic equipment can consume residual electric quantity in time, the damage to components in the electronic equipment due to the fact that the residual electric quantity in the electronic equipment cannot be completely consumed after the electronic equipment is powered off can be avoided, and the service life of the electronic equipment can be prolonged.
EXAMPLE III
An embodiment of the present invention provides a master control device, fig. 5 is a schematic diagram illustrating a structure of a master control device according to an embodiment of the present invention, and as shown in fig. 5, the master control device includes: a monitoring unit 51, a first judging unit 52, a second judging unit 53, and a control unit 54; wherein the content of the first and second substances,
the monitoring unit 51 is used for monitoring an input voltage signal;
the first judging unit 52 is configured to judge whether a zero crossing point occurs in a preset period based on the input voltage signal, so as to obtain a first judgment result;
the second judging unit 53 is configured to judge a current state of the electronic device according to the first judgment result;
the control unit 54 is configured to control a preset discharging device in the electronic device to discharge when it is determined that the current state of the electronic device is the power-off state.
In an embodiment, the second determining unit 53 is specifically configured to:
if the first judgment result is that a zero crossing point occurs in the preset period,
judging that the current state of the electronic equipment is a non-power-off state, and resetting the count of the non-zero crossing point; if no zero crossing point occurs in the preset period, adding 1 to the count value of the non-zero crossing point;
if the first judgment result is that no zero crossing point occurs in the preset period,
counting non-zero-crossing points, and judging that the current state of the electronic equipment is a power-off state when the count value of the non-zero-crossing points in a preset time period reaches N; and N represents the number of the preset cycles included in the preset time period, and is a positive integer greater than or equal to 2.
In an optional embodiment, the first determining unit 52 is specifically configured to:
acquiring a first input voltage waveform corresponding to an input voltage signal in a preset period;
judging whether a low level appears in a preset period or not based on the first input voltage waveform; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the first preset voltage value is a critical value used for distinguishing whether the input voltage is represented by a high level or a low level, and when the input voltage value corresponding to the input voltage signal is greater than or equal to the first preset voltage value, the input voltage is judged to be the high level;
and if the low level occurs in the preset period, judging that a zero crossing point occurs.
In another optional embodiment, the first determining unit 52 is further specifically configured to:
acquiring a second input voltage waveform corresponding to the input voltage signal in a preset period;
acquiring a second preset voltage value; wherein the second preset voltage value is an upper limit voltage value for judging a zero crossing point;
comparing the second input voltage waveform with a straight line representing the second preset voltage value in the same coordinate system;
if m sections of waveforms with the amplitude values smaller than the second preset voltage value exist, judging that a zero crossing point occurs; wherein m is a positive integer greater than or equal to 2.
In an embodiment, the control unit 54 is specifically configured to:
informing the fan of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; and/or
Informing a display panel of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; the display panel is used for displaying the working state of the electronic equipment.
Those skilled in the art should understand that the functions of the modules in the main control device of the present embodiment can be understood by referring to the related description of the foregoing control method.
In practical applications, the specific structures of the monitoring unit 51, the first determining unit 52, the second determining unit 53, and the controlling unit 54 may correspond to a processor. The specific structure of the processor may be a Central Processing Unit (CPU), a Micro Controller Unit (MCU), a Digital Signal Processor (DSP), a Programmable Logic Controller (PLC), or other electronic components or a collection of electronic components having a Processing function. The processor includes executable codes, the executable codes are stored in a storage medium, the processor can be connected with the storage medium through a communication interface such as a bus, and when the corresponding functions of specific units are executed, the executable codes are read from the storage medium and executed. The portion of the storage medium used to store the executable code is preferably a non-transitory storage medium. The executable code is used for executing the control method described in the above embodiments.
In this embodiment, the main control device may be disposed in an electronic device, which is a device having a requirement on a discharge voltage, such as a television, an air conditioner, a refrigerator, a washing machine, and various small appliances, such as an induction cooker and an electric cooker.
The main control equipment can improve the accuracy of zero crossing point detection and reduce the risk of misjudgment; when the current state of the electronic equipment is judged to be the power-off state, the preset discharge device in the electronic equipment is controlled to discharge, so that the electronic equipment can consume residual electric quantity in time, the damage to components in the electronic equipment due to the fact that the internal residual electric quantity cannot be completely consumed after the electronic equipment is powered off can be avoided, and the service life of the electronic equipment can be prolonged.
Example four
The embodiment of the present invention provides a zero crossing point detection circuit, fig. 6 is a schematic structural diagram of the zero crossing point detection circuit provided in the embodiment of the present invention, and as shown in fig. 6, the zero crossing point detection circuit includes:
a rectifying device 61 for full-wave rectifying the incoming ac signal to a first electrical signal; wherein a period of the first electrical signal is half of a period of the alternating current electrical signal, a waveform corresponding to the first electrical signal is a continuous waveform composed of a top half wave of a sine wave, and the sine wave is a waveform corresponding to the alternating current electrical signal;
the sampling device 62 is configured to access the first electrical signal, collect a second electrical signal obtained by dividing by the sampling module 622 in the sampling device 62, and output an input voltage signal obtained by filtering the second electrical signal;
a main control device 63 for monitoring an input voltage signal; judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result; judging the current state of the electronic equipment according to the first judgment result; and when the current state of the electronic equipment is judged to be the power-off state, controlling a preset discharge device in the electronic equipment to discharge.
Specifically, the sampling device includes:
a sampling module 622, wherein the sampling device 62 obtains a second electrical signal from the sampling module 622; the period of the second electrical signal is the same as that of the first electrical signal, and the input voltage value corresponding to the second electrical signal is smaller than that corresponding to the first electrical signal at the same time point;
the voltage dividing module 621 is connected in series with the sampling module 622 and is configured to access the first electrical signal and divide the voltage of the sampling module;
and the filtering module 623 is configured to filter a ripple signal in the second electrical signal.
In an alternative embodiment, as shown in fig. 7, the zero crossing detection circuit further includes: a switching device 64 and a current limiting device 65; wherein the content of the first and second substances,
a switching device 64 for converting the input voltage signal output by the sampling device into an input voltage signal represented by high and low levels; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the high level is used for indicating that an input voltage value corresponding to the input voltage signal is greater than or equal to a first preset voltage value; the first preset voltage value is a critical value for distinguishing whether the input voltage is represented by a high level or a low level;
a current limiting device 65 for limiting the current flowing through the switching device and the main control device.
Optionally, the zero-crossing point detection circuit further includes:
a filtering device 66 for filtering out glitches passing through said switching device 64.
Fig. 8 is a schematic diagram of an alternative hardware structure of the zero crossing detection circuit shown in fig. 7, wherein the rectifying device 61 is composed of diodes D051 and D052; the sampling device 62 is composed of resistors R051, R052, R053 and C053, wherein the resistors R051 and R052 form a voltage division module 621, the resistor R053 forms a sampling module, and the capacitor C053 forms a filtering module 623; the switching device 64 is composed of triodes Q051 and Q052; the current limiting device 65 is composed of resistors R054, R055, R056; the filter device 66 is composed of capacitors C051 and C052. Specifically, the anode of the diode D051 is connected to the live line (denoted by letter L); the anode of the diode D052 is connected with a zero line (indicated by letter N); the cathode of the diode D051 and the cathode of the diode D052 are connected with a resistor R051, and the resistor R051, the resistor R052 and the resistor R053 are connected in series; one end of the resistor R053 is grounded, the other end of the resistor R053 is an output end, the output end is used for outputting an input voltage signal, the output end is also connected with a base electrode (represented by a letter B) of the triode Q051, an emitting electrode (represented by a letter E) of the triode Q051 is grounded, a collector electrode (represented by a letter C) of the triode Q051 is connected with the resistor R054, and the resistor R054 is connected with a power supply DC power supply VCC; the base electrode (represented by letter B) of the triode Q052 is connected with the collector electrode (represented by letter C) of the triode Q051, the emitter electrode (represented by letter E) of the triode Q052 is grounded, the collector electrode (represented by letter C) of the triode Q052 is connected with the resistor R055, and the resistor R055 is connected with the power supply direct-current power supply VCC; the collector of the triode Q052 (denoted by letter C) is also connected to a resistor R056; one end of the resistor R056 is connected with one end of the capacitor C053, the other end of the capacitor C053 is grounded, and one end of the resistor R056 is also connected to the main control device 63.
In another alternative embodiment, as shown in fig. 9, the zero crossing point detecting circuit further includes:
a voltage following device 67 for controlling the speed of the sampling device 62 outputting the input voltage signal to follow the changing speed of the alternating current signal accessed by the rectifying device;
a protection device 68 for detecting the input voltage signal output by the sampling device 62; when the input voltage value corresponding to the input voltage signal exceeds a preset threshold value, controlling the input voltage signal to access the protection device 68; and when the input voltage value corresponding to the input voltage signal does not exceed a preset threshold value, controlling the input voltage signal to be connected to the main control device 63.
Fig. 10 is a schematic diagram showing an alternative hardware structure of the zero-crossing detection circuit shown in fig. 9, wherein the rectifying device 61 is composed of diodes D061 and D062; the sampling device 62 is composed of a voltage division module 621, a sampling module 622, and a filtering module 623, wherein the voltage division module 621 is composed of resistors R061, R062, and R063; the sampling module 622 is composed of a resistor R064; the filtering module 623 is composed of a capacitor C062; the voltage follower device 67 consists of a capacitor C061; the protection device 68 consists of a diode D063. Specifically, the anode of the diode D061 is connected to the live line (denoted by letter L); the anode of the diode D062 is connected with a zero line (indicated by a letter N); the negative electrode of the diode D061 and the negative electrode of the diode D062 are connected with a resistor R061, the resistor R062, the resistor R063 and the resistor R064 are connected in series, the capacitor C061 is connected with the resistor R061 in parallel, and the capacitor C062 is connected with the resistor R064 in parallel; one end of the resistor R064 is grounded, the other end of the resistor R064 is an output end, the output end is used for outputting an input voltage signal, the output end is further connected with the anode of the diode D063, the cathode of the diode D063 is connected with a power supply direct current power supply VCC, and when an input voltage value corresponding to the input voltage signal exceeds a preset threshold value, the diode D063 is conducted; and when the input voltage value corresponding to the input voltage signal does not exceed a preset threshold value, controlling the input voltage signal to be connected to the main control device 63.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (15)

1. A control method, characterized in that the method comprises:
monitoring an input voltage signal;
judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result;
judging the current state of the electronic equipment according to the first judgment result;
when the current state of the electronic equipment is judged to be the power-off state, a preset discharge device in the electronic equipment is controlled to discharge;
the judging whether a zero crossing point occurs in a preset period based on the input voltage signal includes:
acquiring a voltage waveform corresponding to an input voltage signal in a preset period;
if the voltage waveform is a first input voltage waveform, judging whether a low level appears in a preset period based on the first input voltage waveform; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the first preset voltage value is a critical value used for distinguishing whether the input voltage is represented by a high level or a low level, and when the input voltage value corresponding to the input voltage signal is greater than or equal to the first preset voltage value, the input voltage is judged to be the high level;
and if the low level occurs in the preset period, judging that a zero crossing point occurs.
2. The method according to claim 1, wherein the determining the current state of the electronic device according to the first determination result comprises:
if the first judgment result is that a zero crossing point occurs in the preset period,
judging that the current state of the electronic equipment is a non-power-off state, and resetting the count of the non-zero crossing point;
if the first judgment result is that no zero crossing point occurs in the preset period,
adding 1 to a count value of a non-zero crossing point, and judging that the current state of the electronic equipment is a power-off state when the count value of the non-zero crossing point reaches N within a preset time period; and N represents the number of the preset cycles included in the preset time period, and is a positive integer greater than or equal to 2.
3. The method of claim 1, wherein the first input voltage waveform is a square waveform.
4. The method of claim 1, wherein the determining whether a zero crossing occurs within a preset period based on the input voltage signal comprises:
acquiring a voltage waveform corresponding to an input voltage signal in a preset period;
if the voltage waveform is a second input voltage waveform, acquiring a second preset voltage value; wherein the second preset voltage value is an upper limit voltage value for judging a zero crossing point;
comparing the second input voltage waveform with a straight line representing the second preset voltage value in the same coordinate system;
if m sections of waveforms with the amplitude values smaller than the second preset voltage value exist, judging that a zero crossing point occurs; wherein m is a positive integer greater than or equal to 2.
5. The method of claim 4, wherein the second input voltage waveform is a waveform that is continuous and consists of the top half of a sine wave.
6. The method of claim 1, wherein the controlling a preset discharge device in the electronic device to discharge comprises:
informing the fan of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; and/or
Informing a display panel of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; the display panel is used for displaying the working state of the electronic equipment.
7. A master device, the master device comprising:
the monitoring unit is used for monitoring an input voltage signal;
the first judging unit is used for judging whether a zero crossing point occurs in a preset period based on the input voltage signal to obtain a first judging result;
the second judging unit is used for judging the current state of the electronic equipment according to the first judging result;
the control unit is used for controlling a preset discharging device in the electronic equipment to discharge when the current state of the electronic equipment is judged to be a power-off state;
the first judging unit is specifically configured to:
acquiring a first input voltage waveform corresponding to an input voltage signal in a preset period;
judging whether a low level appears in a preset period or not based on the first input voltage waveform; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the first preset voltage value is a critical value used for distinguishing whether the input voltage is represented by a high level or a low level, and when the input voltage value corresponding to the input voltage signal is greater than or equal to the first preset voltage value, the input voltage is judged to be the high level;
and if the low level occurs in the preset period, judging that a zero crossing point occurs.
8. The master control device according to claim 7, wherein the second determining unit is specifically configured to:
if the first judgment result is that a zero crossing point occurs in the preset period,
judging that the current state of the electronic equipment is a non-power-off state, and resetting the count of the non-zero crossing point; if no zero crossing point occurs in the preset period, adding 1 to the count value of the non-zero crossing point;
if the first judgment result is that no zero crossing point occurs in the preset period,
counting non-zero-crossing points, and judging that the current state of the electronic equipment is a power-off state when the count value of the non-zero-crossing points in a preset time period reaches N; and N represents the number of the preset cycles included in the preset time period, and is a positive integer greater than or equal to 2.
9. The main control device according to claim 7, wherein the first determining unit is further specifically configured to:
acquiring a second input voltage waveform corresponding to the input voltage signal in a preset period;
acquiring a second preset voltage value; wherein the second preset voltage value is an upper limit voltage value for judging a zero crossing point;
comparing the second input voltage waveform with a straight line representing the second preset voltage value in the same coordinate system;
if m sections of waveforms with the amplitude values smaller than the second preset voltage value exist, judging that a zero crossing point occurs; wherein m is a positive integer greater than or equal to 2.
10. The master control device of claim 7, wherein the control unit is specifically configured to:
informing the fan of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; and/or
Informing a display panel of the electronic equipment to be started so as to consume the residual electric quantity in the electronic equipment; the display panel is used for displaying the working state of the electronic equipment.
11. A zero-crossing detection circuit, characterized by comprising:
the rectification device is used for carrying out full-wave rectification on an accessed alternating current signal and rectifying the alternating current signal into a first electric signal; wherein a period of the first electrical signal is half of a period of the alternating current electrical signal, a waveform corresponding to the first electrical signal is a continuous waveform composed of a top half wave of a sine wave, and the sine wave is a waveform corresponding to the alternating current electrical signal;
the sampling device is used for accessing the first electric signal, collecting a second electric signal obtained by a sampling module in the sampling device, and outputting an input voltage signal obtained by filtering the second electric signal;
the master control equipment is used for monitoring an input voltage signal; judging whether a zero crossing point occurs in a preset period or not based on the input voltage signal to obtain a first judgment result; judging the current state of the electronic equipment according to the first judgment result; when the current state of the electronic equipment is judged to be the power-off state, a preset discharge device in the electronic equipment is controlled to discharge; the voltage waveform acquisition module is also used for acquiring a voltage waveform corresponding to the input voltage signal in a preset period; if the voltage waveform is a first input voltage waveform, judging whether a low level appears in a preset period based on the first input voltage waveform; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the first preset voltage value is a critical value used for distinguishing whether the input voltage is represented by a high level or a low level, and when the input voltage value corresponding to the input voltage signal is greater than or equal to the first preset voltage value, the input voltage is judged to be the high level; and if the low level occurs in the preset period, judging that a zero crossing point occurs.
12. The zero-crossing detection circuit according to claim 11, characterized in that the sampling device comprises:
the sampling module is used for acquiring a second electric signal from the sampling module by the sampling device; the period of the second electrical signal is the same as that of the first electrical signal, and the input voltage value corresponding to the second electrical signal is smaller than that corresponding to the first electrical signal at the same time point;
the voltage division module is connected with the sampling module in series and used for accessing the first electric signal and dividing the voltage of the sampling module;
and the filtering module is used for filtering out ripple signals in the second electric signals.
13. The zero-crossing detection circuit according to claim 11 or 12, characterized in that the zero-crossing detection circuit further comprises:
the switching device is used for converting the input voltage signal output by the sampling device into an input voltage signal represented by high and low levels; the low level is used for indicating that an input voltage value corresponding to the input voltage signal is smaller than a first preset voltage value; the high level is used for indicating that an input voltage value corresponding to the input voltage signal is greater than or equal to a first preset voltage value; the first preset voltage value is a critical value for distinguishing whether the input voltage is represented by a high level or a low level;
and the current limiting equipment is used for limiting the current flowing through the switching equipment and the main control equipment.
14. The zero-crossing detection circuit according to claim 13, characterized in that the zero-crossing detection circuit further comprises:
and the filtering device is used for filtering the glitch signal flowing through the switching device.
15. The zero-crossing detection circuit according to claim 11 or 12, characterized in that the zero-crossing detection circuit further comprises:
the voltage following device is used for controlling the speed of the input voltage signal output by the sampling device to follow the change speed of the alternating current signal accessed by the rectifying device to adjust;
the protection device is used for detecting the input voltage signal output by the sampling device; when the input voltage value corresponding to the input voltage signal exceeds a preset threshold value, controlling the input voltage signal to be accessed into the protection device; and when the input voltage value corresponding to the input voltage signal does not exceed a preset threshold value, controlling the input voltage signal to be connected to the main control equipment.
CN201610890351.3A 2016-10-12 2016-10-12 Control method, master control equipment and zero-crossing detection circuit Active CN107942736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610890351.3A CN107942736B (en) 2016-10-12 2016-10-12 Control method, master control equipment and zero-crossing detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610890351.3A CN107942736B (en) 2016-10-12 2016-10-12 Control method, master control equipment and zero-crossing detection circuit

Publications (2)

Publication Number Publication Date
CN107942736A CN107942736A (en) 2018-04-20
CN107942736B true CN107942736B (en) 2020-06-16

Family

ID=61928271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610890351.3A Active CN107942736B (en) 2016-10-12 2016-10-12 Control method, master control equipment and zero-crossing detection circuit

Country Status (1)

Country Link
CN (1) CN107942736B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109085414B (en) * 2018-08-10 2021-06-11 深圳和而泰智能控制股份有限公司 Voltage detection method and device
CN109084446B (en) * 2018-08-23 2019-09-13 奥克斯空调股份有限公司 A kind of air conditioning control method, device and air conditioner
WO2020211114A1 (en) * 2019-04-19 2020-10-22 青岛亿联客信息技术有限公司 Flash switch control system and input flash detection circuit thereof
CN111103554B (en) * 2019-11-27 2022-10-04 九阳股份有限公司 Power failure detection method, device, circuit system and computer storage medium
CN111384780A (en) * 2020-03-24 2020-07-07 佳源科技有限公司 High-speed reliable Internet of things power broadband carrier High Performance Liquid Chromatography (HPLC) system
CN112105106B (en) * 2020-08-14 2022-09-27 中山市合硕高品电器有限公司 Control method and device of induction cooker
CN112491008A (en) * 2020-11-23 2021-03-12 四川虹美智能科技有限公司 Electric quantity consumption device and method of electronic controller
WO2023141798A1 (en) * 2022-01-26 2023-08-03 华为技术有限公司 Data bus inversion judgment method, circuit and device
CN114509975A (en) * 2022-02-16 2022-05-17 珠海格力电器股份有限公司 Electric appliance control method, control device and nonvolatile storage medium
CN115371200A (en) * 2022-08-09 2022-11-22 珠海格力电器股份有限公司 Air conditioner discharging method and device, storage medium and air conditioner

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009045242A1 (en) * 2009-10-01 2011-04-21 BSH Bosch und Siemens Hausgeräte GmbH Method for operating a household appliance and household appliance for carrying out the method
CN103235611B (en) * 2013-04-28 2015-02-04 东莞理工学院 Control method and controller for proportion integration differentiation (PID) control-based breathing machine heating and humidifying system
CN104168679B (en) * 2013-05-17 2016-02-10 美的集团股份有限公司 Electromagnetic oven and charging method thereof
CN104423292B (en) * 2013-08-23 2018-03-20 苏州三星电子有限公司 A kind of X electric capacity is released control method and circuit
CN104269837B (en) * 2014-10-17 2017-07-28 广东美的厨房电器制造有限公司 Pull out electrical protective device

Also Published As

Publication number Publication date
CN107942736A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107942736B (en) Control method, master control equipment and zero-crossing detection circuit
CN109946505B (en) Voltage drop detection method and system, readable storage medium and computer equipment
US10063181B2 (en) System and method for detecting loss of input phase by sensing after power rectifier
CN107957514B (en) Zero-crossing detection device and method and electric appliance
CN103033769A (en) Fault detection method of three-phase power supply
CN110880863B (en) Control method, control device, home appliance and computer readable storage medium
KR20120011017A (en) Motor drive apparatus
CN205208671U (en) Smoke ventilator with self - cleaning reminds function
KR20120127075A (en) Apparatus for detecting input phase missing and method thereof
CN110784102B (en) Control method, control device, household appliance and computer readable storage medium
US10644639B2 (en) System and method for detecting loss of input phase by sensing before power rectifier
CN111103554B (en) Power failure detection method, device, circuit system and computer storage medium
CN110868060A (en) Control method, control device, household appliance and computer readable storage medium
CN110108928A (en) A kind of alternating voltage zero-crossing detection method based on ac voltage detection circuit
CN114545282A (en) Power failure detection method and device and power utilization equipment with same
CN113644655A (en) AC/DC power supply equipment, power supply method and device and storage medium
CN210243751U (en) AC three-phase power phase loss detection device
US6255864B1 (en) Method and circuit for monitoring a defined amplitude threshold value of signals formed by alternating voltage
CN209964031U (en) Zero-crossing control circuit and electronic equipment
CN106410759B (en) A kind of method and device thereof of exchange line control machine communication overcurrent protection
CN114689926A (en) Power failure detection method and device and electric equipment with same
CN210894671U (en) Power failure detection circuit, power failure detection system and ammeter
CN110707921B (en) Control method, control device, household electrical appliance and computer readable storage medium
CN208459804U (en) A kind of control circuit and food processor
CN112855599A (en) Fan speed regulation control system and method and fan

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant