DRIVING A LIGHTING ELEMENT

20170332450 · 2017-11-16

Assignee

Inventors

Cpc classification

International classification

Abstract

An analogue dimmer driver for driving an LED lighting element (54) to generate coded light comprises an output component (54) which provides a primary current (i.sub.pr), a capacitor (53) connected to the output component, a switch (S1) via which the lighting element is connectable to the current source in parallel with the capacitor. Switching is performed by periodically opening and closing the switch to code information into light generated by the lighting element. The output component has an input configured to receive a dimming signal. Responsive to a change in the dimming signal: i) the primary current is increased so as to increase the average power of the generated light and ii) the duty cycle of the switching is increased by an amount sufficient to prevent the peak level of the current though the lighting element when the switch is closed (i.sub.pr+i.sub.dis) from exceeding a predetermined level (i.sub.nom).

Claims

1. An analogue dimmer driver for driving an LED lighting element to generate coded light, the driver comprising: an output component configured to provide a primary current (i.sub.pr), wherein the output component is one of a controllable constant current source and a controllable constant power source; a capacitor connected to the output component; a switch via which the lighting element is connectable to the output component in parallel with the capacitor, so that when the switch is open the primary current charges the capacitor, and when the switch is closed the capacitor discharges to generate a discharge current (i.sub.dis) so that the lighting element is driven by a drive current (i.sub.pr+i.sub.dis) which comprises the discharge and primary currents; and a controller configured to perform switching by periodically opening and closing the switch to code information into light generated by the lighting element, wherein the switching is performed with a duty cycle being a fraction of the switching period of said switching for which the switch is closed; wherein the controller has an input by which a desired dimming level is conveyed to the controller, the desired dimming level representing a fraction of a nominal power or current of the LED lighting element; wherein the output component has an input configured to receive from the controller a dimming signal corresponding to the desired dimming level (dl); and wherein the controller is configured to both control the duty cycle and adjust the dimming signal in dependence on the desired dimming level, such that responsive to a change in the dimming level which indicates that an increase in the average power of the generated light is desired: i) the primary current is increased so as to increase the average power of the generated light and ii) the duty cycle (dc) of the switching is increased such that it is greater than or equal to the dimming level (dl), thereby preventing the peak level of the drive current from exceeding a predetermined level (i.sub.nom).

2. The analogue dimmer driver according to claim 1 wherein the peak level of the drive current prior to said change is at the predetermined level and the amount by which the duty cycle is increased is such that the peak level of the drive current remains at the predetermined level.

3. The analogue dimmer driver according to claim 1 wherein the controller has an input configured to receive data and is configured to embed the data in the generated light by changing the frequency of the switching in dependence on the data.

4. The analogue dimmer driver according to claim 1 wherein the controller has an input configured to receive data and is configured to embed the data in the generated light by changing the duty cycle of the switching.

5. The analogue dimmer driver according to claim 1 wherein the frequency of the switching is above 50 Hz.

6. The analogue dimmer driver according to claim 1 wherein the output component comprises a control loop which matches the primary current or an output related to the primary current to a setpoint of the control loop, the primary current increased by increasing the setpoint.

7. The analogue dimmer driver according to claim 6 wherein the output related to the primary current is the electrical power provided by the output component.

8. A The analogue dimmer driver according to claim 6 wherein the setpoint is adjusted at a frequency below 50 Hz.

9. The analogue dimmer driver according to claim 6 comprising a low-pass filter, wherein the dimming signal is filtered by the low-pass filter before being received by the output component, and the switching is performed using a version of the dimming level not filtered by the low-pass filter.

10. The analogue dimmer driver according to claim 1 wherein the switch is a transistor.

11. The analogue dimmer driver according to claim 1 comprising a temperature protection circuit configured to reduce the primary current when the temperature of the lighting element increases above a predetermined limit.

12. A lighting apparatus comprising the analogue dimmer driver of claim 1, and the LED lighting element.

13. An apparatus according to claim 12 wherein the predetermined level matches the nominal current associated with the lighting element.

