Design of LED dimming circuit based on LM3402

Publisher:cannon928Latest update time:2011-09-12 Source: 21icKeywords:LM3402  LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

With the advent of the energy crisis, efficient lighting technology has received widespread attention. Light Emitting Diode (LED) is a device that uses semiconductor PN junction or similar structure to convert electrical energy into light energy. With its advantages of high efficiency, low power consumption, low voltage drive, and long service life, it has been widely used in many application fields, such as various consumer electronic products - mobile phones, PDAs, LCD TV backlight sources, etc. High-brightness LED is an ideal alternative to traditional incandescent lamps, because the former has a much higher life and efficiency than the latter, and unlike compact fluorescent bulbs, these LEDs can work at low temperatures. In order to improve the performance and application scope of LED lighting circuits, this article will introduce a cost-effective high-brightness white light LED (HBLED) dimming method.
For HBLD, the on-state voltage is as high as 3 to 5 V under high illumination working conditions, and the operating current can reach 0.15 to 3 A. The brightness of the LED is basically proportional to the size of the forward current flowing through the LED, so one of the key technologies for LED application is to provide a power supply or drive circuit that is compatible with its characteristics. There are two basic dimming methods for high-brightness LEDs. The first is the PWM (pulse width modulation) dimming method, which turns the LED on and off at different duty cycles from 0% to 100% at some frequency greater than 200 Hz. The LED operates at full current during the on period, and no current flows through the LED during the off period, which can ensure color consistency. The second method is to control the amount of current flowing through the LED string, which may cause the voltage of the LED string to drop and cause slight color differences. However, if you observe an incandescent lamp working with the dimmer turned on, you will also see obvious color changes.
High-brightness white light diodes are generally driven by constant current power supplies. Because as the LED gradually heats up, its voltage drop will decrease, and if the LED string is powered by a constant voltage power supply, the power supply will often continue to provide too much current, causing the output voltage to increase until the power supply reaches the current limit or the LED fails. Pulse width modulation is to switch LEDs at a higher frequency. The switching frequency is beyond the range that people can generally perceive, giving people the illusion that the LED is always on. Pulse width modulation is now widely used to adjust the brightness of LEDs. In some applications, the dimming ratio can reach 5,000:1. Commonly used LED drivers include buck, boost, and buck-boost. LM3402 is a buck regulator derived from a controllable current source. The input voltage range covers the entire automotive application field. The built-in MOS tube can drive up to 5 LEDs. It has a high cost-effectiveness, a wide acceptance field, and a simple and practical circuit. It is a leader among many LED driver ICs.

1 System structure
1.1 Overall structure
Since the luminous efficiency of a single HBLED cannot fully meet the brightness requirements, multiple LEDs are needed to form an array. One LM3402 drives a string of five high-brightness light-emitting diodes (HBLE-Ds) with constant current. It is controlled by a microprocessor P89LPC932 with PWM pulse width modulation, which can achieve stepless adjustment. The current flowing through each HBLED is about 120-350 mA.
1.2 Human-machine interface
There are three buttons (off, brighten and dim buttons) and four ordinary light-emitting diode indicators on the operation panel. Pressing the off button will turn off the high-brightness light-emitting diode string HBLEDs. Pressing this button again will return to the original brightness display state. It can also return to the set brightness state after power failure or restart; the brighten and dim buttons are used to change the brightness of HBLEDs, corresponding to 4 indicators, each of which has two levels of bright and dark indication, so that 8 levels of brightness can be indicated.
1.3 Driving Circuit
The driving circuit is the core of the entire LED dimming circuit, which is mainly composed of a microprocessor P89LPC932 and a LM2402 constant current voltage regulator circuit. The LM3402 is a step-down regulator derived from a controllable current source, which can drive a series of high-power, high-brightness light-emitting diodes and can accept an input voltage range of 6 to 42V. When using the pin-compatible LM3402HV, the upper limit of the input voltage can reach 75V. The output voltage of the converter is adjusted as needed to maintain a constant current level through the LED array. As long as the combined feed-forward voltage of the HBLEDs does not exceed Vo(MAX), the circuit can maintain the regulated current in any number of LEDs. Figure 1 is a typical application circuit diagram of LM3402, where RSNS is the current setting resistor, the average current IF≈0.2/RSNS, and the RON value is related to the number of LEDs in the light-emitting diode string. When there are more than 5 LEDs, the value can be 300KΩ. After testing, when the constant current nominal value is 250mA (RSNS=0.8Ω), the current fluctuation is within ±10 mA.

