Adaptive PID control method and device based on Newton iteration method for HID lamp
By introducing adaptive PID control based on Newton's iteration method into HID lamps, the duty cycle and frequency of the signal are adjusted in real time, solving the problem of low efficiency in existing PID parameter tuning. This enables HID lamps to respond faster and operate more stably, extending their lifespan.
Patent Information
- Application Number
- CN202411000449.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing PID parameter tuning relies on experience, which is inefficient and has limited effect, making it impossible to effectively control the circuit response speed of HID lamps in different environments.
An adaptive PID control method based on Newton's iteration method is adopted. By using the modified Newton's iteration method and PID control, the duty cycle and frequency of the signal are adjusted in real time to quickly adjust the output power, so that the HID lamp can enter the rated working mode more quickly.
It improves the response speed and stability of HID lamps, extends lamp life, and meets the development needs of the new generation of electronic ballasts.
Smart Images

Figure CN118555699B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of HID lamp driving, and in particular to a Newton iteration method-based adaptive PID control method and device for HID lamps. Background Art
[0002] Xenon lamp is a new type of headlight that uses gas arc to emit light without filament. It is also called high intensity discharge lamp or gas discharge lamp, abbreviated as HID in English. Traditional inductive ballasts have low performance and limited application scenarios due to their heavy weight and bulk, low power factor and high energy loss. In addition, their circuit structure cannot effectively adjust the fluctuations of the power grid in time, so they are gradually replaced by electronic ballasts. The first analog electronic ballast has the characteristics of low cost and simple structure, but its single function limits the scope of application scenarios, and it cannot perform dimming control and power control, resulting in a waste of power resources. With the rapid development of digital control technology, digital control circuits have begun to be used in dimming control systems and communication power supply control systems to achieve energy conservation and emission reduction. The existing technology generally introduces PID for parameter control. PID control is widely used in the control field because of its simple structure and easy control. PID control is a closed-loop control. According to the difference between the actual output value and the reference value, certain parameters of the system are adjusted to achieve the effect of correcting the actual output value and accelerating the system to achieve stable operation.
[0003] The existing PID parameter tuning relies on experience, and after continuous testing, a more reasonable PID parameter is obtained. This method is inefficient and ineffective, and the control parameters determined by the empirical formula can only play a good control effect in a certain environment. More importantly, its control parameters cannot be self-tuned. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide an adaptive PID control method and device based on Newton iteration method for HID lamps, apply Newton iteration method to parameter setting of PID control, and accelerate the response speed of the circuit through the modified Newton iteration method and PID control, so that the HID lamp can enter the rated working mode faster.
[0005] In a first aspect, the present invention provides an adaptive PID control method based on Newton iteration method for HID lamps, comprising:
[0006] Step 10: Initialize the adaptive PID control parameters, including =[ Kp , K I ,K D ]、 λ ,in, Kp is the scale parameter, K I is the integration parameter, K D is the differential parameter, λ is the Lagrange coefficient;
[0007] Step 20: Get the input voltage and current of the HID lamp and calculate the error between the input power and the target power. ε ;
[0008] Step 30: According to the error obtained by the current sampling ε n The error with the previous sampling ε n-1 Calculate the error backward difference Δ ε , then with the error ε Combined into the error output function at the initial point ;
[0009] Step 40: Introduce Lagrangian method to calculate iteration step length :
[0010]
[0011] in, Depend on K p , K I , K D The initial value of is the identity matrix, is the initial value of the error output function, T represents the transpose;
[0012] Step 50: Calculate the output value of the PID control algorithm u ,
[0013]
[0014] in, k Represents the current accumulated time;
[0015] Step 60: Calculate each iteration output of the adaptive PID control by using the iterative z-domain expression of the Newton iteration method-PID control :
[0016]
[0017] Among them, Δ K 1 is the iteration step size of the scale parameter, ΔK 2 is the iteration step of the integral parameter, Δ K 3 is the iteration step of the differential parameter, Δ K 1. Δ K 2. Δ K 3 constitutes the iteration step ;
[0018] Step 70: According to the iteration step Calculate the three parameters in the PID control of the next system cycle Kp , K I , K D When the error ε When the absolute value of is greater than the specified value, the output value u The absolute value of the error is input into the register that controls the PWM wave frequency to achieve frequency modulation; ε When the absolute value of is less than or equal to the specified value, the adjustment value will be mapped u n The absolute value of is input into the register that controls the PWM wave frequency to achieve frequency modulation, where , l is the adjustment value;
[0019] Step 80: ε Substitute the Gaussian error function to update λ .
[0020] In a second aspect, the present invention provides an adaptive PID control device based on Newton iteration method for HID lamps, comprising an EMI filter rectifier circuit, a PFC circuit and a MOS tube half-bridge frequency selection network connected in sequence; the first output end of the half-bridge frequency selection network is connected to one end of the HID lamp through a bus voltage acquisition circuit, and the second output end is connected to the other end of the HID lamp through an LTSR current sampling circuit. The control end of the half-bridge frequency selection network is connected to a main control circuit, and is driven by the main control circuit to output a pair of complementary PWM waves with dead zones to provide a waveform voltage for driving the HID lamp; the main control circuit obtains the input voltage value of the HID lamp collected by the bus voltage acquisition circuit and the input current value of the HID lamp collected by the LTSR current sampling circuit, and calculates the proportional parameter of the next cycle by the method described in the first aspect. Kp , integration parameter K I , differential parameters K D At the same time, the adaptive PID control algorithm based on Newton iteration method is combined to adjust the duty cycle and frequency of the signal in real time, so that the HID lamp maintains a stable working state.
[0021] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
[0022] Adaptive PID has a stronger control feedback capability for the system. Newton iteration method is an algorithm that quickly finds extreme values. Combining Newton iteration method with adaptive PID control enables the PID control system to quickly adjust the output power by controlling the duty cycle and frequency value of the PWM wave, speeding up the error adjustment of the system and making the circuit output power stable.
[0023] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0025] Figure 1 Schematic diagram of a structure of an adaptive PID control device based on Newton iteration method for HID lamps according to an embodiment of the present invention;
[0026] Figure 2 Schematic diagram of a circuit of a half-bridge frequency selection network in an embodiment of the present invention;
[0027] Figure 3 This is a diagram of the frequency response of the circuit in the startup phase in an embodiment of the present invention;
[0028] Figure 4 This is a diagram of the frequency response of the circuit in the stable phase in an embodiment of the present invention;
[0029] Figure 5 Schematic diagram of current flow in the first working state of the half-bridge frequency selection network in an embodiment of the present invention;
[0030] Figure 6 Schematic diagram of current flow in the second working state of the half-bridge frequency selection network in an embodiment of the present invention;
[0031] Figure 7 A schematic diagram of basic waveforms of a circuit in an embodiment of the present invention;
[0032] Figure 8 This is a schematic diagram of a MOS tube isolation driving circuit in an embodiment of the present invention;
[0033] Fig. 9 Schematic diagram of a bus voltage acquisition circuit in an embodiment of the present invention;
[0034] Fig.10 Schematic diagram of LTSR current sampling circuit in an embodiment of the present invention;
[0035] Fig.11 It is a schematic diagram of the PID control principle of the system of the present invention;
[0036] Fig.12 A schematic diagram of a digital PID feedback structure used in an embodiment of the present invention;
[0037] Fig.13 is a schematic diagram of a step response of a controlled system in an embodiment of the present invention;
[0038] Fig.14 Schematic diagram of test results of three algorithms in embodiments of the present invention;
[0039] Fig.15 is the ratio parameter in the embodiment of the present invention Kp Schematic diagram of changes;
[0040] Fig.16 is the integral parameter in the embodiment of the present invention K I Schematic diagram of changes;
[0041] Fig.17 is the differential parameter in the embodiment of the present invention K D Schematic diagram of changes. DETAILED DESCRIPTION
[0042] The embodiment of the present invention provides an adaptive PID control method and device based on Newton iteration method for HID lamps, applies Newton iteration method to parameter setting of PID control, and accelerates the response speed of the circuit through the modified Newton iteration method and PID control, so that the HID lamp can enter the rated working mode more quickly.
[0043] The technical solution in the embodiment of the present invention has the following general idea:
[0044] The embodiment of the present invention realizes outputting a pair of complementary PWM waves with dead zones, and combines the PID control algorithm based on the modified Newton iteration method to speed up the circuit response, adjust the duty cycle and frequency of the signal in real time, allow the HID lamp to enter the rated working mode faster, and maintain the stable working state of the HID lamp through adaptive parameter setting. The present invention can realize stable feedback, improve the reliability and robustness of the overall circuit, extend the life of the HID lamp, and meet the development trend of the new generation of electronic ballasts.
[0045] The hardware design of the embodiment of the present invention uses TMS320F28335 and its peripheral sampling circuit as the control core to build the PWM wave output control and signal negative feedback acquisition system of the HID drive circuit. Based on the half-bridge resonant conversion network theory, the power control of the HID lamp is achieved by controlling the opening and closing frequency and time of the MOS tube. The overall circuit is as follows Figure 1 As shown. The EMI filter rectifier circuit filters the input AC power and removes the noise brought by the power grid, and then converts it into a DC pulsating voltage; the PFC circuit shapes the input DC pulsating voltage and provides a stable 400V DC bus voltage to the half-bridge frequency selection network; then the bus voltage is loaded on the MOS tube half-bridge, and the main control circuit drives the MOS tube half-bridge to open and close through the MOS tube isolation drive circuit, thereby forming a periodic square wave, which is sent to the frequency selection network for resonant conversion to provide a waveform voltage suitable for HID lamps; at the same time, the main control circuit provides feedback through the voltage and current sampling data.
[0046] 1. Circuit and waveform analysis of half-bridge frequency selection network
[0047] The implementation scheme of the half-bridge frequency selection network is as follows Figure 2 As shown in the figure, Q1 and Q2 form the MOS tube half-bridge arm, capacitors C1 and C2 are resonant capacitors, inductor L is a resonant inductor, and resistor R represents the HID lamp. C2 forms a parallel resonant capacitor, and the capacitance of C2 is much smaller than C1. Its function is to offset the influence of the SIC-MOS tube inter-node capacitance on the series frequency selection network during the HID lamp startup stage. Therefore, the series frequency selection network changes from an LCC structure to an RLC series structure when the HID lamp is in a stable state.
[0048] During the startup phase of the HID lamp, the resistance of the HID lamp is considered to be infinite and decreases over time. In this embodiment, the resistance of the HID lamp decreases from infinity to 18 ohms after startup and then becomes stable. The frequency response of the circuit at each stage is as follows: Figure 3 and Figure 4 As shown, Figure 3 is the frequency response of the startup phase, Figure 4 This is the frequency response in the stable stage. The frequency response and Q value of the circuit change from small to large. After the operating frequency reaches a specific value, the driving circuit meets the requirements of the HID lamp.
[0049] In the actual circuit, there is still a certain error between theory and practice when the circuit reaches steady state, so the parameters are optimized. The specific parameters are shown in Table 1. f 0 is the operating frequency of the circuit.
[0050] Table 1 Parameter optimization results
[0051]
[0052] This circuit has two working modes. In the first working state, the gate input of Q1 is high voltage, the gate input of Q2 is low voltage, Q1 tube is turned on, Q2 tube is turned off, and the circuit current flows as follows Figure 5 As shown by the dotted line in the middle; at this time, Q1, R, L and C form a loop, the energy storage elements L and C are slowly charged, and the voltage across R in the circuit rises; in the second working state, the Q1 gate tube inputs a low voltage, the Q2 gate inputs a high voltage, the Q1 tube is turned off, the Q2 tube is turned on, and the current flows as shown in Figure 6 As shown by the dotted line, at this time, Q2, R, L and C form a loop, and the energy storage elements L and C discharge. At this time, the current flow direction is opposite to that in the first working state, and the voltage across R continues to decrease.
[0053] The waveform of the circuit is as follows Figure 7 As shown. During the t1 time, the circuit starts, PWMA inputs a high voltage, and PWMB inputs a low voltage. At this time, the current and voltage of the resistor R show a trend of being in phase and exponentially rising; during the t2 time, PWMA inputs a low voltage, and PWMB inputs a high voltage. At this time, the voltage and current of the resistor R show a trend of exponentially decreasing, corresponding to the second working state; during the t3 time, PWMA inputs a high voltage, and PWMB inputs a low voltage. At this time, the voltage and current of the resistor R increase rapidly from a negative number and show a trend of exponentially rising, corresponding to the first working state. The drive circuit will continuously switch between the first working state and the second working state.
[0054] 2. Main control circuit and signal acquisition circuit
[0055] The main control circuit uses the TMS320F28335 on-chip processing system. The current and voltage output by its pins cannot drive the SIC-MOS tube to open and close. Considering the high power of the half-bridge frequency selection network and the unstable reference voltage surface, the isolation of the digital ground and analog ground of the drive and sampling needs to be considered in the design. The MOS tube isolation drive circuit is implemented using the UCC21520 chip. Figure 8 As shown (SGND is the digital ground, BGND is the analog ground).
[0056] In order to better distinguish the representation of digital ground and analog ground in the circuit diagram, Figure 8In the figure, the left side of the dotted line is the input end, R12, R13 and U7, U8 form a low-pass filter to filter out the noise in the line transmission, and 5V is used to power the input end of UCC21520; the right side of the dotted line is the output end, and the 20V and -4V provided by QA01C are used to power the output end of UCC21520, so that the maximum value of the output PWM wave is 20V and the minimum value is -4V. This power supply combination is used to ensure the normal opening and closing of the MOS tube; In the PWM wave, R19 and R21 form the on-current loop, R15, R23 and D4, D6 form the off-current loop. The introduction of D4 and D6 divides the on-current loop and the off-current loop into blocks and accelerates the MOS tube switch. Therefore, D4 and D6 usually select Schottky diodes with fast turn-off and fast recovery. R15, R19, R21, and R23 should select resistors with small values to prevent the circuit from short-circuiting due to the misleading turn-on action caused by the parasitic capacitance of the MOS tube. The output port drive circuit of UCC21520 is powered by the QA01C power chip dedicated to the SICMOS tube drive circuit. The chip can provide current and stable voltage support to meet the SICMOS tube switch.
[0057] The circuit as a whole adopts closed-loop control, which requires collecting the bus voltage, the loop current of the half-bridge frequency selection network and the voltage across the HID lamp. The signal negative feedback collection system adopts the proportional amplifier circuit mainly based on OPA4350. Fig. 9 It is a bus voltage acquisition circuit, which mainly achieves the acquisition effect by transmitting and linearly amplifying the voltage difference. Fig.10 It is an LTSR current sampling circuit, which uses the LTSR closed-loop Hall element to convert the current signal of the main circuit into a voltage within a limited range, and plays a role in signal acquisition isolation.
[0058] Adaptive PID control based on Newton iteration method Adaptive PID has stronger control feedback ability for the system. Newton iteration method is a method for quickly finding extreme values. The present invention combines these two methods so that the PID control system can quickly adjust the output power by controlling the duty cycle and frequency value of the PWM wave, speed up the error adjustment of the system, and stabilize the output power of the circuit. The specific implementation method is shown in the following embodiment.
[0059] Embodiment 1
[0060] This embodiment provides an adaptive PID control method based on Newton iteration method for HID lamps. The overall framework of the software system is as follows: Fig.11 As shown in the figure, after the software system collects the output value of the controlled system through ADC sampling, it performs differential operation with the theoretical calculated power to obtain the error ε ; Initialize the three parameters in PID control, the software system gives priority to the error value εIt is sent to the PID system, the adjustment value is output, and then the Newton iteration method is used according to the error value. ε And the error value back difference Δ ε , calculate the three parameters (proportional parameters) in the PID control of the next software system cycle Kp , integration parameter K I , differential parameters K D ), and record the ε , as the data source for subsequent differential, can include the following steps:
[0061] Step 10: Initialize the adaptive PID control parameters, including =[ Kp , K I , K D ]、 λ ,in, Kp is the scale parameter, K I is the integration parameter, K D is the differential parameter, λ is the Lagrange coefficient;
[0062] Step 20: Get the input voltage and current of the HID lamp and calculate the error between the input power and the target power. ε ;
[0063] Step 30: According to the error obtained by the current sampling ε n The error with the previous sampling ε n-1 Calculate the error backward difference Δ ε , then with the error ε Combined into the error output function at the initial point ;
[0064] Step 40: Introduce Lagrangian method to calculate iteration step length :
[0065]
[0066] in, Depend on K p , K I , K D The initial value of is the identity matrix, is the initial value of the error output function, T represents the transpose;
[0067] Step 50: Calculate the output value of the PID control algorithm u ,
[0068]
[0069] in, k Represents the current accumulated time;
[0070] Step 60: Calculate each iteration output of the adaptive PID control by using the iterative z-domain expression of the Newton iteration method-PID control :
[0071]
[0072] Among them, Δ K 1 is the iteration step size of the scale parameter, Δ K 2 is the iteration step of the integral parameter, Δ K 3 is the iteration step of the differential parameter, Δ K 1. Δ K 2. Δ K 3 constitutes the iteration step ;
[0073] Step 70: According to the iteration step Calculate the three parameters in the PID control of the next system cycle Kp , K I , K D When the error ε When the absolute value of is greater than the specified value (for example, 20), the value will be output u The absolute value of the error is input into the register that controls the PWM wave frequency to achieve frequency modulation; ε When the absolute value of is less than or equal to the specified value (for example, 20), the adjustment value will be mapped u n The absolute value of is input into the register that controls the PWM wave frequency to achieve frequency modulation, where , l is an adjustment value, which is determined through engineering experience and is the value when the duty cycle is approximately 1:1. In this embodiment, the value is 300;
[0074] Step 80: ε Substitute the Gaussian error function to update λ .exist λ When the value is large, the iteration step in step 40 is The solution formula is less sensitive to the initial position setting, so it is adjusted through the Gaussian error function (erf function) to speed up convergence and make the PID control parameters reach the minimum value.
[0075] This embodiment is based on the half-bridge resonant conversion network theory to output a pair of complementary PWM waves with dead zones to drive the HID lamp. The duty cycle and frequency of the signal are adjusted in real time (adjusted by the value in the register of the PWM wave frequency) by an adaptive PID control method based on Newton iteration method. The opening and closing frequency and time of the MOS tube can be controlled to achieve power control of the HID lamp.
[0076] The derivation process of the formula used in the above steps is as follows:
[0077] error ε The product of the current I and voltage U collected by the hardware sampling circuit and the set standard value P ref The difference is as follows:
[0078] (1)
[0079] Error value backward difference Δ ε The error obtained for the current sampling ε n The error from the previous sampling ε n-1 The difference between them is as follows:
[0080] (2)
[0081] PID control is widely used in the control field because of its simple structure and easy control. PID control is a closed-loop control that adjusts certain system parameters according to the difference between the actual output value and the reference value to achieve the effect of correcting the actual output value and accelerating the system to achieve stable operation. Fig.12 The figure shows the classic structure of a digital PID feedback system, which is also adopted in this embodiment.
[0082] In PID control, the proportional parameter Kp , integration parameters K I , differential parameters K D These three parameters are crucial. Reasonable adjustment of these three parameters can cause the output value of the PID control system to overshoot and oscillate. Fig.12 As shown, the output of the PID control system is:
[0083] (3)
[0084] Its time domain expression is formula (4), u Output value of PID control algorithm system:
[0085] (4)
[0086] Dwi-Ana-Ratna Wati, Hidayat Rakhmat and others proposed a mathematical constraint model for the three parameters of PID. The system output is related to the three parameters of PID control, that is, the function mapping relationship f In order to better represent the increase and decrease of the three parameters of PID control and introduce vector control, the function mapping relationship is f Transformed into the error output function at the initial point , its mathematical model is formula (5):
[0087] (5)
[0088] In equation (3), considering the actual output of the system, the three parameters of PID control are estimated by backward difference. At the same time, in order to ensure the convergence of the Newton-Raphson iteration method, the modified Newton-Raphson iteration relationship is used. Assume that the error output function at the initial point is As shown in formula (6):
[0089] (6)
[0090] The error output function at the initial point Carry it out Expand the vector and substitute it into Kp , K I , K D The initial value of the initial setting , we can get:
[0091] (7)
[0092] In formula (7) is the initial value of the error output function, the default value is 0, is the iteration step length, and Δ K 1 Iteration step size of scale parameter, Δ K 2 Iteration step size of integration parameter, Δ K 3 The iterative step length of the differential parameter is composed of equation (7). The error value at . The square value S of the minimum transformation of the error can also be calculated, that is:
[0093] (8)
[0094] To minimize the error, the square value of the minimum transformation of the error S Obtain the gradient, and the Jacobian matrix of the minimum square value S of the error is:
[0095] (9)
[0096] When the minimum value of S is obtained, that is, the gradient modulus of S is 0, we can obtain Expressions with S
[0097] (10)
[0098] at this time It is related to the initial position. It is still possible that the modified Newton-Raphson iteration method cannot converge because the initial position is far away from the zero position. Therefore, the Lagrangian method is introduced in equation (10):
[0099] (11)
[0100] In formula (11), λ is the Lagrange coefficient. According to formula (10) and formula (11), formula (12) can be re-derived:
[0101] (12)
[0102] In formula (12), when λ is at a large value, formula (12) is less sensitive to the setting of the initial position. Therefore, in this design, the Gaussian error function (erf function) is used to adjust the initial position to speed up the calculation. Convergence makes the PID control parameters reach the minimum value.
[0103] At this time, the mathematical expression of each iteration output of adaptive PID control is as follows:
[0104] (13)
[0105] Equation (13) is the iterative z-domain expression of the Newton iteration method-PID control to assist in solving equation (5).
[0106] (14)
[0107] Formula (14) is an iterative time domain expression. When the absolute value of the error ε is greater than 20, the absolute value of u is input into the register of the PWM wave frequency of the control system to achieve frequency modulation. When the absolute value of the error ε is less than or equal to 1, u is substituted into Formula (15) to obtain the mapping adjustment value u n ,u n The input is filled into the PWM wave duty cycle register to adjust the duty cycle.
[0108] (15)
[0109] In order to verify the control effect of the method of this embodiment, a software test system was built and tested.
[0110] The transfer function of the controlled system is as follows: H is the frequency response function of the actual controlled system, ω is the angular frequency, L is the inductance value of the actual controlled system, C is the capacitance value of the actual controlled system, R is the load resistance:
[0111] (16)
[0112] At this time, the step response of the system is as follows: Fig.13 As shown in the figure: the step response of the system tends to 1 as time goes by, and the system takes a long time to reach stability. The use of PID control can effectively shorten the response time, and the introduction of the adaptive PID algorithm can make the system enter a stable state more quickly.
[0113] Considering the voltage, current and power characteristics of the system, the priority should be given to suppressing the "over-modulation" phenomenon when testing the algorithm. The excessive power and voltage caused by the over-modulation phenomenon can easily break down the circuit components. Secondly, the "oscillation" phenomenon of the algorithm should be suppressed to ensure stable PID control parameters, which can make the system more stable and prevent the actual circuit from oscillating and causing the breakdown of MOS tubes, capacitors and inductors.
[0114] System testing is to further optimize and analyze the system and test the software algorithm. The software test results are as follows: Fig.14 As shown: the red line (the curve that reaches 1 the fastest on the left) is the model test curve of Newton iteration method-PID, the blue line (the curve in the middle) is the model test curve of PID, and the black line (the curve that reaches 1 the slowest on the right) is the reference line of the test model; it can be seen that the response speed of Newton iteration method-PID control is better than the response speed of system and traditional PID control.
[0115] Figures 15 to 17 They are respectively the proportional parameters of Newton iteration method-PID Kp , integration parameters K I , differential parameters K D The change diagram of Fig.15 and Fig.16 middle Kp and K IThere is a large increase at the beginning, and the overall trend continues to decline over time, fluctuating around a certain value, and finally stabilizes. Fig.17 It can be seen K D The value decreases continuously and tends to 0.
[0116] It can be seen that by combining the Newton iteration method with the parameter setting in PID control, the overall circuit system can quickly respond to the excitation input by the drive circuit to achieve the power output set by the system. At the same time, in this algorithm, the three parameters in the PID control can quickly adjust the two working stages of the circuit, making the PID control adaptive. The system output characteristics and the working characteristics of the HID were tested, proving the effectiveness and reliability of the system feedback.
[0117] Based on the same inventive concept, the present application also provides a device corresponding to the method in Example 1, see Example 2 for details.
[0118] Embodiment 2
[0119] In this embodiment, an adaptive PID control device based on Newton iteration method for HID lamp is provided. Figure 1 As shown, it includes an EMI filter rectifier circuit, a PFC circuit and a MOS tube half-bridge frequency selection network connected in sequence; the first output end of the half-bridge frequency selection network is connected to one end of the HID lamp through a bus voltage acquisition circuit, and the second output end is connected to the other end of the HID lamp through an LTSR current sampling circuit. The control end of the half-bridge frequency selection network is connected to a main control circuit, and is driven by the main control circuit to output a pair of complementary PWM waves with dead zones to provide a waveform voltage for driving the HID lamp; the main control circuit obtains the input voltage value of the HID lamp collected by the bus voltage acquisition circuit and the input current value of the HID lamp collected by the LTSR current sampling circuit, and calculates the proportional parameter of the next cycle by the method described in Example 1. Kp , integration parameter K I , differential parameters K D At the same time, the adaptive PID control algorithm based on Newton iteration method is combined to adjust the duty cycle and frequency of the signal in real time, so that the HID lamp maintains a stable working state.
[0120] In a possible implementation, the half-bridge frequency selection network adopts a MOS tube half-bridge and LCC series frequency selection network, including a SIC-MOS tube Q1, a SIC-MOS tube Q2, a resonant capacitor C1, a resonant capacitor C2 and an inductor L, wherein the resonant capacitor C2 is connected in parallel with the HID lamp and the capacitance value is much smaller than the resonant capacitor C1 (for example, C2: C1<0.001), which is used to offset the influence of the SIC-MOS tube inter-node capacitance on the series frequency selection network during the startup stage of the HID lamp.
[0121] In a possible implementation, the main control circuit includes a TMS320F28335 chip and drives the half-bridge frequency selection network through a MOS isolation drive circuit. The MOS isolation drive circuit uses a UCC21520 chip. Figure 8 As shown: the left side of the dotted line is the input end, R12, R13 and U7, U8 form a low-pass filter to filter out the noise in the line transmission, and 5V is used to power the input end of UCC21520; the right side of the dotted line is the output end, and the 20V and -4V provided by QA01C are used to power the output end of UCC21520, so that the maximum value of the output PWM wave is 20V and the minimum value is -4V. This power supply combination is used to ensure the normal opening and closing of the MOS tube; In the two PWM waves, R19 and R21 form the on-current loop, and R15, R23, D4, and D6 form the off-current loop. The introduction of D4 and D6 divides the on-current loop and the off-current loop into blocks and accelerates the MOS tube switch. Therefore, D4 and D6 usually select Schottky diodes with fast turn-off and fast recovery. R15, R19, R21, and R23 should select resistors with small values to prevent the circuit from short-circuiting due to the misleading turn-on action caused by the parasitic capacitance of the MOS tube. The output port drive circuit of UCC21520 is powered by the QA01C power chip dedicated to the SICMOS tube drive circuit. The chip can provide current and stable voltage support to meet the SICMOS tube switch.
[0122] The circuit as a whole adopts closed-loop control, which requires collecting the bus voltage, the loop current of the half-bridge frequency selection network and the voltage across the HID lamp. The signal negative feedback collection system adopts the proportional amplifier circuit mainly based on OPA4350. Fig. 9 It is a bus voltage acquisition circuit, which mainly achieves the acquisition effect by transmitting and linearly amplifying the voltage difference. Fig.10 It is an LTSR current sampling circuit, which uses the LTSR closed-loop Hall element to convert the current signal of the main circuit into a voltage within a limited range, and plays a role in signal acquisition isolation.
[0123] The present invention combines Newton iteration method into adaptive PID control, so that the PID control system can quickly adjust the output power by controlling the duty cycle and frequency value of the PWM wave, accelerate the error adjustment of the system, and stabilize the circuit output power.
[0124] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented 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.
[0125] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0126] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0128] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. An adaptive PID control method for HID lamps based on Newton iteration method, characterized in that: Step 10: Initialize the adaptive PID control parameters, including =[ Kp , K I , K D ]、 λ ,in, Kp is the scale parameter, K I is the integration parameter, K D is the differential parameter, λ is the Lagrange coefficient; Step 20: Get the input voltage and current of the HID lamp and calculate the error between the input power and the target power. ε ; Step 30: According to the error obtained by the current sampling ε n The error with the previous sampling ε n-1 Calculate the error backward difference Δ ε , then with the error ε Combined into the error output function at the initial point ; Step 40: Introduce Lagrangian method to calculate iteration step length : in, Depend on K p , K I , K D The initial value of is the identity matrix, is the initial value of the error output function, T represents the transpose; Step 50: Calculate the output value of the PID control algorithm u , in, k Represents the current accumulated time; Step 60: Calculate each iteration output of the adaptive PID control by using the iterative z-domain expression of the Newton iteration method-PID control : Among them, Δ K 1 is the iteration step size of the scale parameter, Δ K 2 is the iteration step of the integral parameter, Δ K 3 is the iteration step of the differential parameter, Δ K 1. Δ K 2. Δ K 3 constitutes the iteration step ; Step 70: According to the iteration step Calculate the three parameters in the PID control of the next system cycle Kp , K I , K D When the error ε When the absolute value of is greater than the specified value, the value will be output u The absolute value of the error is input into the register that controls the PWM wave frequency to achieve frequency modulation; ε When the absolute value of is less than or equal to the specified value, the adjustment value will be mapped u n The absolute value of is input into the register that controls the PWM wave frequency to achieve frequency modulation, where , l is the adjustment value; Step 80: ε Substitute the Gaussian error function to update λ .
2. The method according to claim 1, characterized in that: The specified value is 20, the adjustment value l is 300.
3. An adaptive PID control device based on Newton iteration method for HID lamps, characterized in that: The invention comprises an EMI filter rectifier circuit, a PFC circuit and a MOS tube half-bridge frequency selection network connected in sequence; the first output end of the half-bridge frequency selection network is connected to one end of the HID lamp through a bus voltage acquisition circuit, and the second output end is connected to the other end of the HID lamp through an LTSR current sampling circuit; the control end of the half-bridge frequency selection network is connected to a main control circuit, and is driven by the main control circuit to output a pair of complementary PWM waves with dead zones to provide a waveform voltage for driving the HID lamp; the main control circuit obtains the input voltage value of the HID lamp collected by the bus voltage acquisition circuit and the input current value of the HID lamp collected by the LTSR current sampling circuit, and calculates the proportional parameter of the next cycle by the method described in any one of claims 1 to 2. Kp , integration parameter K I , differential parameters K D At the same time, the adaptive PID control algorithm based on Newton iteration method is combined to adjust the duty cycle and frequency of the signal in real time, so that the HID lamp maintains a stable working state.
4. The device according to claim 3, characterized in that: The half-bridge frequency selection network adopts a MOS tube half-bridge and LCC series frequency selection network, including a SIC-MOS tube Q1, a SIC-MOS tube Q2, a resonant capacitor C1, a resonant capacitor C2 and an inductor L, wherein the resonant capacitor C2 is connected in parallel with the HID lamp and the ratio of the capacitance value of the resonant capacitor C2 to the capacitance value of the resonant capacitor C1 is less than 0.001, which is used to offset the influence of the SIC-MOS tube inter-node capacitance on the series frequency selection network during the startup stage of the HID lamp.
5. The device according to claim 4, characterized in that: The main control circuit includes a TMS320F28335 chip and drives a half-bridge frequency selection network through a MOS isolation drive circuit.
6. The device according to claim 5, characterized in that: The MOS isolation drive circuit includes a UCC21520 chip, the input end of the UCC21520 chip passes through a low-pass filter to filter out noise in line transmission, and is connected to a 5V power supply for power supply; the output end of the UCC21520 chip is powered by 20V and -4V, so that the maximum value of the output PWM wave is 20V and the minimum value is -4V.
7. The device according to claim 6, characterized in that: The output end of the UCC21520 chip outputs two PWM waves, each PWM wave output includes an on current loop and a off current loop, and each off current loop includes a resistor and a Schottky diode.
8. The device according to claim 6 or 7, characterized in that: The output end of the UCC21520 chip is powered by a QA01C power chip.
9. The device according to claim 3, characterized in that: The bus voltage collection circuit includes an operational amplifier OPA4350, which achieves the collection effect by transmitting and linearly amplifying the voltage difference.
10. The device according to claim 3, characterized in that: The LTSR current sampling circuit includes an LTSR closed-loop Hall element, which converts the current signal of the main circuit into a voltage within a limited range and plays a role in signal acquisition isolation.
Citation Information
Patent Citations
HID (High Intensity Discharge) lamp electronic ballast and multimode control method thereof
CN102123555A
LED street lamp intelligent control method and device based on firework algorithm-adaptive fuzzy PID
CN109709800A
Illumination control system
CN114514795A
Ballast device having active ballasting circuit and method thereof
TWI236863B
Ballast device having active ballasting circuit and method thereof
US20050231130A1
