Washing machine control method, device, medium and washing machine based on zero-crossing detection correction
By obtaining the operating temperature in the washing machine and correcting the zero-crossing detection circuit of the optocoupler, the problem of device damage caused by inaccurate zero-crossing detection is solved, enabling precise control under different temperature and voltage environments, and improving the stability of the washing machine and the lifespan of the devices.
Patent Information
- Application Number
- CN202511123843.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2045-08-12
AI Technical Summary
In existing technologies, the zero-crossing detection method of washing machines is affected by the operating temperature, resulting in inaccurate zero-crossing detection and easy damage to the device.
By obtaining the operating temperature of the washing machine, the surface temperature and forward conduction voltage of the optocoupler are determined, and the zero-crossing point of the optocoupler is corrected to achieve precise control of the valve load of the washing machine and avoid zero-crossing detection errors caused by temperature changes.
This improves the operational stability of the washing machine, reduces the risk of component damage, and ensures that the accuracy of zero-crossing detection is not affected by temperature and grid voltage fluctuations.
Smart Images

Figure CN120608387B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of washing machine control technology, and more specifically, to a washing machine control method, apparatus, computer-readable storage medium, and washing machine based on zero-crossing detection correction. Background Technology
[0002] Modern washing machines, due to their functional requirements, often involve temperature changes during operation. For example, heating the wash water for sterilization and stain removal, or blowing hot air into the drum for drying clothes. These specific functions cause temperature changes inside the washing machine, which in turn affect the controller's temperature. This can lead to increased controller temperature, which in turn affects the controller's electrical characteristics, resulting in performance degradation and a shortened lifespan.
[0003] To address the issue of abnormal temperatures causing controller performance degradation or shortened lifespan, existing technologies propose adjusting the power supply voltage based on ambient temperature to reduce circuit damage caused by high temperatures, or using a thick-film heating element with integrated electronic omnidirectional sensing technology in the over-temperature protection circuit.
[0004] It is evident that existing technologies address the impact of temperature on the controller by using a separate temperature detection circuit to detect and process the ambient temperature. However, these technologies do not consider the heat interference generated inside the washing machine during operation, nor do they address the issue of inaccurate control and reduced device lifespan caused by the controller's zero-crossing detection malfunction after changes in the working environment. Summary of the Invention
[0005] The main objective of this application is to provide a washing machine control method, apparatus, computer-readable storage medium, and washing machine based on zero-crossing detection correction, so as to at least solve the problem that the zero-crossing detection method in the prior art is affected by the operating temperature when applied to the washing machine, resulting in inaccurate zero-crossing detection and easy damage to the device.
[0006] To achieve the above objectives, according to one aspect of this application, a washing machine control method based on zero-crossing detection correction is provided, comprising: acquiring the operating temperature of the washing machine; determining the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature to obtain a first target temperature; determining the forward conduction voltage of the optocoupler under the action of the first target temperature to obtain a first target voltage; determining the zero-crossing point of the optocoupler based on the first target voltage; and controlling the operation of the valve load of the washing machine based on the zero-crossing point.
[0007] Optionally, determining the forward conduction voltage of the optocoupler under the action of the first target temperature to obtain the first target voltage includes: acquiring a preset curve corresponding to the first target temperature to obtain a target curve, wherein each preset curve is a curve showing the change of the input current of the input-side light-emitting diode of the optocoupler with the forward conduction voltage of the optocoupler at different surface temperatures; acquiring the input current of the input-side light-emitting diode at the current moment to obtain a first current; and determining the forward conduction voltage corresponding to the first current based on the target curve to obtain the first target voltage.
[0008] Optionally, determining the zero-crossing point of the optocoupler based on the first target voltage includes: acquiring the peak voltage of the bus voltage detection circuit of the washing machine to obtain the second target voltage; acquiring the bus voltage of the bus voltage detection circuit to obtain the third target voltage; determining the input voltage of the optocoupler based on the second target voltage and the third target voltage to obtain the fourth target voltage; and determining the zero-crossing point based on the first target voltage and the fourth target voltage.
[0009] Optionally, determining the input voltage of the optocoupler based on the second target voltage and the third target voltage to obtain the fourth target voltage includes: calculating the fourth target voltage based on the second target voltage when the third target voltage is equal to a preset voltage; and calculating the fourth target voltage based on the third target voltage when the third target voltage is not equal to the preset voltage.
[0010] Optionally, determining the zero-crossing point based on the first target voltage and the fourth target voltage includes: if the fourth target voltage is greater than or equal to the first target voltage, calculating the turn-on and turn-off times of the optocoupler based on the fourth target voltage; determining the zero-crossing point closest to the current time based on the turn-on and turn-off times to obtain the first zero-crossing point; and recursively determining other zero-crossing points based on the period of the third target voltage using the first zero-crossing point as a reference.
[0011] Optionally, obtaining the operating temperature of the washing machine includes: determining the operating stage of the washing machine, the operating stage including at least a washing and heating stage and a drying and heating stage; when the operating stage is the washing and heating stage, determining the washing temperature as the operating temperature; when the operating stage is the drying and heating stage, determining the air outlet temperature as the operating temperature.
[0012] Optionally, the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine is determined according to the operating temperature to obtain a first target temperature, including: obtaining the ambient temperature of the washing machine, the thermal radiation attenuation coefficient between the washing machine and the optocoupler, and the operating temperature of the optocoupler; determining a second target temperature transmitted from the washing machine to the optocoupler based on the thermal radiation attenuation coefficient and the operating temperature; and summing the operating temperature, the ambient temperature, and the second target temperature to obtain the first target temperature.
[0013] According to another aspect of this application, a washing machine control device based on zero-crossing detection correction is provided. The device includes: an acquisition unit for acquiring the operating temperature of the washing machine and determining the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature to obtain a first target temperature; a determination unit for determining the forward conduction voltage of the optocoupler under the action of the first target temperature to obtain a first target voltage; and a control unit for determining the zero-crossing point of the optocoupler based on the first target voltage and controlling the operation of the valve load of the washing machine based on the zero-crossing point.
[0014] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the methods described.
[0015] According to another aspect of this application, a washing machine is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any one of the methods described.
[0016] Applying the technical solution of this application, in the aforementioned washing machine control method based on zero-crossing detection, firstly, the operating temperature of the washing machine is obtained, and the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine is determined based on the operating temperature to obtain a first target temperature; then, the forward conduction voltage of the optocoupler under the action of the first target temperature is determined to obtain a first target voltage; finally, the zero-crossing point of the optocoupler is determined based on the first target voltage, and the valve load of the washing machine is controlled according to the zero-crossing point. This application determines the surface temperature of the optocoupler based on the operating temperature of the washing machine and the heat conduction between the washing machine and the zero-crossing detection circuit, and corrects the forward conduction voltage of the optocoupler based on the surface temperature of the optocoupler, thereby eliminating the influence of temperature on the forward conduction voltage of the optocoupler. Furthermore, the zero-crossing point is compensated based on the corrected forward conduction voltage, thereby avoiding the use of the forward conduction voltage under standard conditions for zero-crossing detection under different temperatures and controlling the operation of the washing machine based on the detection results, which leads to a deviation between the control time and the zero-crossing point, and the resulting instantaneous induced current causing losses to the drive circuit. This application solves the problem that the existing zero-crossing detection method is affected by the operating temperature when applied to washing machines, resulting in inaccurate zero-crossing detection and easy damage to components. Attached Figure Description
[0017] Figure 1 A flowchart illustrating a washing machine control method based on zero-crossing detection according to an embodiment of this application is shown.
[0018] Figure 2A circuit diagram of a zero-crossing detection circuit according to an embodiment of this application is shown;
[0019] Figure 3 A reference voltage waveform diagram provided according to an embodiment of this application is shown;
[0020] Figure 4 A schematic diagram illustrating the correspondence between IF and VF at different temperatures is provided according to an embodiment of this application;
[0021] Figure 5 A circuit diagram of a bus voltage detection circuit according to an embodiment of this application is shown;
[0022] Figure 6 A structural block diagram of a washing machine control device based on zero-crossing detection according to an embodiment of this application is shown. Detailed Implementation
[0023] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] As described in the background section, existing technologies do not consider the heat interference generated inside the washing machine during operation, nor do they address the problem of inaccurate control caused by the controller's zero-crossing detection malfunction after changes in the working environment, which reduces the lifespan of the components. To solve the problem that the existing zero-crossing detection method is affected by the working temperature when applied to a washing machine, resulting in inaccurate zero-crossing detection and easy damage to the components, the embodiments of this application provide a washing machine control method, device, computer-readable storage medium, and washing machine based on zero-crossing detection correction.
[0027] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0028] This embodiment provides a washing machine control method based on zero-crossing detection, which operates on a controller or similar computing device of a washing machine. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0029] Figure 1 This is a flowchart of a washing machine control method based on zero-crossing detection according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:
[0030] Step S201: Obtain the operating temperature of the washing machine, determine the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtain the first target temperature;
[0031] Specifically, the operating temperature of the washing machine is the temperature of its internal environment when it is running the heating program. By monitoring the above operating temperature, it is possible to control the temperature changes of the environment in which the optocoupler is located in real time, and thus determine the performance changes of the optocoupler.
[0032] In practical implementation, the aforementioned zero-crossing detection circuit is as follows: Figure 2 As shown, the zero-crossing detection circuit consists of four resistors R1, R2, R3, and R4 and an optocoupler. L and N are the live wire and the neutral wire, respectively, and INPUT is the circuit input.
[0033] It is understandable that, based on the conduction characteristics of the optocoupler, when the primary voltage of the optocoupler is greater than 1V, the optocoupler conducts, and at this time the circuit input INPUT is pulled low from high level to ground.
[0034] Assuming the washing machine's standard voltage is 220V, with an allowable fluctuation range of ±10%, i.e., 198V to 242V; the standard frequency is 50Hz, with an allowable fluctuation range of ±0.5Hz, i.e., 49.5Hz to 50.5Hz; and the voltage waveform is a sine wave, whose mathematical expression is: , where V peak Here, f is the peak voltage, f is the frequency, and t is the time. The phase angle is the waveform within one complete cycle, from zero to a positive peak, then to a negative peak, and finally back to zero, as shown below. Figure 3 As shown.
[0035] Step S202: Determine the forward conduction voltage of the optocoupler under the action of the first target temperature, and obtain the first target voltage;
[0036] Specifically, the electrical characteristics of optocouplers are affected by temperature, particularly their forward voltage, which decreases as temperature rises. For example, in high-temperature environments, the forward voltage of the optocoupler may decrease, which, if not corrected, can lead to inaccurate zero-crossing detection, thus affecting the precise control of the washing machine's heating element. Therefore, this application addresses this temperature effect through calibration correction, avoiding zero-crossing detection errors caused by temperature changes and achieving stable operation of the washing machine.
[0037] Step S203: Determine the zero-crossing point of the optocoupler based on the first target voltage, and control the operation of the valve load of the washing machine based on the zero-crossing point.
[0038] Specifically, by taking the first target voltage as a reference and combining it with the voltage waveform of the washing machine, the zero-crossing point of the optocoupler can be determined, and the conduction state of the optocoupler can be accurately captured, thereby achieving precise control of the valve load of the washing machine. This avoids the instantaneous induced voltage generated by the valve load at the moment of opening / closing, which would affect the drive circuit and cause damage to the device.
[0039] In this embodiment, firstly, the operating temperature of the washing machine is obtained, and the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine is determined based on the operating temperature to obtain a first target temperature. Then, the forward conduction voltage of the optocoupler under the first target temperature is determined to obtain a first target voltage. Finally, the zero-crossing point of the optocoupler is determined based on the first target voltage, and the valve load operation of the washing machine is controlled based on the zero-crossing point. This application determines the surface temperature of the optocoupler based on the operating temperature of the washing machine and the heat conduction between the washing machine and the zero-crossing detection circuit, and corrects the forward conduction voltage of the optocoupler based on the surface temperature, thereby eliminating the influence of temperature on the forward conduction voltage of the optocoupler. Furthermore, the zero-crossing point is compensated based on the corrected forward conduction voltage, thus avoiding the use of the standard forward conduction voltage for zero-crossing detection under different temperatures and controlling the washing machine operation based on the detection results, which leads to a deviation between the control time and the zero-crossing point, and the resulting instantaneous induced current causing losses to the drive circuit. This application solves the problem that the existing zero-crossing detection method is affected by the operating temperature when applied to a washing machine, leading to inaccurate zero-crossing detection and easy damage to components.
[0040] In order to correct the forward conduction voltage of the optocoupler, in an optional implementation, step S202 above includes:
[0041] Step S2021: Obtain the preset curve corresponding to the first target temperature to obtain the target curve. Each preset curve is the curve of the input current of the light-emitting diode on the input side of the optocoupler changing with the forward conduction voltage of the optocoupler at different surface temperatures.
[0042] Specifically, the current transfer ratio (CTR) of an optocoupler is an important parameter for evaluating its performance. It is defined as the ratio of the collector current IC on the output side to the LED current IF on the input side, i.e., CTR = IF / IC. Changes in ambient temperature significantly affect the CTR of an optocoupler. As temperature increases, the forward voltage drop VF of the LED decreases, leading to an increase in the LED current IF at the same input power. Conversely, as temperature decreases, the forward voltage drop VF of the LED increases, leading to a decrease in the LED current IF at the same input power. Figure 4 The image shows examples of the preset curves described above at temperatures of 25, -55, and 100.
[0043] Step S2022: Obtain the current input current of the input-side LED at the current moment to obtain the first current;
[0044] Specifically, the input current of the input-side LED at the current moment is obtained to obtain the first current IF.
[0045] Step S2023: Determine the forward conduction voltage corresponding to the first current based on the target curve to obtain the first target voltage.
[0046] Understandably, based on the aforementioned preset curve, the first target voltage VF can be queried using IF.
[0047] Through the above embodiments, by calibrating the forward conduction voltage at different operating temperatures, the accuracy of the zero-crossing detection circuit is ensured to be unaffected by temperature fluctuations, thus improving the stability of the washing machine's operation. This avoids damage to washing machine components caused by control time deviations in valve loads. Furthermore, compared to traditional independent temperature detection and compensation circuits, this application utilizes the temperature characteristics of the optocoupler itself for adjustment, reducing hardware design complexity and cost.
[0048] To determine the aforementioned zero-crossing point, in one optional implementation, step S203 includes:
[0049] Step S2031: Obtain the peak voltage of the bus voltage detection circuit of the washing machine to obtain the second target voltage; obtain the bus voltage of the bus voltage detection circuit to obtain the third target voltage.
[0050] Specifically, the peak voltage V is obtained through a voltage detection circuit. peak The second target voltage is obtained, and the bus voltage V is acquired. sense The third target voltage is obtained, where the bus voltage may vary due to grid voltage fluctuations, load changes, or other factors.
[0051] In specific implementation, such as Figure 5 As shown, the bus voltage detection circuit consists of two voltage divider resistors R5 and R6. According to the characteristics of the voltage divider circuit, Vsense = Vpeak * R6 / (R5 + R6).
[0052] Step S2032: Determine the input voltage of the optocoupler based on the second target voltage and the third target voltage to obtain the fourth target voltage;
[0053] Specifically, based on the second and third target voltages mentioned above, it is determined whether there is a current grid voltage fluctuation, so as to determine the actual input voltage of the optocoupler and obtain the fourth target voltage mentioned above.
[0054] Step S2033: Determine the zero-crossing point based on the first target voltage and the fourth target voltage.
[0055] Specifically, the turn-on and turn-off times of the optocoupler can be determined based on the first target voltage and the fourth target voltage, thereby determining the zero-crossing point.
[0056] Through the above embodiments, by adjusting the zero-crossing detection threshold in real time to adapt to temperature changes, this application ensures the zero-crossing detection accuracy of the washing machine in high-temperature operation modes such as heating. Furthermore, this application incorporates the impact of grid voltage fluctuations on equipment performance to guarantee zero-crossing detection accuracy under all circumstances.
[0057] In order to determine the actual input voltage of the optocoupler, in one optional implementation, step S2032 above includes:
[0058] Step S20321: If the third target voltage is equal to the preset voltage, calculate the fourth target voltage based on the second target voltage;
[0059] Specifically, if Vsense = 311, it means that the mains power is not affected by grid voltage fluctuations at this time, and the fourth voltage is... .
[0060] Step S20322: If the third target voltage is not equal to the preset voltage, calculate the fourth target voltage based on the third target voltage.
[0061] Specifically, if Vsense ≠ 311, it means that the mains power is affected by grid voltage fluctuations, and in this case, VF1 = UR2 = V(t) * R2 / .
[0062] The above embodiments ensure that the input voltage of the optocoupler can be accurately calculated in both standard voltage and voltage fluctuation environments, guaranteeing that the accuracy of zero-crossing detection is unaffected by voltage fluctuations. This avoids instantaneous currents generated when switching loads at non-zero-crossing points, reducing the risk of device damage.
[0063] To determine the zero-crossing point, in one optional implementation, step S2033 includes:
[0064] Step S20331: When the fourth target voltage is greater than or equal to the first target voltage, calculate the turn-on and turn-off times of the optocoupler based on the fourth target voltage.
[0065] Specifically, when the fourth target voltage, i.e. the actual input voltage of the optocoupler, is greater than or equal to the first target voltage and the temperature-compensated forward conduction voltage, the optocoupler will start conducting when the AC voltage reaches this threshold voltage. The turn-on and turn-off times are then calculated.
[0066] The formula for calculating the conduction time is: t0 = arcsin[Vf1*(R1+R2) / (R2*V peak )] / 2πf;
[0067] The formula for calculating the turn-off time is t1 = arccos[Vf1 * (R1 + R2) / (R2 * Vf1)]. peak )] / 2πf.
[0068] Step S20332: Determine the nearest zero-crossing point to the current time based on the turn-on and turn-off times to obtain the first zero-crossing point;
[0069] Specifically, after determining the turn-on and turn-off times, the first zero-crossing point can be determined, that is, the time when the first zero-crossing point is generated.
[0070] The formula for calculating the position of the first zero-crossing point is T1 = t1 + t0.
[0071] Step S20336: Based on the period of the third target voltage, recursively calculate other zero-crossing points using the first zero-crossing point as a reference.
[0072] Specifically, the periodicity of alternating current means that after determining the first zero-crossing point, a new zero-crossing point can be determined by extrapolating half a cycle from the first zero-crossing point.
[0073] Through the above embodiments, accurate calculation of the zero-crossing point is achieved, reducing the transient current generated during the instantaneous control of the washing machine valve load, and reducing the damage of transient current to the device.
[0074] To ensure the accuracy of obtaining the internal temperature of the washing machine, in one optional embodiment, step S201 includes:
[0075] Step S2011: Determine the working stages of the washing machine, which include at least a washing and heating stage and a drying and heating stage;
[0076] The first step is to determine the current operating stage of the washing machine. Typically, the operating stages of a washing machine can be divided into washing, rinsing, spin-drying, washing heating, and drying heating. Among these, the washing heating and drying heating stages require heating, resulting in a significant increase in ambient temperature, which has a more noticeable impact on the performance of the optocoupler. The remaining stages have a smaller impact on the controller temperature, and this application disregards them.
[0077] Step S2012: When the working stage is the washing and heating stage, the washing temperature is determined as the working temperature.
[0078] When the washing machine is in the washing and heating stage, the main source of heat is the heating of the washing water. Therefore, the washing temperature obtained by the built-in temperature sensor can be used as the operating temperature for subsequent temperature compensation calculations.
[0079] Step S2013: When the working stage is the drying and heating stage, the outlet air temperature is determined as the working temperature.
[0080] Specifically, when the washing machine enters the drying and heating stage, the outlet air temperature becomes the primary temperature indicator. The built-in outlet air temperature sensor provides real-time temperature data to characterize the current operating temperature.
[0081] Through the above embodiments, by identifying the working stage of the washing machine and obtaining the corresponding working temperature, the temperature influence of the optocoupler can be accurately compensated, ensuring that the zero-crossing detection circuit can maintain high-precision zero-crossing detection during the washing heating and drying heating stages.
[0082] In order to determine the surface temperature of the optocoupler based on the ambient temperature inside the washing machine, in an optional embodiment, step S201 further includes:
[0083] Step S2014: Obtain the ambient temperature of the washing machine, the thermal radiation attenuation coefficient between the washing machine and the optocoupler, and the operating temperature of the optocoupler;
[0084] Specifically, the external ambient temperature Te during the operation of the washing machine, the thermal radiation attenuation coefficient k (representing the attenuation ratio when heat is transferred from inside the washing machine to the optocoupler, taking into account the structural layout and the characteristics of the transfer medium), and the optocoupler operating temperature Tg (the temperature generated by the optocoupler due to its own operation, which is the thermal effect generated by the power consumption of the device itself) are obtained.
[0085] Step S2015: Determine the second target temperature transmitted from the washing machine to the optocoupler based on the thermal radiation attenuation coefficient and the operating temperature;
[0086] Step S2016: Summing the operating temperature, ambient temperature, and second target temperature to obtain the first target temperature.
[0087] Specifically, the first target temperature is calculated as follows: Tb = k * T + Tg + Te, where Tb is the first target temperature and T is the operating temperature.
[0088] Through the above embodiments, by accurately calculating the surface temperature of the optocoupler, i.e. the first target temperature, the threshold of the zero-crossing detection circuit can be precisely adjusted, maintaining high accuracy of zero-crossing detection even during the heating stage of the washing machine, and avoiding zero-crossing deviation caused by temperature.
[0089] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0090] This application also provides a washing machine control device based on zero-crossing detection. It should be noted that the washing machine control device based on zero-crossing detection in this application can be used to execute the washing machine control method based on zero-crossing detection provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0091] The following describes the washing machine control device based on zero-crossing detection provided in the embodiments of this application.
[0092] Figure 6 This is a structural block diagram of a washing machine control device based on zero-crossing detection according to an embodiment of this application. Figure 6 As shown, the device includes:
[0093] The acquisition unit 10 is used to acquire the operating temperature of the washing machine, determine the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtain the first target temperature.
[0094] Specifically, the operating temperature of the washing machine is the temperature of its internal environment when it is running the heating program. By monitoring the above operating temperature, it is possible to control the temperature changes of the environment in which the optocoupler is located in real time, and thus determine the performance changes of the optocoupler.
[0095] In practical implementation, the aforementioned zero-crossing detection circuit is as follows: Figure 2 As shown, the zero-crossing detection circuit consists of four resistors R1, R2, R3, and R4 and an optocoupler. L and N are the live wire and the neutral wire, respectively, and INPUT is the circuit input.
[0096] It is understandable that, based on the conduction characteristics of the optocoupler, when the primary voltage of the optocoupler is greater than 1V, the optocoupler conducts, and at this time the circuit input INPUT is pulled low from high level to ground.
[0097] Assuming the washing machine's standard voltage is 220V, with an allowable fluctuation range of ±10%, i.e., 198V to 242V; the standard frequency is 50Hz, with an allowable fluctuation range of ±0.5Hz, i.e., 49.5Hz to 50.5Hz; and the voltage waveform is a sine wave, whose mathematical expression is: , where V peak Here, f is the peak voltage, f is the frequency, and t is the time. The phase angle is the waveform within one complete cycle, from zero to a positive peak, then to a negative peak, and finally back to zero, as shown below. Figure 3 As shown.
[0098] The determining unit 20 is used to determine the forward conduction voltage of the optocoupler under the action of the first target temperature, and obtain the first target voltage;
[0099] Specifically, the electrical characteristics of optocouplers are affected by temperature, particularly their forward voltage, which decreases as temperature rises. For example, in high-temperature environments, the forward voltage of the optocoupler may decrease, which, if not corrected, can lead to inaccurate zero-crossing detection, thus affecting the precise control of the washing machine's heating element. Therefore, this application addresses this temperature effect through calibration correction, avoiding zero-crossing detection errors caused by temperature changes and achieving stable operation of the washing machine.
[0100] The control unit 30 is used to determine the zero-crossing point of the optocoupler based on the first target voltage, and control the operation of the valve load of the washing machine based on the zero-crossing point.
[0101] Specifically, by taking the first target voltage as a reference and combining it with the voltage waveform of the washing machine, the zero-crossing point of the optocoupler can be determined, and the conduction state of the optocoupler can be accurately captured, thereby achieving precise control of the valve load of the washing machine. This avoids the instantaneous induced voltage generated by the valve load at the moment of opening / closing, which would affect the drive circuit and cause damage to the device.
[0102] In this embodiment, the acquisition unit acquires the operating temperature of the washing machine, determines the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtains a first target temperature; the determination unit determines the forward conduction voltage of the optocoupler under the first target temperature, and obtains a first target voltage; the control unit determines the zero-crossing point of the optocoupler based on the first target voltage, and controls the operation of the valve load of the washing machine based on the zero-crossing point. This application determines the surface temperature of the optocoupler based on the operating temperature of the washing machine and the heat conduction between the washing machine and the zero-crossing detection circuit, and corrects the forward conduction voltage of the optocoupler based on the surface temperature of the optocoupler, thereby eliminating the influence of temperature on the forward conduction voltage of the optocoupler. Furthermore, the zero-crossing point is compensated based on the corrected forward conduction voltage, thereby avoiding the use of the forward conduction voltage under standard conditions for zero-crossing detection under different temperatures and controlling the operation of the washing machine based on the detection results, which leads to a deviation between the control time and the zero-crossing point, and the resulting instantaneous induced current damages the drive circuit. This application solves the problem that the existing zero-crossing detection method is affected by the operating temperature when applied to washing machines, resulting in inaccurate zero-crossing detection and easy damage to devices.
[0103] In an optional implementation, to correct the forward conduction voltage of the optocoupler, the determining unit includes:
[0104] The first acquisition module is used to acquire a preset curve corresponding to the first target temperature and obtain the target curve. Each preset curve is a curve showing the change of the input current of the light-emitting diode on the input side of the optocoupler with the forward conduction voltage of the optocoupler at different surface temperatures.
[0105] Specifically, the current transfer ratio (CTR) of an optocoupler is an important parameter for evaluating its performance. It is defined as the ratio of the collector current IC on the output side to the LED current IF on the input side, i.e., CTR = IF / IC. Changes in ambient temperature significantly affect the CTR of an optocoupler. As temperature increases, the forward voltage drop VF of the LED decreases, leading to an increase in the LED current IF at the same input power. Conversely, as temperature decreases, the forward voltage drop VF of the LED increases, leading to a decrease in the LED current IF at the same input power. Figure 4 The image shows examples of the preset curves described above at temperatures of 25, -55, and 100.
[0106] The second acquisition module is used to acquire the current input current of the input-side light-emitting diode at the current moment to obtain the first current;
[0107] Specifically, the input current of the input-side LED at the current moment is obtained to obtain the first current IF.
[0108] The first determining module is used to determine the forward conduction voltage corresponding to the first current based on the target curve, thereby obtaining the first target voltage.
[0109] Understandably, based on the aforementioned preset curve, the first target voltage VF can be queried using IF.
[0110] Through the above embodiments, by calibrating the forward conduction voltage at different operating temperatures, the accuracy of the zero-crossing detection circuit is ensured to be unaffected by temperature fluctuations, thus improving the stability of the washing machine's operation. This avoids damage to washing machine components caused by control time deviations in valve loads. Furthermore, compared to traditional independent temperature detection and compensation circuits, this application utilizes the temperature characteristics of the optocoupler itself for adjustment, reducing hardware design complexity and cost.
[0111] To determine the aforementioned zero-crossing point, in one optional implementation, the control unit includes:
[0112] The third acquisition module is used to acquire the peak voltage of the bus voltage detection circuit of the washing machine to obtain the second target voltage, and to acquire the bus voltage of the bus voltage detection circuit to obtain the third target voltage.
[0113] Specifically, the peak voltage V is obtained through a voltage detection circuit. peak The second target voltage is obtained, and the bus voltage V is acquired. sense The third target voltage is obtained, where the bus voltage may vary due to grid voltage fluctuations, load changes, or other factors.
[0114] In specific implementation, such as Figure 5 As shown, the bus voltage detection circuit consists of two voltage divider resistors R5 and R6. According to the characteristics of the voltage divider circuit, Vsense = Vpeak * R6 / (R5 + R6).
[0115] The second determining module is used to determine the input voltage of the optocoupler based on the second target voltage and the third target voltage, and to obtain the fourth target voltage;
[0116] Specifically, based on the second and third target voltages mentioned above, it is determined whether there is a current grid voltage fluctuation, so as to determine the actual input voltage of the optocoupler and obtain the fourth target voltage mentioned above.
[0117] The third determining module is used to determine the zero-crossing point based on the first target voltage and the fourth target voltage.
[0118] Specifically, the turn-on and turn-off times of the optocoupler can be determined based on the first target voltage and the fourth target voltage, thereby determining the zero-crossing point.
[0119] Through the above embodiments, by adjusting the zero-crossing detection threshold in real time to adapt to temperature changes, this application ensures the zero-crossing detection accuracy of the washing machine in high-temperature operation modes such as heating. Furthermore, this application incorporates the impact of grid voltage fluctuations on equipment performance to guarantee zero-crossing detection accuracy under all circumstances.
[0120] In order to determine the actual input voltage of the optocoupler, in one optional implementation, the second determining module includes:
[0121] The first calculation submodule is used to calculate the fourth target voltage based on the second target voltage when the third target voltage is equal to the preset voltage.
[0122] Specifically, if Vsense = 311, it means that the mains power is not affected by grid voltage fluctuations at this time, and the fourth voltage is... .
[0123] The second calculation submodule is used to calculate the fourth target voltage based on the third target voltage when the third target voltage is not equal to the preset voltage.
[0124] Specifically, if Vsense ≠ 311, it means that the mains power is affected by grid voltage fluctuations, and in this case, VF1 = UR2 = V(t) * R2 / .
[0125] The above embodiments ensure that the input voltage of the optocoupler can be accurately calculated in both standard voltage and voltage fluctuation environments, guaranteeing that the accuracy of zero-crossing detection is unaffected by voltage fluctuations. This avoids instantaneous currents generated when switching loads at non-zero-crossing points, reducing the risk of device damage.
[0126] To determine the zero-crossing point, in one optional implementation, the third determining module includes:
[0127] The third calculation submodule is used to calculate the turn-on and turn-off times of the optocoupler based on the fourth target voltage when the fourth target voltage is greater than or equal to the first target voltage.
[0128] Specifically, when the fourth target voltage, i.e. the actual input voltage of the optocoupler, is greater than or equal to the first target voltage and the temperature-compensated forward conduction voltage, the optocoupler will start conducting when the AC voltage reaches this threshold voltage. The turn-on and turn-off times are then calculated.
[0129] The formula for calculating the conduction time is: t0 = arcsin[Vf1*(R1+R2) / (R2*V peak )] / 2πf;
[0130] The formula for calculating the turn-off time is t1 = arccos[Vf1 * (R1 + R2) / (R2 * Vf1)].peak )] / 2πf.
[0131] The fourth calculation submodule is used to determine the nearest zero-crossing point to the current time based on the turn-on and turn-off times, and obtain the first zero-crossing point;
[0132] Specifically, after determining the turn-on and turn-off times, the first zero-crossing point can be determined, that is, the time when the first zero-crossing point is generated.
[0133] The formula for calculating the position of the first zero-crossing point is T1 = t1 + t0.
[0134] The fifth calculation submodule is used to recursively calculate other zero-crossing points based on the period of the third target voltage and the first zero-crossing point.
[0135] Specifically, the periodicity of alternating current means that after determining the first zero-crossing point, a new zero-crossing point can be determined by extrapolating half a cycle from the first zero-crossing point.
[0136] Through the above embodiments, accurate calculation of the zero-crossing point is achieved, reducing the transient current generated during the instantaneous control of the washing machine valve load, and reducing the damage of transient current to the device.
[0137] To ensure the accuracy of obtaining the internal temperature of the washing machine, in one optional embodiment, the obtaining unit includes:
[0138] The fourth determining module is used to determine the working stages of the washing machine, which include at least the washing and heating stage and the drying and heating stage;
[0139] The first step is to determine the current operating stage of the washing machine. Typically, the operating stages of a washing machine can be divided into washing, rinsing, spin-drying, washing heating, and drying heating. Among these, the washing heating and drying heating stages require heating, resulting in a significant increase in ambient temperature, which has a more noticeable impact on the performance of the optocoupler. The remaining stages have a smaller impact on the controller temperature, and this application disregards them.
[0140] The fifth determining module is used to determine the washing temperature as the working temperature when the working stage is the washing and heating stage;
[0141] When the washing machine is in the washing and heating stage, the main source of heat is the heating of the washing water. Therefore, the washing temperature obtained by the built-in temperature sensor can be used as the operating temperature for subsequent temperature compensation calculations.
[0142] The sixth determining module is used to determine the outlet air temperature as the working temperature when the working stage is the drying and heating stage.
[0143] Specifically, when the washing machine enters the drying and heating stage, the outlet air temperature becomes the primary temperature indicator. The built-in outlet air temperature sensor provides real-time temperature data to characterize the current operating temperature.
[0144] Through the above embodiments, by identifying the working stage of the washing machine and obtaining the corresponding working temperature, the temperature influence of the optocoupler can be accurately compensated, ensuring that the zero-crossing detection circuit can maintain high-precision zero-crossing detection during the washing heating and drying heating stages.
[0145] In order to determine the surface temperature of the optocoupler based on the ambient temperature inside the washing machine, in an optional embodiment, the first acquisition unit further includes:
[0146] The fourth acquisition block is used to acquire the ambient temperature of the washing machine, the thermal radiation attenuation coefficient between the washing machine and the optocoupler, and the operating temperature of the optocoupler;
[0147] Specifically, the external ambient temperature Te during the operation of the washing machine, the thermal radiation attenuation coefficient k (representing the attenuation ratio when heat is transferred from inside the washing machine to the optocoupler, taking into account the structural layout and the characteristics of the transfer medium), and the optocoupler operating temperature Tg (the temperature generated by the optocoupler due to its own operation, which is the thermal effect generated by the power consumption of the device itself) are obtained.
[0148] The seventh determining module is used to determine the second target temperature transmitted from the washing machine to the optocoupler based on the thermal radiation attenuation coefficient and the operating temperature;
[0149] The calculation module is used to sum the operating temperature, ambient temperature, and second target temperature to obtain the first target temperature.
[0150] Specifically, the first target temperature is calculated as follows: Tb = k * T + Tg + Te, where Tb is the first target temperature and T is the operating temperature.
[0151] Through the above embodiments, by accurately calculating the surface temperature of the optocoupler, i.e. the first target temperature, the threshold of the zero-crossing detection circuit can be precisely adjusted, maintaining high accuracy of zero-crossing detection even during the heating stage of the washing machine, and avoiding zero-crossing deviation caused by temperature.
[0152] The aforementioned washing machine control device based on zero-crossing detection includes a processor and a memory. The acquisition unit, determination unit, and control unit are all stored as program units in the memory, and the processor executes these program units to achieve the corresponding functions. All of the above modules reside in the same processor; alternatively, the modules may be located in different processors in any combination.
[0153] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can improve the accuracy of zero-crossing detection in the washing machine.
[0154] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0155] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the washing machine control method based on zero-crossing detection.
[0156] Specifically, the washing machine control method based on zero-crossing detection includes:
[0157] Step S201: Obtain the operating temperature of the washing machine, determine the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtain the first target temperature;
[0158] Step S202: Determine the forward conduction voltage of the optocoupler under the action of the first target temperature, and obtain the first target voltage;
[0159] Step S203: Determine the zero-crossing point of the optocoupler based on the first target voltage, and control the operation of the valve load of the washing machine based on the zero-crossing point.
[0160] This invention provides a processor for running a program, wherein the program executes the washing machine control method based on zero-crossing detection.
[0161] Specifically, the washing machine control method based on zero-crossing detection includes:
[0162] Step S201: Obtain the operating temperature of the washing machine, determine the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtain the first target temperature;
[0163] Step S202: Determine the forward conduction voltage of the optocoupler under the action of the first target temperature, and obtain the first target voltage;
[0164] Step S203: Determine the zero-crossing point of the optocoupler based on the first target voltage, and control the operation of the valve load of the washing machine based on the zero-crossing point.
[0165] This invention provides a washing machine, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:
[0166] Step S201: Obtain the operating temperature of the washing machine, determine the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtain the first target temperature;
[0167] Step S202: Determine the forward conduction voltage of the optocoupler under the action of the first target temperature, and obtain the first target voltage;
[0168] Step S203: Determine the zero-crossing point of the optocoupler based on the first target voltage, and control the operation of the valve load of the washing machine based on the zero-crossing point.
[0169] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:
[0170] Step S201: Obtain the operating temperature of the washing machine, determine the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtain the first target temperature;
[0171] Step S202: Determine the forward conduction voltage of the optocoupler under the action of the first target temperature, and obtain the first target voltage;
[0172] Step S203: Determine the zero-crossing point of the optocoupler based on the first target voltage, and control the operation of the valve load of the washing machine based on the zero-crossing point.
[0173] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0174] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can 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, etc.) containing computer-usable program code.
[0175] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can 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, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0176] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0177] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0178] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0179] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0180] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0181] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0182] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0183] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0184] 1) The washing machine control method based on zero-crossing detection of this application firstly obtains the operating temperature of the washing machine, determines the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtains a first target temperature; then, determines the forward conduction voltage of the optocoupler under the first target temperature, and obtains a first target voltage; finally, determines the zero-crossing point of the optocoupler based on the first target voltage, and controls the operation of the valve load of the washing machine based on the zero-crossing point. This application determines the surface temperature of the optocoupler based on the operating temperature of the washing machine and the heat conduction between the washing machine and the zero-crossing detection circuit, and corrects the forward conduction voltage of the optocoupler based on the surface temperature of the optocoupler, thereby eliminating the influence of temperature on the forward conduction voltage of the optocoupler. Furthermore, it compensates for the zero-crossing point based on the corrected forward conduction voltage, thereby avoiding the use of the forward conduction voltage under standard conditions for zero-crossing detection under different temperatures and controlling the operation of the washing machine based on the detection results, which leads to a deviation between the control time and the zero-crossing point, and the resulting instantaneous induced current damages the drive circuit. This application solves the problem that the existing zero-crossing detection method is affected by the operating temperature when applied to washing machines, resulting in inaccurate zero-crossing detection and easy damage to devices.
[0185] 2) The washing machine control device based on zero-crossing detection of this application involves an acquisition unit acquiring the operating temperature of the washing machine, determining the surface temperature of the optocoupler in the zero-crossing detection circuit based on the operating temperature, and obtaining a first target temperature; a determination unit determining the forward conduction voltage of the optocoupler under the first target temperature, and obtaining a first target voltage; and a control unit determining the zero-crossing point of the optocoupler based on the first target voltage, and controlling the operation of the valve load of the washing machine based on the zero-crossing point. This application determines the surface temperature of the optocoupler based on the operating temperature of the washing machine and the heat conduction between the washing machine and the zero-crossing detection circuit, and corrects the forward conduction voltage of the optocoupler based on the surface temperature, thereby eliminating the influence of temperature on the forward conduction voltage of the optocoupler. Furthermore, it compensates for the zero-crossing point based on the corrected forward conduction voltage, thus avoiding the use of the standard forward conduction voltage for zero-crossing detection under different temperatures and controlling the washing machine operation based on the detection results, which leads to a deviation between the control time and the zero-crossing point, and the resulting instantaneous induced current causing losses to the drive circuit. This application solves the problem that the existing zero-crossing detection method is affected by the operating temperature when applied to a washing machine, leading to inaccurate zero-crossing detection and easy damage to components.
[0186] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A washing machine control method based on zero-crossing detection correction, characterized in that, include: The operating temperature of the washing machine is obtained, and the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine is determined based on the operating temperature to obtain the first target temperature; Determine the forward conduction voltage of the optocoupler under the first target temperature to obtain the first target voltage; Determining the zero-crossing point of the optocoupler based on the first target voltage, and controlling the operation of the valve load of the washing machine based on the zero-crossing point; determining the zero-crossing point of the optocoupler based on the first target voltage includes: The peak voltage of the bus voltage detection circuit of the washing machine is obtained to obtain the second target voltage, and the bus voltage of the bus voltage detection circuit is obtained to obtain the third target voltage. The input voltage of the optocoupler is determined based on the second target voltage and the third target voltage to obtain the fourth target voltage; The zero-crossing point is determined based on the first target voltage and the fourth target voltage; the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine is determined based on the operating temperature to obtain the first target temperature, including: The ambient temperature of the washing machine, the thermal radiation attenuation coefficient between the washing machine and the optocoupler, and the operating temperature of the optocoupler are obtained. The second target temperature transmitted by the washing machine to the optocoupler is determined based on the thermal radiation attenuation coefficient and the operating temperature. The first target temperature is obtained by summing the operating temperature, the ambient temperature, and the second target temperature.
2. The method according to claim 1, characterized in that, Determining the forward conduction voltage of the optocoupler under the first target temperature to obtain the first target voltage includes: Obtain a preset curve corresponding to the first target temperature to obtain a target curve. Each preset curve is a curve showing the change of the input current of the light-emitting diode on the input side of the optocoupler with the forward conduction voltage of the optocoupler at different surface temperatures. Obtain the current input current of the input-side LED at the current moment to obtain the first current; The forward conduction voltage corresponding to the first current is determined based on the target curve to obtain the first target voltage.
3. The method according to claim 1, characterized in that, The input voltage of the optocoupler is determined based on the second target voltage and the third target voltage to obtain a fourth target voltage, including: If the third target voltage is equal to the preset voltage, the fourth target voltage is calculated based on the second target voltage; If the third target voltage is not equal to the preset voltage, the fourth target voltage is calculated based on the third target voltage.
4. The method according to claim 1, characterized in that, Determining the zero-crossing point based on the first target voltage and the fourth target voltage includes: When the fourth target voltage is greater than or equal to the first target voltage, the turn-on and turn-off times of the optocoupler are calculated based on the fourth target voltage. Based on the turn-on time and the turn-off time, determine the zero-crossing point closest to the current time to obtain the first zero-crossing point; The other zero-crossing points are determined by recursion based on the period of the third target voltage and the first zero-crossing point.
5. The method according to claim 1, characterized in that, To obtain the operating temperature of the washing machine, including: The working stages of the washing machine are determined, and the working stages include at least a washing and heating stage and a drying and heating stage; When the working stage is the washing and heating stage, the washing temperature is determined to be the working temperature; When the working stage is the drying and heating stage, the outlet air temperature is determined as the working temperature.
6. A washing machine control device based on zero-crossing detection correction, characterized in that, The device includes: The acquisition unit is used to acquire the operating temperature of the washing machine, determine the surface temperature of the optocoupler in the zero-crossing detection circuit of the washing machine based on the operating temperature, and obtain the first target temperature. The determining unit is used to determine the forward conduction voltage of the optocoupler under the action of the first target temperature, and obtain the first target voltage; A control unit is configured to determine the zero-crossing point of the optocoupler based on the first target voltage, and control the operation of the valve load of the washing machine based on the zero-crossing point; the control unit includes: The third acquisition module is used to acquire the peak voltage of the bus voltage detection circuit of the washing machine to obtain the second target voltage, and to acquire the bus voltage of the bus voltage detection circuit to obtain the third target voltage. The second determining module is used to determine the input voltage of the optocoupler based on the second target voltage and the third target voltage, and obtain a fourth target voltage; The third determining module is used to determine the zero-crossing point based on the first target voltage and the fourth target voltage; The acquisition unit includes: The fourth acquisition module is used to acquire the ambient temperature of the washing machine, the thermal radiation attenuation coefficient between the washing machine and the optocoupler, and the operating temperature of the optocoupler; The seventh determining module is used to determine the second target temperature transmitted by the washing machine to the optocoupler based on the thermal radiation attenuation coefficient and the operating temperature; The calculation module is used to sum the operating temperature, the ambient temperature and the second target temperature to obtain the first target temperature.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 5.
8. A washing machine, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of claims 1 to 5.
Citation Information
Patent Citations
Communication circuit, control method and device thereof and electronic equipment
CN114826314A
Temperature compensation type voltage detection method
CN117590058A