A control method for adaptively outputting power according to different standard mains

By detecting the zero-crossing signal of the mains power and combining with the PID algorithm, accurate power control of different mains power standards is achieved, and the problem that the mains power equipment in the existing technology cannot accurately control the output power is solved, reducing costs and improving control accuracy.

CN119765863APending Publication Date: 2025-04-04SHENZHEN YUETONG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411950307.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the prior art, electronic equipment using municipal power is unable to accurately control the output power when facing different municipal power standards in different regions or countries, resulting in increased costs, limited product design, and increased complexity, and poor user experience.

Method used

By detecting the zero crossing signal generated in one cycle of mains power, the mains power chopping control is realized, and the mains power frequency is calculated through the frequency triggered by the zero crossing signal, and combining the PID algorithm to monitor the current voltage and calculate the power, it realizes rapid output power control that is compatible with different mains power standards.

Benefits of technology

The accuracy of the output power of the mains chopper control is improved, the cost of use and development is reduced, the accuracy of the output control of the mains power of different standards is enhanced, and the problem that the power cannot be accurately controlled when the mains equipment in the existing technology is facing different standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119765863A_ABST
    Figure CN119765863A_ABST
Patent Text Reader

Abstract

The present invention provides a control method for adaptive output power of mains electricity according to different standards, including mains zero-crossing detection, a power control circuit controls an operational amplifier circuit to capture the moment of positive and negative conversion of the mains electricity in one cycle, and obtains a zero-crossing signal; mains frequency calculation, a power control circuit counts the time difference between two adjacent zero-crossing signal triggers, and calculates the frequency of the current mains electricity; chopping control, controlling the output power by controlling the total conduction time of the output part of the power control circuit in one cycle of the mains electricity, and realizing mains chopping control; power control, obtaining the rated voltage and rated power of the electronic product, configuring PID parameters according to the characteristics of the electronic product, and adjusting the conduction time of the output part of the power control circuit in combination with the PID algorithm to realize adaptive power output control. The beneficial effects of the present invention: the output power can be controlled by controlling the total conduction time of the output part of the power control circuit in one cycle of the mains electricity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of SIM cards, and in particular to a control method for adaptively outputting power according to different standard mains electricity. Background Art

[0002] Mains electricity refers to the electricity supplied by the public power grid, also known as alternating current (AC). Mains electricity is usually delivered by power companies to homes, businesses and public facilities in cities or villages through transformers, transmission lines and other facilities. The frequency of mains electricity is generally 50Hz or 60Hz, and the voltage varies in different countries and regions. Mains electricity is currently the most common type of power supply and can be used in a variety of electrical appliances and equipment.

[0003] In the prior art, electronic products need to be powered and charged, and different electronic products require different power supplies and charging, which are usually pre-set to adapt to the mains voltage frequency of different countries or regions. For products that need to control output power, such as robot supply stations, setting different configurations for different markets will increase costs. Using external source devices to control power cannot achieve precise control (such as fans). The volume of the external device itself will also limit the appearance and structural design of the electronic product, and compressing the volume of the external device will affect the overall safety of the product. Replacing different external devices according to different markets also increases the complexity of electronic products, which brings people a poor user experience. Summary of the invention

[0004] In order to solve the problems in the prior art, the present invention provides a control method for adaptively outputting power according to mains electricity of different standards. By detecting the zero-crossing signal generated in one cycle of the mains, mains chopping control can be realized. At the same time, the frequency of the currently connected mains can be calculated by the frequency triggered by the zero-crossing signal, thereby improving the accuracy of the output power of the mains chopping control. The power is calculated by monitoring the current and voltage, and the PID algorithm is combined to realize rapid control of the output power compatible with different mains standards, thereby solving the problem in the prior art that the power of electronic equipment using mains electricity cannot be accurately controlled when facing different mains standards in different regions or countries.

[0005] A control method for adaptively outputting power according to different standard mains power of the present invention comprises the following steps:

[0006] Step 1: Mains zero-crossing detection: the power control circuit controls the operational amplifier circuit to capture the moment when the mains power switches between positive and negative in one cycle, and then the operational amplifier circuit immediately notifies the power control circuit that the mains power switches between positive and negative to obtain a zero-crossing signal;

[0007] Step 2, mains frequency calculation, the power control circuit counts the time difference between two adjacent zero-crossing signal triggers, calculates the frequency of the current mains, and predicts the conversion time in the second half of the mains cycle, that is, the zero-crossing moment;