14. A method for controlling an LED lighting element to generate coded light and to achieve a desired dimming level (dll), the lighting element being connected to an output component via a switch in parallel with a capacitor also connected to the output component, wherein the output component is one of a controllable constant current source and a controllable constant power source and the output component is configured to provide a primary current (i.sub.pr), so that when the switch is open the primary current charges the capacitor, and when the switch is closed the capacitor discharges to generate a discharge current (i.sub.dis) so that the lighting element is driven by a drive current (i.sub.pr+i.sub.dis) which comprises the discharge and primary currents, the method comprising: performing switching by periodically opening and closing the switch to code information into light generated by the lighting element, wherein the switching is performed with a duty cycle being a fraction of the switching period of said switching for which the switch is closed; and receiving an indication of a desired dimming level representing a fraction of a nominal power or current of the LED lighting element; and responsive to a change in the dimming level indicating, that an increase in the average power of the generated light is desired: i) increasing the primary current so as to increase the average power of the generated light, and ii) increasing the duty cycle (dc) of the switching such that it is greater than or equal to the dimming level (dl), thereby preventing the peak level of the drive current from exceeding a predetermined level (i.sub.nom).

15. A computer program product comprising code stored on a computer readable storage medium which, when executed, implements the method of claim 14 on a controlled LED lighting element.

Description

BRIEF DESCRIPTION OF THE FIGURES

[0033] To aid understanding of the subject matter and to show how embodiments may be put into effect, reference will now be made by way of example to the following drawings in which:

[0034] FIG. 1A shows an LED string;

[0035] FIG. 1B illustrates principles underlying a PWM dimming mechanism;

[0036] FIG. 1C illustrates principles underlying an analogue dimming mechanism;

[0037] FIG. 2 schematically illustrates a space comprising a lighting system and camera;

[0038] FIG. 3 is a schematic block diagram of a device with camera for receiving coded light;

[0039] FIGS. 4A and 4B schematically illustrate part of a lighting apparatus when a lighting element is disconnected from and connected to a driver respectively;

[0040] FIG. 5 schematically illustrates the manner in which the illumination system is controlled;

[0041] FIG. 6A is a graph illustrating how a drive current used to drive a lighting element changes over time;

[0042] FIG. 6B is a graph illustrating how a voltage across a driver changes over time;

[0043] FIG. 7 is a graph showing simulated results for a driver of one embodiment;

[0044] FIG. 8 schematically illustrates a switching strategy which regulates an LED current.

DETAILED DESCRIPTION

[0045] FIG. 2 shows an example environment 2 in which embodiments disclosed herein may be deployed. For instance the environment may comprise one or more rooms and/or corridors of an office, home, school, hospital, museum or other indoor space; or an outdoor space such as a park, street, stadium or such like; or another type of space such as a gazebo or the interior of a vehicle. The environment 2 is installed with a lighting system comprising at least one lighting device 4 in the form a luminaire. Also present in the environment 2 is a user terminal 6, preferably a mobile device such as a smart phone or tablet. The luminaire 4 comprises a LED lighting element in the form of an LED lamp (54, not shown in FIG. 1 but shown in later figures) which is a string of LEDs in this embodiment, but may be a single LED or other type of array of LEDs (e.g. multiple strings in parallel) in other embodiments. The light emitted by the lamp of each of the one or more luminaires is modulated with a coded light component at a frequency imperceptible to the human eye.

[0046] FIG. 3 gives a block diagram of the mobile device 6. The device 6 comprises a user interface 8 (preferably a display such as a screen or touchscreen), a camera 10 having a two-dimensional image capture element 20, and an image analysis module 12 coupled to the image capture element 20 and user interface 8. The image analysis module 12 is operable to process signals representing images captured by the image capture element, and based thereon to decode coded light components in the light from which the image was captured. The image analysis module 12 may be implemented in the form of code stored on a computer readable storage medium or media and arranged to be executed on a processor comprising one or more processing units. Alternatively it is not excluded that some or all of the image analysis module 12 could be implemented in dedicated hardware circuitry or reconfigurable circuitry such as an FPGA. Although portable devices, such as mobile phones, tablets, or dedicated control devices can be fitted with a camera, it may also be possible to use a light sensitive diode for sensing the coded light. This may be particularly interesting for low cost remote control devices that can receive the coded light output by a light source, to obtain identity and/or access control information from the light source for control purposes.