1.JPG

The logic of DIM1 is direct, so when the DIM1 port is high, the LM3402 will output a stable current; when the DIM1 port is low, any current output is prohibited. Therefore, the LED array can be dimmed by inputting a PWM signal to the DIM1 port of the LM340 2. The maximum logic low level of the PWM signal should be 0.8 V and the minimum logic high level should be 2.2 V. The DIM1 port is suspended or connected to a logic high level. Once the input reaches 6 V, the LM3402 starts to operate.
The OFF port is grounded to put the LM3402 in a low-power shutdown state (typical value is 90μA). During normal operation, this port should always remain in an open circuit state.
P89LPC932 is a low-power single-chip microprocessor produced by Philips. The power supply voltage is 3.3 V. It can operate with low power consumption and is suitable for many occasions requiring high integration and low cost. It can meet many performance requirements. P89LPC932 uses a high-performance processor structure, and the instruction execution time only takes 2 to 4 clock cycles, which is 6 times that of the standard 80C51 device. P89LPC932 integrates many system-level functions, which can greatly reduce the number of components, the area of ​​the circuit board and the cost of the system. It has 2 timers inside and can be used as a PWM generator with 256 timer clock cycles. The electrical schematic diagram of the LED dimming circuit is shown in Figure 2.

2.JPG

2 Program Design
2.1 Program Structure
The controller program realizes the switch or brightness adjustment according to the input status of the three buttons, and displays the brightness status on the four indicator lights. The brightness status n (PWM duty cycle) can be saved at any time by using the EEPROM unit integrated in the microprocessor itself. The main program flow chart is shown in Figure 3.

3.JPG

2.2 PWM generation
The current of the high-brightness white light diode string HBLEDs is mainly PWM-regulated by the DIM port of the LM3402. The proportion of the actual current to the set current value depends on the duty cycle of the PWM. If the frequency of the PWM signal falls exactly between 200 Hz and 20 kHz, the inductance and output capacitor around the white light LED driver will generate audible noise to the human ear, so the low frequency band below 20 kHz should be avoided when designing.
The PWM output of the internal timer TO/T1 of the microprocessor P89LPC932 occupies the same pin as the count input and timer trigger output, and automatically triggers the port output when the timer overflows. This function enables timers 0 and 1 respectively through the control bits ENT0 and ENT1 in the AUXR1 register. When this mode is turned on, the output of the port is logic 1 before the first timer overflows. In order for this mode to take effect, the C/T bit must be cleared to select PCLK as the clock source for the timer. The reference procedure for the timer initialization setting is as follows:
4.JPG
duty cycle = 256-TH1, the overflow of timer 1 will cause the P1.2 or P0.7 port to flip, so the output frequency is 1/2 of the overflow rate of timer 1.
2.3 Energy-saving mode
According to the test, under the same illumination requirements, the power consumption of the LED dimming control system is reduced by more than 90% compared with the incandescent lamp. Of course, in order to further reduce energy consumption, the exploration of energy-saving methods is still of great significance. Most of the time, HBLEDs may be off. If the control system is in standby or power-off state, the power consumption can be reduced to the minimum; or the OFF port is grounded, and the LM3402 can be placed in an extremely low power shutdown state. When the power control register PCONA of the microprocessor P89LPC932 is set to 0xFF, the external function module is powered off; when the power control register PCON is set to 03H, the microprocessor can be completely powered off. It can only be awakened when an interrupt is triggered, and then the external function module is powered on, and the microprocessor starts working. The microprocessor is mainly awakened by keyboard interrupt. The reference program of keyboard interrupt is as follows:
5.JPG