[0008] Step 3, chopping control, the power control circuit turns on the output part of the power control circuit a certain time n after the zero-crossing signal is triggered in one mains cycle according to the time difference of the zero-crossing signal triggering, and turns off the power control circuit a certain time n in advance at the next cycle switching moment according to the predicted zero-crossing moment, and repeats in the second half of the cycle, and controls the output power by controlling the total on time of the output part of the power control circuit in one mains cycle, so as to realize mains chopping control;

[0009] Step 4, power control, obtain the rated voltage and rated power of the electronic product, configure PID parameters according to the characteristics of the electronic product, combine the PID algorithm to adjust the output part of the power control circuit The conduction time is adjusted, and the PI value is adjusted for control. First, a smaller P value is set, and then the P value is gradually increased. Finally, the I value is adjusted to achieve adaptive power output control to meet the use requirements of electronic products.

[0010] The present invention is further improved. In step 3, the output power is controlled by controlling the total on-time of the output part of the power control circuit within one cycle of the mains power. The total on-time is left-aligned, which includes the following steps:

[0011] Step 301, the power control circuit reads two adjacent zero-crossing signals and calculates the period T of the mains power;

[0012] Step 302, the power control circuit waits for the next zero-crossing signal trigger;

[0013] Step 303, turn on the output part of the power control circuit, record the total turn-on time t4 in one mains cycle, and the output power w of the power control circuit = total power*(t4 / T);

[0014] Step 304, after waiting for t4, turn off the output part of the conducting power control circuit and execute step 302 at the same time.

[0015] The present invention is further improved, in step 4, the control by adjusting the PI value also includes the following steps:

[0016] Step 401, the power control circuit obtains the rated voltage and rated power of the electronic product, obtains the quantifiable rated target value of the electronic product, and converts it into a PID adjustment target parameter D;

[0017] Step 402, the power control circuit obtains its own maximum output power MAX, and sets the initial P value and initial I value of PID regulation;

[0018] Step 403, the power control circuit waits for a mains power cycle T, obtains the current target value d of the electronic product, and calculates the difference E=D-d;

[0019] Step 404, the power control circuit calculates and adjusts the P value = the preset parameter P*E, and calculates and adjusts the I value = the preset parameter I*E;

[0020] Step 405, calculate and adjust the power control circuit output OUT=P+I, if P+I is greater than MAX, then OUT=MAX, and execute step 403 at the same time.

[0021] The present invention is further improved in that in step 1, an operational amplifier circuit and an output part for finally supplying power to the electronic product are provided in the power control circuit.

[0022] The present invention is further improved, in step 2, the time difference between two adjacent zero-crossing signal triggers is a mains power cycle.

[0023] The present invention is further improved, in step 401, the quantifiable rated target value of the electronic product may be the outlet temperature of the hot air blower.

[0024] The beneficial effects of the present invention are as follows: the present invention provides a control method for adaptively outputting power according to mains electricity of different standards, which can realize mains chopping control by detecting a zero-crossing signal generated within a cycle of the mains, and can calculate the frequency of the mains electricity currently connected by the frequency triggered by the zero-crossing signal, thereby improving the accuracy of the output power of the mains chopping control, and calculating the power by monitoring the current and voltage, and combining the PID algorithm to realize rapid control of the output power compatible with different mains electricity standards. It changes the original method of using different power external control devices and external circuits for different standards, and uses a method compatible with mains electricity of different standards, which reduces the use and development costs, enhances the accuracy of power output control of mains electricity of different standards, and solves the problem in the prior art that the power of electronic equipment using mains electricity cannot be accurately controlled in different regions or countries and facing different mains electricity standards. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of a control method of the present invention for adaptively outputting power according to different standard mains;

[0026] Figure 2 A flow chart of a method for adopting left alignment of the total on-time of the present invention;

[0027] Figure 3 This is a flow chart of the present invention for controlling by adjusting PI value. DETAILED DESCRIPTION

[0028] The present invention is further described in detail below with reference to the accompanying drawings and embodiments.

[0029] See also Figure 1-Figure 3 A control method for adaptively outputting power according to different standard mains power of the present invention comprises the following steps:

[0030] Step 1, AC power zero-crossing detection, the power control circuit controls the operational amplifier circuit to capture the moment when the AC power switches between positive and negative in one cycle, and then the operational amplifier circuit immediately notifies the power control circuit that the AC power switches between positive and negative and obtains the zero-crossing signal; the power control circuit is provided with an operational amplifier circuit and an output part for finally powering the electronic product.