[0047] FIGS. 4A and 4B schematically illustrate part of a lighting apparatus 50, which can be embodied in the luminaire 4 mentioned above. The lighting apparatus 50 comprises a controllable current source 52 connected to a capacitor 53 having a capacitance C.sub.buffer, an LED lamp, which is a string of LEDs 54, and a switch S1 connected in series with the lamp 54 so that the lamp 54 can be disconnected from (by opening the switch S1) and reconnected to (by closing the switch S1) the current source 52 in parallel with the capacitor 53. A current I.sub.LED (LED current) flows thought the string 54, which changes between zero and non-zero levels as the switch S1 is opened and closed.

[0048] The current source 52, capacitor 53 and switch S1 constitute an analogue dimmer driver (i.e. a driver which has analogue dimming functionality) which drives the string 54. The driver also has coded light functionality, whereby information is coded into the light generated by the string 54 by modulation (see below) at a coded light frequency, which may be fixed (e.g. to covey a simple identifier of the apparatus) or variable (to code more complex signals).

[0049] The current source 52 provides a primary current i.sub.pr, which is DC and substantially independent of the voltage across the current source 52 and which is thus substantially independent of the load circuit formed by the capacitor 53, lighting source 54 and switch S1.

[0050] In FIGS. 4A and 4B, only part of the current source 52 is shown; in this case a secondary winding L1 and secondary diode D1 of a flyback topology. As will be apparent, these drawings are merely schematic examples and the principles of the subject matter can be applied to many constant current source (or constant power source) topologies.

[0051] The driver is a single stage in that the primary current i.sub.pr is generated directly from mains power. The single stage nature of the driver reduces the cost of the driver, but in other embodiments the driver may have multiple stages.

[0052] The independence of i.sub.pr is effected by a current control loop (not shown), which maintains the primary current at substantially a reference level (setpoint) irrespective of the behavior of the remaining circuitry. Such current control loops are known in the art. Analogue dimming of the string 54 is done by modulating the current setting of the current source 52 to change the primary current i.sub.pr. Specifically, the power to the string 54 is reduced/increased by reducing/increasing the setpoint of the current control loop, the setpoint being conveyed to the current source 52 by the dimming signal dim. Note the “setpoint” means the desired level of the primary current, and that “increasing (resp. decreasing) the setpoint” means any adjustment of the setpoint which causes the desired increase (resp. decrease) in the level of the primary current, independent of the manner in which it is conveyed by the dimming signal.

[0053] In other embodiments, a constant power source (i.e. which generates an electrical power level that is substantially independent of the load circuit) can be used in place of the current source 52. In this case, the electrical power provided by the power source is matched to a changeable setpoint of a suitable control loop.

[0054] Practical implementations of current or power sources will be non-ideal and show some dependence on the load circuit.

[0055] In order to prevent changes in the primary current from disrupting the information which is coded in the light at high frequencies (e.g. above 50 Hz), the frequency at which the setpoint is changed is upper-limited (e.g. to be below 50 Hz).

[0056] The same (PWM) signal can be used to control the setpoint of the current source and the switching of switch S1, but in this case there needs to be a low-pass filter on the dimming input of the current source to prevent high frequency changes in the primary current (e.g. with a threshold at or near 50 Hz). The dimming signal dim is a filtered version of this signal (i.e. filtered by the low-pass filter) and the switching signal sw is an unfiltered version of this signal (i.e. not filtered by the low-pass filter).

[0057] The current (or power) control loop may also be of low bandwidth i.e. less than the coding modulation frequency (e.g. below 50 Hz). The bandwidth of the control loop is not the most important parameter though—even with a bandwidth close to the modulation frequency, the circuit will still operate (though the functionalities might start interacting).

[0058] A nominal current i.sub.nom is defined as the current that is necessary for the lamp 54 to reach a 100% light level. The power output of the lamp 54 when driven at its nominal current is called the nominal power. The efficacy of LED modules typically depends on temperature and current level (as they exhibit non-linear behavior). Currents above the nominal current will lead to a lower LED efficacy. Moreover, this will in turn lead to an operating temperature that is above the maximum operating temperature of the LEDs, which will reduce the life of the LEDs.

[0059] To dim the output, the primary current i.sub.pr is set to a fraction “dl” of the nominal current i.sub.nom i.e.


i.sub.pr=dl*i.sub.nom

