Ambient luminosity level detection
11029200 ยท 2021-06-08
Assignee
Inventors
Cpc classification
H04N1/00917
ELECTRICITY
G01J2001/4426
PHYSICS
International classification
Abstract
The following steps are performed in connection with a photodiode circuit: a) resetting the photodiode circuit; b) determining when a photodiode voltage changes in response to illumination to reach a threshold; and c) updating a counter in response to the determination in step b). The steps a) to c) are repeated until an end of a measurement period is reached. The value of the counter at the end of the measurement period is then output to indicate an intensity of the illumination.
Claims
1. A method, comprising: a) resetting a photodiode; b) determining when a photodiode voltage changes in response to illumination to reach a threshold; c) updating a counter in response to the determination in step b); d) repeating steps a) to c) until an end of a measurement period is reached; and e) outputting a value of the counter at the end of the measurement period that is indicative of an intensity of said illumination; wherein a difference between a time for resetting the photodiode and a time when the threshold is reached is a discharge time; and wherein the measurement period expires when a sum of a plurality of consecutive discharge times equals or exceeds a threshold period.
2. The method of claim 1, wherein said measurement period is at least equal to a multiple of a half period of an A.C. mains power supply.
3. The method of claim 2, wherein the A.C. mains power supply operates at a frequency selected from a group consisting of 50 Hz and 60 Hz.
4. The method of claim 1, wherein said measurement period is selected according to a frequency of A.C. signals provided by an electric power supply network.
5. The method of claim 1, wherein said measurement period is a multiple of 50 ms.
6. The method of claim 1, further comprising measuring a charge level of the photodiode at the end of said measurement period.
7. The method of claim 6, further comprising adjusting the output value of the counter in response to the measured charge level.
8. A method, comprising: a) sensing a discharge of a photodiode; b) in response to said sensing: triggering an updating of a counter storing a count value and resetting the photodiode; c) measuring a discharge time of the photodiode after resetting of the photodiode; d) repeating steps a) to c) over a time interval; and e) outputting a light intensity received by the photodiode as said count value of the counter at an end of the time interval; wherein the time interval is equal to a sum of a plurality of discharge times for said photodiode.
9. The method of claim 8, further comprising summing the plurality of discharge times; comparing the sum to a threshold duration; and terminating the time interval when the sum equals or exceeds the threshold duration.
10. The method of claim 9, wherein the threshold duration is selected according to a frequency of A.C. signals provided by an electric power supply network.
11. The method of claim 9, wherein said threshold duration is a multiple of 50 ms.
12. The method of claim 8, further comprising measuring a charge level of the photodiode at the end of said time interval.
13. The method of claim 12, further comprising adjusting the count value in response to the measured charge level.
14. A method, comprising: a) generating by a photodiode of a voltage which changes at a rate dependent on illumination; b) comparing the voltage to a reference; c) incrementing a count value in response to said comparison and resetting the photodiode; repeating steps a) to c) until a measurement period expires; and outputting the count value at an end of the measurement period as being indicative of an intensity of said illumination; wherein a difference between a time for resetting the photodiode and a time for the compared voltage to pass the reference change is a discharge time, and wherein the measurement period expires when a sum of a plurality of consecutive discharge times equals or exceeds a threshold period.
15. The method of claim 14, wherein said measurement period is at least equal to a multiple of a half period of an A.C. mains power supply.
16. The method of claim 15, wherein the A.C. mains power supply operates at a frequency selected from the group consisting of 50 Hz and 60 Hz.
17. The method of claim 14, further comprising measuring the voltage of the photodiode at the end of said measurement period.
18. The method of claim 17, further comprising adjusting the count value in response to the measured voltage.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The foregoing and other features and advantages will be discussed in detail in the following non-limiting description of specific embodiments in connection with the accompanying drawings, wherein:
(2)
(3)
(4)
(5) For clarity, the same elements have been designated with the same reference numerals in the different drawings and, further, the timing diagram of
DETAILED DESCRIPTION
(6) Luminosity level detectors may be used in combination with illuminated display screens in devices such as telephones, tablets, computers, photographic cameras, etc. to automatically adjust the screen backlighting power according to the ambient luminosity, and thus achieve power savings and/or improve the user-friendliness.
(7) A luminosity level can be deduced from the measurement of the voltage across the photodiode, at the end of an integration period before and after the detector is reset by recharging of its photodiode. The voltage decrease across the photodiode during the integration depends on the amount of light received by the photodiode.
(8) A problem is that, if the integration period is too long, in case of a strong luminosity, the photocurrent may be such that the photodiode reaches, before the end of the integration period, a so-called saturation discharge threshold, beyond which luminosity differences can no longer be discriminated. However, if the integration period is too short, in case of a low luminosity, the photodiode discharge during the integration period may not be sufficient to enable to discriminate luminosity differences. In practice, it is thus provided to adjust the integration period according to the order of magnitude of the luminosity level to be measured. To achieve this, it is generally provided to repeat several times the measurement by starting from a short integration period, and by progressively increasing this period until a useable measurement is obtained. The time necessary to obtain a useable measurement may be relatively long. Further, this time is dependent from the luminosity level to be measured, which may pose certain problems.
(9) Another problem is that possible linearity defects in the photodiode response may cause inaccuracies in the measurement provided by the detector.
(10) Another problem is that a luminosity level detector is often sensitive to the flickering of artificial light sources, supplied in A.C. mode, for example, by the mains voltage. Such a flickering may significantly disturb the measurements performed by the detector. To solve this problem, it may be provided to select an integration sub-period of the photodiode which is a multiple of the half-period of the A.C. power supply voltage, for example, a multiple of 10 ms for a 50-Hz power supply source, or a multiple of 8.33 ms for a 60-Hz power supply source. This indeed enables to ascertain that the duration when the light source is off during the integration period of the photodiode is independent from the phase-shift between the integration period of the photodiode and the A.C. power supply of the light source. However, this necessitates that the photodiode integration period may not be shorter than the half-period of the A.C. power supply source. Now, in case of a strong luminosity, the detector may saturate before the end of a half-period of the A.C. power supply voltage. The discrimination of the higher luminosity levels is then impossible.
(11) An embodiment solves all or part of these problems.
(12)
(13)
(14) In this example, when signal RST is in a high state, the switch is turned on, which causes the charging of photodiode 101. Voltage V.sub.PX on cathode K of photodiode 101 is then substantially equal to high power supply voltage V.sub.RT (to within the voltage drop of switch 103). However, when signal RST is in a low state, switch 103 is off and photodiode 101 is disconnected from rail V.sub.RT. The photodiode is then sensitive to light, and voltage V.sub.PX of its cathode decreases at a rate which depends on the light intensity received by the photodiode.
(15) According to an aspect, detector 100 is configured so that, within a luminosity level measurement time interval T.sub.M, each time photodiode 101 reaches a discharge threshold, a counter 109 (CP), for example, comprised within control circuit 107, is updated, that is, incremented or decremented. Detector 100 is further configured so that, in measurement interval T.sub.M, each time photodiode 101 reaches the discharge threshold triggering the update of counter 109, the photodiode is reset.
(16) In the illustrated example, measurement interval T.sub.M starts with a resetting of photodiode 101. To achieve this, control circuit 107 applies to signal RST a pulse 201.sub.1 for controlling the turning-on of transistor 103. During pulse 201.sub.1, cathode voltage V.sub.PX of diode 101 is substantially equal to high power supply voltage V.sub.RT.
(17) Falling edge 202.sub.1 of pulse 201.sub.1 marks the beginning of an integration period of the photodiode, during which voltage V.sub.PX decreases at a rate depending on the light intensity received by the photodiode. During this integration period, a constant voltage V.sub.REF, lower than voltage V.sub.RT, is applied to input node E2 of comparator 105. Voltage V.sub.REF is for example slightly greater than the saturation threshold of photodiode 101.
(18) During the reset phase (pulse 201.sub.1) and at the beginning of the integration period, voltage V.sub.PX being higher than voltage V.sub.REF, output voltage V.sub.CMP of comparator 105 is in the low state.
(19) After a discharge time T.sub.d1 which depends on the light intensity received by the photodiode, and which is thus not known before the beginning of the integration period, voltage V.sub.PX reaches voltage V.sub.REF, and comparator 105 switches state. Control circuit 107 is configured to detect such a state switching (that is, a rising edge of signal V.sub.CMP in this example) and, as a response, to update counter 109 and reset the photodiode by applying to signal RST a pulse 201.sub.2 for controlling the turning-on of switch 103.
(20) A new integration period of the photodiode then starts, and the above-mentioned sequence (discharge of the photodiode down to threshold V.sub.REF, detection of a state switching of the comparator, counter update, and resetting of the photodiode) is repeated, and so on until the end of measurement interval T.sub.M.
(21) Thus, during measurement interval TM, detector 100 carries out n (n being an integer greater than or equal to 1) discharge cycles of photodiode 101, each cycle comprising a photodiode reset step, followed by an integration period. Each cycle ends after the photodiode has reached the discharge threshold set by voltage V.sub.REF, except for the last cycle which may end before voltage V.sub.PX reaches threshold V.sub.REF. Counter 109 is updated at the end of each full discharge cycle. The number of cycles carried out within an interval T.sub.M depends on the light intensity received by the photodiode, and is thus not known before the beginning of interval T.sub.M. The higher the light intensity received by the photodiode, the greater the photodiode discharge speed, and the higher the number of cycles performed within interval T.sub.M. Conversely, the lower the light intensity received by the photodiode, the lower the photodiode discharge speed, and the smaller the number of cycles performed within interval T.sub.M. Below a given luminosity threshold, the photodiode never reaches the discharge threshold set by voltage V.sub.REF during interval T.sub.M. In this case, interval T.sub.M only contains a partial discharge cycle.
(22) Thus, the number of updates of counter 109 during interval T.sub.M is representative of the luminosity level received by the photodiode during interval T.sub.M. At the end of measurement interval T.sub.M, a luminosity level received by the photodiode during interval T.sub.M may be deduced from the state of counter 109.
(23) As an example, counter 109 may be reset at the beginning of interval T.sub.M, and the state of counter 109 at the end of interval T.sub.M may be directly used as a measurement of the luminosity level, and transferred onto output OUT of the detector. In this case, an advantage is that detector 100 does not require providing an analog-to-digital converter to sample a discharge level of its photodiode. This enables to decrease the bulk, the cost, and the power consumption of the detector.
(24) As a variation, to make the measurement more accurate still, detector 100 may comprise an analog-to-digital converter (not shown) and may be configured so as to, at the end of the last discharge cycle of photodiode 101, which may be a partial discharge cycle, sample the discharge level of photodiode 101. An output value OUT representative of the luminosity level received by the photodiode can then be determined by taking into account not only the number of updates of counter 109 during interval T.sub.M, but also the level reached by the photodiode at the end of the last discharge cycle.
(25) The duration of interval T.sub.M may be set before the beginning of the measurement. In this case, the total effective discharge time of the photodiode during interval T.sub.M depends on the luminosity received by the photodiode. Indeed, the higher the luminosity, the larger the number of discharges cycles during interval T.sub.M, and the larger the portion of interval T.sub.M used to reset the photodiode and update counter 109. Conversely, the lower the luminosity, the lower the number of discharges cycles during interval T.sub.M, and the smaller the portion of interval T.sub.M used to reset the photodiode and update counter 109. It should indeed be noted that the duration of the photodiode reset and counter update phases between discharge cycles is independent from the luminosity level received by the detector. Thus, for a given measurement interval T.sub.M, the higher the luminosity, the shorter the total effective photodiode discharge time during interval T.sub.M, and conversely.
(26) In an embodiment, only total effective photodiode discharge time T.sub.D during interval T.sub.M is set before the beginning of the measurement, and interval T.sub.M varies according to the luminosity received by the photodiode. For this purpose, in each photodiode discharge time during measurement interval T.sub.M, effective discharge time T.sub.di (i being an integer ranging from 1 to n) of the photodiode, between falling edge 202.sub.i of reset pulse 201.sub.i and the time of the cycle when the photodiode reaches the discharge threshold set by voltage V.sub.REF, is measured, for example, by means of a time measurement circuit 111 which may be part of control circuit 107. Circuit 111 for example comprises a clock (not shown) and a counter (not shown) capable of being triggered by the rising and/or falling edges of the clock. The end of interval T.sub.M coincides with the time when the addition of discharge times T.sub.di measured from the beginning of interval T.sub.M reaches a reference threshold duration T.sub.D set before the beginning of the measurement. For a given effective discharge time T.sub.D, measurement interval T.sub.M will be all the longer as the luminosity is high, and conversely.
(27) Total discharge time T.sub.D of the photodiode preferably is a multiple of the half-period of the mains A.C. power supply voltage. This enables to make the detector insensitive to the flickering of artificial light sources powered by the mains. Preferably, time T.sub.D is a multiple of 50 ms. Indeed, most A.C. electric power supply distribution networks operate either at 50 Hz or at 60 Hz, and 50 ms is a multiple both of the half-period of a 50-Hz A.C. signal (10 ms) and of the half-period of a 60-Hz A.C. signal (8.33 ms). The selection of a time T.sub.D which is a multiple of 50 ms thus enables to make the detector insensitive to flickering, whatever the location where the detector is used.
(28) An advantage of the embodiment described in relation with
(29) Another advantage of the embodiment of
(30) Another advantage of the embodiment of
(31) Another advantage is that the signal-to-noise ratio of the measurements provided by detector 100 is higher than that of the measurements provided by a detector where the indication of the luminosity level essentially results from a measurement of the discharge level of the photodiode after an integration period.
(32)
(33) In operation, in a detector reset step, switches 103 and 303 are turned on, which causes the charge of photodiode 101 to a level set by voltage V.sub.RT, and the resetting of capacitor C to a level set by voltage V.sub.REF. In a photodiode integration or discharge phase, following a reset step, switches 103 and 303 are off. The cathode voltage of photodiode 101, substantially equal to voltage V.sub.RT at the beginning of the integration, is transferred onto input E1 of comparator 105 via transistor 301 and capacitor C. The voltage at node E1 then decreases at a rate depending on the luminosity level received by the photodiode, to reach level V.sub.REF, which causes a state switching of the comparator and the updating of counter 109.
(34) The embodiment of
(35) Another advantage of the embodiment of
(36) As a variation, a complementary circuit, not shown, may be provided to apply a first reference voltage on input E1 of the comparator during detector reset steps, and a second reference voltage lower than the first voltage during photodiode discharge phases.
(37) Specific embodiments have been described. Various alterations, modifications, and improvements will occur to those skilled in the art. In particular, the described embodiments are not limited to the detection circuit examples of
(38) Such alterations, modifications, and improvements are intended to be part of this disclosure, and are intended to be within the spirit and the scope of the present invention. Accordingly, the foregoing description is by way of example only and is not intended to be limiting. The present invention is limited only as defined in the following claims and the equivalents thereto.