This article introduces the working principle and implementation of a 4-level intelligent dimmable electronic ballast circuit using the Microchip microcontroller PIC12F629 and the IR company IRS2530D .
1 About IRS2530D and PIC12F629
1) Introduction to IRS2530D
IRS2530D adopts 8-pin DIP or 8-pin SOIC package. The pin diagram of IRS2530D is shown in Figure 1, the outer package diagram of IRS2130D is shown in Figure 2, the internal function block diagram of IRS2530D is shown in Figure 3, and the pin functions of IRS2530D are shown in Table 1.
Figure 1 IRS2530D pin diagram
Figure 2 IRS2130D package diagram
Figure 3 Internal functional block diagram of IRS2530D
Table 1 Pin functions of IRS2530D
2) Introduction to PIC12F629
The pin diagram of PIC12F629 is shown in Figure 4, and the pin function table of PIC12F629 is shown in Table 2.
Figure 4 PIC12F629 pin diagram
Table 2 PIC12F629 pin function table
The circuit working principle block diagram is shown in Figure 5, and the circuit working principle diagram is shown in Figure 6. The dimming control reference voltage is provided by the DIM pin of IC1 (IRS2530D), and the dimming control voltage is output by the GP2 pin of the microcontroller IC2 (PIC12F629). The GP pin of the microcontroller IC2 (PIC12F629) is a general I/O pin, and the function of the I/O pin can be set to high-impedance input or CMOS output through software. The dimming control square wave pulse voltage output by the GP2 pin of the microcontroller IC2 (PIC12F629) can obtain the DC dimming control voltage required by IRS2530D after RC filtering. In this circuit, the GP2 pin can output dimming control square wave pulse voltages of 4 pulse widths (pulse duty cycles). The larger the pulse duty cycle, the higher the DC dimming control level generated. [page]
Figure 5 Circuit working principle box
Figure 6 Circuit working principle diagram
In the electronic ballast circuit shown in Figure 6, the circuit load is a 25W CFL lamp load, which can achieve dimming control. The EMI filter in the circuit is used to filter out high-frequency interference signals from the AC mains power supply. The DC dimming control level is higher in the microcontroller PIC12F629.
In the electronic ballast circuit shown in Figure 6, the circuit load is a 25W CFL lamp load, which can achieve dimming control. The EMI filter in the circuit is used to filter out high-frequency interference signals from the AC mains power supply. The microcontroller PIC12F629 contains an EEPROM, which can be used to store the latest dimming setting level value before the power supply is cut off. This ensures that the electronic ballast can re-light the lamp load with the stored lamp brightness setting value after power is re-applied. The circuit flow chart is shown in Figure 7.
Figure 7 Circuit flow chart
The GP1 input pin of the microcontroller IC2 (PIC12F629) is connected to the 220V AC input mains power supply through a filter circuit with a very short delay time, which is used to quickly detect the connection or disconnection of the AC input mains power supply. When the 220V AC input mains power supply is disconnected, the 5V voltage stored on the capacitor C1 that powers IC2 is sufficient to power IC2 (PIC12F629) for 1s. When the 220V AC input mains power supply is disconnected, IC2 detects this rapid change and starts the timer. If the 220V AC input mains power supply is restored within 1s, the dimming level is reduced by 1 level. If the original dimming level is the lowest value, the dimming level becomes the maximum value. If the 220V AC input mains power supply is disconnected for more than 1s, the dimming level of the electronic ballast circuit remains unchanged. When the voltage on capacitor C1 is discharged to a value lower than the minimum operating voltage VDD of microcontroller IC2 (PIC12F629), microcontroller IC2 (PIC12F629) is in the shutdown state. [page]
The circuit board diagram and the actual diagram of the 4-level dimmable fluorescent lamp intelligent electronic ballast using IRS2530D are shown in FIG8 , FIG9 , and FIG10 , respectively.
Figure 8 Actual picture
Figure 9 Silkscreen layer diagram
Figure 10 Printed circuit board diagram
Previous article:Analysis of design strategies for multi-rate electric energy meters
Next article:Study on time-sharing control of temperature and humidity
Recommended ReadingLatest update time:2024-11-16 14:45
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Basic knowledge of MCU
- Writing Verilog Code for AD Sampling FPGA Program
- capacitance
- The basic principles and methods of SRIO error handling
- FPGA button problem
- How to effectively choose a lithium battery protection board
- About continue in for loop
- ARM programming mode and some conceptual understanding
- Detailed explanation and selection of pull-up resistors and pull-down resistors for microcontrollers
- Squelch Tuning Audio Switching/Mixing Circuit Diagram