where 0≦dl≦1. The fraction “dl” is referred to as the dimming level, and the current dimming level represents the fraction of the nominal power currently being outputted by the lamp 54. By changing the setpoint of the current control loop, a desired dimming level dl can be achieved.

[0060] To effect coding, the switch S1 is opened and closed at the coded light frequency.

[0061] When the switch S1 is opened (FIG. 4A), I.sub.LED=0 and the LED string will consume no power, but the converter will still deliver the primary current i.sub.pr to the capacitor 53. As a result the buffer capacitor will be charged to voltage v.sub.pr+v.sub.offset+v.sub.m where

[00001] v m = ( i pr c buffer ) * t off .Math. .Math. and .Math. .Math. t off

is the duration over which the switch remains open; v.sub.pr=i.sub.pr*R where R is the large signal resistance of the LED string 54 which can be defined as (very much simplified) R=(Vf+I_LED*R.sub.s)/I.sub.LED, where Vf is the forward voltage of the LED string, and R.sub.s is the small signal resistance of the string 54; v.sub.offset (offset voltage) behaves in the manner described below.

[0062] When S1 is closed again (FIG. 4B) the capacitor 53 provides a discharge current i.sub.dis so that the LEDs are driven by a drive current I.sub.LED=i.sub.pr+i.sub.dis. The LED current becomes I.sub.LED=i.sub.pr+i.sub.offset+i.sub.m, where i.sub.m is determined by v.sub.m/R.sub.s. Because of the higher voltage on the capacitor, the LED string will consume more power than is delivered by the converter 52. As a result the buffer capacitor will start discharging with time constant τ.sub.m=C.sub.buffer*R.sub.s. The capacitor will keep discharging for the duration t.sub.discharge (t.sub.off) over which the switch S1 remains closed, so that the LED voltage V.sub.LED and current I.sub.LED decay to v.sub.pr+V.sub.offset and i.sub.pr+i.sub.offset (i.e. by v.sub.m and i.sub.m) respectively; i.sub.offset behaves in the manner described below. This is illustrated in FIGS. 6A and 6B which shows graphs illustrating the manner in which the LED current I.sub.LED and voltage V.sub.LED across the capacitor change over time as switching is performed to open and close the switch periodically. These drawings show a schematic representation of a state where S1 is permanently closed, and a subsequent state where S1 is modulated.

[0063] When S1 is permanently closed, once equilibrium is reached, the LED voltage and current remain at v.sub.pr and i.sub.pr respectively.

[0064] Following a switch to the state in which S1 is modulated, v.sub.m remains substantially constant; i.sub.m will increase slightly as the voltage V.sub.LED increases (due to the I-V curve of the LED); i.sub.offset (offset current) and v.sub.offset (offset voltage) will rise until an equilibrium is reached again, which happens when the energy added in the capacitor during t.sub.off is equal to the energy taken from the capacitor during period t.sub.on. With low capacitor voltage, more energy is stored than released. With high capacitor voltage, more energy is released than added. So v.sub.offset will increase until the equilibrium has been reached. The offset current i.sub.offset is directly related to the offset voltage v.sub.offset. Equilibrium will typically be reached over multiple switching cycles of S1. Note that FIGS. 6A and 6B only show I.sub.LED/V.sub.LED at times of equilibrium.

[0065] In embodiments where a constant power source is used in place of the constant current source 52, v.sub.m will have a decreasing value until equilibrium has been reached.

[0066] The switching occurs with a period T (the coded light frequency being 1/T), and duty cycle dc<1. Switching with a duty cycle dc means that the switch is closed for a fraction dc of the switching period T, i.e. for a time dc*T=t.sub.discharge, and open for the remaining fraction (1−dc) of the switching period T, i.e. for a time (1−dc)*T=t.sub.off.

[0067] The power delivered to the circuit is independent of the switching strategy for switch S1—changing the switching strategy simply changes when the power is delivered to string 54, and how much is delivered indirectly via the capacitor 53 relative to the amount that is delivered directly from the current source 52.

[0068] The only losses are minimal, parasitic losses because of series resistance of the capacitor, making the system highly efficient.

