This disclosure relates generally to brightness control, and, more particularly, to a method and apparatus to control light emitting diode (LED) brightness.
Light sources are often controlled by light switches containing dimmer circuitry that allows users of the light switch to control the brightness emitted by the light source. The light sources controlled by the light switches are typically incandescent or halogen bulbs, however new light emitting sources have recently been introduced. For example, LED lights are now available as an alternative to incandescent and halogen lighting sources. LED lights are more energy efficient than incandescent or halogen bulbs.
The dimmer circuits used with incandescent and halogen bulbs control the brightness of the light sources by varying the power transmitted to the bulb. Incandescent and halogen bulbs are passive elements and present a resistive load to the dimmer. However, LED lights do not present a resistive load to the dimmer. Consequently, LED lights do not function as expected when dimmed via a conventional dimmer circuit.
Light sources such as incandescent and halogen bulbs operate at full brightness when receiving an alternating current (AC) signal. Conventional light dimmers operate by preventing portions of the AC cycle from reaching the light source. This process is known as chopping and operates by beginning transmission of the AC power signal at varying points within the AC cycle to control the AC power received, and thereby brightness produced, by the incandescent bulbs. Chopping the AC power signal can be achieved by circuitry containing a triode for alternating current (TRIAC). A firing angle of the TRIAC can be controlled by modification of a component of the dimmer, such as a resistor. The chopped AC signal provided to the incandescent or halogen bulb is similar to the dimmer control signal 116, shown in
Recently, new lighting technologies such as compact fluorescent (CFL) and Light Emitting Diode (LED) lights have been introduced as a more energy efficient alternative to incandescent or halogen bulbs. LED lights, however, do not function as a resistive load, and therefore do not function properly when receiving the chopped AC signal directly from conventional dimmers. To solve this, an LED driver is used to control the power received by the LED lights. An example LED driver modulates the power signal provided to the LED light to ensure that the LED light operates across all brightness levels in a manner intuitively expected by the user. The LED driver typically receives a control signal to control the power transmitted to the LED light.
Current implementations of LED systems implement techniques that average the chopped AC signal from the dimmer and translate that average into an exponentially scaled control signal input into the LED driver. These implementations typically require complex circuitry and have a slow response time for setting the control signal.
The dimmer 113 provides an un-rectified dimmer control signal 114 to the full bridge rectifier 115. The dimmer 113 receives user input via a rheostat such as a knob or a slider to control the un-rectified dimmer control signal 114. While in some examples a rheostat is used, any other circuitry that may enable the dimmer 113 to produce the un-rectified dimmer control signal 114 may additionally or alternatively be used. Further, while in the illustrated example the dimmer 113 is described as including a TRIAC that enables the dimmer 113 to create the un-rectified dimmer control signal 114, any other circuitry may be used to enable creation of the un-rectified dimmer control signal 114. For example, a pair of silicon-controlled rectifiers (SCRs) may be implemented to enable creation of the un-rectified dimmer control signal 114 similar to the example shown in
The full bridge rectifier 115 of the illustrated example rectifies the un-rectified dimmer control signal 114 to create the dimmer control signal 116. The polarity of the dimmer control signal 116 is positive. However, alternative implementations of the system 100 may not include the full bridge rectifier 115, or the bull bridge rectifier may be integrated into another component. Thus, the full bridge rectifier may be implemented as a component of the dimmer 113 which may generate a rectified dimmer control signal similar to the dimmer control signal 116. Alternatively, the full bridge rectifier may be a component of the LED brightness controller 120 and/or the LED driver 125.
The LED brightness controller 120 provides an LED brightness control signal 121 to the LED driver 125. The LED brightness controller 120 receives the dimmer control signal 116 and is coupled to ground. The LED brightness controller 120 determines the period of the dimmer control signal 116 and the firing angle of the dimmer control signal 116. The LED brightness controller then generates an exponentially scaled LED brightness control signal 121 that is received by the LED driver 125. While in the illustrated example, the LED brightness controller 120 receives power via the dimmer control signal 116, the LED brightness controller may additionally or alternatively receive power via the AC source signal 111.
The LED driver 125 receives the LED brightness control signal 121 and AC power from the full bridge rectifier 115. The LED driver 125 then generates a power signal that is output to the LED 130. In some examples, the power signal represents the AC signal being pulse width modulated at a high frequency based on the LED brightness control signal 121. The power signal is then received by the LED 130 that outputs light at a brightness level representative of the setting indicated by the user on the dimmer 113. While in the illustrated example, the LED driver 125 receives power via the dimmer control signal 116, the LED driver 125 may additionally or alternatively receive power via the AC source signal 111.
While in the example illustrated in
The period synchronizer 310 synchronizes the LED brightness controller 120 to the period of the dimmer control signal and generates timing signals 510 that are transmitted to the signal positioner 320. The timing signals 510 are described in more detail in connection with
The signal positioner 320 receives the timing signals 510 from the period synchronizer 310 and determines a brightness level that should be sent to the LED 130. The brightness level is output by the outputter 330 and transmitted to the LED driver 125 as the LED brightness control signal 121.
The cutoffs 410 and 415 are implemented because the accuracy and resolution of the TRIAC firing angle 205 near the extremities of the AC period are very low. For example, when the rising edge 205 is near the beginning or end of the AC period, the integral of the AC waveform does not exhibit much variation as the time within the period is varied. Therefore, the least sensitive region of the dimmer control signal 116 is around the middle of the AC period. When the rising edge 205 of the dimmer control signal 116 occurs after the upper cutoff 410 and before the lower cutoff 415, the brightness curve 405 shows that a scaled brightness should be output. Because the LED 130 exhibits a linear response to stimuli, while the incandescent or halogen lights exhibit a non-linear response to the dimmer, the scaled brightness curve 405 is an exponentially decayed curve that allows the LED 130 to more closely match the dimming characteristics of the incandescent or halogen light that it is replacing.
The high cutoff signal (TH) 520 represents the upper cutoff 410. While in the examples discussed herein the upper cutoff 410 and the high cutoff signal (TH) 520 are described as being one quarter (e.g., 25%) of the period of the AC source signal 111, any point within the AC period may be used. For example, the rising edge 205 of the dimmer control signal 116 may be determined to be useful as early as the start of the AC period and therefore the upper cutoff 410 and the high cutoff signal 520 may be as early as the start of the AC period. When the rising edge signal (TEdge) 530 occurs before the high cutoff signal (TH) 520, the LED is set to output full brightness.
The low cutoff signal (TL) 525 represents the lower cutoff 415. While in the examples discussed herein the lower cutoff 415 and the low cutoff signal (TL) 525 are described as being three quarters (e.g., 75%) of the period of the AC source signal 111, any point within the AC period may be used. For example, the rising edge 205 of the dimmer control signal 116 may be determined to be useful as late as the end of the AC period and therefore the lower cutoff 415 and the low cutoff signal (TL) 525 may be as late as the end of the AC period. When the rising edge signal (TEdge) 530 occurs after the low cutoff signal (TL) 525, the LED is set to output minimum brightness.
The rising edge signal (TEdge) 530 represents the rising edge 205 of the dimmer control signal 116. In the example shown in
The sampling signal (TS) 535 is generated by the period synchronizer and represents alternating periods of the AC signal. The TRIAC circuitry of the dimmer 113 typically exhibits asymmetry between positive and negative cycles. The TRIAC circuitry of the dimmer 113 is, however, consistent from positive to positive, or negative to negative cycles. Hence within every period the rising edge signal (TEdge) 530 is generated, while the sampling signal (TS) 535 may only be generated during alternating periods of the AC cycle. In some implementations, the sampling signal (TS) 535 represents a sampling enable signal (e.g., a binary signal) that may enable circuitry of the LED brightness controller 120 to determine whether or not to utilize the rising edge signal (TEdge) 530. In another implementation, the sampling signal (TS) 535 may represent an impulse sampling signal that may instruct circuitry of the LED brightness controller 120 to sample an exponentially decayed waveform.
The example illustrated in
The zero crossing detector 705 receives the dimmer control signal 116 and outputs a signal to the 10-bit binary counter 715 and the 10-bit binary latch 725 of the cutoff generator 720. The signal output by the zero crossing detector is a digital signal that represents the zero crossing of the dimmer control signal. The zero crossing occurs at the end of each period of the dimmer control signal 116.
The oscillator 710 is a digital oscillator and provides an oscillating digital signal to the 10-bit binary counter 715. In the illustrated example, the oscillator 710 operates at 80 kHz, however any other frequency may alternatively be used. Of course, using an alternate frequency oscillator 710 may require using additional or alternative counters. The 10-bit binary counter stores a 10-bit binary count and outputs it via a 10-bit binary output. The 10-bit binary counter 715 receives the oscillating digital signal from the oscillator 710 and increments the 10-bit digital count. The 10-bit binary counter 715 also receives the zero crossing detector signal from the zero crossing detector 705 and resets the 10-bit digital count. Therefore, the 10-bit binary signal stored and output by the 10-bit binary counter represents the duration of the rectified AC period. By operating the oscillator 710 at 80 kHz, when the dimmer control signal 116 has a frequency of 120 Hz (twice the frequency of the AC source signal 111 due to the full bridge rectification provided by the dimmer 113), the maximum value of the binary count is approximately 667 and is represented by a 10-bit binary signal. The AC zero crossing to AC zero crossing represents the period of the dimmer control signal 116. Therefore, within one period, 8.33 milliseconds would have passed. The 10-bit digital counter 715 has a total of 1024 counts, and when operated at 80 kHz the maximum amount of time represented by the count is 12.8 milliseconds. Therefore, the 120 Hz dimmer control signal 116 would represent 667 counts, as (8.33 milliseconds/12.8 milliseconds)×1024 counts=667 counts.
The cutoff generator 720 receives the zero crossing detector signal from the zero crossing detector and the count of the 10-bit binary counter 715. The cutoff generator 720 generates the low cutoff signal (TL) 525 and the high cutoff signal (TH) 520. While in the illustrated example, the high cutoff represents one fourth of the maximum value of the binary count, the cutoff generator may generate the high cutoff signal at any point. For example, the high cutoff point may be generated at one third, one fifth, or any other point within the AC period. The high cutoff signal is generated by receiving the 10-bit binary count output by the 10-bit binary counter 715, and storing the count upon receiving the zero crossing detector signal. The stored count thereby represents the maximum value of the binary count. The count stored by the 10-bit binary latch 725 is output first to the first binary divider. In the illustrated example, the first binary divider 730 divides the count by two. The count is divided by two by shifting the received binary count to the right. However, any other method of dividing a count by two may additionally or alternatively be used. The first divided count is output from the first binary divider 730 as an input to the second binary divider 735. The second binary divider 735 also divides the input count by two by shifting the count to the right. Again, any other method may additionally or alternatively be used to divide the count by two. The count output from the second binary divider 735 represents the count stored in the 10-bit binary latch 725 divided by four (e.g., one fourth).
To generate the low cutoff signal (TL) 525, the binary adder 740 adds the first divided count (representing one half of the AC period) from the first binary divider 730 with the second divided count (representing one quarter of the AC period) from the second binary divider 735. The resulting output of the binary adder 740 therefore represents three fourths of the AC period. While in the illustrated example, the low cutoff signal (TL) 525 represents three fourths of the maximum value of the binary count output by the 10-bit binary counter 715, the cutoff generator 720 may generate the low cutoff signal (TL) 525 at any point. For example, the low cutoff signal (TL) 525 may be generated at two thirds, four fifths, or any other point within the AC period. In a further example, the low cutoff signal (TL) 525 may be as late as the end of the AC period. In such an example, the low cutoff signal (TL) 525 may be generated by the zero crossing detector 705 that indicates the start and/or end of an AC period.
The rising edge detector 755 receives the dimmer control signal 116 from the dimmer 113, and detects the rising edge 205. The rising edge detector 775 of the illustrated example is a solid state rising edge detector that outputs an impulse signal when an input signal rises over a set value. The set value may be low in comparison to the rest of the AC period, such that the rising edge detector is most accurate after the high cutoff 410 and before the low cutoff 415. For example, the set value may be a value of the AC period typically occurring prior to the high cutoff signal (TH) 520 or after the low cutoff signal (TL) 525. In the illustrated example, the comparison within the rising edge detector 755 is performed by a comparator, however any other appropriate circuitry may additionally or alternatively be used. The rising edge detector 755 may further comprise a full bridge rectifier so that rising edges 205 occurring in negative AC periods appear as positive rising edges to the comparator.
The rising edge impulse signal generated by the rising edge detector 755 is transmitted to the 10-bit binary latch 760. The 10-bit binary latch 760 receives the current 10-bit binary count from the 10-bit binary counter 715 and the rising edge impulse signal from the rising edge detector 755. The rising edge impulse signal causes the latch 760 to store the count received from the 10-bit binary counter 715. The count stored by the latch 760 therefore represents the point within the AC period at which the rising edge 205 of the dimmer control signal 116 was detected by the rising edge detector 755, representing the firing angle of the TRIAC of the dimmer 113. The count stored by the latch 760 is output as a 10-bit binary timing signal.
The alternate period detector 770 receives the dimmer control signal 116 and outputs a 1-bit binary signal representing alternate periods of the dimmer control signal 116. In the illustrated example, the alternate period detector 770 comprises a comparator that outputs a binary signal representing a positive or negative input. While the example alternate period detector 770 is implemented by a comparator, any other method or circuitry for detecting alternating periods may additionally or alternatively be used.
Similar to the example illustrated in
The cutoff generator 720 of the example illustrated in
Similar to the example illustrated in
Similar to the example illustrated in
The impulse timing signal generator 775 receives the current count of the 10-bit binary counter, the 10-bit binary representation of the upper cutoff point 410, the 10-bit binary representation of the lower cutoff point 415, the 10-bit binary representation of the rising edge signal 205, and the sampling enable signal generated by the example positive period detector 770. The impulse timing signal generator 775 compares the inputs received and generates impulse timing signals capable of driving the signal positioner 320 as shown in
The output impulse signals of the impulse timing signal generator 775 are generated by comparing the input 10-bit representations to the current count of the 10-bit binary counter 715. When the 10-bit representations or modified versions thereof are equal to the current count of the 10-bit binary counter, the impulse timing signal generator 775 outputs a positive signal (e.g., one output impulse signal per 10-bit representation). While in the illustrated example positive logic is used to generate the output impulse signals, any alternative methods of generating the output impulse signals may be used. For example, negative or inverse logic may be used. In the illustrated example, the output signal remains positive as long as the 10-bit representations are equal to the current count of the 10-bit binary counter. For example, since the minimum amount of time of each increment is 12.5 microseconds, the output impulse signals will last for 12.5 microseconds. However, any duration of impulse signals may alternatively be used. For example, the impulse signals may have a duration of 1 microsecond.
When the impulse timing signal generator 775 is not receiving the sampling enable signal (e.g., when the dimmer control signal 116 is within a negative period), the impulse timing signal generator 775 outputs the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 as impulse signals representing the 10-bit binary representation of the upper cutoff point and the 10-bit binary representation of the lower cutoff point, respectively. While in the illustrated example, the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 are output when the impulse timing signal generator 775 is not receiving the sample enable signal, in alternative implementations the signals may not be output.
When the impulse timing signal generator 775 is receiving the sampling enable signal (e.g., when the dimmer control signal 116 is within an alternate period), the impulse timing signal generator 775 outputs the high cutoff signal (TH) 520 representing the 10-bit binary representation of the upper cutoff point, the rising edge signal (TEdge) 530 representing the 10-bit binary representation of the rising edge signal 205, the low cutoff signal (TL) 525 representing the 10-bit binary representation of the lower cutoff point 415, and the sampling signal (TS) 535. In general, the sampling signal (TS) 535 is equal to the minimum of either the 10-bit binary representation of the rising edge signal 205 or the 10-bit binary representation of the lower cutoff point 415. While in the illustrated example shown in
Incrementing the 10-bit binary representation of the rising edge signal 205 by 1 delays the rising edge signal (TEdge) 530 by 12.5 microseconds. Because the sampling signal is controlling sample and hold circuitry as shown in
When the 10-bit representation of the rising edge signal 205 is less than the 10-bit binary representation of the upper cutoff point 410, a 10-bit binary representation of the sampling signal is set to the same value as the 10-bit binary representation of the rising edge signal 205. The 10-bit binary representation of the sampling signal is thereby output as the sampling signal (TS) 535 and indicates that maximum brightness should be output by the LED 130. Further, the 10-bit binary representation of the rising edge signal 205 may be incremented by one count (e.g., the sampling signal (TS) 535 is delayed by 12.5 microseconds) to ensure that a correct sample is taken. While in the illustrated example, the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 are output when the 10-bit representation of the rising edge signal 205 is less than the 10-bit binary representation of the upper cutoff point 410, in alternative implementations the signals may not be output.
When the 10-bit representation of the rising edge signal 205 is greater than or equal to the 10-bit binary representation of the upper cutoff point 410 and less than the 10-bit binary representation of the lower cutoff point 415, the 10-bit binary representation of the sampling signal is set to the same value as the 10-bit binary representation of the rising edge signal 205. The 10-bit binary representation of the sampling signal is thereby output as the sampling signal (TS) 535 and indicates that a scaled brightness should be output by the LED 130. Further, the 10-bit binary representation of the rising edge signal 205 may be incremented by one count to ensure that a correct sample is taken.
When the 10-bit representation of the rising edge signal 205 is greater than or equal to the 10-bit binary representation of the lower cutoff point 415, the 10-bit binary representation of the sampling signal is set to the same value as the 10-bit binary representation of the lower cutoff point 415. The 10-bit binary representation of the sampling signal is thereby output as the sampling signal (TS) and indicates that no brightness should be output by the LED 130. In the illustrated example, the 10-bit binary representation of the lower cutoff point 415 is incremented (e.g., the low cutoff signal (TL) 525 is delayed) to allow for proper sampling. While in the illustrated example, the 10-bit binary representation of the lower cutoff point 415 is incremented by 1, the 10-bit binary representation of the lower cutoff point 415 is incremented by any other value up to and including a value that would increment the 10-bit binary representation to the end of the AC period. In a further implementation, the 10-bit binary representation of the lower cutoff point 415 may represent the rising edge signal (TEdge) 530. In such a scenario, the rising edge signal (TEdge) 530 occurs after the lower cutoff point 415 and before the end of the AC period. Thus, instead of incrementing the 10-bit binary representation of the lower cutoff point 415, the 10-bit binary representation of the lower cutoff point 415 may be set to a value known to be within an acceptable range (e.g., after the lower cutoff point 415 but before the end of the AC period.)
The example circuit 805 comprises a resistor and a capacitor. While in the illustrated example, only a resistor and a capacitor are shown, any other circuitry may additionally or alternatively be used. For example, multiple capacitors and/or resistors may be used to achieve a particular response. The example circuit is switched between charging and decaying by the switch 810. In the illustrated example, the switch is implemented by a relay driven by the signal received from the set-reset latch 820, however any other method of electronically controlling a switch may additionally or alternatively be used. For example, solid-state switches such as transistors may be implemented to controllably enable and/or disable the circuit 805. When the switch 810 is closed, current flows from the voltage source 815 and charges the circuit 805. When the switch 810 is open, the voltage stored in the circuit 805 decays. The circuit 805 exhibits an exponentially decayed response matching the exponential response of the brightness curve 405 illustrated in
The voltage source 815 provides a charging voltage (VMAX) to the circuit 805 when the switch is closed. The voltage represents the maximum value that the circuit 805 will charge to when the switch 810 is closed. In the illustrated example, the voltage source 815 is supplied by the reference voltages generated in the LED brightness controller 320. However, any other apparatus for generating a voltage may additionally or alternatively be used.
The set-reset latch 820 provides a control signal to the switch 810. The set-reset latch 820 receives the high cutoff signal (TH) 520 as a set signal, and receives the low cutoff signal (TL) 525 as a reset signal. Although the illustrated example of
The sample and hold circuit 825 receives the voltage from the circuit 805, and stores that voltage in response to receiving the sampling signal (TS) 535. In the illustrated example the sample and hold circuit 825 is comprised of an op amp having the positive input connected to the circuit 805, and having the negative input coupled to the output via a sampling switch. Further, a capacitor couples the output of the op amp to ground via the sampling switch. When the sampling switch is closed, the voltage across the circuit 805 is sampled and held. The sampled and held voltage is output as the sample and hold voltage 830.
The first case 905 illustrates the case where sampling signal (TS) 535 occurs before the high cutoff signal (TH) 520. First, the sampling signal (TS) 535 is received and causes the voltage signal 925 to be sampled as the sample and hold voltage 830. In the illustrated example, the set-reset latch 820 was previously reset (e.g., the voltage signal 925 was at its highest level), as the low cutoff signal (TL) 525 in a hypothetical previous AC cycle would have caused the set-reset latch 820 to become reset. Because the previous state of the sample and hold voltage 830 is not known, the sample and hold voltage 830 prior to the sampling signal (TS) 535 is represented as a dotted line. Once the voltage across the circuit 805 is sampled, the sample and hold voltage 830 is known, and is represented by a solid line. Next, the rising edge signal (TEdge) 530 is received, however the signal is ignored by the signal positioner 320. In alternative implementations, the rising edge signal (TEdge) 530 may not be ignored and may be implemented as an input to the reset terminal of the set-reset latch 820 via an OR gate coupled to the low cutoff signal (TL) 525. In such an implementation, the rising edge signal (TEdge) 530 would cause the set-reset latch 820 to remain reset.
Upon receiving the high cutoff signal (TH) 520 the set-reset latch 820 becomes set, and the state of the switch 810 changes from closed to open. The change in the state of the switch 810 causes the voltage signal 925 to decay. Next, the low cutoff signal (TL) 525 causes the set-reset latch 820 to become reset, and the switch 810 changes from open to closed. The change in the state of the switch 810 causes the voltage signal 925 to quickly return to VMAX, as supplied by the voltage source 815. Since the dimmer control signal 116 is periodic, the next period is an alternating period, and the sampling signal (TS) 535 does not occur. Since the voltage across the circuit is not re-sampled, the sample and hold voltage 830 remains constant. The output sample and hold voltage 830 is therefore equal to VMAX.
In alternative implementations, the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 may not be present in the first period of the first case 905. For example, the impulse timing signal generator 775 might not output the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 when the 10-bit binary representation of the rising edge signal 205 is less than the 10-bit binary representation of the upper cutoff point 410. In a further alternative implementation, the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 may not be present in the second period of the first case 905. For example, the impulse timing signal generator 775 might not output the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 when the sampling enable signal is not received. In such implementations, the voltage signal 925 would not decay, rather it would stay equal to VMAX as supplied by the voltage source 815.
The second case 910 illustrates the case where the sampling signal (TS) 535 occurs after the high cutoff signal (TH) 520 and before the low cutoff signal (TL) 525. First, the high cutoff signal (TH) 520 is received and the set-reset latch 820 becomes set, causing the switch 810 to become open and the voltage across the circuit 805 to decay. Next, the sampling signal (TS) 535 is received. The sampling signal (TS) 535 causes the sample and hold circuitry 825 to sample the decayed voltage across the circuit 805. Because the voltage across the circuit 805 decays at an exponential rate, the time at which the sampling signal (TS) 535 occurs causes an exponentially scaled voltage to be sampled after the high cutoff signal (TH) 520. Next, the rising edge signal (TEdge) 530 is received, however the signal is again ignored by the signal positioner 320. In alternative implementations, the rising edge signal (TEdge) 530 may not be ignored and may be implemented as an input to the reset terminal of the set-reset latch 820 via an OR gate coupled to the low cutoff signal (TL) 525. In such an implementation, the rising edge signal (TEdge) 530 would cause the set-reset latch 820 to become reset, and the voltage across the circuit 805 to return to VMAX. When the low cutoff signal (TL) 525 is received, the set-reset latch 820 becomes reset, and therefore the voltage across the circuit 805 returns to VMAX.
Because the previous state of the sample and hold voltage 830 is not known, the sample and hold voltage 830 prior to the sampling signal (TS) 535 is represented as a dotted line. Once the voltage signal 925 is sampled, the sample and hold voltage 830 is known, and is represented by a solid line. Similar to the first case, the sampling signal is not received during the second AC period, and therefore the sample and hold voltage 830 remains constant throughout the second AC period. While in the illustrated example the high cutoff signal (TH) 520 and low cutoff signal (TL) 525 are received during the second period of the second case 910, alternative implementations may not receive the high cutoff signal (TH) 520 and low cutoff signal (TL) 525 are during the second period. For example, the impulse timing signal generator 775 might not output the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 when the sampling enable signal is not received.
The third case 915 illustrates the case where the sampling signal (TS) 535 is received immediately before the low cutoff signal (TL) 525. First, the high cutoff signal (TH) 520 is received and causes the set-reset latch 820 to become set, thereby causing the switch 810 to become open and the voltage signal 925 to decay. The voltage signal 925 decays until it reaches a level representing no brightness. The sampling signal (TS) 535 is then received, followed by the low cutoff signal (TL) 525. The delay of the low cutoff signal (TL) 525 provides sufficient time for the sample and hold circuitry 825 to sample the voltage signal 925 in response to the sampling signal (TS) 535. Additionally or alternatively, the low cutoff signal (TL) 525 may be delayed to as late as the end of the AC period, thus causing the circuit 805 to recharge at a zero crossing of the AC source. The sampled voltage is then output as the sample and hold voltage 830 which indicates no brightness should be output by the LED 130. Because the previous state of the sample and hold voltage 830 is not known, the sample and hold voltage 830 prior to the sampling signal (TS) 535 is represented as a dotted line. Once the voltage signal 925 is sampled, the sample and hold voltage 830 is known, and is represented by a solid line.
Next, the rising edge signal (TEdge) 530 is received, however the signal is again ignored by the signal positioner 320. In alternative implementations, the rising edge signal (TEdge) 530 may not be ignored and may be implemented as an input to the reset terminal of the set-reset latch 820 via an OR gate coupled to the low cutoff signal (TL) 525. In such an implementation, the rising edge signal (TEdge) 530 would cause the set-reset latch 820 to remain reset, thereby resulting in no state change. Again, since the dimmer control signal 116 is periodic, the next period is negative, and the sampling signal (TS) 535 does not occur. Since the voltage across the circuit 805 is not re-sampled, the sample and hold voltage 830 remains constant. While in the illustrated example the high cutoff signal (TH) 520 and low cutoff signal (TL) 525 are received during the second period of the third case 915, alternative implementations may not receive the high cutoff signal (TH) 520 and low cutoff signal (TL) 525 are during the second period. For example, the impulse timing signal generator 775 might not output the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 when the sampling enable signal is not received.
In the illustrated example, the memory 1010 is a non-volatile memory. However, the memory 1010 may additionally or alternatively be implemented by any other type of memory such as, for example, a volatile memory. In the illustrated example, the timing signals 510 are received as binary timing signals similar to the binary timing signals generated by the period synchronizer 310 of
First, the differencer 1020 determines whether the count representing the rising edge signal (TEdge) 530 is lower than the count representing the high cutoff point (TH) 520. If the rising edge signal (TEdge) 530 is lower than the high cutoff point (TH) 520, the differencer 1020 outputs a value representing full brightness to the exponential digital to analog converter 1030. Next, the differencer 1020 determines whether the rising edge signal (TEdge) 530 is greater than the low cutoff point (TL) 525. If the rising edge signal (TEdge) 530 is greater than the low cutoff point (TL) 525 the differencer 1020 outputs a value representing no brightness to the exponential digital to analog converter 1030.
If the differencer 1020 determines that the rising edge signal (TEdge) 530 is neither lower than the high cutoff point (TH) 520 nor greater than the low cutoff point (TL) 525, then the rising edge signal (TEdge) 530 is between the lower and higher cutoff points 520, 525. The differencer 1020 then subtracts the count representing the high cutoff point (TH) 520 from the count representing the rising edge signal (TEdge) 530 as a difference value. The subtracted difference value represents a linear amount of time that has passed between the high cutoff point (TH) 520 and the rising edge signal (TEdge) 530. While in the illustrated example, the value represents the difference between the rising edge signal (TEdge) 530 and the high cutoff point (TH) 520, the value may additionally or alternatively represent the difference between the rising edge signal (TEdge) 530 and the low cutoff point (TL) 525. Further, while in the illustrated example, the difference value is the only signal transmitted to the exponential digital to analog converter, additional or alternative difference values may be transmitted such as, for example, the difference between the low and high cutoff points 525, 520.
The exponential digital to analog converter 1030 converts the linear difference value into an exponential brightness curve similar to the brightness curve 405 shown in
While an example manner of implementing the LED brightness controller 120 of
A flowchart representative of an example process that may be implemented using machine-readable instructions for implementing the LED brightness controller 120 of
The signal positioner 320 of the LED brightness controller 120 determines if the rising edge signal (TEdge) 530 occurred before the high cutoff signal (TH) 520 (block 1225). If the rising edge signal (TEdge) 530 occurred before the high cutoff signal (TH) 520, the outputter 330 outputs a signal to the LED driver 125 which causes the LED 130 to illuminate at full brightness (block 1230). If the rising edge signal (TEdge) 530 occurred after the high cutoff signal (TH) 520, the signal positioner 320 determines if the rising edge signal (TEdge) 530 also occurred after the low cutoff signal (TL) 525 (block 1235). If the rising edge signal (TEdge) 530 occurred after the low cutoff signal (TL) 525, the outputter 330 outputs a signal to the LED driver 125 that causes the LED 130 to not illuminate (block 1240). If the rising edge signal (TEdge) 530 occurred after the high cutoff signal (TH) 520 and before the low cutoff signal (TL) 525, the outputter 330 outputs a signal to the LED driver 125 which causes the LED 130 to illuminate at a scaled brightness (block 1245).
If sampling is not enabled, the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 are output from the impulse timing signal generator 775 at the appropriate times (block 1320) and control returns to block 1305 where the impulse timing signal generator 775 receives the binary representations (e.g., the binary representations may have changed from before). The output impulse signals are output by determining if the current count of the 10-bit binary counter 715 match the desired output time of the output impulse timing signals. While in the illustrated example the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525 are output from the impulse timing signal generator 775 when sampling is not enabled, alternative implementations may not output the high cutoff signal (TH) 520 and the low cutoff signal (TL) 525.
If sampling is enabled, the impulse timing signal generator 775 determines if the binary representation of the rising edge signal is less than the binary representation of the upper cutoff point (block 1325). If the binary representation of the rising edge signal is less than the binary representation of the upper cutoff point, the impulse timing signal generator 775 outputs the sampling signal (TS) 535, the high cutoff signal (TH) 520, and the low cutoff signal (TL) 525 at the appropriate times (block 1330). While in the illustrated example the high cutoff signal (TH) 520, the low cutoff signal (TL) 525, and the sampling signal (TS) 535 are output from the impulse timing signal generator 775, alternative implementations may only output the sampling signal (TS) 535 when the binary representation of the rising edge signal is less than the binary representation of the upper cutoff point. Control then returns to block 1305 where the impulse timing signal generator 775 receives the binary representations (e.g., the binary representations may have changed from before).
If the binary representation of the rising edge signal 205 is not less than the binary representation of the upper cutoff point 410, the impulse timing signal generator 775 determines if the binary representation of the rising edge signal 205 is less than the binary representation of the lower cutoff point 415 (block 1335). If the binary representation of the rising edge signal 205 is less than the binary representation of the upper cutoff point 415, then the user has selected that scaled brightness should be output by the LED 130. Thus, the sampling signal (TS) 535 is set to output at the time of the rising edge signal (TEdge) 530, and the rising edge signal (TEdge) 530 is incremented to prevent incorrect sampling from occurring (block 1337). Alternatively, if the rising edge signal (TEdge) 530 is not implemented by the signal positioner 320 (e.g., as shown in the example signal positioner 320 of
Next, the impulse timing signal generator 775 outputs the sampling signal (TS) 535, the high cutoff signal (TH) 520, and the low cutoff signal (TL) 525 at the appropriate times (block 1345). When the binary representation of the rising edge signal is less than the binary representation of the upper cutoff point, the sampling signal (TS) 535 is indicative of the rising edge signal 205 and causes the LED 130 to output a scaled brightness. Control then returns to block 1305 where the impulse timing signal generator 775 receives the binary representations (e.g., the binary representations may have changed from before).
As mentioned above, the example process(es) of
The system 1400 of the instant example includes a processor 1412. For example, the processor 1412 can be implemented by one or more TI microprocessors or digital controllers such as MSP430™ or C2000™ families. Of course, other processors from other manufacturers such as Intel® may also be appropriate.
The processor 1412 is in communication with a main memory including a volatile memory 1414 and a non-volatile memory 1416 via a bus 1418. The volatile memory 1414 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS Dynamic Random Access Memory (RDRAM) and/or any other type of random access memory device. The non-volatile memory 1416 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 1414, 1416 is typically controlled by a memory controller (not shown).
The example processor system 1400 also includes an interface circuit 1420. The interface circuit 1420 may be implemented by any type of interface standard, such as an Ethernet interface, a universal serial bus (USB), and/or a PCI express interface.
One or more input devices 1422 are connected to the interface circuit 1420. The input device(s) 1422 permit a user to enter data and commands into the processor 1412. The input device(s) can be implemented by, for example, a dial, a slider, a mouse, a touchscreen, a track-pad, a trackball, isopoint and/or a voice recognition system.
One or more output devices 1424 are also connected to the interface circuit 1420. The output devices 1424 can be implemented, for example, by display devices (e.g., a liquid crystal display, a cathode ray tube display (CRT), and/or lights).
The interface circuit 1420 also includes a communication device such as a modem or network interface card to facilitate exchange of data with external computers via a network 1426 (e.g., an Ethernet connection, a digital subscriber line (DSL), a telephone line, coaxial cable, a cellular telephone system, etc.).
The processor system 1400 also includes one or more mass storage devices 1428 for storing software and data. Examples of such mass storage devices 1428 include floppy disk drives, hard drive disks, compact disk drives and digital versatile disk (DVD) drives. The mass storage device 1428 may implement the memory 1010.
The coded instructions of
From the foregoing, it will be appreciated that the above disclosed methods, apparatus and articles of manufacture allows the brightness of LED lights to be accurately and controllably be dimmed between full brightness and no brightness. Further, lower pin count and therefore lower cost can be achieved as the LED brightness controller 120 can be implemented via a minimal amount of components. The led brightness level can be quickly determined as computational quickness is determined by the frequency of the AC source signal. The LED brightness controller 120 also provides filtering to the dimmer control signal, which removes inherent asymmetry present in the TRIAC circuitry of the dimmer 113.
Although certain example methods, apparatus, and articles of manufacture have been described herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all methods, apparatus, and articles of manufacture fairly falling within the scope of the claims of this patent.