Light sensor

Abstract: A light level sensor for use in controlling the switching of artificial lighting. The sensor comprises a photoelectric transducer 10 which provides an output signal at a level which is significant of the illumination level of incident light. Circuitry comprising an A-D converter 13 and a microprocessor 14 are located in circuit with the transducer 10 for detecting the level of the transducer output signal and for any cyclic variation of the transducer output signal resulting from cyclic variation of the level of incident light. Further circuit means 14 and 16 are provided for generating a sensor output signal if either (a) the level of the transducer output signal is below a predetermined level or (b) the level of the output signal is above the predetermined level and, at the same time, cyclic variations occur in the level of the transducer output signal. When the sensor is used to switch artificial lighting on, with falling ambient light, the sensor output signal is used to energise a lighting control relay 15 when the ambient light falls below the predetermined level. The relay thereafter is held ON if the sensor detects the presence of a high light level, provided that the high light level is attributable only to the artificial lighting as recognised by detection of cyclic variation of the transducer output signal.

Description: FIELD OF THE INVENTION This invention relates to a light level sensor for use in detecting the level of ambient light and for controlling the switching of electrical circuits when the ambient light level falls below or rises above a predetermined level. The invention has particular application to a sensor which may be used for switching lighting with rise and fall of ambient light conditions and the invention is hereinafter described in the context of such an application. However, it will be understood that the invention does have broader application, to the use of a light level sensor for various control functions. BACKGROUND OF THE INVENTION Conventional light level sensors, of the type disclosed, for example, in GB-A-2 060 163, normally incorporate photoelectric transducers which have an inherently slow response time, typically significantly greater than 20 milliseconds. The transducers produce a dc output signal, the level of which varies with the illumination level of incident radiation. Also, the response time of the complete sensors is normally damped to allow for transitory events, such as temporary cloud cover, and the total effective response time of the sensors may be fixed as high as 30 seconds. Consequently, conventional types of light level sensors cannot distinguish between natural (ambient) light and artificial light that normally is modulated at a rate equal to mains frequency or, in the case of lighting sources such as compact fluorescent lamps that have their own power supply, at a rate in the range 20 to 50 kHz. This means that the sensors must be shielded from the artificial light, a factor that sometimes escapes the attention of electricians and others who are responsible for siting the sensors, in order to prevent "confusion" arising from the existence of artificial light and to prevent the establishment of a slow ON-OFF switching cycle. At least one attempt has been made to solve this problem by providing a sensor housing that incorporates a movable shield to hide the sensor from an adjacent artificial light source, but the present invention is directed to a more general solution of the problem by providing a sensor that detects for the presence of modulated light and uses this to distinguish between high light levels produced on the one hand by natural light and on the other hand by artificial light. Alternative approaches have been taken toward discriminating between light emitted from various sources. In this context reference is made to US-A-4827119, which discloses an apparatus in which a Fourier series analysis is performed on one or more of the harmonics of an illuminating signal and a comparison is made between the amplitudes of the harmonics and the amplitudes of known sources. Reference is also made to FR-A-2 577 742, which discloses an arrangement in which filtering is employed for the purpose of discriminating between the emissions of different light sources. However, as already indicated, the present invention takes the different approach of detecting for the presence of modulated light (ie, artificial light that has a cyclically varying level) against a possible background of (unmodulated) natural light. SUMMARY OF THE INVENTION The present invention may be defined broadly as providing a light level sensor comprising a photoelectric transducer which provides a transducer output signal at a level which is significant of the illumination level of incident light and at cyclically varying level when the incident light is derived at least in part from a mains powered artificial light source, and means located in circuit with the transducer for detecting the level of the transducer output signal. The light level sensor is characterised in that said means located in circuit with the transducer provide for detection of any cyclic variation in the level of the transducer output signal, resulting from cyclic variation in the level of incident artificial light, and provide for the generation of a sensor output signal if either of the following conditions is detected to exist: (a) the level of the transducer output signal is below a predetermined level, or (b) the level of the transducer output signal is above the predetermined level and cyclic variations are detected to occur in the level of the transducer output signal. The sensor output signal may comprise a HIGH signal or a LOW signal depending upon the intended application of the sensor. When the sensor is used to switch artificial lighting on, with falling ambient light, the sensor output signal may be used to energise a lighting control relay when the ambient light falls below a predetermined level. The relay will thereafter be held ON even if the sensor detects the presence of a high light level, provided that the high light level is attributable only to the artificial lighting. The presence of such lighting will be recognised by detection of cyclic variation of the transducer output signal. When conditions are such that the ambient light makes a transition from a low level to a high level and the artificial light remains momentarily on, conflicting conditions apparently will exist. That is, whereas the sensor should function to de-energise the relay (due to the existence of high ambient light) the sensor will continue to "see" the cyclically varying light and attribute the high light level to the artificial light source. However, the level of the varying component of the incident light will inherently be insignificantly small relative to the total incident light level under this condition (i.e., the natural, ambient light will swamp the artificial light) and the consequential ripple will be of no significance due to normal saturation of the transducer or will be rendered insignificant by subsequent signal processing. Cyclic variation of the transducer output signal may be detected by processing the signal in a manner to determine changes in phase of the signal. Alternatively and preferably, the signal may be processed in a manner to analyse it incrementally for variations in amplitude. Having derived a signal which is significant of the level of incident light and/or significant of the existence of modulated light, further signal processing may be effected in the apparatus of the present invention to determine the existence of a stable condition before applying the sensor output signal to a control function. Thus, a response delay may effectively be introduced to accommodate transitory conditions such as temporary cloud cover or brief light flashes. The invention will be more fully understood from the following description of a preferred embodiment of a light level sensor for use in controlled switching of ambient lighting under low light conditions. The description is provided with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS In the drawings - Figure 1 shows a block diagrammatic representation of the sensor and a relay which is controlled (energised or de-energised) by the sensor, Figure 2 shows a simplified circuit of a photoelectric transducer element in the form of a phototransistor, and Figure 3 shows a flow diagram of process control functions performed in the sensor. DETAILED DESCRIPTION OF THE INVENTION As illustrated, the light level sensor comprises a photoelectric transducer 10 in the form of a phototransistor. A zener diode 12 is connected across a collector load resistor 11 of the transistor for the purpose of introducing non-linearity under high incident light conditions. The output from the transducer 10 will appear as a dc signal in the event of incident natural (solar) radiation, as a full-wave rectified ac signal in the event of incident ("modulated") light from an artificial light source such as an incandescent lamp or a fluorescent lamp, and as a dc-shifted ac signal in the event of composite incident radiation. Thus, the level (or average level) of the output signal from the transducer 10 will be significant of the level of incident light, whatever may be the source of the light, and the frequency of variation (if any) of the signal will be proportional to the modulation frequency of light from an artificial source. By detecting cyclic variation of the transducer output signal a determination may be made as to whether the incident light originates from an artificial source or is in the form of natural, ambient light. The transducer output signal is applied to an analogue-to-digital converter 13 which functions to sample and digitise the transducer output signal under the control of a microprocessor 14. Sampling is conveniently effected at a rate of 25 samples per 10 millisecond period and at 256 incremental levels. The output from the A-D converter 13 is fed to the microprocessor 14 and each successive byte is compared with each immediately preceding byte to determine relative quantised measures of the transducer output signal samples. For this purpose, the value attributed to the first sample in a sequence is allocated to both the stored "highest value" and "lowest value" samples. Then, if a given byte is representative of a sampled amplitude which is higher in value than that of a preceding sample, the stored highest value is incremented by one. Similarly, if a given byte is representative of a sampled amplitude which is lower in value than that of the preceding sample, the stored lowest value is decremented by one. Then, following 25 samples, the stored lowest byte value is subtracted from the stored highest byte value to provide a so-called light variation number, and this number is compared with a stored constant for the purpose of determining arbitrarily whether there is a significant variation of the amplitude and, over successive periods, if the amplitude is varying periodically. The actual value of periodic variation (i.e., frequency) is not required to be determined, although it may be determined for the purpose of enhancing detection of low frequency light modulation. That is, the periodic variation value may be detected for the purpose of enhancing detection of low frequency levels attributable to mains energised filament lamps. Detection enhancement is achieved by detecting the frequency of amplitude peaks and testing it against the actual mains frequency. Also, during each sampling period a determination is made as to the average value of the difference between the quantised high and low levels of the transducer output signal. This provides a periodic measure of the level of light falling incident on the transducer and is compared with a reference value for the purpose of producing a HIGH light indication or a LOW light indication. A LOW light indication is used to generate a signal which is applied to a relay 15, by way of a driver stage 16, to effect energising of the relay and consequential switching of ambient lighting. All of the above described operations are program controlled in the microprocessor 14, and the various process control functions, plus a supplementary function, are indicated diagrammatically in the flow diagram shown in Figure 3. As indicated in Figure 3 of the drawings, if the incident light level is low and the relay is not energised, a relay ON signal is generated. If the incident light subsequently goes high, a test is made whether the light is modulated and, hence, originates from an artificial source. If it is determined that the light originates from an artificial source, the relay ON signal is confirmed. On the other hand, if it is determined that the high level light does not originate from the artificial source, it is assumed that the high light level is attributable to increasing ambient light and a relay OFF signal is generated. The relay ON and OFF signals are both stored over a 30 second period and if the total number of ON signals is greater than the total number of OFF signals by a factor of 2:1, the relay is energised or, if already energised, is maintained in an energised condition. Conversely, if the total number of OFF signals is greater than the total number of ON signals by a factor of 2:1, the relay is de-energised. Thus, by storing the relay ON and relay OFF signals for a 30-second period, allowance may be made for transitory changes in ambient light conditions.