[0069] FIG. 5 is another schematic illustration of the lighting apparatus 50, which is shown to comprise a controller 56 in addition to the components described above. As shown the controller 56 has a first input by which a desired dimming level dl is conveyed to the controller, and a second input by which data to be modulated into the light is conveyed to the controller. The controller has a first output by which a dimming signal dim is conveyed to the current source 52, and a second output by which a switching signal sw is conveyed to the switch to open and close the switch. The switch S1 can implemented by a transistor, and the switching signal supplied to the base terminal thereof.

[0070] The dimming level dl indicates the average power of the light generated by the string 54 that is currently desired (as a fraction of the maximum power output), and a change in the dimming level indicates that a change in the average power is desired. The dimming signal dim controls the setpoint of the current source 52. When the dimming level dl is changed, the controller adjusts the setpoint to match the primary current i.sub.pr to the new dimming level. The dimming signal thus sets the primary current i.sub.pr, which is sometimes denoted herein as i.sub.pr(dl) for that reason. A change in the dimming signal dim indicates a change in the desired dimming level dl, and thus also indicates that a change in the average power of the light generated by the string 54 is desired.

[0071] In this embodiment, the data is modulated into the light generated by the string 54 by changing the frequency of the switching signal to change the frequency at which the switch S1 is opened and closed.

[0072] The controller can be implemented in hardware circuitry, software (i.e. by code executed on a suitable processor) or a combination of both. The dimming level dl may for instance be inputted as a digital signal, or in an analogue fashion e.g. by tuning a potentiometer.

[0073] For reasons discussed below, the controller also controls the duty cycle of the switching signal in dependence on the dimming level dl: light is modulated by opening and closing the LED circuit with the switch S1 at the desired modulating frequency, while at the same time the switching signal sw is operated at a duty cycle that has a direct relationship with the required dimming level dl. In this manner, the duty cycle is changed responsive to changes in the dimming signal (and thus responsive to changes in the primary current i.sub.pr) dim by virtue of this dependence on the dimming level dl.

[0074] The LED's are a very significant part of the system cost of the system. With a fixed duty cycle, the peak LED current could exceed the nominal current. For example with a duty cycle 50% and dimming level 90%, the peak current would become 1.8 times the nominal current. This is because the same power (90% of nominal) needs to be delivered in only 50% of the time. As indicated, higher current will lead to a lower LED efficacy which will lead to an operating temperature that is above the maximum thereby shortening the life of the LEDs. With a fixed duty cycle, this would need to be compensated for by adding additional LED modules (more LEDs lead to a lower LED current for same total flux, which leads to a better efficacy, which leads to a lower temperature). This will introduce additional costs.

[0075] The present driver avoids this by implementing a switching strategy that keeps the duty cycle of the switching matched to the dimming level as the diming level varies so that the maximum LED current max I.sub.LED (after closing the switch) does not exceed the current at 100% intensity i.e. so that it does not exceed the nominal current of the i.sub.nom string 54. Thus, with the present switching strategy, the addition of the coded light feature will not increase the maximum LED current of the system. The present lighting apparatus 50 is thermally as a result limited: the LED modules stay just below their maximum operating temperature because the current though them never exceeds the nominal current of the string 54.

[0076] The simplest implementation is that the duty cycle is equal to the dimming level (e.g. if the lamp is operated at 80% of its nominal light output, the duty cycle should by 0.8). So, for instance, if dl=0.9, S1 is closed for 0.9× coded light period T, and S1 is open for 0.1× coded light period T. It can be shown by way of a straightforward power analysis that

[00002] max .Math. .Math. I LED = i nom * dl d .Math. .Math. c

neglecting the voltage swing on the capacitor and the parasitic losses. Thus, when the duty cycle is chosen equal to the dimming level, the peak current max I.sub.LED will remain constant at the nominal current of the string for all dimming levels.

[0077] This is illustrated in FIG. 8, which shows graphs of the primary current, LED current and switching signal sw when the dimming level dl is at 25% and then changed to 50%. By matching the duty cycle to the dimming level, the peak LED current is maintained at i.sub.nom as i.sub.pr changes from 0.25*i.sub.nom to 0.5*i.sub.nom to effect the analogue dimming.