[0031] Step 2, AC power frequency calculation, the power control circuit counts the time difference between two adjacent zero-crossing signal triggers, calculates the frequency of the current AC power, and predicts the switching time in the second half of the AC power cycle, that is, the zero-crossing moment; the time difference between two adjacent zero-crossing signal triggers is a AC power cycle.

[0032] Step 3, chopping control, the power control circuit turns on the output part of the power control circuit a certain time n after the zero-crossing signal is triggered within one mains cycle according to the time difference of the zero-crossing signal triggering, and turns off the power control circuit a certain time n in advance at the next cycle switching moment according to the predicted zero-crossing moment, and repeats in the second half of the cycle, and controls the output power by controlling the total conduction time of the output part of the power control circuit within one mains cycle to realize mains chopping control.

[0033] Step 4, power control, obtain the rated voltage and rated power of the electronic product, configure the PID parameters according to the characteristics of the electronic product, adjust the output part conduction time of the power control circuit in combination with the PID algorithm, and use the PI value to control, first set a smaller P value, gradually increase the P value, and finally adjust the I value to achieve adaptive power output control to meet the use requirements of the electronic product. In the present embodiment, by detecting the zero-crossing signal generated in one cycle of the mains, the mains chopping control can be achieved, and the mains frequency currently connected can be calculated by the frequency triggered by the zero-crossing signal, thereby improving the accuracy of the mains chopping control output power, calculating the power by monitoring the current and voltage, and realizing the output power fast control compatible with different mains standards in combination with the PID algorithm, it changes the original method of using different power external control devices and external circuits for different standards, and uses a method compatible with mains of different standards, which reduces the use and development costs and enhances the accuracy of the power output control of mains of different standards.

[0034] See also Figure 2 In step 3, the output power is controlled by controlling the total on-time of the output part of the power control circuit within one cycle of the mains, and the total on-time left-aligned method includes the following steps:

[0035] Step 301, the power control circuit reads two adjacent zero-crossing signals and calculates the period T of the mains power;

[0036] Step 302, the power control circuit waits for the next zero-crossing signal trigger;

[0037] Step 303, turn on the output part of the power control circuit, record the total turn-on time t4 in one mains cycle, and the output power w of the power control circuit = total power*(t4 / T);

[0038] Step 304, after waiting for t4, turn off the output part of the power control circuit, and execute step 302 at the same time. In this embodiment, in addition to adopting the left alignment of the total on-time, the center alignment or right alignment of the total on-time can also be adopted, and the purpose is to control the proportion of the total on-time t4 in a mains cycle T, and then adjust the output power after the mains passes through the power control circuit.

[0039] See also Figure 3 In step 4, the control by adjusting the PI value also includes the following steps:

[0040] Step 401, the power control circuit obtains the rated voltage and rated power of the electronic product, obtains the quantifiable rated target value of the electronic product, and converts it into a PID adjustment target parameter D; the quantifiable rated target value of the electronic product can be the outlet temperature of the hot air blower, the outlet temperature of the air conditioner, the water temperature in the water heater, etc.

[0041] Step 402, the power control circuit obtains its own maximum output power MAX, and sets the initial P value and initial I value of PID regulation;

[0042] Step 403, the power control circuit waits for a mains power cycle T, obtains the current target value d of the electronic product, and calculates the difference E=D-d;

[0043] Step 404, the power control circuit calculates and adjusts the P value = the preset parameter P*E, and calculates and adjusts the I value = the preset parameter I*E;

[0044] Step 405, calculate and adjust the power control circuit output OUT=P+I. If P+I is greater than MAX, OUT=MAX, and execute step 403 at the same time. Among them, the PID algorithm is a common "maintain stability" control algorithm, which is widely used in industrial control systems. The PID algorithm generally consists of three parts: proportional (P), integral (I) and differential (D). Proportional control takes into account the current error, and the error value is multiplied by a positive constant Kp (representing the proportion). Integral control takes into account past errors, and multiplies the error value over a period of time (error sum) by a positive constant Ki. Differential control takes into account future errors, calculates the first-order derivative of the error, and multiplies it by a positive constant Kd. In this embodiment, only P value and I value are used for adjustment and control. For a relatively simple power control system, a smaller P value can be set first, and then the P value can be gradually increased, and finally the I value can be set, thereby achieving the effect of adaptive power output control to meet the use requirements of electronic products.

