LED
How to build a dimmable lamp with four LEDs
Mihai Cuciuc, senior applications engineer from Microchip Technology shows how to control individual LEDs to simulate an incandescent lamp
C
ustom colour temperature lighting can be obtained by mixing the outputs of four individual white LEDs with different parameters. This can be used to build a dimmable lamp with a particular colour temperature or use a dynamic model that simulates an incandescent lamp whose colour temperature changes as it is dimmed.
Colour temperature The colour temperature of a light source is the temperature of a black body that radiates light that is close to the colour of the light source. To define the distance between two colours, a parametric way of defining colours is needed, such as the CIE 1931 xy colour space shown in Figure 1. This colour space provides a
Figure 1: CIE 1931 xy chromaticity diagram
simple mechanism that aids colour mixing. Figure 1 also shows the Planckian locus defined by the possible colours of a black body as its temperature changes.
Light output
Since this application allows the configuration of the colour temperature, it would be desirable to have the same luminous flux range for any colour temperature chosen. This requires an extra normalisation step at the end of the colour mixing process to bring the maximum luminous flux to the same value for all possible colour temperatures.
Mixing colours Starting with a desired colour defined by its coordinates in the CIE 1931 colour space, the LED coordinates can be computed by first checking if the point lies within any of the triangles defined in the CIE 1931 colour space by the coordinates of three of the available LEDs. For all the triangles that contain the point, the individual LED
contributions can be computed. It is then a matter of selecting the configuration that yields the maximum output for the chosen LED.
Lastly scale the dimming values such that they lie between zero and the maximum value usable for the LED PWM.
www.cieonline.co.uk
Values obtained after this step can be used to yield a constant luminous flux of any colour temperature.
Hardware
This application uses a modified Microchip lighting communications main board with four Cree LEDs whose colour temperatures in the CIE 1931 colour space have been measured. The board can supply a maximum current through each LED of the order of 200mA.
The simulation starts with the user selecting a slider position. This is translated into a colour temperature that is used to pick both a scaling factor for all LEDs as well as individual scaling factors for each one.
The lamp has three modes of operation that the user can switch through. Firstly, simulating an incandescent lamp; this both dims and changes the colour temperature according to the proposed model. Secondly, constant luminous flux; this allows the user to pick a colour temperature using the slider while keeping the luminous flux at the maximum. Finally, dimming with constant colour temperature. This performs dimming while using the colour temperature chosen in the previous mode.
www.microchip.com Components in Electronics November 2016 17
Page 1 |
Page 2 |
Page 3 |
Page 4 |
Page 5 |
Page 6 |
Page 7 |
Page 8 |
Page 9 |
Page 10 |
Page 11 |
Page 12 |
Page 13 |
Page 14 |
Page 15 |
Page 16 |
Page 17 |
Page 18 |
Page 19 |
Page 20 |
Page 21 |
Page 22 |
Page 23 |
Page 24 |
Page 25 |
Page 26 |
Page 27 |
Page 28 |
Page 29 |
Page 30 |
Page 31 |
Page 32 |
Page 33 |
Page 34 |
Page 35 |
Page 36 |
Page 37 |
Page 38 |
Page 39 |
Page 40 |
Page 41 |
Page 42 |
Page 43 |
Page 44 |
Page 45 |
Page 46 |
Page 47 |
Page 48 |
Page 49 |
Page 50 |
Page 51 |
Page 52