[0078] Other relations between duty cycle and dimming level are possible as will be apparent i.e. any relationship between the duty cycle and the dimming level that keeps the peak LED current at or below the nominal current of the string 54, which is satisfied for any relationship such that dc≧dl. FIG. 7 shows a graph of simulated behavior of the apparatus 50 for a string of 10 LEDs, in which the switching undergoes a change in frequency from 200 Hz to 800 Hz. The graph shows how the led current I.sub.LED (in Amperes), voltage across the capacitor 54 VLED (in Volts) and switching signal SW change over time (horizontal axis, measured in arbitrary units). The dimming level is held constant at 30% throughout the duration spanned by the graph of FIG. 7. The rising/falling in FIG. 7 is due to the following: the LED models used in the simulation also incorporate (small) non-linearities in the current to voltage relation of the LEDs. That's why the current will be marginally different for different frequencies.

[0079] The nominal current i.sub.nom, represents the maximum ‘safe’ current that can be delivered to the string 54. Determining the nominal current generally involves two considerations. The first consideration is any nominal rating of the lighting element or its component LEDs specified as being ‘safe’ by the manufacturer of the lighting element or LEDs—where this is the limiting factor in the design, the predetermined level may be set to match this. The second consideration is that the peak current needs to be limited to obtain a certain minimum LED efficacy. The efficacy of a LED changes with the (peak) current. In general the efficacy of a LED decreases when the peak current increases. From a thermal design perspective, the heat generated by the LED's cannot exceed a certain design requirement. Therefore the efficacy needs to be controlled, which in turn results in a need to control the peak current. In other words, if the efficacy is the limiting factor in the design, the maximum allowed peak current of the LED will be below the maximum current as specified by the manufacturer of the LED.

[0080] The thermal equilibrium of a bulb-like product is very sensitive to changes in the LED efficacy, which in turn is sensitive to the drive current i.sub.pr+i.sub.dis In practice, a temperature (over)protection circuit may be used to keep the temperature within acceptable limits with respect to LED lifetime by reducing the primary current when the temperature of the lighting element increases above a predetermined limit so as to reduce the drive current of the LED's. When the peak current of the LEDs is limited by (i.e. when the nominal current i.sub.nom is set by) the thermal properties of the lamp system (rather than the maximum drive current as specified by the LED manufacturer), driving the LEDs at a peak current above i.sub.nom will lead to a temperature increase above nominal in practice. So driving the circuit at e.g. 102% (i.e. so that max I.sub.LED=1.02*i.sub.nom) for a prolonged period of time will not impact the LED lifetime, but will cause the temperature protection circuit to reduce the output flux of the lamp instead.

[0081] Whether or not the reduction in the LED lifetime (if no temperature protection is used) or the flux (if temperature protection is used) caused by driving the LEDs by above i.sub.nom is acceptable depends on the LED configuration and the thermal design of the lamp—as an upper limit, driving the LEDs so that the peak drive current is 110% of i.sub.nom is not acceptable for most designs.

[0082] In practice, lighting apparatus designs need to take into account production tolerances in the LED's as well as different environmental circumstances (e.g. whether the lamp is in free air or enclosed in a luminaire).

[0083] For a worst case sample in a worst case environment, driving the LEDs even at a peak drive current of, say, 100.5% of i.sub.mon will increase the temperature to a level where either LED life time is reduced slightly (if no over temperature protection circuit is used) or the flux will be reduced slightly when using coded light for a short time (if temperature protection is used). In other words, the 100% mark (i.e. max I.sub.LED=i.sub.nom) is not a hard limit, but from this point on one would expect to see gradual degradation of the product population (though not necessarily every individual product); either in life time (without over temperature protection) or in flux output (with over temperature protection). Whether or not a certain such degradation is acceptable depends on the exact product design and how close it has been designed to the limit.

[0084] Any coded light implementation has to comply with several requirements to make it feasible for implementation in a lamp platform:

1. No visible change in light level and/or flicker when using coded light;
2. Very low cost;
3. Good modulation depth within acceptable limits;
4. No degradation in lamp efficacy (lumen per watt) at maximum power output (i.e. when operating at the nominal power).

