Electronic ballast constant power output circuit for ultraviolet lamp tube
By designing a constant power output circuit in the electronic ballast, collecting and processing the voltage and current data of the ultraviolet lamp in real time, and using the PID algorithm to adjust the PWM signal, the overload problem caused by air leakage is solved and the ballast is stable and reliable. Improved work and safety.
Patent Information
- Application Number
- CN202410805580.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-08-30
AI Technical Summary
The electronic ballast in the existing UV lamp driver causes the tube pressure to increase due to air leakage, and is easily overloaded, causing heat or burnout, and the overvoltage protection circuit design is difficult to balance sensitivity and stability.
Design a constant power output circuit that includes a voltage sampling circuit, a current sampling circuit, a signal amplification circuit, an MCU and a current feedback adjustment circuit. By collecting and processing the voltage and current data of the lamp in real time, the PID algorithm is used to adjust the PWM drive signal to achieve Constant power output.
It avoids overloading of the ballast due to air leakage, ensures stable and reliable working conditions, extends the service life of the ballast, and improves work safety.
Smart Images

Figure CN118574256A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of circuits, and in particular to a constant power output circuit of an electronic ballast used for an ultraviolet lamp tube. Background Art
[0002] In the field of low-pressure mercury lamps, especially ultraviolet germicidal lamps, the electronic ballasts that drive ultraviolet lamps currently mainly use constant current output. Since ultraviolet lamps will have slow gas leakage during long-term storage, it is easy to cause the actual tube voltage of the lamp to be too high, causing the electronic ballast to work at overpower. In order to avoid the occurrence of ballast overload operation, ordinary electronic ballasts on the market mainly protect the ballast by designing overvoltage protection of the lamp tube to prevent the ballast from overloading. However, there is a problem with the design of the overvoltage protection circuit, that is, if the protection circuit is designed too sensitive, it may cause the ultraviolet lamp to work abnormally and easily trigger the overvoltage protection; and if the protection circuit is not designed too sensitive, it may cause the ballast to work in an overpower state for a long time, causing the ballast to heat up or even burn. Therefore, this field urgently needs to study a more stable and reliable electronic ballast working mode. Summary of the invention
[0003] In view of the problems raised in the above background technology, the present invention provides a constant power output circuit of an electronic ballast for an ultraviolet lamp tube, so as to achieve constant power output of the electronic ballast, improve the working safety of the ballast, and extend its service life.
[0004] To achieve the above object, the present invention provides the following solutions:
[0005] A constant power output circuit of an electronic ballast for an ultraviolet lamp, comprising: a voltage sampling circuit, a voltage sampling signal amplifying circuit, a current sampling circuit, a current sampling signal amplifying circuit, an MCU and a current feedback regulating circuit;
[0006] The voltage sampling circuit is used to sample the working voltage of the ultraviolet lamp to obtain a voltage sampling signal;
[0007] The voltage sampling signal is processed by the voltage sampling signal amplifying circuit to obtain an ADC voltage signal;
[0008] The current sampling circuit is used to sample the working current of the ultraviolet lamp to obtain a current sampling signal;
[0009] The current sampling signal is processed by the current sampling signal amplifying circuit to obtain an ADC current signal;
[0010] The MCU uses the impulse area equivalent method and interpolation operation to calculate the real-time power value of the ultraviolet lamp according to the ADC voltage signal and the ADC current signal; the MCU also introduces a PID algorithm to compare the real-time power value with the set target power value, and adjusts the frequency of the output PWM drive signal in real time according to the comparison result;
[0011] The current feedback regulation circuit adjusts the operating current and the operating voltage of the ultraviolet lamp in real time according to the PWM driving signal output by the MCU, so that the real-time power value of the ultraviolet lamp is consistent with the target power value, thereby achieving constant power output.
[0012] Optionally, the voltage sampling circuit specifically includes: a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a resistor R7;
[0013] One end of the resistor R1 is connected to the working voltage VLAMP of the ultraviolet lamp; the other end of the resistor R1 is connected to the resistor R2; the resistors R1, R2, R3, R4 and R5 are connected in series in sequence; one end of the resistor R5 is connected to the resistor R4; the other end of the resistor R5 is grounded; one end of the resistor R6 is connected to the common connection point of the resistor R3 and the resistor R4; the other end of the resistor R6 is connected to one end of the resistor R7; the other end of the resistor R7 is grounded; the voltage sampling signal V2 is derived from the common connection point of the resistor R6 and the resistor R7.
[0014] Optionally, the voltage sampling signal amplifying circuit specifically includes: a resistor R101, a resistor R102, a resistor R103, a resistor R104, a resistor R105, a resistor R106, a resistor R107, a resistor R109, a TVS tube ZD1 and an operational amplifier U1C;
[0015] One end of the resistor R101 is connected to the voltage sampling signal V2; the other end of the resistor R101 is respectively connected to one end of the resistor R102 and one end of the resistor R103; the other end of the resistor R103 is respectively connected to one end of the resistor R104 and the negative electrode of the TVS tube ZD1; the positive electrode of the TVS tube ZD1 and the other end of the resistor R102 are both grounded; the other end of the resistor R104 is connected to the positive input end of the operational amplifier U1C; the reverse input end of the operational amplifier U1C is respectively connected to one end of the resistor R105 and one end of the resistor R106; the other end of the resistor R105 is grounded; the other end of the resistor R106 is respectively connected to the output end of the operational amplifier U1C and one end of the resistor R107; the other end of the resistor R107 is connected to one end of the resistor R109; the other end of the resistor R109 is grounded; the ADC voltage signal VLAMP_ADC is derived from the common connection point of the resistor R107 and the resistor R109.
[0016] Optionally, the current sampling circuit specifically includes: a resistor R8, a capacitor C1 and a current sampling resistor RS1;
[0017] One end of the resistor R8 and one end of the current sampling resistor RS1 are both connected to the working current ILAMP of the ultraviolet lamp; the other end of the resistor R8 is connected to one end of the capacitor C1; the other end of the capacitor C1 and the other end of the current sampling resistor RS1 are both grounded; the current sampling signal V3 is derived from the common connection point of the resistor R8 and the capacitor C1.
[0018] Optionally, the current sampling signal amplifying circuit specifically includes: a resistor R201, a TVS tube ZD2, a resistor R202, a resistor R203, a resistor R204, a resistor R205 and an operational amplifier U1A;
[0019] One end of the resistor R201 is respectively connected to the current sampling signal V3 and the negative electrode of the TVS tube ZD2; the positive electrode of the TVS tube ZD2 is grounded; the other end of the resistor R201 is connected to the positive input end of the operational amplifier U1A; the reverse input end of the operational amplifier U1A is respectively connected to one end of the resistor R202 and one end of the resistor R203; the other end of the resistor R202 is grounded; the output end of the operational amplifier U1A is respectively connected to the other end of the resistor R203 and one end of the resistor R204; the other end of the resistor R204 is connected to one end of the resistor R205; the other end of the resistor R205 is grounded; the ADC current signal ILAMP_ADC is derived from the common connection point of the resistor R204 and the resistor R205.
[0020] Optionally, the amplitudes of the ADC voltage signal VLAMP_ADC and the ADC current signal ILAMP_ADC are between 0 and 3.3V.
[0021] Optionally, the PA00 pin of the MCU is connected to the ADC voltage signal VLAMP_ADC; the PA01 pin of the MCU is connected to the ADC current signal ILAMP_ADC; and the PB14 pin and the PB15 pin of the MCU output the PWM drive signal.
[0022] Optionally, the current feedback regulation circuit specifically includes: a resistor R304, a resistor R305, a chip U301, a diode D302, a resistor R317, a switch tube Q301, a switch tube Q302, a resistor R302, a resistor R303, a capacitor C304, a resistor R306, a resistor R308, an inductor L301A, a capacitor C303 and a capacitor C305;
[0023] One end of the resistor R304 is connected to the high level PWM_H of the PWM drive signal; one end of the resistor R305 is connected to the low level PWM_L of the PWM drive signal; the other end of the resistor R304 is connected to the HIN pin of the chip U301; the other end of the resistor R305 is connected to the LIN pin of the chip U301; the VCC pin of the chip U301 is respectively connected to the 12V power supply and the positive electrode of the diode D302; the negative electrode of the diode D302 is connected to one end of the resistor R317; the other end of the resistor R317 is respectively connected to the VB pin of the chip U301 and one end of the capacitor C304; the COM pin of the chip U301 is grounded; the HO pin of the chip U301 is connected to one end of the resistor R302; the gate of the switch tube Q301 is respectively connected to the other end of the resistor R302 and the one end of the resistor R303; the drain of the switch tube Q301 is connected to the power supply Vdc1; the source of the switch tube Q301 is respectively connected to the other end of the capacitor C304, the other end of the resistor R303, one end of the inductor L301A, the VS pin of the chip U301 and the drain of the switch tube Q302; the LO pin of the chip U301 is connected to one end of the resistor R306; the other end of the resistor R306 is respectively connected to the gate of the switch tube Q302 and one end of the resistor R308; the source of the switch tube Q302 and the other end of the resistor R308 are both grounded; the other end of the inductor L301A is connected to one end of the capacitor C303; the other end of the capacitor C303 is connected to one end of the capacitor C305; the other end of the capacitor C305 is grounded; the ultraviolet lamp lamp is connected in parallel with the capacitor C305.
[0024] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0025] The electronic ballast constant power output circuit for ultraviolet lamps provided by the present invention can automatically collect the actual working voltage and working current data of the ultraviolet lamps through the voltage sampling circuit and the current sampling circuit, and then automatically adjust and control the output current and voltage of the ballast through processing by the voltage sampling signal amplification circuit, the current sampling signal amplification circuit, the MCU and the current feedback regulation circuit, so as to always keep the output power of the ballast at a constant value, thereby avoiding the problem of ballast overload caused by the increase of lamp tube voltage due to gas leakage, ensuring that there will be no safety problems caused by heating due to overload, and ensuring the stable and reliable operation of the ballast; at the same time, it can also avoid the potential safety hazard caused by heating of the ultraviolet lamp, improve the safety of the ballast operation, and extend the service life. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A schematic diagram of the circuit connection relationship of the voltage sampling circuit of the present invention;
[0028] Figure 2 A schematic diagram of the circuit connection relationship of the voltage sampling signal amplifying circuit of the present invention;
[0029] Figure 3 A schematic diagram of the circuit connection relationship of the current sampling circuit of the present invention;
[0030] Figure 4 A schematic diagram of the circuit connection relationship of the current sampling signal amplifying circuit of the present invention;
[0031] Figure 5 A schematic diagram of the circuit connection relationship of the MCU of the present invention;
[0032] Figure 6 The figure is a schematic diagram of the circuit connection relationship of the current feedback regulation circuit of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] The invention provides a constant power output circuit of an electronic ballast for an ultraviolet lamp tube, which can automatically detect the voltage and current of the lamp tube to achieve the purpose of constant power output, improve the working safety of the ballast, and prolong its service life.
[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] The invention provides a constant power output circuit of an electronic ballast for an ultraviolet lamp, which mainly includes a signal acquisition and processing part of a hardware circuit and a software algorithm part based on an MCU. The hardware part of the invention includes a voltage sampling circuit, a voltage sampling signal amplifying circuit, a current sampling circuit, a current sampling signal amplifying circuit, an MCU and a current feedback regulating circuit.
[0037] The voltage sampling circuit is used to sample the working voltage of the ultraviolet lamp to obtain a voltage sampling signal. The voltage sampling signal is processed by the voltage sampling signal amplifying circuit to obtain an ADC voltage signal. The current sampling circuit is used to sample the working current of the ultraviolet lamp to obtain a current sampling signal. The current sampling signal is processed by the current sampling signal amplifying circuit to obtain an ADC current signal. The MCU uses the impulse area equivalent method and interpolation operation to calculate the real-time power value of the ultraviolet lamp according to the ADC voltage signal and the ADC current signal; the MCU also introduces a PID algorithm to compare the real-time power value with the set target power value, and adjusts the frequency of the output PWM drive signal in real time according to the comparison result. The current feedback adjustment circuit adjusts the working current and working voltage of the ultraviolet lamp in real time according to the PWM drive signal output by the MCU, so that the real-time power value of the ultraviolet lamp is consistent with the target power value, thereby achieving constant power output.
[0038] See also Figure 1, the voltage sampling circuit specifically includes: resistor R1, resistor R2, resistor R3, resistor R4, resistor R5, resistor R6 and resistor R7. Among them, one end of the resistor R1 is connected to the working voltage VLAMP of the ultraviolet lamp; the other end of the resistor R1 is connected to the resistor R2; the resistors R1, R2, R3, R4 and R5 are connected in series in sequence; one end of the resistor R5 is connected to the resistor R4; the other end of the resistor R5 is grounded; one end of the resistor R6 is connected to the common connection point of the resistor R3 and the resistor R4; the other end of the resistor R6 is connected to one end of the resistor R7; the other end of the resistor R7 is grounded; the voltage sampling signal V2 is derived from the common connection point of the resistor R6 and the resistor R7.
[0039] Figure 1 The resistors R1, R2, R3, R4, R5, R6, and R7 are all voltage-dividing resistors. Through the principle of resistor voltage division, the voltage of thousands of volts during ignition and the voltage of hundreds of volts during normal operation after the lamp tube breaks down are reduced to a sufficiently low level to meet the withstand voltage requirements of the components of the electronic circuit, and the voltage sampling signal V2 is obtained.
[0040] See also Figure 2 The voltage sampling signal amplifying circuit specifically includes: a resistor R101, a resistor R102, a resistor R103, a resistor R104, a resistor R105, a resistor R106, a resistor R107, a resistor R109, a TVS tube ZD1 and an operational amplifier U1C. Among them, one end of the resistor R101 is connected to the voltage sampling signal V2; the other end of the resistor R101 is respectively connected to one end of the resistor R102 and one end of the resistor R103; the other end of the resistor R103 is respectively connected to one end of the resistor R104 and the negative electrode of the TVS tube ZD1; the positive electrode of the TVS tube ZD1 and the other end of the resistor R102 are both grounded; the other end of the resistor R104 is connected to the positive input end of the operational amplifier U1C; the reverse input end of the operational amplifier U1C is respectively connected to one end of the resistor R105 and one end of the resistor R106; the other end of the resistor R105 is grounded; the other end of the resistor R106 is respectively connected to the output end of the operational amplifier U1C and one end of the resistor R107; the other end of the resistor R107 is connected to one end of the resistor R109; the other end of the resistor R109 is grounded; the ADC voltage signal VLAMP_ADC is derived from the common connection point of the resistor R107 and the resistor R109.
[0041] like Figure 2As shown, the voltage sampling signal V2 is further attenuated by the resistor divider composed of resistors R101, R102, and R103, and then sent to the 10th pin (i.e., the positive input terminal) of the operational amplifier U1C through resistor R104, and then the operation of the post-amplifier circuit is performed. Among them, the TVS tube ZD1 is mainly used to prevent high-voltage static electricity or high voltage during the ballast ignition from being transmitted to the 10th pin of the operational amplifier to ensure the safety of the operational amplifier. After the signal enters the 10th pin of the operational amplifier U1C, it will be amplified by the feedback resistor composed of resistors R105 and R106, and then output at the 8th pin (i.e., the output terminal) of the operational amplifier U1C. The high-frequency noise interference signal in the signal amplified by the operational amplifier U1C will be attenuated, and then the signal will be attenuated into a weak voltage signal VLAMP_ADC that can be directly received by the MCU through the voltage divider of resistors R107 and R109, so as to protect the MCU from being broken down by high voltage.
[0042] See also Figure 3 The current sampling circuit specifically includes: a resistor R8, a capacitor C1 and a current sampling resistor RS1. One end of the resistor R8 and one end of the current sampling resistor RS1 are both connected to the working current ILAMP of the ultraviolet lamp; the other end of the resistor R8 is connected to one end of the capacitor C1; the other end of the capacitor C1 and the other end of the current sampling resistor RS1 are both grounded; the current sampling signal V3 is derived from the common connection point of the resistor R8 and the capacitor C1.
[0043] like Figure 3 As shown, the lamp operating current ILAMP flows through the current sampling resistor RS1, generating a voltage drop at both ends of RS1, and then passes through a low-pass filter composed of a resistor R8 and a capacitor C1 to filter out high-frequency noise in the signal to obtain a clean current sampling signal V3.
[0044] See also Figure 4The current sampling signal amplification circuit specifically includes: resistor R201, TVS tube ZD2, resistor R202, resistor R203, resistor R204, resistor R205 and operational amplifier U1A. Among them, one end of the resistor R201 is respectively connected to the current sampling signal V3 and the negative electrode of the TVS tube ZD2; the positive electrode of the TVS tube ZD2 is grounded; the other end of the resistor R201 is connected to the positive input end of the operational amplifier U1A; the reverse input end of the operational amplifier U1A is respectively connected to one end of the resistor R202 and one end of the resistor R203; the other end of the resistor R202 is grounded; the output end of the operational amplifier U1A is respectively connected to the other end of the resistor R203 and one end of the resistor R204; the other end of the resistor R204 is connected to one end of the resistor R205; the other end of the resistor R205 is grounded; the ADC current signal ILAMP_ADC is derived from the common connection point of the resistor R204 and the resistor R205.
[0045] like Figure 4 As shown, the current sampling signal V3 is sent to the 3rd pin (i.e., the positive input terminal) of the operational amplifier U1A through the resistor R201, and then the operation of the post-amplifier circuit is performed. Among them, the TVS tube ZD2 is mainly used to prevent high-voltage static electricity or high voltage during the ballast starting from being transmitted to the 10th pin of the operational amplifier U1A to ensure the safety of the operational amplifier. After the signal enters the 3rd pin of the operational amplifier U1A, it will be amplified by the feedback resistor composed of resistors R202 and R203, and then output at the 1st pin (i.e., the output terminal) of the operational amplifier U1A. The high-frequency noise interference signal in the signal amplified by the operational amplifier U1A will be attenuated, and then the signal will be attenuated into a weak voltage signal ILAMP_ADC that can be directly received by the MCU through the voltage divider of resistors R204 and R205 to protect the MCU from being broken down by high voltage.
[0046] The actual working voltage and working current signals of the ultraviolet lamp are processed by the sampling circuit and the operational amplifier circuit to finally obtain high-frequency signals VLAMP_ADC and ILAMP_ADC with an amplitude of 0 to 3.3V. These two signals are then sent to the ADC pins 32 (PA00 pin) and 1 (PA01 pin) of the MCU respectively for constant power calculation of the software.
[0047] In some embodiments, to further protect Figure 5 The PA00 and PA01 pins of the MCU are not broken down by high voltage. Figure 2 The voltage sampling signal amplifying circuit shown may also include an auxiliary protection device D1, Figure 4 The current sampling signal amplifying circuit shown may also include an auxiliary protection device D2. Specifically, Figure 2 As shown, the pin 1 of the auxiliary protection device D1 is grounded, the pin 2 is connected to the power supply VCC, and the pin 3 is connected to the ADC voltage signal VLAMP_ADC, that is, connected to the PA00 pin of the MCU. Figure 4 As shown, pin 1 of the auxiliary protection device D2 is grounded, pin 2 is connected to the power supply VCC, and pin 3 is connected to the ADC current signal ILAMP_ADC, that is, connected to the PA01 pin of the MCU.
[0048] See also Figure 5 The microcontroller unit (MCU) used in the present invention, also known as a single chip microcomputer or a single chip microcomputer, appropriately reduces the frequency and specifications of the central processing unit (CPU), and integrates the memory, counter, USB, A / D conversion, UART, PLC, DMA and other peripheral interfaces, and even the LCD drive circuit on a single chip to form a chip-level computer, which performs different combination controls for different application scenarios. In practical applications, the model of the MCU can be LinkedSemi_QFN32-32P. Among them, the PA00 pin of the MCU is connected to the ADC voltage signal VLAMP_ADC. The PA01 pin of the MCU is connected to the ADC current signal ILAMP_ADC. The PB14 pin and the PB15 pin of the MCU output the PWM drive signal.
[0049] The software part of the MCU of the present invention is based on the ADC voltage and current signals VLAMP_ADC and ILAMP_ADC collected in real time by the single-chip microcomputer, and the actual working voltage and working current value of the lamp tube are obtained by the impulse area equivalent method and interpolation operation. Specifically, the single-chip microcomputer uses the analog-to-digital conversion function to collect the ADC current signal ILAMP_ADC in real time through the ADC5 channel of the PA01 pin, and collects the ADC voltage signal VLAMP_ADC in real time through the ADC4 channel of the PA00 pin. In order to ensure the authenticity and stability of the data, a certain number of VLAMP_ADC and ILAMP_ADC data are collected continuously (for example, 1000 times), the maximum and minimum values are removed, and then the average value is taken as the result of one ADC data, thereby reducing the error and improving the data collection accuracy. Subsequently, the maximum / minimum values of the collected ADC voltage and current signals are used, combined with the maximum / minimum values of the actual working voltage and working current defined in advance, and the real-time working voltage and working current values of the lamp tube are obtained through interpolation operation.
[0050] Among them, the impulse-area equivalent method used by the MCU software is actually a method for collecting and calculating ADC data. Because the ADC voltage / current signal that enters the MCU after being reduced by the circuit is still alternating current, it is an irregular voltage value. It is inaccurate to collect the voltage value of only one point. Therefore, the voltage values of 5000 points within 200ms can be continuously collected to find the average value, and then the average value is multiplied by 1.414 to get the relatively accurate voltage / current effective value within 200ms. This effective value is the value calculated by the impulse-area equivalent method, and then this value is used to obtain the actual working voltage and current values of the lamp tube in these 200ms through interpolation operations.
[0051] The interpolation operation is to first set the reference thresholds of VLAMP_ADC and ILAMP_ADC corresponding to the minimum power and maximum power inside the MCU, and then compare the collected VLAMP_ADC and ILAMP_ADC values with the reference thresholds accessed by the internal registers of the MCU, and calculate the actual power at this moment based on the linear ratio.
[0052] More specifically, the interpolation operation is a linear operation formula that will calculate the linearly corresponding output value based on the input value. In the present invention, the input value is the ADC voltage / current signal value collected by the MCU, and the output value is the actual working voltage / current value of the lamp. The minimum / maximum value of the input value and the corresponding minimum / maximum output value have been written into the MCU, so after the MCU collects the ADC voltage / current signal value, the actual working voltage / current value can be obtained by calculation. For example, if the ADC maximum value written in the MCU is 1V, and the actual working voltage maximum value is 100V, then when the collected ADC voltage signal is 0.1V, the corresponding actual working voltage is 10V, and the same is true for the current.
[0053] After calculating the linear actual working voltage / current value through the ADC voltage / current signal value, the real-time power value can be obtained by multiplying the actual working voltage value and the working current value. Then, the PID (proportional-integral-derivative control) algorithm is introduced to compare the real-time power value with the target power value set by the software, and the PWM drive signal frequency is adjusted in real time to make the actual output power of the circuit dynamically adjusted to be equal to the set target output power, thereby achieving stable control of the working power.
[0054] See also Figure 6The current feedback regulation circuit specifically includes: resistor R304, resistor R305, chip U301, diode D302, resistor R317, switch tube Q301, switch tube Q302, resistor R302, resistor R303, capacitor C304, resistor R306, resistor R308, inductor L301A, capacitor C303 and capacitor C305. Among them, one end of the resistor R304 is connected to the high level PWM_H of the PWM drive signal; one end of the resistor R305 is connected to the low level PWM_L of the PWM drive signal; the other end of the resistor R304 is connected to the HIN pin of the chip U301; the other end of the resistor R305 is connected to the LIN pin of the chip U301; the VCC pin of the chip U301 is respectively connected to the 12V power supply and the positive electrode of the diode D302; the negative electrode of the diode D302 is connected to one end of the resistor R317; the other end of the resistor R317 is respectively connected to the VB pin of the chip U301 and one end of the capacitor C304; the COM pin of the chip U301 is grounded; the HO pin of the chip U301 is connected to one end of the resistor R302; the gate of the switch tube Q301 is respectively connected to the other end of the resistor R302 and the one end of the resistor R303; the drain of the switch tube Q301 is connected to the power supply Vdc1; the source of the switch tube Q301 is respectively connected to the other end of the capacitor C304, the other end of the resistor R303, one end of the inductor L301A, the VS pin of the chip U301 and the drain of the switch tube Q302; the LO pin of the chip U301 is connected to one end of the resistor R306; the other end of the resistor R306 is respectively connected to the gate of the switch tube Q302 and one end of the resistor R308; the source of the switch tube Q302 and the other end of the resistor R308 are both grounded; the other end of the inductor L301A is connected to one end of the capacitor C303; the other end of the capacitor C303 is connected to one end of the capacitor C305; the other end of the capacitor C305 is grounded; the ultraviolet lamp is connected in parallel with the capacitor C305.
[0055] like Figure 5 and Figure 6 As shown, the PWM drive signal is output from the PB14 and PB15 pins of the MCU to drive Figure 6 The two switch tubes Q301 and Q302 in the circuit topology change the current provided to the lamp by the ballast by adjusting the switching frequency of Q301 and Q302. Due to the change of the working current of the lamp, the tube voltage of the lamp will also change, and then Figure 1 and Figure 3 The sampling circuit shown is used to collect the working current and working voltage values of the lamp tube in real time. Figure 5The MCU in the circuit will calculate in real time whether the product of the working current and working voltage of the lamp is equal to the preset target power value. If not, the MCU will continuously adjust the frequency of the PWM drive signal output by PB14 and PB15, so as to finally realize that the real-time power value of the lamp is equal to the preset target power value, thereby achieving constant power output. In practical applications, the switch tubes Q301 and Q302 can use MOSFET. Chip U301 is a MOSFET gate driver chip, which is used to control the switching of Q301 and Q302, and finally realize the regulation of output voltage and current.
[0056] The present invention proposes a signal acquisition, amplification and attenuation circuit for high-frequency and high-voltage voltage signals and current signals, uses the analog-to-digital conversion function (ADC) of a single-chip microcomputer to directly acquire AC voltage and AC current, and uses the impulse area equivalent method to directly calculate the effective value of the high-frequency AC voltage / current. The PID algorithm is used to ensure that the output power is constant, thereby achieving the purpose of constant power output.
[0057] The constant power output scheme of the electronic ballast proposed in the present invention collects the output current and voltage of the ballast in real time, performs closed-loop control of the circuit, accurately calculates the output power of the ballast and dynamically adjusts the circuit in real time. Regardless of the actual tube voltage of the load ultraviolet lamp tube, the constant power output circuit of the electronic ballast described in the present invention can output a fixed power according to the set constant power, which can ensure that the output power of the ballast will not exceed the power, ensure the stable and reliable operation of the electronic ballast, improve the working safety of the ballast, and extend the service life of the ballast.
[0058] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A constant power output circuit of an electronic ballast for an ultraviolet lamp, characterized in that: include: Voltage sampling circuit, voltage sampling signal amplifying circuit, current sampling circuit, current sampling signal amplifying circuit, MCU and current feedback regulating circuit; The voltage sampling circuit is used to sample the working voltage of the ultraviolet lamp to obtain a voltage sampling signal; The voltage sampling signal is processed by the voltage sampling signal amplifying circuit to obtain an ADC voltage signal; The current sampling circuit is used to sample the working current of the ultraviolet lamp to obtain a current sampling signal; The current sampling signal is processed by the current sampling signal amplifying circuit to obtain an ADC current signal; The MCU uses the impulse area equivalent method and interpolation operation to calculate the real-time power value of the ultraviolet lamp according to the ADC voltage signal and the ADC current signal; the MCU also introduces a PID algorithm to compare the real-time power value with the set target power value, and adjusts the frequency of the output PWM drive signal in real time according to the comparison result; The current feedback regulation circuit adjusts the operating current and the operating voltage of the ultraviolet lamp in real time according to the PWM driving signal output by the MCU, so that the real-time power value of the ultraviolet lamp is consistent with the target power value, thereby achieving constant power output.
2. The electronic ballast constant power output circuit for ultraviolet lamp according to claim 1, characterized in that: The voltage sampling circuit specifically includes: a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a resistor R7; One end of the resistor R1 is connected to the working voltage VLAMP of the ultraviolet lamp; the other end of the resistor R1 is connected to the resistor R2; the resistors R1, R2, R3, R4 and R5 are connected in series in sequence; one end of the resistor R5 is connected to the resistor R4; the other end of the resistor R5 is grounded; one end of the resistor R6 is connected to the common connection point of the resistor R3 and the resistor R4; the other end of the resistor R6 is connected to one end of the resistor R7; the other end of the resistor R7 is grounded; the voltage sampling signal V2 is derived from the common connection point of the resistor R6 and the resistor R7.
3. The electronic ballast constant power output circuit for ultraviolet lamp according to claim 2, characterized in that: The voltage sampling signal amplifying circuit specifically includes: a resistor R101, a resistor R102, a resistor R103, a resistor R104, a resistor R105, a resistor R106, a resistor R107, a resistor R109, a TVS tube ZD1 and an operational amplifier U1C; One end of the resistor R101 is connected to the voltage sampling signal V2; the other end of the resistor R101 is respectively connected to one end of the resistor R102 and one end of the resistor R103; the other end of the resistor R103 is respectively connected to one end of the resistor R104 and the negative electrode of the TVS tube ZD1; the positive electrode of the TVS tube ZD1 and the other end of the resistor R102 are both grounded; the other end of the resistor R104 is connected to the positive input end of the operational amplifier U1C; the reverse input end of the operational amplifier U1C is respectively connected to one end of the resistor R105 and one end of the resistor R106; the other end of the resistor R105 is grounded; the other end of the resistor R106 is respectively connected to the output end of the operational amplifier U1C and one end of the resistor R107; the other end of the resistor R107 is connected to one end of the resistor R109; the other end of the resistor R109 is grounded; the ADC voltage signal VLAMP_ADC is derived from the common connection point of the resistor R107 and the resistor R109.
4. The electronic ballast constant power output circuit for ultraviolet lamp according to claim 3, characterized in that: The current sampling circuit specifically includes: a resistor R8, a capacitor C1 and a current sampling resistor RS1; One end of the resistor R8 and one end of the current sampling resistor RS1 are both connected to the working current ILAMP of the ultraviolet lamp; the other end of the resistor R8 is connected to one end of the capacitor C1; the other end of the capacitor C1 and the other end of the current sampling resistor RS1 are both grounded; the current sampling signal V3 is derived from the common connection point of the resistor R8 and the capacitor C1.
5. The electronic ballast constant power output circuit for ultraviolet lamp according to claim 4, characterized in that: The current sampling signal amplifying circuit specifically includes: a resistor R201, a TVS tube ZD2, a resistor R202, a resistor R203, a resistor R204, a resistor R205 and an operational amplifier U1A; One end of the resistor R201 is respectively connected to the current sampling signal V3 and the negative electrode of the TVS tube ZD2; the positive electrode of the TVS tube ZD2 is grounded; the other end of the resistor R201 is connected to the positive input end of the operational amplifier U1A; the reverse input end of the operational amplifier U1A is respectively connected to one end of the resistor R202 and one end of the resistor R203; the other end of the resistor R202 is grounded; the output end of the operational amplifier U1A is respectively connected to the other end of the resistor R203 and one end of the resistor R204; the other end of the resistor R204 is connected to one end of the resistor R205; the other end of the resistor R205 is grounded; the ADC current signal ILAMP_ADC is derived from the common connection point of the resistor R204 and the resistor R205.
6. The electronic ballast constant power output circuit for ultraviolet lamp according to claim 5, characterized in that: The amplitudes of the ADC voltage signal VLAMP_ADC and the ADC current signal ILAMP_ADC are between 0V and 3.3V.
7. The electronic ballast constant power output circuit for ultraviolet lamp according to claim 5, characterized in that: The PA00 pin of the MCU is connected to the ADC voltage signal VLAMP_ADC; the PA01 pin of the MCU is connected to the ADC current signal ILAMP_ADC; the PB14 pin and the PB15 pin of the MCU output the PWM drive signal.
8. The electronic ballast constant power output circuit for ultraviolet lamp according to claim 7, characterized in that: The current feedback regulation circuit specifically includes: a resistor R304, a resistor R305, a chip U301, a diode D302, a resistor R317, a switch tube Q301, a switch tube Q302, a resistor R302, a resistor R303, a capacitor C304, a resistor R306, a resistor R308, an inductor L301A, a capacitor C303 and a capacitor C305; One end of the resistor R304 is connected to the high level PWM_H of the PWM drive signal; one end of the resistor R305 is connected to the low level PWM_L of the PWM drive signal; the other end of the resistor R304 is connected to the HIN pin of the chip U301; the other end of the resistor R305 is connected to the LIN pin of the chip U301; the VCC pin of the chip U301 is respectively connected to the 12V power supply and the positive electrode of the diode D302; the negative electrode of the diode D302 is connected to one end of the resistor R317; the other end of the resistor R317 is respectively connected to the VB pin of the chip U301 and one end of the capacitor C304; the COM pin of the chip U301 is grounded; the HO pin of the chip U301 is connected to one end of the resistor R302; the gate of the switch tube Q301 is respectively connected to the other end of the resistor R302 and the one end of the resistor R303; the drain of the switch tube Q301 is connected to the power supply Vdc1; the source of the switch tube Q301 is respectively connected to the other end of the capacitor C304, the other end of the resistor R303, one end of the inductor L301A, the VS pin of the chip U301 and the drain of the switch tube Q302; the LO pin of the chip U301 is connected to one end of the resistor R306; the other end of the resistor R306 is respectively connected to the gate of the switch tube Q302 and one end of the resistor R308; the source of the switch tube Q302 and the other end of the resistor R308 are both grounded; the other end of the inductor L301A is connected to one end of the capacitor C303; the other end of the capacitor C303 is connected to one end of the capacitor C305; the other end of the capacitor C305 is grounded; the ultraviolet lamp lamp is connected in parallel with the capacitor C305.