3 Conclusion
This paper introduces an LED dimming control system based on the constant current drive circuit LM3402. The system uses the microprocessor P89LPC932 PWM to control the output voltage, and the user can set the brightness through the button. Due to the use of low-power microprocessors and the application of a variety of energy-saving methods, the power consumption of the dimming system is extremely low, which can be applied to most LED lighting energy-saving transformation occasions, just in line with the development needs of the low-carbon economy. With the continuous improvement of LED luminous efficiency, the improvement of packaging technology, the continuous increase in service life, and the reduction of production costs, coupled with the improvement of drive circuit performance, HBLED has a very broad promotion prospect in the lighting market. At present, this technology has been put into mass production and has achieved good social benefits.

Keywords:LM3402  LED Reference address:Design of LED dimming circuit based on LM3402

Previous article:LED infrared light source is used in security infrared surveillance camera projects
Next article:Design and research of double-row bistable LED display unit

Recommended ReadingLatest update time:2024-11-17 07:40

4. The STC15W408AS microcontroller lights up the first LED
The STC15W408AS microcontroller has 14 I/O ports. All of its I/O ports can be configured into 4 types by software. The 4 types are: quasi-bidirectional port/weak pull-up (standard 8051 output mode), push-pull output/strong pull-up, high-impedance input (current can neither flow in nor out) or open-drain output functio
[Microcontroller]
4. The STC15W408AS microcontroller lights up the first LED
Detailed explanation of the main technical issues of LED electronic display screens
  Electronic display LED display LED   First of all, high light efficiency: The light efficiency of LED electronic display screens can be said to be an important indicator of energy saving. At present, my country still needs to strengthen its light efficiency. To truly achieve high light efficiency, we need to solve r
[Power Management]
LED packaging technology and structure
LED packaging technology is mostly developed and evolved on the basis of discrete device packaging technology, but it has great particularity. Generally speaking, the die of discrete devices is sealed in the package body, and the main function of the package is to protect the die and complete the electrical intercon
[Power Management]
51 single chip microcomputer lights up LED lights and running lights
2-1 Light up an LED  1. First, create a new project in Keil. It should be noted that the written projects can be stored in one place, which is convenient for searching. Then right-click to add a new file   2. First right-click the code line and reference the file  3. Then write the main function  4. Take lighti
[Microcontroller]
51 single chip microcomputer lights up LED lights and running lights
Design of universal intelligent switch based on LED
1. Introduction With the development of China's economy and society, lighting electricity consumption has accounted for 10% to 12% of the total electricity consumption. Lighting energy saving has become an important aspect of energy conservation and environmental protection today. The purpose of lighting energy savin
[Power Management]
Design of universal intelligent switch based on LED
Design of high-efficiency LED backlight driver power supply solution
At present, the LCD screen backlight of portable electronic products is mainly based on white light LED. The brightness of white light LED is proportional to the current. AP3036 provides a series LED architecture, which can provide the voltage required for up to 8 white light LEDs in series. The biggest advantage of
[Power Management]
Design of high-efficiency LED backlight driver power supply solution
ADALM2000 Experiment: LED as a Light Sensor
Target The goal of this experiment is to explore the use of a Light Emitting Diode (LED) as a photodiode light sensor and NPN and Darlington NPN transistors as an interface circuit for the light sensor. Background When a photodiode is exposed to light, it generates a curren
[Test Measurement]
ADALM2000 Experiment: LED as a Light Sensor
【Technical knowledge】Analysis of LED dead light from LED packaging process
  LED dead light phenomenon may be encountered by packaging enterprises, downstream finished product enterprises, units and individuals who use it. The reasons are nothing more than two situations: First, the leakage current of LED is too large to cause PN junction failure, so that the LED lamp does not light up, whi
[Power Management]
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号