[0085] The use the series switch S1 combined with the output capacitor 54 has the benefit over other driver circuits that it does not introduce any additional losses (which would otherwise reduce lamp efficacy), provides a good modulation depth within acceptable limits: there is a minimum and a maximum value for the duty cycle, below/above which the frequency cannot be detected. If the dc≧dl relation is strictly followed, coded light modulation cannot be detected for dimming levels close to 100% (as dc must be close to 1 in that event). However, in the case that the maximum peak current is limited by thermal requirements (see above), it is acceptable to temporarily exceed the maximum as long as the duration over which this happens is much smaller than the thermal time constant of the lamp (typically in the order of minutes). This allows the light to be modulated at 100% light output (dl=1): in that event, the peak current will exceed the nominal current, which is acceptable provided it is only for a short amount of time (until the modulated signal has been detected)—e.g. less than a minute. As the typical usage time of a coded light signal is typically below 1 minute in any event, this does will not generally impact on coded light performance.

[0086] As indicated above, for most lamp/environment combinations, it is possible to go beyond the 100% of i.sub.nom limit (e.g. to 100.5%) for a limited amount of time (e.g. less than a minute), without reducing the lifetime of the LEDs or triggering the over temperature protection circuit (if used)—in the worst case lamp/environment combination, a slight reduction in LED lifetime (without temperature protection) or a slight decrease in the flux during coding with at dl=1 (with temperature protection) may occur, but as mentioned this may be acceptable on the exact product design and how close it has been designed to the limit.

[0087] The subject matter is also cheap to implement. For instance, some existing analogue dimmer drivers already have an output capacitor parallel to the LED string; moreover, existing lamps that can be controlled using an RF channel already have a microprocessor present (to implement the controller of this disclosure); thus all that is needed to implement the present teaching is the addition of a single transistor to implement the switch. What is more, for embodiments in which the duty cycle matches the dimming level, in some existing analogue dimmer drivers, a dimming level signal is already provided which can be re-purposed to control the separate switch as well as the analogue dimming (i.e. a new signal need not be generated).

[0088] Moreover, the switching strategy ensures that the lamp efficacy is not reduced at maximum power output as a result of the introduction of the coded light functionality.

[0089] The present disclosure thus provides coded light operation in combination with a single stage driver which meets all of the above feasibility requirements.

[0090] The present teaching can be applied to all driver types that have an output capacitor parallel to the LED string and that have a slow control bandwidth (lower that the modulating frequencies required for coded light).

[0091] In the above, a frequency modulation scheme is presented, in which data is embedded in the light generated by the LED string 54 by changing the frequency of the switching.

[0092] In alternative embodiments, data is embedded in the generated light by modulating the duty cycle of the switching. The frequency is chosen equal to a desired symbol frequency in this case and may be fixed.

[0093] The duty cycle may be modulated using ternary Manchester encoding, described in international patent application publication no. WO2012/052935. Ternary Manchester encoding is DC-free, and can be advantageous as it provides a smoother transition when the data bits change value than a conventional Manchester code, and results in a spectrum in the frequency domain that is more suppressed around low frequencies where interference such as mains hum may occur.

[0094] As is known in the art, in ternary Manchester encoding, a signal property (in this case the duty cycle of the switching) is modulated between 3 values, typically labeled −1, 0 and +1—in this instance, each of −1, 0 and +1 is represented by a different duty cycle.

[0095] The signal can be modulated in the following way: if dc.sub.d is the duty cycle that is desired in relation to the dimming level to keep the peak current below the nominal current, −1, 0 and 1 can be represented by dc.sub.d, dc− and dc+ respectively, where dc− and dc+ are for instance dc.sub.d−dc.sub.0 and dc.sub.d+dc.sub.0 respectively, and dc.sub.0 is e.g. 0.1. In a single period, the actual duty cycle of the switching will be dc.sub.d, dc− or dc+; however, the actual peak current max I.sub.LED will be related to the average duty cycle, which is equal to dc.sub.d because of the DC-free property of the encoding (in practice, if the capacitor is too small this may not quite hold and the peak current may be slightly too high but in this case a small adjustment to dc.sub.d could be made to get the peak current back down to or below the level of the nominal current). Thus, if the relationship dc.sub.d≧dl is maintained, this will prevent the peak current from exceeding the nominal current (e.g., the peak current can be maintained at a substantially constant level by maintaining the relationship dc.sub.d=dl).

[0096] Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. A computer program may be stored/distributed on a suitable medium, such as an optical storage medium or a solid-state medium supplied together with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems. Any reference signs in the claims should not be construed as limiting the scope.