[0045] As can be seen from the above, the beneficial effects of the present invention are as follows: the present invention provides a control method for adaptively outputting power according to mains electricity of different standards, which can realize mains chopping control by detecting the zero-crossing signal generated within one cycle of the mains, and at the same time can calculate the frequency of the currently connected mains electricity by the frequency triggered by the zero-crossing signal, thereby improving the accuracy of the output power of the mains chopping control, and calculates the power by monitoring the current and voltage, and realizes the rapid control of the output power compatible with different mains electricity standards by combining the PID algorithm. It changes the original method of using different power external control devices and external circuits for different standards, and uses a method that is compatible with mains electricity of different standards, which reduces the use and development costs, enhances the accuracy of power output control of mains electricity of different standards, and solves the problem in the prior art that the power of electronic equipment using mains electricity cannot be accurately controlled when facing different mains electricity standards in different regions or countries.

[0046] The specific implementation modes described above are preferred implementation modes of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the specific implementation modes, and all equivalent changes made according to the present invention are within the protection scope of the present invention.

Claims

1. A control method for adaptively outputting power according to different standards of mains electricity, characterized in that: The steps include: Step 1: Mains zero-crossing detection: the power control circuit controls the operational amplifier circuit to capture the moment when the mains power switches between positive and negative in one cycle, and then the operational amplifier circuit immediately notifies the power control circuit that the mains power switches between positive and negative to obtain a zero-crossing signal; Step 2, mains frequency calculation, the power control circuit counts the time difference between two adjacent zero-crossing signal triggers, calculates the frequency of the current mains, and predicts the conversion time in the second half of the mains cycle, that is, the zero-crossing moment; Step 3, chopping control, the power control circuit turns on the output part of the power control circuit a certain time n after the zero-crossing signal is triggered in one mains cycle according to the time difference of the zero-crossing signal triggering, and turns off the power control circuit a certain time n in advance at the next cycle switching moment according to the predicted zero-crossing moment, and repeats in the second half of the cycle, and controls the output power by controlling the total on time of the output part of the power control circuit in one mains cycle, so as to realize mains chopping control; Step 4, power control, obtain the rated voltage and rated power of the electronic product, configure PID parameters according to the characteristics of the electronic product, combine the PID algorithm to adjust the output part of the power control circuit The conduction time is adjusted, and the PI value is adjusted for control. First, a smaller P value is set, and then the P value is gradually increased. Finally, the I value is adjusted to achieve adaptive power output control to meet the use requirements of electronic products.

2. The control method for adaptively outputting power according to different standard mains electricity according to claim 1, characterized in that: In step 3, the output power is controlled by controlling the total on-time of the output part of the power control circuit within one cycle of the mains power, and the total on-time is left-aligned, which includes the following steps: Step 301, the power control circuit reads two adjacent zero-crossing signals and calculates the period T of the mains power; Step 302, the power control circuit waits for the next zero-crossing signal trigger; Step 303, turn on the output part of the power control circuit, record the total turn-on time t4 in one mains cycle, and the output power w of the power control circuit = total power*(t4 / T); Step 304, after waiting for t4, turn off the output part of the conducting power control circuit and execute step 302 at the same time.

3. The control method for adaptively outputting power according to different standard mains electricity as claimed in claim 2, characterized in that: In step 4, the control by adjusting the PI value also includes the following steps: Step 401, the power control circuit obtains the rated voltage and rated power of the electronic product, obtains the quantifiable rated target value of the electronic product, and converts it into a PID adjustment target parameter D; Step 402, the power control circuit obtains its own maximum output power MAX, and sets the initial P value and initial I value of PID regulation; Step 403, the power control circuit waits for a mains power cycle T, obtains the current target value d of the electronic product, and calculates the difference E=D-d; Step 404, the power control circuit calculates and adjusts the P value = the preset parameter P*E, and calculates and adjusts the I value = the preset parameter I*E; Step 405, calculate and adjust the power control circuit output OUT=P+I, if P+I is greater than MAX, then OUT=MAX, and execute step 403 at the same time.

4. The method for controlling the output power according to different standard mains power according to claim 3, characterized in that: In step 1, an operational amplifier circuit and an output part for finally supplying power to the electronic product are provided in the power control circuit.

5. The control method for adaptively outputting power according to different standards of mains electricity as claimed in claim 4, characterized in that: In step 2, the time difference between two adjacent zero-crossing signal triggers is a mains power cycle.

6. The method for controlling output power according to different standard mains power according to claim 5, characterized in that: In step 401, the quantifiable rated target value of the electronic product may be the air outlet temperature of the hot air blower.