Wireless battery-powered daylight sensor
11237044 · 2022-02-01
Assignee
Inventors
- James P. Steiner (Royersford, PA)
- Greg Edward Sloan (Allentown, PA, US)
- Nathan A. Boring (New Tripoli, PA, US)
Cpc classification
H05B47/11
ELECTRICITY
G01J1/32
PHYSICS
Y02B20/40
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G01J1/0228
PHYSICS
International classification
G01J1/32
PHYSICS
Abstract
A wireless battery-powered daylight sensor for measuring a total light intensity in a space is operable to transmit wireless signals using a variable transmission rate that is dependent upon the total light intensity in the space. The sensor comprises a photosensitive circuit, a wireless transmitter for transmitting the wireless signals, a controller coupled to the photosensitive circuit and the wireless transmitter, and a battery for powering the photosensitive circuit, the wireless transmitter, and the controller. The photosensitive circuit is operable to generate a light intensity control signal in response to the total light intensity in the space. The controller transmits the wireless signals in response to the light intensity control signal using the variable transmission rate that is dependent upon the total light intensity in the space. The variable transmission rate may be dependent upon an amount of change of the total light intensity in the space. In addition, the variable transmission rate may be further dependent upon a rate of change of the total light intensity in the space.
Claims
1. A wireless sensor comprising: a photosensitive circuit configured to generate a light intensity control signal in response to a light intensity; a wireless transmitter configured to transmit wireless signals; and a controller coupled to the photosensitive circuit and the wireless transmitter, the controller configured to transmit wireless signals in response to the light intensity control signal; wherein the controller is configured to: sample the light intensity control signal to collect a first plurality of samples during a first time interval, and a second plurality of samples during a second, subsequent time interval, the first and second time intervals being non-overlapping; determine a minimum sample among the first plurality of samples; determine a minimum sample among the second plurality of samples; determine a maximum sample among the second plurality of samples; calculate a first adjustment percentage based on a difference between the minimum sample among the first plurality of samples and the minimum sample among the second plurality of samples; calculate a second adjustment percentage based on a difference between the minimum sample among the second plurality of samples and the maximum sample among the second plurality of samples; and transmit a digital message if the first adjustment percentage is greater than a first predetermined amount and the second adjustment percentage is less than a second predetermined amount.
2. The sensor of claim 1, further comprising: a battery configured to power the photosensitive circuit, the wireless transmitter, and the controller.
3. The sensor of claim 2, wherein the controller is configured to enable the photosensitive circuit and subsequently sample the light intensity control signal at a sampling period, the controller further configured to disable the photosensitive circuit after the light intensity control signal has been sampled, such that the photosensitive circuit only draws current from the battery during each sampling period.
4. The sensor of claim 3, wherein the photosensitive circuit comprises a photosensitive diode for conducting a photosensitive diode current having a magnitude responsive to the light intensity, the magnitude of the light intensity control signal responsive to the magnitude of the photosensitive diode current.
5. The sensor of claim 4, wherein the photosensitive circuit further comprises a controllable switch coupled in series with the photosensitive diode, the photosensitive diode configured to conduct the photosensitive diode current when the controllable switch is closed, the controller coupled to the controllable switch for opening the switch, such that the photosensitive diode does not conduct the photosensitive diode current and the photosensitive circuit is disabled.
6. The sensor of claim 5, wherein the photosensitive circuit further comprises a transimpedance amplifier coupled between the photosensitive diode and the controller, the transimpedance amplifier configured to generate the light intensity control signal in response to the photosensitive diode current.
7. The sensor of claim 2, further comprising: a wireless receiver coupled to the controller and configured to receive a wireless signal, the wireless receiver powered by the battery; and a laser pointer circuit adapted to be exposed to light from a laser pointer, the laser pointer circuit coupled to the controller; wherein the controller is configured to enable the wireless receiver in response to light from a laser pointer shining on the laser pointer circuit, and to subsequently receive a wireless signal.
8. The sensor of claim 1, further comprising: a memory coupled to the controller for storing samples of the sampled light intensity control signal, the controller configured to analyze the sampled light intensity control signal stored in the memory to determine the amount of change of the light intensity.
9. The sensor of claim 1, wherein the controller is configured to determine when it is nighttime in response to the light intensity control signal, and to increase a length of the sampling period during the nighttime.
10. The sensor of claim 1, wherein the digital message includes a value representative of the light intensity.
11. The sensor of claim 1, wherein the first adjustment percentage is representative of an amount of change of the light intensity.
12. The sensor of claim 1, wherein the controller configured to transmit the wireless signals using a variable transmission rate that is dependent upon the first adjustment percentage.
13. The sensor of claim 1, wherein the digital message includes a command to control a lighting load in response to the light intensity.
14. A method of transmitting a digital message in response to a light intensity, the method comprising: measuring the light intensity by a daylight sensor which comprises a memory coupled to a controller; storing in the memory light intensity values periodically sampled in a first time interval and a second time interval by the controller in response to the step of measuring; determining a minimum sample among the light intensity values sampled in the first time interval; determining a minimum sample among the light intensity values sampled in the second time interval; determining a maximum sample among the light intensity values sampled in the second time interval; calculating a first adjustment percentage based on a difference between the minimum sample among the light intensity values sampled in the second time interval and the minimum sample among the light intensity values sampled in the second time interval; calculate a second adjustment percentage based on a difference between the minimum sample among the light intensity values sampled in the second time interval and the maximum sample among the light intensity values sampled in the second time interval; and transmitting a digital message if the first adjustment percentage is greater than a first predetermined amount and the second adjustment percentage is less than a second predetermined amount.
15. The method of claim 14, wherein the first adjustment percentage is representative of an amount of change of the light intensity.
16. The method of claim 14, wherein transmitting the digital message comprises transmitting wireless signals using a variable transmission rate that is dependent upon the first adjustment percentage.
17. The method of claim 14, wherein the digital message includes a command to control a lighting load in response to the light intensity.
18. The method of claim 14, further comprising: receiving a light intensity control signal from a photosensitive circuit; enabling the photosensitive circuit; subsequently sampling the light intensity control signal at a sampling period; and disabling the photosensitive circuit after the light intensity control signal has been sampled, such that the photosensitive circuit only draws current from the battery during each sampling period.
19. The method of claim 18, further comprising: determining when it is nighttime in response to the light intensity control signal; and increasing a length of the sampling period during the nighttime.
20. The method of claim 14, further comprising: enabling a wireless receiver in response to light from a laser pointer shining on a laser pointer circuit; and subsequently receiving a wireless signal via the wireless receiver.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The invention will now be described in greater detail in the following detailed description with reference to the drawings in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
DETAILED DESCRIPTION OF THE INVENTION
(23) The foregoing summary, as well as the following detailed description of the preferred embodiments, is better understood when read in conjunction with the appended drawings. For the purposes of illustrating the invention, there is shown in the drawings an embodiment that is presently preferred, in which like numerals represent similar parts throughout the several views of the drawings, it being understood, however, that the invention is not limited to the specific methods and instrumentalities disclosed.
(24)
(25) The daylight sensor 120 is mounted so as to measure a total light intensity L.sub.T-SNSR in the space around the daylight sensor (i.e., in the vicinity of the lighting load 104 controlled by the dimmer switch 110). The daylight sensor 120 includes an internal photosensitive circuit, e.g., a photosensitive diode 232 (
(26) During a setup procedure of the RF lighting control system 100, the daylight sensor 120 may be assigned to (i.e., associated with) the dimmer switch 110. As mentioned above, the daylight sensor 120 transmits digital messages wirelessly via the RF signals 106 to the dimmer switch 110 in response to the total light intensity L.sub.T-SNSR measured by the daylight sensor. A digital message transmitted by the daylight sensor 120 includes, for example, identifying information, such as, a serial number (i.e., a unique identifier) associated with the daylight sensor. The dimmer switch 110 is responsive to messages containing the serial numbers of the daylight sensor 120 to which the dimmer switch is assigned. Each digital message may further comprise a value representative of the measured total light intensity L.sub.T-SNSR measured by the daylight sensor 120 (e.g., in foot-candles). Accordingly, the dimmer switch 110 controls the present light intensity L.sub.PRES of the lighting load 104 in response to receiving a digital message with the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120. According to the present invention, the daylight sensor 120 is operable to transmit digital messages to the dimmer switch 110 using a variable transmission rate f.sub.TX that is dependent upon the measured total light intensity L.sub.T-SNSR, such that the daylight sensor 120 only transmits digital messages when needed (as will be described in greater detail below).
(27) Examples of RF lighting control systems are described in greater detail in U.S. patent application Ser. No. 12/033,223, filed Feb. 19, 2008, entitled COMMUNICATION PROTOCOL FOR A RADIO-FREQUENCY LOAD CONTROL SYSTEM; U.S. patent application Ser. No. 12/203,518, filed Sep. 3, 2008, entitled RADIO-FREQUENCY LIGHTING CONTROL SYSTEM WITH OCCUPANCY SENSING; U.S. patent application Ser. No. 12/203,500, filed Sep. 3, 2008, entitled BATTERY-POWERED OCCUPANCY SENSOR; and U.S. patent application Ser. No. 12/371,027, filed Feb. 13, 2009, entitled METHOD AND APPARATUS FOR CONFIGURING A WIRELESS SENSOR, the entire disclosures of which are hereby incorporated by reference.
(28) Alternatively, the dimmer switch 110 could be replaced with an electronic switch comprising, for example, a relay, for simply toggling the lighting load 104 on and off. The electronic switch could be adapted to simply turn the lighting load 104 on when the measured total light intensity L.sub.T-SNSR drops below a predetermined threshold and turn the lighting load off when the measured total light intensity L.sub.T-SNSR rises above approximately the predetermined threshold (e.g., using some hysteresis).
(29) The lighting control system 100 could additionally comprise one or more motorized window treatments, such as roller shades, draperies, Roman shades, or blinds, for controlling the amount of daylight entering the space around the daylight sensor 120. Examples of load control systems having motorized window treatments are described in greater detail in U.S. Pat. No. 7,111,952, issued Sep. 26, 2006, entitled SYSTEM TO CONTROL DAYLIGHT AND ARTIFICIAL ILLUMINATION AND SUN GLARE IN A SPACE, the entire disclosure of which is hereby incorporated by reference.
(30)
(31) The dimmer switch 110 adjusts the present light intensity L.sub.PRES of the lighting load 104 so as to control the total light intensity L.sub.T-TASK on the task surface 136 towards a target total task surface light intensity L.sub.TRGT-TASK. For example, the target total task surface light intensity L.sub.TRGT-TASK may be preset to be approximately fifty foot-candles. In addition, the target total task surface light intensity L.sub.TRGT-TASK may be decreased by actuating the intensity adjustment actuator 116. Alternatively, the dimmer switch 110 could be operable to receive one or more digital messages from an advanced programming device, such as a personal digital assistant (PDA) or a personal computer (PC), such that the target total task surface light intensity L.sub.TRGT-TASK may be entered using a graphical user interface (GUI) and transmitted to the dimmer switch 110. Further, the target total task surface light intensity L.sub.TRGT-TASK could alternatively be adjusted using an advanced programming mode of the dimmer switch 110. An example of an advanced programming mode for a dimmer switch is described in greater detail in U.S. Pat. No. 7,190,125, issued Mar. 13, 2007, entitled PROGRAMMABLE WALLBOX DIMMER, the entire disclosure of which is hereby incorporated by reference.
(32) Since the total light intensity L.sub.T-SNSR measured by the daylight sensor 120 (e.g., as reflected on the daylight sensor) is less than the total light intensity L.sub.T-TASK shining directly on the task surface 136, the lighting control system 100 is characterized by one or more gains. Specifically, the dimmer switch 110 uses a daylight gain G.sub.D and an electrical light gain G.sub.E to control the present intensity L.sub.PRES of the lighting load 104. The daylight gain GD is representative of the ratio between the light intensity L.sub.D-TASK on the task surface 136 from only daylight and the light intensity L.sub.D-SNSR measured by the daylight sensor 120 from only daylight (i.e., G.sub.D=L.sub.D-TASK/L.sub.D-SNSR). The electric light gain G.sub.E is representative of the ratio between the light intensity L.sub.E-TASK on the task surface 136 from only the lighting load 104 and the light intensity L.sub.E-SNSR measured by the daylight sensor 120 from only the lighting load (i.e., G.sub.E=L.sub.E-TASK/L.sub.E-SNSR). The daylight gain G.sub.D and the electrical light gain G.sub.E of the lighting control system 100 are set during a gain calibration procedure. An example of a gain calibration procedures are described in greater detail in commonly-assigned, co-pending U.S. patent application Ser. No. 12/727,923, filed Mar. 19, 2010, entitled METHOD OF CALIBRATING A DAYLIGHT SENSOR, the entire disclosure of which is hereby incorporated by reference.
(33) During days when there are intermittent clouds passing the building in which the room 130 is located, the total light intensity L.sub.T-SNSR at the daylight sensor 120 may fluctuate between high values when the clouds are not blocking the sunlight and low values when the clouds are blocking the sunlight.
(34)
(35)
(36) The drive circuit 212 provides control inputs to the controllably conductive device 210 in response to control signals from a controller 214. The controller 214 is, for example, a microcontroller, but may alternatively be any suitable processing device, such as a programmable logic device (PLD), a microprocessor, or an application specific integrated circuit (ASIC). The controller 214 receives inputs from the control actuator 114 and the intensity adjustment actuator 116 and controls the visual indicators 118. The controller 214 is also coupled to a memory 216 for storage of the preset intensity of lighting load 104, the serial number of the daylight sensor 120 to which the dimmer switch 110 is assigned, the daylight gain G.sub.D, the electrical light gain G.sub.E, and other operational characteristics of the dimmer switch 110. The controller 230 may recall the daylight gain G.sub.D and the electrical light gain G.sub.E from the memory 216 at startup. The memory 216 may be implemented as an external integrated circuit (IC) or as an internal circuit of the controller 214. A power supply 218 generates a direct-current (DC) voltage Vcc for powering the controller 214, the memory 216, and other low-voltage circuitry of the dimmer switch 110.
(37) A zero-crossing detector 220 determines the zero-crossings of the input AC waveform from the AC power supply 102. A zero-crossing is defined as 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. The zero-crossing information is provided as an input to controller 214. The controller 214 provides the control signals to the drive circuit 212 to operate the controllably conductive device 210 (i.e., to provide voltage from the AC power supply 102 to the lighting load 104) at predetermined times relative to the zero-crossing points of the AC waveform using a phase-control dimming technique.
(38) The dimmer switch 110 further comprises an RF transceiver 222 and an antenna 224 for receiving the RF signals 106 from the daylight sensor 120. The controller 214 is operable to control the controllably conductive device 210 in response to the messages received via the RF signals 106. Examples of the antenna 224 for wall-mounted dimmer switches, such as the dimmer switch 110, are described in greater detail in U.S. Pat. No. 5,982,103, issued Nov. 9, 1999, and U.S. Pat. No. 7,362,285, issued Apr. 22, 2008, both entitled COMPACT RADIO FREQUENCY TRANSMITTING AND RECEIVING ANTENNA AND CONTROL DEVICE EMPLOYING SAME. The entire disclosures of both patents are hereby incorporated by reference.
(39)
(40) The photosensitive diode 232 conducts a photosensitive diode current I.sub.PD having a magnitude dependent upon the magnitude of the light that shines on the photosensitive diode (i.e., the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120). The transimpedance amplifier 234 provides the controller 230 with a total light intensity control signal V.sub.TOT representative of the total light intensity L.sub.T-SNSR. Specifically, the magnitude of the total light intensity control signal V.sub.TOT generated by the transimpedance amplifier 234 is dependent upon the magnitude of the current I.sub.PD conducted by the photosensitive diode 232, and thus the total light intensity L.sub.T-SNSR. The controller 230 comprises an analog-to-digital converter (ADC), such that the controller is operable to sample the total light intensity control signal V.sub.TOT to generate a total light intensity sample S.sub.TOT. The controller 230 uses a sampling period T.sub.SMPL of, for example, approximately one second, such that the controller samples the total light intensity control signal V.sub.TOT approximately once every second during normal operation of the daylight sensor 120.
(41) The daylight sensor 120 further comprises an RF transceiver 236, which is coupled to the controller 230 and an antenna 238. The controller 230 is operable to cause the RF transceiver 236 to transmit digital messages to the dimmer switch 110 via the RF signals 106 in response to the magnitude of the total light intensity control signal V.sub.TOT. The controller 230 may also be operable to receive a digital message from the dimmer switch 110 or another remote control device, such as a personal digital assistant (PDA), for configuring the operation of the daylight sensor 120. The controller 230 provides the digital message to be transmitted by the RF transceiver 236 and obtains received digital messages from the RF transmitter via an RF data control signal V.sub.RF_DATA. The controller 230 also is operable to enable and disable the RF transceiver via an RF enable control signal V.sub.RF_ENABLE. Alternatively, the RF transceiver 236 of the daylight sensor 120 could comprise an RF transmitter and the RF transceiver 222 of the dimmer switch 110 could comprise an RF receiver to allow for one-way communication between the daylight sensor and the dimmer switch. The RF transmitter may comprise, for example, part number CC1150 manufactured by Texas Instruments Inc.
(42) The controller 230 of the daylight sensor 120 is also responsive to a plurality of actuators 240 (i.e., the calibration button 150, the test button 152, and the link button 154), which provide user inputs to the daylight sensor for use during calibration of the daylight sensor. The controller 230 is operable to control one or more LEDs 242 to illuminate the lens 124 to thus provide feedback during calibration of the daylight sensor 120. A laser pointer circuit 244 is coupled to the controller 230 and is responsive to light that shines through the laser-pointer receiving opening 156 from a laser pointer. Specifically, the controller 230 responds to an input from the laser pointer circuit 244 in the same manner as an actuation of the calibration button 150. The controller 230 is further coupled to a memory 246 for storing the operational characteristics of the daylight sensor 120. The daylight sensor 120 also comprises a battery V1 that provides a battery voltage V.sub.BATT (e.g., approximately three volts) for powering the controller 230, the photosensitive circuit 231, the RF transceiver 236, and the other circuitry of the daylight sensor 120.
(43) The controller 230 is operable to control the photosensitive circuit 231 and the RF transceiver 236 in order to conserve battery power. Specifically, the controller 230 is operable to enable the photosensitive circuit 231 (by closing the switch 235 via the photosensitive circuit enable control signal V.sub.PS_ENABLE) for a small time period T.sub.PD (e.g., 50 msec) during each sampling period T.sub.SMPL, such that that the photosensitive diode 232 only conducts current for a portion of the time during normal operation (e.g., 5% of the time). In addition, the controller 230 only enables the RF transceiver 236 (via the RF enable control signal V.sub.RF_ENABLE) when required. As previously mentioned, the controller 230 only enables the RF transceiver 236 to transmit digital messages when needed, i.e., using the variable transmission rate (as will be described in greater detail below with reference to
(44)
(45) The transimpedance amplifier 234 further comprises a feedback capacitor C254 (e.g., having a capacitance of approximately 0.022 μF) for providing some low-pass filtering, such that the magnitude of the total light intensity control signal V.sub.TOT is not responsive to high-frequency noise in the photosensitive diode current I.sub.PD. In addition, the op-amp U250 is powered from the battery V1 through a low-pass filter comprising a resistor R256 (e.g., having a resistance of approximately 22Ω and a capacitor C258 (e.g., having a capacitance of approximately 0.1 μF). The low-pass filter prevents high-frequency noise that may be coupled to the battery V1 from the RF transceiver 236 from affecting the operation of the photosensitive circuit 231.
(46) The laser pointer circuit 244 comprises a laser-responsive element, e.g., a light-emitting diode (LED) D260. The LED D260 is positioned inside the daylight sensor 120 such that light from a laser pointer may shine through the laser-pointer receiving opening 156 and onto the LED. The LED D260 may be a green LED, such that a laser current I.sub.LASER conducted through the LED increases in magnitude when a green laser pointer is shined onto the LED. A resistor R262 is coupled between the anode of the LED D260 and circuit common and has, for example, a resistance of approximately 1 MΩ. A capacitor C264 is coupled in parallel with the resistor R262 and has, for example, a capacitance of approximately 0.01 μF. The junction of the LED D260 and the resistor R262 is coupled to the controller 230 through a capacitor C265 (e.g., having a capacitance of approximately 0.22 μF) and a resistor R266 (e.g., having a resistance of approximately 10 kΩ). The junction of the capacitor C265 and the resistor R266 is coupled to circuit common through a resistor (e.g., having a resistance of approximately 1 MΩ). When a laser pointer is shined onto the LED D260 and the laser current I.sub.LASER increases in magnitude, the voltage across the parallel combination of the resistor R262 and the capacitor C264 also increases in magnitude. Accordingly, the capacitor C265 conducts a pulse of current and the laser pointer control signal V.sub.LASER also increases in magnitude. The input of the controller 230 that receives the laser pointer control signal V.sub.LASER is an interrupt pin, such that the controller 230 is operable to come out of sleep mode in response to the laser pointer. The controller 230 may then be operable to enable the RF transceiver 236 to receive a digital message as will be described in greater detail below with reference to
(47) According to the present invention, the daylight sensor 120 is operable to transmit digital messages to the dimmer switch 110 using the variable transmission rate that is dependent upon the present change in the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120. The daylight sensor 120 is operable to determine the total light intensity L.sub.T-SNSR from the magnitude of the total light intensity control signal V.sub.TOT, and to only transmit one or more values representative of the total light intensity L.sub.T-SNSR (e.g., in foot-candles) to the dimmer switch 110 when the total light intensity L.sub.T-SNSR has changed by at least a first predetermined percentage ΔS.sub.MAX1. Since the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120 changes throughout a typical day, the variable transmission rate also changes throughout the day (as shown in
(48)
(49) Referring to
(50) According to the first embodiment of the present invention, the controller 230 of the daylight sensor 120 uses a single data point as the estimator. For example, the controller 230 may use the minimum value of the measured light intensity values from the previous time interval as the estimator. Alternatively, the controller 230 may use the average or median value of the measured light intensity values from the previous time interval as the estimator. Since the estimator is a single data point, the controller 230 only uses one predicted light intensity value at step 314 of the transmission algorithm 300. For example, the predicted light intensity value may be equal to the estimator. The controller 230 then calculates the error using the minimum value of the measured light intensity values from the present time interval and the predicted light intensity value (i.e., the estimator).
(51)
(52) If the variable n is greater than or equal to the predetermined number N.sub.SMPL of samples at step 422, the controller 230 processes the samples S[n] stored in the memory 246 in order to determine if a digital message should be transmitted to the dimmer switch 110. First, the controller 230 resets the variable n to zero at step 424. The controller 230 then determines if the total light intensity L.sub.T-SNSR has changed by at least the first predetermined percentage ΔS.sub.MAX1. Specifically, the controller 230 determines a present minimum sample S.sub.MIN-PRS of the samples S[n] stored in the memory 246 (i.e., samples S[0] through S[N.sub.SMPL]) at step 426. The controller 230 then calculates a minimum sample adjustment percentage ΔS.sub.MIN that is representative of the amount of change of the total light intensity L.sub.T-SNSR at step 428 using the equation:
(53)
where the sample S.sub.MIN-PRV is the previous minimum sample determined during the previous time period T.sub.WIN that is stored in the memory 246. If the minimum sample adjustment percentage ΔS.sub.MIN is less than the first predetermined percentage ΔS.sub.MAX1 at step 430, the variable transmission control procedure 400 exits without the controller 230 transmitting a digital message to the dimmer switch 110. In other words, the controller 230 has determined that the total light intensity L.sub.T-SNSR has not changed significantly enough to merit a transmission of a digital message. For example, the first predetermined percentage ΔS.sub.MAX1 may be approximately 15%, but may alternatively range from approximately 1% to 20%.
(54) If the minimum sample adjustment percentage ΔS.sub.MIN is greater than or equal to the first predetermined percentage ΔS.sub.MAX1 at step 430, the controller 230 sets the previous minimum sample S.sub.MIN-PRV equal to the present minimum sample S.sub.MIN-PRS at step 432. The controller 230 then loads a digital message including a value representative of the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120 (e.g., in foot-candles) in a transmit (TX) buffer at step 434, before the variable transmission control procedure 400 exits. For example, the controller 230 may include the minimum present minimum sample S.sub.MIN-PRS in the digital message loaded into the TX buffer. The controller 230 will transmit the digital message to the dimmer switch 110 via the RF signals 106 using a transmit procedure (not shown). An example of a transmit procedure is described in previously-referenced U.S. patent application Ser. No. 12/203,518.
(55)
(56) Referring to
(57) At step 518, the controller 214 calculates the light intensity L.sub.E-SNSR measured by the daylight sensor 120 from only the lighting load 104 using the electric light gain G.sub.E, i.e.,
(58)
where L.sub.EM-TASK represents the light intensity on the task surface 136 from only the lighting load 104 when the lighting load is at the maximum light intensity. For example, the controller 214 may set the light intensity L.sub.EM-TASK from Equation 2 equal to the light intensity L.sub.E-TASK on the task surface from only the lighting load 104 (from the gain calibration procedure), or to a predetermined value, such as, fifty foot-candles. At step 520, the controller 214 calculates the light intensity L.sub.D-SNSR at the daylight sensor 120 from only natural light by subtracting the light intensity L.sub.E-SNSR at the daylight sensor from only the lighting load 104 (as calculated at step 518) from the total light intensity L.sub.T-SNSR measured by the daylight sensor (as received in the digital message), i.e.,
L.sub.D-SNSR=L.sub.T-SNSR−L.sub.E-SNSR. (Equation 3)
At step 522, the controller 214 calculates the light intensity L.sub.D-TASK on the task surface from only daylight by multiplying the light intensity L.sub.D-SNSR at the daylight sensor 120 from only daylight by the daylight gain G.sub.D, i.e.,
L.sub.D-TASK=G.sub.D.Math.L.sub.D-SNSR. (Equation 4)
At step 524, the controller 214 calculates the new present dimming percentage d.sub.PRES as a function of the target total task surface light intensity L.sub.TRGT-TASK, the light intensity L.sub.D-TASK on the task surface from only daylight, and the light intensity L.sub.EM-TASK on the task surface 136 from only the lighting load 104 when the lighting load is at the maximum light intensity, i.e.,
(59)
Finally, the controller 214 controls the lighting load 104 according to the new present dimming percentage d.sub.PRES, before the receive procedure 500 exits.
(60)
(61)
(62) According to a second embodiment of the present invention, the controller 230 uses a linear least-squares prediction model to determine the predicted light intensity values. Specifically, the controller 230 is operable to perform a linear least-squares fit on the measured light intensity values from a present time interval to determine a slope m and an offset b of a line (i.e., y=mx+b) that best represents the change in the measured light intensity values with respect to time. The controller 230 uses these estimators (i.e., the slope m and the offset b) to determine the predicted light intensity values for one or more of the subsequent time intervals. The controller 230 then determines a mean-square error e between the measured light intensity values and the predicted light intensity values.
(63)
(64) When the controller 230 has collected the predetermined number N.sub.SMPL of samples during the present time interval at step 722, the controller 230 processes the samples S[n] stored in the memory 246 to determine if a digital message should be transmitted to the dimmer switch 110. The controller 230 first increments a variable q at step 724. The controller 230 uses the variable q to keep track of how many time intervals have occurred after the time interval in which the estimators were last calculated. The controller 230 then calculates the predicted light intensity values at step 726 using the estimators (i.e., the slope m and the offset b) from a previous time interval, i.e.,
P[i]=m.Math.i+b, (Equation 6)
(65) for i=q.Math.T.sub.WIN+1 to 2q.Math.T.sub.WIN.
(66) At step 728, the controller 230 determines the mean-square error e between the measured light intensity values and the predicted light intensity values, i.e.,
e=(1/N.sub.MAX).Math.Σ(S[i]−P[i]).sup.2, (Equation 7)
(67) for i=q*T.sub.WIN+1 to 2q*T.sub.WIN.
(68) If the mean-square error e is less than a predetermined maximum error e.sub.MAX (e.g., approximately 15%) at step 730, the variable transmission control procedure 700 exits without transmitting a digital message to the dimmer switch 110.
(69) However, if the mean-square error e is greater than or equal to the predetermined maximum error e.sub.MAX at step 730, the controller 230 then determines the new estimators at step 732 by performing a linear least-squares fit on the measured light intensities from the present time interval to thus determine the slope m and the offset b of the line that best represents the measured light intensities from the present time interval. The controller 230 loads a digital message including one or more values representative of the total light intensity L.sub.T-SNSR in the TX buffer at step 734. For example, the controller 230 may include the estimators (i.e., the slope m and the offset b) determined at step 732 in the digital message. Since the slope m and the offset b determined at step 732 represent the measured intensity values from the present time interval, the predicted intensity values determined in the next subsequent time interval will begin at time T.sub.WIN, which is equal to the predetermined number N.sub.SMPL of samples per interval. Therefore, the controller 230 resets the variable n to N.sub.SMPL and the variable q to one at step 736, before the variable transmission control procedure 700 exits.
(70) Since both the slope m and the offset b as determined by the daylight sensor 120 are transmitted to the dimmer switch 110, the dimmer switch is operable to continuously re-calculate (i.e., estimate) the total light intensity L.sub.T-SNSR as a function of time, and to adjust the present light intensity L.sub.PRES of the lighting load 104 in response to the estimated total light intensity L.sub.T-SNSR.
L.sub.T-SNSR=m.Math.T.sub.WIN+b. (Equation 8)
The controller 214 then stores the calculated total light intensity L.sub.T-SNSR in the memory 216 at step 818, before the receive procedure 800 exits. If the received digital message does not include light intensity values received from the daylight sensor 120 at step 812, the controller 214 processes the digital message appropriately at step 820 and the receive procedure 800 exits.
(71)
L.sub.T-SNSR=L.sub.T-SNSR+m.Math.T.sub.ADJ. (Equation 9)
The controller 214 then determines the new present dimming percentage d.sub.PRES for the lighting load 104 in a similar manner as in the receive procedure 500 of the first embodiment. Specifically, the controller 214 calculates the light intensity L.sub.E-SNSR measured by the daylight sensor 120 from only the lighting load 104 at step 912, calculates the light intensity L.sub.D-SNSR at the daylight sensor 120 from only natural light at step 914, calculates the light intensity L.sub.D-TASK on the task surface from only daylight at step 916, and calculates the new present dimming percentage d.sub.PRES at step 918. The controller 214 then finally controls the lighting load 104 according to the new present dimming percentage d.sub.PRES at step 920, before the load control procedure 900 exits.
(72) According to a third embodiment of the present invention, the controller 230 uses a parabolic model to determine the predicted light intensity values. In other words, the controller 230 is operable to perform a parabolic least-squares fit on the measured light intensity values from a present time interval to fit measured light intensity values to a parabola (i.e., y=ax.sup.2+bx+c) that best represents the change in the measured light intensity values with respect to time. The controller 230 uses these estimators (i.e., the coefficients a, b, c of the parabola) to determine the predicted light intensity values for one or more of the subsequent time intervals. The controller 230 then determines a mean-square error e between the measured light intensity values and the predicted light intensity values.
(73)
P[i]=ai.sup.2+bi+c, (Equation 10)
(74) for i=q.Math.T.sub.WIN+1 to 2q.Math.T.sub.WIN.
(75) At step 1028, the controller 230 determines the mean-square error e between the measured light intensity values and the predicted light intensity values. If the mean-square error e is greater than or equal to the predetermined maximum error e.sub.MAX at step 1030, the controller 230 determines the new estimators at step 1032 by performing a parabolic least-squares fit on the measured light intensities from the present time interval to thus determine the coefficients a, b, c of the parabola that best represent the measured light intensities from the present time interval. The controller 230 then loads a digital message including one or more values representative of the total light intensity L.sub.T-SNSR in the TX buffer at step 1034, e.g., the estimators (i.e., the coefficients a, b, c of the parabola) determined at step 1032. Accordingly, the dimmer switch 110 will execute a receive procedure (not shown) similar to the receive procedure 800 of the second embodiment in order to calculate the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120 using the coefficients a, b, c. In addition, the dimmer switch 110 will periodically adjust the present light intensity L.sub.PRES of the lighting load 104 using a load control procedure (not shown) similar to the load control procedure 900 of the second embodiment.
(76) According to another alternative embodiment of the present invention, the controller 230 of the daylight sensor 120 could use a linear predictor to determine the predicted light intensity values. For example, the predicted light intensity values may be calculated using the equation:
P[i]=Σ(α.sub.i.Math.x[n-i]) (Equation 11)
(77) for i=1 to K,
(78) where x[n-i] are the previous measured light intensity values, α.sub.i are the predictor coefficients, and K is the maximum number of values used to calculate the predicted light intensity.
(79) According to a fourth embodiment of the present invention, the daylight sensor 120 does not transmit digital messages in response to the measured total light intensity L.sub.T-SNSR if the measured data is “misbehaving” so as to reduce the transmission rate and further conserve battery life. For example, the daylight sensor 120 may ignore fluctuations in the measured total light intensity L.sub.T-SNSR that are large in magnitude and short in time duration (i.e., during intermittent-cloudy days as shown in
(80)
(81) However, according to the fourth embodiment, the controller 230 further analyzes the measured total light intensity values if the error calculated at step 316 is outside of the predetermined limits (i.e., is too great) at step 318. Specifically, the controller 230 using the measured total light intensity values to calculate a data behavior metric at step 1124, compares the calculated data behavior metric to predetermined data behavior metric limit(s) at step 1126, and determines if the data is misbehaving at step 1128, i.e., is outside of the data behavior metric limit(s). For example, the controller 230 may analyze the total light intensity values to determine if the rate of change of the total light intensity L.sub.T-SNSR measured by the daylight sensor 120 is too great. If the data is not misbehaving at step 1128, the controller 230 calculates the new estimator(s) for use during the subsequent time interval at step 320 and transmits a digital message including one or more values representative of the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120 to the dimmer switch 110 at step 322, before the transmission algorithm 1100 loops around. If the data is misbehaving at step 1128, the controller 230 does not calculate the new estimator(s) at step 320 and does not transmit the values representative of the total light intensity L.sub.T-SNSR at step 324, but simply analyzes the next non-overlapping time interval.
(82)
(83) Referring to
(84)
If the present sample adjustment amount ΔS.sub.PRS is greater than or equal to the second predetermined percentage ΔS.sub.MAX2 at step 1240, the variable transmission control procedure 1200 exits without transmitting a digital message to the dimmer switch 110. For example, the second predetermined percentage ΔS.sub.MAX2 may be approximately 10%, but may alternatively range from approximately 5% to 25%.
(85) However, if the present sample adjustment amount ΔS.sub.PRS is less than the second predetermined percentage ΔS.sub.MAX2 at step 1240, the controller 230 sets the previous minimum sample S.sub.MIN-PRV equal to the present minimum sample S.sub.MIN-PRS at step 432. The controller 230 then loads a digital message including a value representative of the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120 (i.e., the minimum present minimum sample S.sub.MIN-PRS) in a transmit (TX) buffer at step 434, before the variable transmission control procedure 1200 exits.
(86)
(87) As described above, the controller 230 of the daylight sensor 120 of the first, second, third, and fourth embodiments collects the predetermined number N.sub.SMPL of measurements of the total light intensity L.sub.T-SNSR during consecutive non-overlapping time intervals, and only analyzes the measurements at the end of each time interval (i.e., as determined by the predetermined time period T.sub.WIN). Alternatively, the controller 230 could analyze the measurements of the total light intensity L.sub.T-SNSR in a sliding window time interval. Specifically, the controller 230 could store each new measurement of the total light intensity L.sub.T-SNSR in a first-in, first-out (FIFO) register (e.g., having a size equal to the predetermined number N.sub.SMPL of measurements). The controller 230 could then analyze the data stored in the FIFO registered each time that the controller samples the total light intensity control signal V.sub.TOT.
(88) In addition, the controller 230 of the daylight sensor 120 transmits digital messages including one or more values representative of the measured total light intensity L.sub.T-SNSR according to the first, second, third, and fourth embodiments. According to a fifth embodiment of the present invention, each digital message transmitted by the daylight sensor 120 to the dimmer switch 110 may alternatively comprise a command, such as a specific new light intensity L.sub.NEW for the lighting load 104. The controller 230 of the daylight sensor 120 determines the new intensity levels L.sub.NEW in response to the measured total light intensity L.sub.T-SNSR. The dimmer switch 110 controls the present light intensity L.sub.PRES of the lighting load 104 to the new light intensity L.sub.NEW in response to receiving a digital message with a command from the daylight sensor 120.
(89) According to the fifth embodiment, each time the controller 230 of the daylight sensor 120 samples the total light intensity control signal V.sub.TOT, the controller 230 calculates a new dimming percentage d.sub.NEW, which may be transmitted to the dimmer switch 110. As in the previous embodiments, the new dimming percentage d.sub.NEW may be a number between zero and one, which is representative of the new light intensity L.sub.NEW for the lighting load 104. The controller 214 of the dimmer switch 110 is operable to determine the light intensity L.sub.NEW from the new dimming percentage d.sub.NEW received from the daylight sensor 120, for example, by applying the new dimming percentage d.sub.NEW to different dimming curves depending upon the load type of the lighting load. The controller 230 of the daylight sensor 120 only transmits digital messages to the dimmer switch 110 when the new dimming percentage d.sub.NEW is outside a deadband, i.e., only when a change to the present light intensity L.sub.PRES of the lighting load 104 is required. Accordingly, the daylight sensor 120 only transmits digital messages to the dimmer switch 110 using a variable transmission rate that is dependent upon the measured total light intensity L.sub.T-SNSR.
(90) In addition, the controller 230 may also store a historical record of the total light intensity L.sub.T-SNSR as measured by the daylight sensor 120 each time the controller samples the total light intensity control signal V.sub.TOT. The controller 230 is operable to determine when it is daytime and nighttime in response to the total light intensity control signal V.sub.TOT and the historical record stored in the memory 246. The controller 230 may increase the length of the sampling period T.sub.SMPL (e.g., to approximately three seconds) during the nighttime, such that the controller samples the total light intensity control signal V.sub.TOT less frequently and consumes even less power.
(91)
(92) The controller 230 is operable to periodically store the filtered total light intensity samples FS.sub.TOT (e.g., every 30 minutes) to create the historical record in the memory 246 of the total light intensity L.sub.T-SNSR at the daylight sensor 120. Specifically, if the controller 230 should store the present filtered total light intensity sample FS.sub.TOT at step 1320, the controller stores the present filtered total light intensity sample FS.sub.TOT in the memory 246 at step 1322.
(93) Next, the controller 230 uses the filtered total light intensity sample FS.sub.TOT and a present dimming percentage d.sub.PRES to determine the new dimming percentage d.sub.NEW for the lighting load 104 using similar calculations as the receive procedure 500 of the first embodiment. Specifically, the controller 230 calculates the light intensity L.sub.E-SNSR measured by the daylight sensor 120 from only the lighting load 104 at step 1324, calculates the light intensity L.sub.D-SNSR at the daylight sensor 120 from only natural light at step 1326, calculates the light intensity L.sub.D-TASK on the task surface from only daylight at step 1328, and calculates the new dimming percentage d.sub.NEW at step 1330.
(94) At step 1332, the controller 230 determines if the new dimming percentage d.sub.NEW is outside of a deadband, e.g.,
d.sub.PRESΔ<d.sub.NEW<d.sub.PRES+Δ, (Equation 13)
where Δ represents a predetermined increment by which the new dimmer percentage d.sub.NEW must differ from the present dimming percentage d.sub.PRES before the daylight sensor 120 will transmit a digital message to the dimmer switch 110 causing the dimmer switch to adjust the intensity of the lighting load 104 to the new intensity L.sub.NEW. For example, the predetermined increment Δ may be approximately 1%. If the new dimming percentage d.sub.NEW is within the deadband at step 1332, the control procedure 1300 simply exits. However, if the new dimming percentage d.sub.NEW is outside the deadband at step 1332, the controller 230 stores the new dimming percentage d.sub.NEW as the present dimming percentage d.sub.PRES at step 1334. The controller 230 loads a digital message (including a command to control the intensity of the lighting load 104 according to the new dimming percentage d.sub.NEW) into a transmit (TX) buffer at step 1336, before the control procedure 1300 exits.
(95) A lighting control systems including wired daylight sensors (i.e., wired photosensors) is described in greater detail in U.S. Pat. No. 7,369,060, issued May 6, 2008, entitled DISTRIBUTED INTELLIGENCE BALLAST SYSTEM AND EXTENDED LIGHTING CONTROL PROTOCOL, the entire disclosures of which is hereby incorporated by reference.
(96) While the present invention has been described with reference to the dimmer switch 110 for controlling the intensity of the lighting load 104, the concepts of the present invention could be applied to load control systems comprising other types of load control devices, such as, for example, fan-speed controls for fan motors, electronic dimming ballasts for fluorescent loads, and drivers for light-emitting diodes (LEDs). Further, the concepts of the present invention could be used to control other types of electrical loads, such as, for example, fan motors or motorized window treatments.
(97) Although the present invention has been described in relation to particular embodiments thereof, many other variations and modifications and other uses will become apparent to those skilled in the art. It is preferred, therefore, that the present invention be limited not by the specific disclosure herein, but only by the appended claims.