LEDS

LEDs

Date Published:
Last Modified:

Child Pages

  • LT3745 Design Guide
  • Overview

    There is a neat little LED Wizard from LED Centre for working out what parallel/series combination of LED’s you should use given a certain input voltage and number of LEDs you want in your array.

    A diffused-lens, red, 5mm through-hole LED.

    A diffused-lens, red, 5mm through-hole LED.

    Important Parameters

    NameParameter SymbolUnitsDescription
    Forward Current\(I_F\)mA
    Forward Surge Current\(I_{FM}\)mANormally rated at a fixed temperature, duty cycle, and pulse length.
    Forward Voltage\(V_F\)VRated at a fixed forward current.
    Reverse Voltage\(V_R\)V
    Dominant Wavelength\(\lambda_{dom}\)nmThis is the wavelength which determines the "colour" you see.

    Limiting The LED Current

    A common mistake when working out the value of a current limiting LED resistor is to forget to include the forward voltage drop of the diode into the equations. This has a bigger effect when running the LED at lower voltages. The equation for working out the resistance needed to limit the current in an LED is:

    $$R = \frac{V_{dd} - V_{led,f}}{I_{led}}$$

    where:
    \(R\) = resistance required in series of LED to limit current
    \(V_{dd}\) = supply voltage driving the LED (typ. 3.3, 5, 12V)
    \(V_{led,f}\) = forward voltage drop of the led (typ. 2.0V)
    \(I_{led}\) = required current through the led (typ. 5-20mA)

    Reverse Mounting

    Reverse mounting LED’s are SMD LEDs which have the light source emitting in the reverse direction, e.g. toward the PCB they are mounted on. A hole is drilled in the PCB to let the light through to the other side. They are useful when using a PCB as a user interface panel, or when you want to use light guides (since the light guides can be mounted up against flat PCB).

    An Osram reverse-mount LED (P47K series).

    An Osram reverse-mount LED (P47K series).

    Multiplexing

    Multiplexing is a way of connecting LED’s in an arrangement so that it minimises the number of microcontroller pins required to drive them. There is also a even greater pin-saving method, known as Charlieplexing.

    Multiplexing is normally done in a row/column configuration, where the LED’s are connected in a grid-like fashion, and one microcontroller output pin is used for each row and column. This gives the following equation linking the number of pins used and the number of LEDs:

    $$y = (\frac{x}{2})^2$$

    where:
    \(y\) = number of LEDs
    \(x\) = number of microcontroller pins

    Charlieplexing

    Charlieplexing is a more efficient (in terms of number of drive signals used) way of driving LEDs, compared to multiplexing.

    The following equation is given linking the number of pins used and the number of LEDs:

    $$y = x^2 - x$$

    ESD

    Even though all LEDs are susceptible to ESD damage, it is the GaN based LEDs (blue, white and some green colors) that are more sensitive to surge voltages caused by ESD.

    The susceptibility for LEDs to ESD is low enough that no extra ESD protection measures (aside from the current-limiting resistor which acts somewhat as a ESD suppressor also) are taken for LEDs used for general purposes.

    Light Detection With A LED

    A little known fact about LEDs is that they can be used for light detection. Although not as sensitive as purpose-built photo-diodes, with a few external components, can be interfaced with a microcontroller and be used to detect variations in the light level.

    The schematic below shows how to connect an LED up to a general microcontroller for light detection. The LED and resistor are connected up to GPIO pins.

    Schematic showing how to connect an LED to a general microcontroller for light detection. The LED and resistor are connected to GPIO pins.

    Schematic showing how to connect an LED to a general microcontroller for light detection. The LED and resistor are connected to GPIO pins.

    The photocurrent of an LED is about 10-100 times smaller that that of a purpose-built photo-diode. The wavelength of peak sensitivity is usually a little less than the peak wavelength that it emits light at.

    RGB LEDs

    RGB LEDs are LED’s which have three diodes inside them, one red, one green, and one blue. Whats cool with these is, when controlled correctly, they can produce almost any visible colour (remember primary colours in science class?).

    RGB’s usually have at least four pins, one each for one side of the red, green, and blue diodes (either all anode or all cathode), and a common which connects all three of the other sides of the diodes. They are more complicated to control than a normal LED, normally requiring 3 different PWM signals, and a bit of firmware to calculate the appropriate duty cycles.

    You can get RGD LEDs which already have the control and drive circuitry (e.g. the constant current source) for the LEDs inside them. These are normally connected to a microcontroller via a digital communication bus (e.g. SPI, or sometimes a custom protocol).

    One popular example, the WS8211, uses it’s own custom communications protocol running at 800kHz.

    The WS2811, a popular RGD LED, with integrated controller and drive circuitry (constant current supply). Communicates via a custom 800kHz protocol to a microcontroller.

    The WS2811, a popular RGD LED, with integrated controller and drive circuitry (constant current supply). Communicates via a custom 800kHz protocol to a microcontroller.

    LED Controllers

    LED controllers are ICs designed specifically to make driving LEDs easier, by providing the correct current for the LEDs to operate and off-loading the processing power which would otherwise have to be done on a microcontroller. They normally allow you to control both the current and the PWM rate for each LED (to control both the brightness and colour). Some are specially designed for RGB LEDs.

    Some feature logarithmic current output levels to best match up with what the human eye perceives.

    PWM vs Current Control

    There are two main ways to dim an LED, either by changing the current or with PWM. Since PWM only varies how long the LED is on for, and keeps the current through the LED the same, it does not really affect the colour of the LED, while the current-changing method does (the colour depends on the forward current).

    Examples

    The PCA9634 8-Channel 25mA I2C LED Controller by NXP is a simple LED driver for up to 8 single low-power (20mA) LEDs.

    Lens Shapes

    LEDs come with a variety of lens shapes. The major thing that the len shapes influences is the radiant intensity or radiation pattern of the light. Some lens shapes focus the light around a small angle (e.g. 10°), while others spread the light over nearly 180°.

    Most standard LEDs used on circuit boards are either encapsulated or hemispherical.

    Hemispherical lens concentrates the light into a tight beam, while the flat and encapsulated lens types spread the light more evenly than an LED with no lens at all.

    Laser Diodes

    Laser diodes are LEDs which emits ‘lasered’ light using a similar method to standard-light LEDs.

    Some laser diodes have integrated switching FETs and capacitors for high-speed, high-power applications (such as laser range finding).

    A laser diode with an integrated FET and capacitor for high-seed, high-power switching.

    A laser diode with an integrated FET and capacitor for high-seed, high-power switching.

    Pulse-Width Extending

    A common use for an LED is to connect it to a digital output pin of a microcontroller/IC which goes active upon a certain event (say the microcontroller receives a packet of data).

    The problem with this is that the length of time that the output pin is active for can be a really short amount of time, e.g. microseconds or even nanoseconds. It the events are rare enough, this may make it impossible to see the LED flicker.

    One way to fix this with hardware to to use a simple pulse-width extender circuit as shown below:

    The schematic for a LED pulse width extending circuit. It converts a short pulse that would not be seen into a longer pulse which is visible.

    The schematic for a LED pulse width extending circuit. It converts a short pulse that would not be seen into a longer pulse which is visible.

    This circuit uses an RC network to form a time delay. When the short pulse arrives, the MOSFET is turned on almost immediately, and the LED lights up. When the pulse stops, the diode prevents the capacitor from discharging immediately, and instead has to discharge slowly through the resistor. The MOSFET/LED remain on until the voltage on the capacitor drops below the MOSFET’s gate-source threshold voltage (or something close to that).

    Peak vs. Dominant Wavelength

    LEDs are usually given with two different quantifiers regarding their wavelength, both the peak wavelength and the dominant wavelength.

    Most LEDs emit a narrow spectrum of light (as opposed to filament-style bulbs, which emit a broad spectrum of light). The spectral shape is approximately Gaussian (a.k.a. the normal distribution).

    A graph of the relative intensity vs. wavelength for a 0603 green LED (LTST-C190KGKT). It has a peak wavelength of 574nm and a dominant wavelength of 571nm.

    A graph of the relative intensity vs. wavelength for a 0603 green LED (LTST-C190KGKT). It has a peak wavelength of 574nm and a dominant wavelength of 571nm.

    The peak wavelength is the wavelength at the peak of the spectral density curve. The dominant wavelength is a colorimetric quantity that describes the perceived colour of the LED with respect to the human eye. The human eye essentially sees a weighted average of all the wavelengths emitted by the LED, and perceives a single colour based on this averaging.

    The dominant wavelength is important for user interface designers as it determines the “colour” the user perceives.

    Packaging

    You can get LED’s in a variety of SMD packages. Common SMD LED packages include the 0603 on 0402 chip packages.

    A picture of a 0603 LED up close on a PCB. You can see the filament running into the middle of the pad (the part which emits the light).

    A picture of a 0603 LED up close on a PCB. You can see the filament running into the middle of the pad (the part which emits the light).


    Like this page? Upvote with shurikens!

    Tags:

      comments powered by Disqus