Load control devices, such as switches, for example, use electrical relays to switch alternating currents being supplied to an electrical load. The life time of such electrical relays may be shortened by arcs or sparks caused at the instant when the relay closes. Some prior art systems seek to suppress arcs by controlling the relay actuation time such that the relay contact(s) close as nearly as possible to a zero cross of the alternating-current (AC) waveform.
In operation, the example prior art relay switch control circuit detects the zero crossing 110A, waits for a relay actuation adjustment 150A, and actuates the relay at time 130A. The relay actuation adjustment time period 150A corresponds to the difference between a full AC cycle and the relay-actuation delay time period 120. When the relay contact(s) are closed at the zero crossing 110B, substantially no current flows through the relay contact(s). The value of the relay-actuation delay time period 120 may be updated to account for any variation caused by temperature, and/or aging or deterioration over the life time of the relay.
When a relay closes, however, there is a settling time before the relay contact(s) come to rest in the closed state. For example, as shown in
Some prior art systems seek to address this problem by offsetting the relay actuation time by one-half of the relay contact-bounce duration.
Some prior art systems also control the relay open actuation time such that the relay contact(s) open as nearly as possible to a zero crossing of the AC waveform. The relay actuation time is offset by an open time delay in a time-aligned manner relative to a zero-crossing. The hope is that the relay contact(s) will actually be opened when the power source current is substantially zero amps. Such prior art systems check whether the open time delay is outdated due to hardware aging, and replace the present value with a new value upon detecting that the open time delay is no longer correct. This type of reactive correction may still result in relays opening with a high voltage. Unfortunately, when a relay opens with a high voltage, undesirable arcing may occur and may persist through the next zero crossing. This may significantly shorten the operative life of the relay.
A load control device may control power delivered to an electrical load from an AC power source. The load control device may include a controllably conductive device adapted to be coupled in series electrical connection between the AC power source and the electrical load, and a zero-cross detect circuit configured to generate a zero-cross signal representative of the zero-crossings of an AC voltage. The zero-cross signal may be characterized by pulses occurring in time with the zero-crossings of the AC voltage. The load control device may include a control circuit operatively coupled to the controllably conductive device and the zero cross detect circuit. The control circuit may be configured to identify a rising-edge time and a falling-edge time of a pulse of the zero-cross signal, and may control a conductive state of the controllably conductive device based on the rising-edge time and the falling-edge time of the pulse.
For example, the zero-cross detect circuit may generate a zero-cross signal representative of the zero-crossings of an AC voltage generated by the AC power source. In response to a turn-on or a turn-off command, the control circuit may determine a zero-cross time of a zero crossing of the AC voltage based on the rising-edge time and the falling-edge time of the respective pulse of the zero-cross signal, and may determine a time for changing the conductive state of the controllably conductive device based on the determined zero-cross time. For example, the zero-cross time may be determined by calculating the midpoint of the rise and falling-edge times of the respective pulse.
The control circuit may control the conductive state of the controllably conductive device by actuating the controllably conductive device. For example, the actuation of the controllably conductive device may be initiated at an actuation time, which may be determined based on a relay actuation adjustment associated with the controllably conductive device and a detected zero crossing. The relay actuation adjustment may be indicative of a time at which the relay drive voltage is adjusted relative to a subsequent zero-crossing for rendering the controllably conductive device conductive or non-conductive. The relay actuation adjustment may be indicative of a time at which the relay drive voltage is adjusted relative to a detected zero-crossing for rendering the controllably conductive device conductive or non-conductive. For example, the zero-cross detect circuit may generate a zero-cross signal representative of the zero-crossings of a switched-hot voltage generated by the controllably conductive device to be provided to the electrical load when the controllably conductive device is conductive. The control circuit may identify a rising-edge time and a falling-edge time of a pulse of the zero-cross signal. Based on the rising-edge time and the falling-edge time, the control circuit may determine whether an error in the conductive state change time has occurred. The control circuit may set an error window based on the rising-edge time and the falling-edge time of the pulse, and monitor conductive state of the controllably conductive device during the error window. Upon a determination that the conductive state changes within the error window, the control circuit may adjust the relay actuation adjustment associated with the controllably conductive device.
The error window may be dynamically set based on the rising-edge time and the falling-edge time of the pulse of the zero-cross signal. For example, the error window may be set as a period of time between the falling-edge time of a first subsequent pulse and the rising-edge time of a second consecutive subsequent pulse. A close error detection window may be set for relay close operations, for example, as a period of time after the falling-edge time of a subsequent pulse of the zero-cross signal. An open error detection window may be set for relay open operations, for example, as a period of time before the rising-edge time of a subsequent pulse of the zero-cross signal.
For example, the zero-cross detect circuit may generate a zero-cross signal representative of the zero-crossings of an AC voltage generated by the AC power source. The control circuit may determine zero-cross times of the AC voltage based on rising-edge times and falling-edge times of the pulses, and may vary conductive state change times of the controllably conductive device relative to their respective zero-cross times such as their respective target zero-cross times. The conductive state change times may be varied continuously within a time range prior to the target zero-cross times. The time range may be associated with a left barrier and a right barrier, where the left barrier may correspond to a predefined time prior to the target zero-cross time and the right barrier may correspond to the target zero-cross time. The conductive state change times may be varied such that the conductive state change times of the controllably conductive device may continuously move away from their respective target zero-cross times, e.g., in a given iteration. The conductive state change times associated with changing from a conductive state to a non-conductive state may be varied even when an error in the conductive state change time has not been detected.
As disclosed herein, the load control device for controlling an amount of power delivered to an electrical load from an AC power source may include a controllably conductive device adapted to be coupled in series electrical connection between the AC power source and the electrical load; a zero-cross detect circuit configured to generate a zero-cross signal representative of the zero-crossings of an AC main voltage of the AC power source, the zero-cross signal characterized by a plurality of pulses occurring in time with the zero-crossings of the AC voltage, and a control circuit operatively coupled to the controllably conductive device and the zero-cross detect circuit for rendering the controllably conductive device conductive and non-conductive in response to the zero-cross detect circuit to control the power delivered to the electrical load. The control circuit may be configured to store a rising-edge time and falling-edge time of one of the pulses of the zero-cross signal and to determine a zero-cross time of the respective zero-crossing of the AC voltage using both the rising-edge time and the falling-edge time of the respective pulse.
In addition, a method of determining a zero-crossing of an AC mains voltage generated by an AC power source is also disclosed herein. The method may include generating a zero-cross signal representative of the zero-crossings of the AC voltage, the zero-cross signal characterized by a plurality of pulses occurring in time with the zero-crossings of the AC voltage; storing a rising-edge time and a falling-edge time of one of the pulses of the zero-cross signal; and determining the zero-cross time of the respective zero-crossing of the AC voltage using both the rising-edge time and the falling-edge time of the respective pulse.
As disclosed herein, a load control device for controlling power delivered to an electrical load from an AC power source generating an AC voltage may include a controllably conductive device adapted to be coupled in series electrical connection between the AC power source and the electrical load; a zero-cross detect circuit configured to generate a zero-cross signal representative of the zero-crossings of the AC voltage, the zero-cross signal characterized by a plurality of pulses occurring in time with the zero-crossings of the AC voltage; and a control circuit operatively coupled to the controllably conductive device and the zero-cross detect circuit for rendering the controllably conductive device conductive and non-conductive in response to the zero-cross detect circuit to control the power delivered to the electrical load. The control circuit is configured to store a rising-edge time and a falling-edge time of one of the pulses of the zero-cross signal and to determine a zero-cross time of the respective zero crossing of the AC voltage using both the rising-edge time and the falling-edge time of the respective pulse.
In addition, a load control device for controlling power delivered to an electrical load from an AC power source generating an AC voltage, the load control device may include a relay adapted to be coupled in series electrical connection between the AC power source and the electrical load for generating a switched-hot voltage adapted to be provided to the electrical load, a control circuit configured to generate a drive voltage that is operatively coupled to the relay for rendering the relay conductive and non-conductive, the relay rendered conductive a first period of time after the drive voltage is adjusted and rendered non-conductive a second period of time after the drive voltage is adjusted, a hot zero-cross detect circuit configured to generate a hot zero-cross signal representative of the zero-crossings of the AC voltage, the hot zero-cross signal characterized by a plurality of pulses occurring in time with the zero-crossings of the AC voltage, a switched-hot zero-cross detect circuit configured to generate a switched-hot zero-cross signal representative of the zero-crossings of the switched-hot voltage, the switched-hot zero-cross signal characterized by a plurality of pulses occurring in time with the zero-crossings of the switched-hot voltage when the relay is conductive. The control circuit may be configured to receive the hot zero-cross signal and the switched-hot zero-cross signal, and to determine a zero-cross time of a pulse of the hot zero-cross signal. The control circuit is configured to store a rising-edge time and a falling-edge time of a pulse of the switched-hot zero-cross signal when the relay is conductive, and to set start and end times of an error detection window as a function of the zero-cross time of the hot zero-cross signal and the rising-edge time and falling-edge time of the switched-hot zero-cross signal.
As shown in
The load control device may actuate the relay at the relay actuation time 330 prior to the target zero crossing 310B for the relay closure. As shown, the relay actuation time 330 may lead the target zero crossing 310B by a relay-actuation delay time period 320, the average relay contact-bounce duration 350 and one-half of the average relay contact-bounce duration 360. The relay-actuation delay time period 320 may correspond to the time interval between relay actuation time and when the relay contact(s) initially close in response to actuation.
In operation, the load control device may detect the zero crossing 310A, determine and wait for a relay actuation adjustment time period 370, and actuate the relay at the relay actuation time 330. The relay actuation adjustment time period 370 may correspond to the difference between a full AC line cycle and the sum of the relay-actuation delay time period 320, the average relay contact-bounce duration 350 and one-half of the average relay contact-bounce duration 360. As a result, after the relay is actuated at the relay actuation time 330, the contacts of the relay may initially close at relay initial closure time 335. The relay contact(s) may bounce for a relay contact-bounce duration. Although the relay contact-bounce duration of a relay may vary with each relay closure, because the load control device adjusts the relay actuation time by one and one-half of the relay contact-bounce duration, the contacts may reliably complete bouncing prior to but close to a target zero crossing. For example, the relay actuation adjustment time period 370 may be determined such that the relay contact completes bouncing just prior to a target zero crossing with 95% confidence interval when initiating the actuation based on the relay actuation adjustment.
At 404, an average relay contact-bounce duration may be retrieved from memory. The average relay contact-bounce duration may correspond to the average amount of time the relay contact(s) may bounce during relay closure. For example, for certain relays, the average relay contact-bounce duration has been determined to be about 200 μs more or less. The average relay contact-bounce duration may be calculated based on the maximum relay contact-bounce duration observed through experimentation. For example, the average relay contact-bounce duration may be one half of the maximum relay contact-bounce duration. The average relay contact-bounce duration may be stored as a parameter value in memory. In operation, the average relay contact-bounce duration may be retrieved from memory. The average relay contact-bounce may be determined by the load control device during operation.
At 406, a relay actuation adjustment time period may be determined. The relay actuation adjustment time period may be indicative of the time interval between a detected zero crossing and when the relay closure is initiated. The relay actuation adjustment time period may be determined based on the relay-actuation delay time period and the average relay contact-bounce duration. For example, the relay actuation adjustment time period may be equal to a full AC line cycle minus the sum of the relay-actuation delay time period and one and one-half of the average relay contact-bounce duration (e.g., 300 μs). For example, the relay actuation adjustment time period may be equal to a full AC line cycle minus the sum of the relay-actuation delay time period and one and one-fourth of the average relay contact-bounce duration (e.g., 250 μs). For example, the relay actuation adjustment time period may be equal to a half AC line cycle minus the sum of the relay-actuation delay time period and one and one-half of the average relay contact-bounce duration, or a half AC cycle minus the sum of the relay-actuation delay time period and one and one-fourth of the average relay contact-bounce duration. At 407, the relay actuation adjustment time period may be stored as a parameter value in memory.
At 408, a zero crossing may be detected. For example, a voltage zero crossing of the AC waveform may be detected using a voltage zero crossing detector. For example, a current zero crossing of the AC waveform may be detected using a current zero crossing detector.
At 410, the relay actuation may be initiated based on the relay actuation adjustment time period and the detected zero crossing. For example, upon detecting the zero crossing, the relay actuation time may be determined based on the relay actuation adjustment time period value stored in memory and the time of the detected zero crossing. The relay actuation time may correspond to the time following a detected zero crossing by the relay actuation adjustment time period. In other words, the load control device may determine and wait for the relay actuation adjustment time period before actuating the relay at the relay actuation time. At 420, the method may end.
The load control device 500 may include a control circuit 520 for controlling the operation of the load control device 500. The control circuit 520 may include a microcontroller, a programmable logic device (PLD), a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or any suitable processing device or control circuit. The load control device 500 may include a zero-cross detector 510 for detecting the zero crossings of the input AC waveform from the AC power source 502. A zero crossing may be the time at which the AC supply voltage transitions from positive to negative polarity, or from negative to positive polarity, at the beginning of each half-cycle. A zero crossing may be the time at which the AC supply current transitions from positive to negative polarity, or from negative to positive polarity, at the beginning of each half-cycle. The control circuit 520 may receive the zero cross information from the zero-cross detector 510 and may provide the control inputs to the drive circuit 508 to render the controllably conductive device 504 conductive and non-conductive at predetermined times relative to the zero crossings of the AC waveform. For example, the zero-cross detector 510 may generate a zero cross signal to the control circuit 520 upon detecting a voltage zero crossing. The zero-cross detector 510 may generate a zero cross signal to the control circuit 520 upon detecting a voltage zero crossing when the AC power source 502 enters a negative half cycle and when the AC power source 502 enters a positive half cycle. The zero-cross detector 510 may generate a zero cross signal to the control circuit 520 upon detecting a voltage zero crossing only when the AC power source 502 enters a negative half cycle. The zero-cross detector 510 may generate a zero cross signal to the control circuit 520 upon detecting a voltage zero crossing only when the AC power source 502 enters a positive half cycle. The zero-cross detector 510 may generate a zero cross edge interrupt upon detecting the zero crossing.
The control circuit 520 may also be coupled to a memory 512 for storage and/or retrieval of the average relay-bounce duration, the relay actuation adjustment time period, the duration of a half cycle, the duration of a full cycle, the relay-actuation delay time period, instructions/settings for controlling the electrical load 518, and/or the like. The memory 512 may be implemented as an external integrated circuit (IC) or as an internal circuit of the control circuit 520. A power supply 506 may generate a direct-current (DC) voltage VCC for powering the control circuit 520, the memory 512, and other low voltage circuitry of the load control device 500.
The load control device 500 may include an initial closure detector 516 for detecting an initial closure of the controllably conductive device 504. Upon detecting the initial closure of the controllably conductive device 504, the initial closure detector 516 may generate an initial closure signal to the control circuit 520. The initial closure detector 516 may generate an initial closure signal to the control circuit 520 when the relay is closed in a negative half cycle and when the relay is closed in a positive half cycle. The initial closure detector 516 may generate an initial closure signal to the control circuit 520 only when the relay is closed in a negative half cycle. The initial closure detector 516 may generate an initial closure signal to the control circuit 520 only when the relay is closed in a positive half cycle. The initial closure detector 516 may generate an initial closure edge interrupt on the initial closure signal upon detecting the initial closure of the controllably conductive device 504. The initial closure detector 516 may comprise similar circuitry as the zero-cross detector 510.
The control circuit 520 may receive an input signal 522 from an input circuit 524 (e.g., such as a user interface). Upon receiving an input signal 522 indicating the controllably conductive device is to be conductive, the control circuit 520 may initiate relay actuation such that the relay contact(s) complete or substantially complete bouncing just prior to a subsequent zero crossing. For example, upon receiving the input signal 522, the control circuit 520 may wait for a signal from the zero-cross detector indicating a voltage zero cross has occurred. The control circuit 520 may determine a time, based on the timing of the zero crossing, for providing a drive signal to the drive circuit 508 to actuate the controllably conductive device 504. The time for providing a drive signal to the drive circuit 508 may correspond to the relay actuation time 330 described herein with respect to
At 630, the load control device 500 may operate in the adjust state. In the adjust state, the control circuit 520 may be operable to determine the relay actuation adjustment time period 370 by adjusting from the baseline relay actuation adjustment time period. The relay actuation adjustment time period 370 may be determined such that the relay contact may complete or substantially complete bouncing close to but prior to a target zero crossing. The control circuit 520 may determine the relay actuation delay time period associated with the relay based on the time difference between the zero cross signal and the initial closure signal.
The control circuit 520 may initiate a turn on sequence and wait for a first zero cross edge interrupt 720A. The zero-cross detector 510 may detect zero crossing 710A, and may generate first zero cross edge interrupt 720A. The first zero cross edge interrupt 720A may be received briefly after the actual zero crossing 710A, for example, after a hardware delay 715.
Upon receiving the zero cross edge interrupt 720A, the control circuit 520 may determine a relay actuation time 735A. The relay actuation time 735A may correspond to a time point following the zero cross edge interrupt 720A by the baseline relay actuation adjustment time period 725. For example, the control circuit 520 may start a timer that may stop or expire after running for the baseline relay actuation adjustment time period 725 to trigger the relay actuation at the relay actuation time 735A. When the timer expires, the control circuit 520 may generate a relay set signal to the drive circuit 508. The relay set signal may remain active for a relay actuation duration. For example, if the relay is a latching relay, the relay actuation duration may be the time between the relay actuation time 735C and a relay release time 735B. The relay set signal may remain active for the entire time that the relay is to be closed.
The control circuit 520 may receive a second zero cross edge interrupt 720B. The second zero cross edge interrupt 720B may be received briefly after the zero-cross detector 510 detects the actual zero crossing 710B, for example, after the hardware delay 715. Upon actuation of the relay at the relay actuation time 735A, the relay contact may initially close after the relay actuation delay or the relay close delay 750. The initial closure detector 516 may detect an initial closure of the relay contact(s) and may generate an initial closure edge interrupt 740A on the initial closure signal. The control circuit 520 may receive an initial closure edge interrupt 740A on the initial closure signal when the relay contact(s) initially close (e.g., prior to any potential relay bounce not shown in
The control circuit 520 may adjust the baseline relay actuation adjustment based on the switching differential 755A and the hardware delay 715. For example, the adjusted relay actuation adjustment time period may be equal to the baseline relay actuation adjustment time period modified by the difference between the switching differential period 755A and the hardware delay period 715 (e.g., adjusted relay actuation adjustment time period=baseline relay actuation adjustment time period−(switching differential period−hardware delay period)).
The control circuit 520 may initiate a turn on sequence and wait for a first zero cross edge interrupt 720C. The zero-cross detector 510 may detect a zero crossing 710C, and may generate first zero cross edge interrupt 720C. The first zero cross edge interrupt 720C may be received briefly after the actual zero crossing 710C. Upon receiving the zero cross edge interrupt 720C, the control circuit 520 may determine an adjusted relay actuation time 735C. The adjusted relay actuation time 735C may correspond to the adjusted relay actuation adjustment time period 760 after the zero cross edge interrupt 720C. The adjusted relay actuation adjustment time period 760 may be determined based on the previous switching differential period (e.g., the switching differential period 755A shown in
The control circuit 520 may start a timer that may stop or expire after running for the adjusted relay actuation adjustment time period 760 to trigger relay actuation at an adjusted relay actuation time 735C. When the timer expires, the control circuit 520 may generate a relay set signal to the drive circuit 508. The relay set signal may continue to be active from the relay actuation time until the relay release time 735D. The control circuit 520 may receive a second zero cross edge interrupt 720D. The second zero cross edge interrupt 720D may be received briefly after the zero-cross detector 510 detecting the actual zero crossing 710D. Upon actuation of the relay at the adjusted relay actuation time 735C, the relay contact may initially close after relay actuation delay time period or the relay close delay time period 750. The initial closure detector 516 may detect an initial closure of the relay contact(s) and may generate an initial closure edge interrupt 740B on the initial closure signal. The control circuit 520 may receive an initial closure edge interrupt 740B on the initial closure signal when the relay contact initially closes. The control circuit 520 may calculate a new switching differential period 755B that may correspond to the time difference between the initial closure edge interrupt 740B and the zero cross edge interrupt 720D. The new switching differential period 755B may be indicative of the time difference between the initial closure of the relay contact and the target zero crossing.
The control circuit 520 may compare the new switching differential period 755B to the hardware delay period 715 to determine whether to further adjust the relay actuation adjustment time period. The control circuit 520 may determine to further adjust the relay actuation adjustment time period when the new switching differential period 755B is not equal to or is outside of a predetermined range of the hardware delay period 715. This may indicate that when the relay is actuated based on the adjusted relay actuation time, the relay does not initially close at, or close to, the target zero crossing such as zero crossing 710D. The control circuit 520 may determine to adopt a given value of the relay actuation adjustment time period when the resulting switching differential period 755B is equal to or within a predetermined range of the hardware delay period 715. This may indicate that when the relay is actuated based on the adjusted relay actuation time, the relay is initially closed at, or sufficiently close to, the target zero crossing such as zero crossing 710D.
Upon determining a relay actuation adjustment time period that may allow the relay contact to initially close at a target zero crossing, the control circuit 520 may offset the relay actuation adjustment time period by one and one half of the average relay contact-bounce duration. The control circuit 520 may similarly determine a relay actuation adjustment time period for relay open operations.
The relay actuation delay time period or relay close delay time period 750 may change throughout the life of a relay due to aging or deterioration or due to different temperature or voltage conditions. The relay actuation adjustment time period may be updated using the process described herein with respect to
Turning back to
In the hold state 640, the control circuit 520 may not adjust the relay actuation adjustment time period 370 for a predetermined number of switching cycles. For example, the load control device may transition from the hold state to the adjust state every predetermined number of switching cycles such as a switching cycle hold count. At 650, the control circuit 520 may determine whether the switching cycle hold count has been reached. The switching cycle hold count may be 900, 1000, 700 or the like. Based on a determination that the switching cycle hold count has been reached, the load control device 500 may transition from the hold state to the adjust state. The relay set time may be adjusted by the switching differential prior to entering the adjust state. Based on a determination that the switching cycle hold count has not been reached, the load control device 500 may continue to operate in the hold state.
In the hold state 640, the control circuit 520 may monitor the time difference between the initial closure of the relay and the target zero crossing. The control circuit 520 may compare the time difference to a predetermined threshold and determine whether a readjustment of the value of the relay actuation adjustment time period may be needed. For example, if the time difference is below a predetermined threshold, the control circuit 520 may alter, such as increment, the switching cycle hold count by 1. Upon detecting the time difference exceeding the predetermined threshold, the control circuit 520 may alter the switching cycle hold count by a significantly larger number such as 100, 150, 200, or the like such that the control circuit may transition from the hold state 640 to the adjust state 630 before a predetermined number of switching cycles have actually occurred. Similarly, the control circuit 520 may monitor the time difference between the opening (e.g., initial opening) of the relay and the target zero crossing, and may alter the switching cycle hold count accordingly. There may be a switching cycle hold count associated with relay closing operations and a switching cycle hold count associated with relay opening operations.
In the hold state, the control circuit 520 may compare the time difference between the initial closure of the relay and the target zero crossing to a predetermined high error threshold. Upon detecting the time difference exceeding the high error threshold, the load control device 500 may immediately transition to the adjust state. The control circuit 520 may compare the time difference between the opening (e.g., initial opening) of the relay and the target zero crossing to a predetermined high error threshold. Upon detecting the time difference exceeding the high error threshold, the load control device 500 may immediately transition to the adjust state.
The load control device 500 may close the controllably conductive device 504 in alternating half cycles. Closing the controllably conductive device 504 in alternating half cycles may extend the operative life of the controllably conductive device. If the current flow always occurs in the same direction when closing a relay, material may transfer between the relay contact(s) over time. Alternating between switching when there is a positive and negative current flow may prevent or reduce such undesirable material transfer.
As described herein, the control circuit 520 may monitor the time difference between the initial closure of the relay contact and the target zero crossing. This time difference may be measured differently when closing the relay just prior to a positive half-cycle and when closing the relay just prior to a negative half-cycle. In an embodiment, the time difference can only be measured in the negative half-cycle.
The control circuit 520 may determine whether a detected opening falls within an error window. The error window may include a preset window (e.g., 500 μs after the negative half-cycle zero crossing 905A and 1 ms prior to the positive half cycle zero crossing 905B). The error window associated with relay opening operations may be the same or different than the error window associated with relay closing operations. If the detected opening falls within the error window 920, the switching cycle hold count may be altered such that the hold state may exit prior to the regular hold state period. The switching differential as described herein, for example, with respect to
If a relay closure is measured in an error window, the switching cycle hold count may be altered such that the hold state may exit prior to the regular hold state period. The switching cycle hold count may be altered by a different value based on whether the error in the closure is caused by an increase in the relay-actuation delay or by a decrease in the relay-actuation delay. For example, when the target closure is just before a positive half-cycle, a decrease in the relay-actuation delay time period can be measured. When the target closure is just before a negative half-cycle, an increase in relay-actuation delay time period can be measured. As a large decrease in the relay-actuation delay time period may signify an erroneous lock was achieved, for example, at a low relay voltage, the switching cycle hold count may be altered by a larger value if the error in closure time or relay actuation time is caused by a decrease in the relay-actuation delay time period than by an increase in the relay-actuation delay time period.
As shown in
The load control device 1100 may include a controllably conductive device 1110 (e.g., but not limited to, a relay or the like) coupled in series electrical connection between the hot terminal H and the switched-hot terminal SH for controlling the power delivered to the lighting load. Alternatively or additionally, the controllably conductive device 1110 may include, for example a bidirectional semiconductor switch (such as, but not limited to, a triac, a FET in a rectifier bridge, two FETs in anti-series connection, or one or more insulated-gate bipolar junction transistors) or any other suitable switching circuit. The load control device 1100 may include a control circuit 1114 that may be operatively coupled to the controllably conductive device 1110 via a drive circuit 1112. The load control device 1100, for example via the control circuit 1114 and/or the drive circuit 1112, may render the controllably conductive device 1110 conductive and non-conductive to control the power delivered to the load 1104. For example, the control circuit 1114 may include a microcontroller, a programmable logic device (PLD), a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or any suitable processing device, controller, control circuit or the like.
As shown, the load control device 1100 may include one or more zero-cross detect circuits such as a hot zero-cross detector 1116 and/or a switched-hot zero-cross detector 1118. The hot zero-cross detector 1116 may be operatively coupled between the hot terminal H and the neutral terminal N. The switched-hot zero-cross detector 1118 be operatively coupled between switched-hot terminal SH and the neutral terminal N. The hot zero-cross detector 1116 may generate a hot zero-cross signal VCC-H indicative of the zero-crossings of the hot voltage VH. The zero-crossings of the hot voltage VH may correspond to the voltage zero crossings of the AC power source 1102. The switched-hot zero-cross detector 1118 may generate a switched-hot zero-cross signal VZC-SH indicative of the zero-crossings of the switched-hot voltage VSH. The control circuit 1114 may receive the hot zero-cross signal VZC-H and the switched-hot zero-cross signal VZC-SH, and may render the controllably conductive device 1110 conductive and non-conductive based on the signal(s). The control circuit 1114 may calculate a zero-cross time tZC of each zero-crossing of the hot voltage VH based on the hot zero-cross signal VZC-H. The control circuit 1114 may determine when the controllably conductive device 1110 should change its conductive state based on the switched-hot zero-cross signal VZC-SH.
The load control device 1100 may include a communication circuit 1120 for transmitting and/or receiving control signals or digital messages. For example, the communication circuit 1120 may include a wireless communication circuit, such as, a radio-frequency (RF) receiver for receiving RF signals, an RF transmitter for transmitting RF signals, an RF transceiver for transmitting and receiving RF signals, an infrared (IR) communication circuit or the like. Alternatively or additionally, the communication circuit 1120 may be operable to receive digital messages via a wired communication link, such as, for example, an Ethernet communication link, a digital addressable lighting interface (DALI) communication link, a power-line carrier (PLC) communication link, a 0-10V control link, or other suitable wired communication link. For example, the control circuit 1114 may be operable to receive control signals or digital messages from an external control device (such as, a remote control, an occupancy sensor, a vacancy sensor, or a daylight sensor) via the communication circuit 1120 and may control the controllably conductive device 1110 to turn the load 1104 on and off in response to the received control signals or digital messages.
The load control device 1100 may include a memory 1122 for storage and retrieval of operational data and characteristics of the load control device. The memory 1122 may include an external integrated circuit (IC) or as an internal circuit of the control circuit 1114. The load control device 1100 may include a power supply 1124 operatively coupled between the hot terminal H and the neutral terminal N for generating a DC supply voltage VCC for powering the control circuit 1114, the communication circuit 1120, the memory 1122, and other low-voltage circuitry of the load control device. The load control device 1100 may include one or more actuators (not shown) for providing manual inputs from a user, such that the control circuit could control the controllably conductive device 1110 to turn the load 1104 on and off in response to the manual inputs.
The control circuit 1114 may generate a drive signal VDR, which may be provided to the drive circuit 1112 for rendering the controllably conductive device 1110 conductive and non-conductive. The timing of the drive signal VDR may be determined based on the zero-crossings of the hot voltage VH and/or the switched-hot voltage VSH. For example, when the magnitude of the hot voltage VH is above a zero-cross voltage threshold VZC-TH (e.g., approximately 28, 30, 32 volts or any other suitable value), the hot zero-cross detect circuit 1116 may drive the magnitude of the hot zero-cross signal VZC-H low towards circuit common. The hot zero-cross detector 1116 may drive the magnitude of the hot zero-cross signal VZC-H high towards the power supply voltage VCC when the magnitude of the hot voltage VH drops below the zero-cross voltage threshold VZC-TH. The hot zero-cross detector 1116 may drive the magnitude of the hot zero-cross signal VZC-H low when the magnitude of the hot voltage VH rises back above the zero-cross voltage threshold VZC-TH.
t
ZC
=t
RISE+1/2·(tFALL−tRISE).
The pulse width TZC-H of the pulses 1200 of the hot zero-cross signal VZC-H may be dependent upon the amplitude of the hot voltage VH. The pulse width TZC-H of the pulses 1200 of the hot zero-cross signal VZC-H may be dependent upon the values of the electrical components of the hot zero-cross detector 1116 (e.g., due to the tolerances of the components). As a result, the pulse width TZC-H of the hot zero-cross signal VZC-H may vary from one zero-cross detector to the next and/or from one installation of the load control device 1100 to the next. The pulse width TZC-H may change over time as the electrical components of the hot zero-cross detect circuit 1116 age and change in value. By calculating the zero-cross time tZC as the midpoint or average of the rising-edge time tRISE and the falling-edge time fFALL, the zero-cross time tZC may be independent of the amplitude of the hot voltage VH and the values of the components of the zero-cross detector 1116. Accordingly, the determination of the zero-cross time tZC may be substantially consistent across the lifetime of the load control device 1100, from one zero-cross detector to the next, and/or from one installation of the load control device to the next.
The relay actuation time may be determined based on the zero-cross time of the hot voltage VH. For example, the control circuit 1114 may use the zero-cross time tZC to determine when to adjust the drive signal VDR to render the controllably conductive device 1110 conductive or non-conductive at the appropriate times.
The switched-hot zero-cross detector 1118 may generate the switched-hot zero-cross signal VZC-SH in response to the switched-hot voltage VSH in a similar manner as the hot zero-cross detector 1116 generates the hot zero-cross signal VZC-H in response to the hot voltage VH. A pulse 1202 of the switched-hot zero-cross signal VZC-SH may have a pulse width TZC-SH and may be centered about the respective zero-crossing of the switched-hot voltage VSH. Since the magnitude of the hot voltage VH and the switched-hot voltage VSH are approximately equal when the controllably conductive device 1110 is closed, the magnitudes of the hot zero-cross signal VZC-H and the switched-hot zero-cross signal VZC-SH may be substantially the same at this time (e.g., as shown in
The hot zero-cross detector 1116 may drive the magnitude of the hot zero-cross signal VZC-H high, thereby generating a rising edge, when the magnitude of the hot voltage VH drops below a first zero-cross voltage threshold. The hot zero-cross detector 1116 may drive the magnitude of the hot zero-cross signal VZC-H low again when the magnitude of the hot voltage VH rises back above a second zero-cross voltage threshold. When the first and the second thresholds are the same or substantially the same, the pulses 1200 of the hot zero-cross signal VZC-H may be centered about the respective zero-crossing of the hot voltage VH. The pulses 1200 of the hot zero-cross signal VZC-H may be symmetrical about the zero-crossings. When the first and the second thresholds are different, the pulses 1200 of the hot zero-cross signal VZC-H may not be centered about the respective zero-crossing of the hot voltage VH. Similarly, the pulses 1200 of the hot zero-cross signal VZC-H may not be symmetrical about the zero-crossings. The pulses of 1202 of the switched-hot zero-cross signal VZC-SH may not be symmetrical about the zero-crossings. The zero-cross time tZC may be determined as a function of the rise and falling-edge times and their respective voltage thresholds. For example, the hot zero-cross detect circuit 1116 may use a first voltage threshold VTH1 when the magnitude of the hot voltage VH in the positive half-cycles of the hot voltage VH and a second voltage threshold VTH2 in the negative half-cycles. If the first voltage threshold VTH1 is different than the second voltage threshold VTH2, the pulses of the hot zero-cross signal VZC-H may not be centered about the respective zero-crossing. The control circuit 1114 may calculate the zero-cross time tZC as a function of the rise and falling-edge times tRISE, tFALL and the first and second voltage thresholds VTH1, VTH2. For example, the zero-cross time tZC may be calculated as follows:
t
ZC
=t
RISE
+[V
TH1/(VTH1−VTH2)]·(tFALL−tRISE),
if the magnitude of the hot voltage VH is transitioning from the positive to negative half-cycles during the zero-crossing, or
t
ZC
=t
RISE
+[V
TH2/(VTH1+VTH2)]·(tFALL−tRISE),
if the magnitude of the hot voltage VH is transitioning from the negative to positive half-cycles during the zero-crossing.
Turning back to
For example, when the control circuit 1114 receives a command to turn on the load 1104 (e.g., via the communication circuit), the control circuit 1114 may attempt to cause the controllably conductive device 1110 to become conductive (e.g., to close) as close as possible to (but slightly prior to) a subsequent zero-crossing of the AC power source 1102 to minimize arcing in the relay. The control circuit 1114 may attempt to close the relay slightly before the subsequent zero-crossing to account for bouncing in the controllably conductive device 1110 as described herein with reference to
The control circuit 1114 may determine a relay actuation adjustment time period. For turn-on operations (e.g., relay closing operations), the control circuit 1114 may determine a relay close actuation adjustment time period. The relay close actuation adjustment time period may be indicative of a time at which the drive voltage is adjusted relative to a target zero-crossing for rendering the controllably conductive device conductive. The relay actuation adjustment time period may be determined based on a turn-on delay time period TTURN-ON. A turn-on delay time period TTURN-ON may correspond to the time period between when the control circuit 1114 drives the drive signal VDR high and the controllably conductive device 1110 becomes conductive. The turn-on delay time period TTURN-ON may correspond to the relay-actuation delay time period and/or the relay close delay time period as described herein with respect to
For turn-off operations (e.g., relay opening operations), the control circuit 1114 may determine a relay open actuation adjustment time period that may be indicative of a time at which the drive voltage may be adjusted relative to a target zero-crossing for rendering the controllably conductive device non-conductive. The relay actuation adjustment time period may be determined based on a turn-off delay time period TTURN-OFF. A turn-off delay time period TTURN-OFF may correspond to the time period between when the control circuit 1114 drives the drive signal VDR low and the controllably conductive device 1110 becomes non-conductive. The control circuit 1114 may drive the drive signal VDR high at a time that is approximately the length of the turn-on delay time period TTURN-ON before a subsequent zero-crossing (e.g., a target zero-crossing) when turning the load 1104 on (e.g., as shown in
The values of the turn-on delay time period TTURN-ON and the turn-off delay time period TTURN-OFF may change over time, for example, as the load control device 1100 ages. The control circuit 1114 may adaptively change the times at which the control circuit drives the drive signal VDR high or low to render the controllably conductive device 1110 conductive and non-conductive. For example, the relay actuation adjustment time period(s) for open and/or close operations may be updated upon detecting an error in the closing or opening times.
Turning back to
The control circuit 1114 may determine whether an error in the closing and/or opening times has occurred based on a dynamically-set error detection window. The switched-hot zero-cross detector 1118 may drive the switched-hot zero-cross signal VZC-SH high during a pulse 1202 while the controllably conductive device 1110 is closed. For example, the switched-hot zero-cross detector 1118 may drive the switched-hot zero-cross signal VZC-SH high when the magnitude of the switched-hot voltage VSH is below the voltage thresholds of the switched-hot zero-cross detector 1118 during the pulse width TZC-SH shown in
The control circuit 1114 may determine whether an error in the relay closing time has occurred. The control circuit 1114 may determine whether the relay changes its conductive state from non-conductive to conductive in a close error detection window.
The control circuit 1114 may determine whether an error in the relay opening time has occurred based on a dynamically-set open error detection window. The control circuit 1114 may determine whether the relay changes its conductive state from conductive to non-conductive in the open error detection window.
An error detection window, such as the close error detection window 1300 and the open error detection window 1400 may be dynamically adjusted. For example, the start and/or end times of the error detection time window may be dynamically set based on the rising-edge time tRISE-SH and the falling-edge time tFALL-SH of the switched-hot zero-cross signal VZC-SH.
The pulse width TZC-SH of the switched-hot zero-cross signal VZC-SH may be dependent upon the amplitude of the switched-hot voltage VSH and the values of the components of the switched-hot zero-cross detector 1118 (e.g., due to the tolerances of the components). The pulse width TZC-SH of the switched-hot zero-cross signal VZC-SH can vary from one manufactured load control device 1100 to the next and/or from one installation of the load control device to the next. The control circuit 1114 may dynamically set the start and end times of the error detection window 1300 such that the error detection window may fall outside of the pulses 1202 (e.g., fall between the pulses) of the switched-hot zero-cross signal VZC-SH.
The control circuit 1114 may set the start and end times of the close error detection window 1300 based on the rising-edge time tRISE-SH and the falling-edge time tFALL-SH of the switched-hot zero-cross signal VZC-SH. When the controllably conductive device 1110 is closed, the control circuit 1114 may measure a rising-edge time tRISE-SH and a falling-edge time tFALL-SH of the switched-hot zero-cross signal VZC-SH (as shown in
The rising-edge time tRISE-SH and the falling-edge time tFALL-SH of the switched-hot zero-cross signal VZC-SH may be measured relative to the hot zero-cross signal VZC-H. The rising-edge time tRISE-SH and the falling-edge time tFALL-SH may be measured relative to the zero-cross times tZC of the pulses 1200 of the hot zero-cross signal VZC-H. For example, when the controllably conductive device 1110 is open, the control circuit 1114 may determine when to begin and stop monitoring the switched-hot zero-cross signal VZC-SH based on the zero-cross times tZC of the pulses 1200 of the hot zero-cross signal VZC-H. For example, when the control circuit 1114 does not receive the pulses 1202 of the switched-hot zero-cross signal VZC-SH, the control circuit 1114 may determine when to begin and stop monitoring the switched-hot zero-cross signal VZC-SH based on the zero-cross times tZC of the pulses 1200 of the hot zero-cross signal VZC-H.
The control circuit 1114 may monitor the switched-hot zero-cross signal VZC-SH during separate close and open error detection windows to detect errors in the closing and opening times, respectively. The control circuit 1114 may be operable to dynamically set the beginning and end times of each of the close and open error detection time windows, such that the close error detection time window occurs after each pulse 1202 of the switched-hot zero-cross signal VZC-SH and the open error detection time window occurs before each pulse 1202 of the switched-hot zero-cross signal VZC-SH. The control circuit 1114 may set the start time of the close error detection time window to be a buffer time period (e.g., approximately 400 microseconds) after the falling-edge time tFALL-SH and set the end time of the close error detection time window to be a close error detection time window length (e.g., approximately five milliseconds) after the start time. The control circuit 1114 may set the end time of the open error detection time window to be a buffer time period (e.g., approximately 400 microseconds) before the rising-edge time tRISE-SH and set the start time of the open error detection time window to be an open error detection time window length (e.g., approximately five milliseconds) before the end time.
Turning back to
The output phototransistor of the optocoupler 1510 may be operatively coupled between a DC supply voltage (e.g., VCC) and the base of a bipolar junction transistor Q1520. The collector of the transistor Q1520 may be operatively coupled to the DC supply voltage via a resistor R1522 and the emitter of the transistor is coupled to circuit common. A resistor R1524 may be operatively coupled between the base and emitter of the transistor Q1520. The values and part numbers provided on
When the magnitude of the AC voltage at the zero-cross input ZC_IN exceeds a zero-cross voltage threshold VZC-TH, the input photodiodes of the optocoupler 1510 may begin to conduct, such that the output phototransistor is rendered conductive. Accordingly, the base of the transistor Q1520 may be pulled up towards the DC supply voltage, such that the transistor Q1520 is rendered conductive and the zero-cross signal at the zero-cross output ZC_OUT is pulled down towards circuit common (e.g., at a first half-pulse width TPULSE1 from the zero-crossing of the AC signal as shown in
For example, the control circuit may set the start and end times of each error detection window to be the buffer time period TBFR away from the pulses 1202 of the switched-hot zero-cross signal VZC-SH (using the values of the rising-edge time tRISE-SH and the falling-edge time tFALL-SH of the switched-hot zero-cross signal VZC-SH stored in the memory 1122) as described herein. The control circuit may be frequently measuring the rising-edge time tRISE-SH and the falling-edge time tFALL-SH of the switched-hot zero-cross signal VZC-SH during the switched-hot zero-cross signal edge procedure 1700. The control circuit may dynamically set the start and end times of the error detection window(s) when the rising-edge and falling-edge times tRISE-SH, tFALL-SH of the switched-hot zero-cross signal VZC-SH change as compared to the zero-cross time tZC of the hot zero-cross signal VZC-H.
If the control circuit has received a command to turn off the electrical load, the control circuit may determine, at 1816, an open relay actuation adjustment time period. The open relay actuation adjustment time period may be indicative of the time interval between a detected zero-crossing and when the drive signal VDR is adjusted in order to open the relay before a subsequent zero-crossing. For example, the open relay actuation adjustment time period may be determined based on the turn-off delay time period TTURN-OFF as described herein. The open relay actuation adjustment time period may correspond to the relay actuation adjustment described herein, such as the relay actuation adjustment time period 2050 of
As shown, at 1818, the control circuit may detect a zero-crossing of the hot voltage VH (e.g., as in 408 of the method of
Referring to
If it is determined that the electrical load is being turned off at 1832, the control circuit may monitor the switched-hot zero-cross signal VZC-SH for a rising edge at 1840 until the end of the error detection window at 1836. If the control circuit detects a rising edge at 1840 during the error detection window 1300, the control circuit may determine that there is an error in the opening time. The open relay actuation adjustment time period may be re-adjusted. For example, if it is determined that the rising edge is closer to the end of the error detection window at 1842 (e.g., greater than a midpoint of the error detection window), the control circuit may increase the open relay actuation adjustment time period at 1844. If the rising edge is closer to the beginning of the error detection window at 1842 (e.g., less than the midpoint of the error detection window), the control circuit may decrease the open relay actuation adjustment time period at 1846.
If, after the end of the error detection window at 1836, the control circuit determines that the value of the timer is less than a maximum timer period TMAX at 1848, the control circuit may wait for the start time of the next error detection window at 1830. For example, the maximum timer period TMAX may be approximately forty milliseconds or four half-cycles if the AC power source is operating at 50 Hz. If it is determined that the value of the timer is greater than or equal to the maximum timer period TMAX at 1848, the toggle procedure 1800 may exit.
The control circuit may set error detection threshold(s) and may compare a rising-edge time and/or a falling-edge time of the switched-hot zero-cross signal VZC-SH to the error detection thresholds. For example, the control circuit may set a first error detection threshold to be a time equal to the falling-edge time tFALL-SH (e.g., as stored at 1720 of the switched-hot zero-cross signal edge procedure 1700 of
The control circuit may control a conductive state of the controllably conductive device by varying the conductive state change times of the controllably conductive device relative to the target zero crossing. The target zero crossing may be a zero crossing subsequent to a detected zero crossing. For example, the relay open time may vary continuously within a time range prior to the target zero crossing. For example, the relay open time may vary each time (e.g., in response to a comment to turn on the load), every other time, and/or periodically. The relay open time may vary iteratively to hone in on the correct open time. The relay open time may vary by changing the relay actuation adjustment time period (e.g., relay open actuation adjustment time period).
As shown, the load control device may actuate the controllably conductive device at the relay actuation time 2030 prior to the target zero crossing 2010B for the relay opening. The relay actuation time 2030 may follow the detected zero crossing 2010A by relay actuation adjustment time period 2050 (e.g., 2050A-G). For example, the load control device may detect the zero cross 2010A, determine and wait for a relay actuation adjustment time period 2050A, and actuate the relay at the relay actuation time 2030. After the relay is actuated, the relay contact(s) may be opened after the relay-actuation delay time period 2020. The relay-actuation delay time period 2020 may correspond to the time interval between relay actuation time and when the relay contact(s) open (e.g., initially open) and/or close in response to actuation. The relay-actuation delay time period 2020 may or may factor in the average relay contact-bounce duration. For example, the relay-actuation delay time period 2020 may include an average relay contact-bounce duration. For example, the relay-actuation delay time period 2020 may include an average relay contact-bounce duration and one-half of the average relay contact-bounce duration. As shown, the relay contact(s) may open at relay open time 2060.
As shown in
In a given iteration, the relay actuation adjustment time period 2050 may be varied such that the relay open time 2060 may start from the right barrier 2046 and gradually move towards the left barrier 2042. The iteration may end when the relay open time 2060 reaches the left barrier 2042 (e.g., is within a predefined time after the left barrier 2042) of the relay open time range 2040. As shown, when the load control device waits for relay actuation adjustment time period 2050E before actuating the relay, the relay may open at or at a time close to the left barrier 2042. In response to the subsequent relay open signal, the relay actuation adjustment time period 2050F may be used, and the relay may open at or at a time close to the right barrier 2046.
As shown, the load control device may actuate the controllably conductive device at the relay actuation time, such as relay actuation times 2130A and 2130B, prior to the target zero crossing 2110B for the relay opening. The load control device may detect the zero crossing 2110A and determine a relay actuation adjustment time period 2150B. Upon waiting for a time period that corresponds to the relay actuation adjustment time period 2150B, the load control device may actuate the relay at the relay actuation time 2130B. After the relay-actuation delay time period 2120, the relay contact(s) may open at relay open time 2160B. The relay-actuation delay time period 2120 may include an actuation delay period associated with relay open actuations. The relay-actuation delay time period 2120 may correspond to the time interval between relay actuation time and when the relay contact(s) initially open in response to actuation. The relay-actuation delay time period 2120 may or may factor in the average relay contact-bounce duration. For example, the relay-actuation delay time period 2120 may include an average relay contact-bounce duration. For example, the relay-actuation delay time period 2120 may include an average relay contact-bounce duration and one-half of the average relay contact-bounce duration.
As shown in
In a given iteration, the relay actuation adjustment time period 2150 may be varied such that the relay actuation adjustment time period 2150 may start from the right barrier 2146 and gradually move towards the left barrier 2142. The iteration may end when the relay actuation adjustment time period 2150 reaches the left barrier 2142 (e.g., within a predefined time period after the left barrier 2142) of the relay open actuation adjustment range 2140. As shown, after the load control device uses a value that corresponds to or close to the left barrier 2142 such as the relay actuation adjustment time period 2150E, a value that corresponds to or close to the right barrier 2146 such as relay actuation adjustment time period 2150F, may be used in response to the subsequent relay open signal.
As shown in
This application is a continuation of U.S. Non-Provisional patent application Ser. No. 15/997,328 filed on Jun. 4, 2018, which is a continuation of U.S. Non-Provisional patent application Ser. No. 14/506,204 filed on Oct. 3, 2014 (now U.S. Pat. No. 9,991,075 issued on Jun. 5, 2018), which claims the benefit of U.S. Provisional Patent Application No. 61/886,962 filed on Oct. 4, 2013 and U.S. Provisional Patent Application No. 61/887,006 filed on Oct. 4, 2013, each of which is incorporated herein by reference as if fully set forth.
Number | Date | Country | |
---|---|---|---|
61887006 | Oct 2013 | US | |
61886962 | Oct 2013 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15997328 | Jun 2018 | US |
Child | 16578929 | US | |
Parent | 14506204 | Oct 2014 | US |
Child | 15997328 | US |