Claims: A light level sensor comprising a photoelectric transducer (10) which provides a transducer output signal at a level which is significant of the illumination level of incident light and at cyclically varying level when the incident light is derived at least in part from a mains powered artificial light source, and means (13,14) located in circuit with the transducer (10) for detecting the level of the transducer output signal; characterised in that said means (13,14) provide for detection of any cyclic variation in the level of the transducer output signal, resulting from cyclic variation in the level of incident artificial light, and provide for the generation of a sensor output signal if either of the following conditions is detected to exist: (a) the level of the transducer output signal is below a predetermined level, or (b) the level of the transducer output signal is above the predetermined level and cyclic variations are detected to occur in the level of the transducer output signal. The light level sensor as claimed in claim 1, further characterised in that the means (13,14) providing for detection of cyclic variation of the level of the transducer output signal comprises means (14) for processing the signal in a manner to analyse the signal incrementally for variations in amplitude. The light level sensor as claimed in claim 1 or claim 2, further characterised in that the photoelectric transducer (10) comprises a solid state photodetector device and in that means (12) are connected in circuit with the device (10) for introducing non-linearity under high incident light conditions. The light level sensor as claimed in any one of claims 1 to 3, further characterised in that the photoelectric transducer (10) is arranged to generate the transducer output signal as a dc signal in the event that the incident light comprises solar radiation, as an ac signal in the event that the incident light comprises light from the mains powered artificial light source and as a dc-shifted ac signal in the event that the incident light is composed of both solar radiation and light from the mains powered artificial light source. The light level sensor as claimed in claim 4, further characterised in that the means (13,14) for detecting the level of the transducer output signal comprises an A-D converter (13) which functions to sample and digitise the transducer output signal under the control of a microprocessor (14) and includes processing circuitry for processing successive samples to detect for (a) the average value of the difference between quantised high and low levels of the transducer output signal and (b) periodic variation of the amplitude of the transducer output signal as represented by the successive samples. The light level sensor as claimed in any one of claims 1 to 5, further characterised in that a relay device (15) is connected in circuit with the means (13, 14) for generating the sensor output signal, and in that the relay device (15) is arranged to be connected in circuit with artificial lighting and is arranged to be activated by the sensor output signal. The light level sensor as claimed in claim 6, further characterised in that the means (13,14) for generating the sensor output signal functions to generate a relay ON signal if the level of the transducer signal is below the predetermined level or the level of the transducer signal is above the predetermined level and cyclic variations occur in the level of the transducer output signal, and in that the means (13, 14) for generating the sensor output signal functions to generate a relay OFF signal if the level of the transducer signal is above the predetermined level and cyclic variation is not detected in the transducer output signal. The light level sensor as claimed in claim 7, further characterised in that said means (13,14) provide for storing the relay ON and OFF signals over a further predetermined period and for detecting if the total number of ON signals is greater than the total number of OFF signals by a predetermined factor over the further predetermined period, in that means (16) are provided for generating a relay energising signal if the relay ON signals predominate over the relay OFF signal by the predetermined factor, and in that a relay de-energising signal is generated if the relay OFF signals predominate by the predetermined factor over the relay ON signals during the further predetermined period.

Inventors: BIRRELL PETER, BIRRELL, PETER
Applicants: HPM IND PTY LTD, H.P.M. INDUSTRIES PTY LIMITED
Application year: 1995
Main classification: G01J1
IPC codes: G01J1