LED is a solid-state electric light source and a semiconductor lighting device. Its electrical characteristics are highly discrete. It has the characteristics of small size, high mechanical strength, low power consumption, long life, easy adjustment and control, and no pollution. It is a new light source product with great development prospects. There are two ways to implement LED dimming: analog dimming and digital dimming. Analog dimming is achieved by changing the current in the LED circuit; digital dimming is also called PWM dimming. It changes the conduction time of the forward current by turning on and off the LED through the PWM wave to achieve the effect of brightness adjustment. Analog dimming adjusts the brightness of the LED by changing the current in the LED circuit. The disadvantage is that the adjustable gear is limited within the adjustable current range; PWM wave dimming can arbitrarily change the LED on time by changing the duty cycle of the high and low levels, thereby increasing the gears of brightness adjustment. This paper intends to use the two methods together to achieve the effect of adjusting the brightness of the LED.
1 LED dimming method
Analog dimming is achieved by changing the current in the LED circuit. The power supply voltage remains unchanged. By changing the resistance value of R, the current in the circuit is changed, thereby changing the LED brightness. Many other analog dimming methods are extensions of this method. Its advantage is that the current can be continuous, but the adjustable current range is often limited by hardware, and there are not many adjustment gears. This method is not ideal for high-precision lighting equipment that requires brightness sensitivity.
Digital dimming, also known as PWM dimming, uses PWM waves to turn LEDs on and off to change the conduction time of the forward current to achieve the effect of brightness adjustment. This method is based on the fact that the human eye is not sensitive enough to brightness flicker, so the load LED is sometimes bright and sometimes dark. If the frequency of brightness and darkness exceeds 100 Hz, the human eye sees the average brightness, not the LED flickering. PWM adjusts the brightness by adjusting the time ratio of brightness and darkness. In a PWM cycle, because the human eye is sensitive to light flickering greater than 100 Hz, the perceived brightness is a cumulative process, that is, the greater the proportion of the bright time in the entire cycle, the brighter the human eye feels. However, for some high-frequency sampling devices, such as high-frequency sampling cameras, it is possible to capture images of the LED when it is dark during sampling. Therefore, this paper combines analog and digital to design an LED drive circuit.
2 PWM Regulation Method Using Inductor
2.1 Driving Circuit
In the circuit, when current flows through the inductor, the inductor will generate a magnetic field, that is, part of the current is converted into magnetic energy and "stored" in the inductor; when the current is no longer flowing through the inductor, the inductor will release the magnetic energy in the loop through the current. This is also the reason why the current on the inductor cannot change suddenly. Based on this "charging and discharging" principle of the inductor, it can be used to average the discontinuous current generated in PWM wave dimming. Equation (1) and Equation (2) are the charging and discharging process of the LR circuit and the relationship between current and time.
Among them, If is the final stable current, I0 is the initial discharge current, and τ (τ=L/R, L is the inductance value, R is the loop resistance) is the time constant of the LR circuit.
Figure 1 shows the driving circuit. The selection of inductance value and PWM wave frequency is very important in this driving circuit. The C8051330 chip is selected as the output of the PWM wave, and the timer is used to flip the high and low level time to control the duty cycle of the PWM wave.
Figure 1 Driving circuit
It is necessary to ensure that the PWM cycle is less than the τ time of the inductor, because if the PWM cycle is greater than τ, it is very likely that when the PWM duty cycle changes, the current in the circuit can reach the saturated DC current of the inductor, affecting the LED current regulation. When the clock frequency of C8051330 is 25 MHz, the selection of the PWM cycle has a great influence on the current change gear. If the cycle is larger, the PWM duty cycle has more gears, and vice versa. It is planned to use a duty cycle of 256 gears, so the frequency of the PWM wave should be selected below 100kHz, that is, the cycle is more than 10 μs, and the DC inductor is 10Ω. At this time, the inductance value should be selected to be greater than 0.1 mH. Figure 2 shows the simulation results of the circuit current value when the PWM frequency is 100kHz, the duty cycle is 90%, and the inductance is 0.1 mH, 1 mH and 40 mH.
(a) Current versus time when the inductance is 0.1mH
(b) Current versus time when the inductance is 1mH
(c) Current versus time when the inductance is 40mH
(d) Partially enlarged view of curve c
Figure 2. Current variation over time for different inductance values.
Through simulation, a 40 mH inductor can be preliminarily selected as the driving circuit. Figure 3 is a voltage waveform captured by an oscilloscope. This voltage is the voltage on a 20 Ω resistor in series in the circuit. After stabilization, the voltage is 340 mV, that is, the current in the circuit is 17 mA. Because there is current loss in the actual circuit, the actual current value is smaller than the simulated current value, but the overall current change trend is basically consistent with the simulation.
Figure 3 Voltage change of series resistor in a circuit with an inductance of 40mH
2.2 Relationship between current and PWM duty cycle
Figure 4 shows the charging and discharging curves of the LED driving circuit, where Imax is the maximum current of the circuit under DC conditions. Assuming that the current value in the circuit fluctuates around the current value at time t1 on the charging curve when the PWM duty cycle is m, the following conditions should be met: the slope of the charging curve at point t is k1, the slope of the discharging curve at point a is k2, and k1mT=|k2|(1-m)T should be met. Therefore, the current in the driving circuit is maintained at a constant value with slight fluctuations.
Figure 4 Schematic diagram of RL circuit charge and discharge curve
From the analysis, it can be seen that after starting the driving circuit, the current reaches a relatively stable value after several charge and discharge cycles, and then the current fluctuates around this stable value. As shown in Figure 5, for each cycle, the slope of the current curve is constantly decreasing during charging; the absolute value of the slope of the current curve is constantly increasing during discharging; when the conditions of Figure 4 are met, the current is relatively stable. It can be concluded that when the LR circuit time constant τ is constant, the relationship between the inductor current and the PWM duty cycle is:
Where m is the PWM duty cycle.
Figure 5 is the experimental result curve of the inductor current changing with the PWM duty cycle. This curve is measured when the inductance value is 40 mH and a 22 Ω resistor is connected in series in the circuit. By analyzing the theoretical formula and experimental results, it can be found that when the PWM duty cycle is 36%~86%, the current value on the inductor changes linearly with the PWM wave duty cycle, and the change trend is consistent with the theoretical derivation.
For the high duty cycle section, since the slope of the charging curve has become almost constant, the current value also tends to the maximum value. In the low duty cycle section, due to the short charging time and large losses in the circuit, the current value on the inductor also tends to zero.
Figure 5 Experimental results of inductor current changing with PWM duty cycle
2.3 PWM duty cycle adjustment method
The computer is used to control the change of PWM duty cycle online through RS-485, and 256 gears are selected according to needs. Each time, a two-byte hexadecimal command is sent to RS-485 by the computer to change the duty cycle generated by C8051, thereby changing the brightness of the LED.
The main functions of the RS-485 interface circuit are: to convert the transmission signal TX from the microprocessor into a differential signal in the communication network through the "transmitter", and to convert the differential signal in the communication network into an RX signal received by the microprocessor through the "receiver". At any time, the RS-485 transceiver can only work in one of the two modes of "receiving" or "transmitting". Therefore, the circuit shown in Figure 6 is used, and the R/D signal output by the microprocessor directly controls the transmitter/receiver enable of the SN75LBC184 chip: when the R/D signal is "1", the transmitter of the SN75LBC184 chip is valid and the receiver is disabled. At this time, the microprocessor can send data bytes to the SN75LBC184 bus; when the R/D signal is "0", the transmitter of the SN75LBC184 chip is disabled and the receiver is valid. At this time, the microprocessor can process data bytes from the RS-485 bus. In this circuit, only one of the "receiver" and "transmitter" in the SN75LBC184 chip can be in working state at any time.
Figure 6 RS-485 circuit
Whether from the perspective of simulation or experiment, adding an inductor to the PWM dimming drive circuit can successfully "average" the current that varies widely in the circuit and stabilize it near a value that can be calculated theoretically. This article combines the common advantages of analog dimming and digital dimming, and can use RS-485 to change the duty cycle of the PWM wave through the functional relationship between the PWM wave and the current on the LED in the drive circuit, so that the LED has an ideal current value, and the brightness of the LED can be changed in real time and meticulously using a computer.
Previous article:NXPSSL21083 High Voltage 8WLED Driver Solution
Next article:Brand strategy is the key to enter the OLED lighting panel market
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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