Ambient light sensor and adjusting method thereof, and electronic product
09778102 · 2017-10-03
Assignee
Inventors
Cpc classification
G01J3/505
PHYSICS
G01J1/32
PHYSICS
International classification
G01J1/32
PHYSICS
Abstract
A method for adjusting an ambient light sensor includes: acquiring a color temperature of light received by the ambient light sensor; and adjusting an output light intensity of the ambient light sensor according to the color temperature to enable output light intensities of the ambient light sensor to be consistent under received light with different color temperatures. The ambient light sensor includes: an acquiring device, configured to acquire a color temperature of light received by the ambient light sensor; and an adjuster, configured to adjust an output light intensity of the ambient light sensor according to the color temperature acquired by the acquiring device to enable output light intensities of the ambient light sensor to be consistent under received light with different color temperatures.
Claims
1. A method for adjusting an ambient light sensor, the method comprising: acquiring a color temperature of an incoming light received by the ambient light sensor, the color temperature of the received light measuring a color characteristic of the incoming light in Kelvins; in response to the incoming light having been received, calculating an intensity of a light output by the ambient light sensor; adjusting the calculated intensity of the output light of the ambient light sensor according to the color temperature of the incoming light for achieving consistency with other incoming lights having different color temperatures as received by the ambient light sensor; and communicating the intensity of the light output by the ambient light sensor to a brightness adjustment apparatus to enable the brightness adjustment apparatus to effectuate a brightness adjustment of a display device based on the intensity of the light output by the ambient light sensor.
2. The method for adjusting an ambient light sensor according to claim 1, wherein the ambient light sensor comprises: a first photodiode that is sensitive to visible light and infrared light, and a second photodiode that is sensitive only to infrared light, and wherein the method further comprises: acquiring a light spectral curve of the incoming light received by the ambient light sensor, a light sensitivity curve of the first photodiode and a light sensitivity curve of the second photodiode; integrating the light spectral curve of the incoming light received by the ambient light sensor and the light sensitivity curve of the first photodiode to obtain a first data parameter Cdata, and integrating the light spectral curve of the incoming light received by the ambient light sensor and the light sensitivity curve of the second photodiode to obtain a second data parameter Irdata, and acquiring a parameter ratio between the Cdata and Irdata as
3. The method for adjusting an ambient light sensor according to claim 2, wherein: the output light intensity of the ambient light sensor is adjusted according to the following output light intensity calculation formula: Lux=K×MAX [(Cdata−B×Irdata),(C×Cdata−D×Irdata),0], wherein Lux is an output light intensity of the ambient light sensor; K, B, C and D are coefficients that are used to enable the output light intensity of the ambient light sensor to be close to a light intensity perceived by human eyes; and MAX is an operation symbol for obtaining a maximum value; and adjusting the intensity of the output light of the ambient light sensor according to the color temperature of the incoming light comprises: adjusting a K value in the output light intensity calculation formula according to different parameter ratios
4. The method for adjusting an ambient light sensor according to claim 3, wherein: adjusting the K value in the output light intensity calculation formula according to different parameter ratios
5. An ambient light sensor, comprising: an acquiring device, configured to a color temperature of an incoming light received by the ambient light sensor, the color temperature of the received light measuring a color characteristic of the incoming light in Kelvins; an output light intensity calculating device configured to calculate an intensity of a light output by the ambient light sensor; and an adjusting device, configured to adjust the calculated intensity of the output light of the ambient light sensor according to the color temperature of the incoming light for achieving consistency with other incoming lights having different color temperatures as received by the ambient light sensor; and, wherein the ambient light sensor is configured to communicate the intensity of the light output by the ambient light sensor to a brightness adjustment apparatus to enable the brightness adjustment apparatus to effectuate a brightness adjustment of a display device based on the intensity of the light output by the ambient light sensor.
6. The ambient light sensor according to claim 5, further comprising: a first photodiode sensitive to visible light and infrared light, the first photodiode being operatively connected to the acquiring device; a second photodiode sensitive only to infrared light, the second photodiode being operatively connected to the acquiring device; and wherein the acquiring device comprises: a sub-acquiring device, configured to acquire a light spectral curve of the incoming light received by the ambient light sensor, a light sensitivity curve of the first photodiode and a light sensitivity curve of the second photodiode, an integrator, configured to integrate the incoming light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the first photodiode to obtain a first data parameter Cdata, and integrate the incoming light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the second photodiode to obtain a second data parameter Irdata, and a parameter ratio calculator, configured to acquire a parameter ratio between the Cdata and Irdata as
7. The ambient light sensor according to claim 6, wherein: the output light intensity calculating device is further, configured to calculate the output light intensity according to an output light intensity calculation formula comprising: Lux=K×MAX [(Cdata−B×Irdata),(C×Cdata−D×Irdata),0], wherein Lux is an output light intensity of the ambient light sensor; K, B, C and D are coefficients that are used to enable the output light intensity of the ambient light sensor to be close to a light intensity perceived by human eyes; and MAX is an operation symbol for obtaining a maximum value; and wherein the adjusting device is configured to adjust a K value in the output light intensity calculation formula according to different parameter ratios
8. The ambient light sensor according to claim 7, wherein the adjusting device is configured to adjust the K value in the output light intensity calculation formula according to the different parameter ratios
9. An electronic product, comprising: a display apparatus; a display brightness adjusting apparatus connected to the display apparatus and an ambient light sensor, wherein the ambient light sensor is connected to the display brightness adjusting apparatus; and wherein the ambient light sensor comprises: an acquiring device, configured to a color temperature of an incoming light received by the ambient light sensor, the color temperature of the received light measuring a color characteristic of the incoming light in Kelvins; an output light intensity calculating device configured to calculate an intensity of a light output by the ambient light sensor; and an adjusting device, configured to adjust the calculated intensity of the output light of the ambient light sensor according to the color temperature of the incoming light for achieving consistency with other incoming lights having different color temperatures as received by the ambient light sensor; and, wherein the ambient light sensor is configured to communicate the intensity of the light output by the ambient light sensor to a brightness adjustment apparatus to enable the brightness adjustment apparatus to effectuate a brightness adjustment of a display device based on the intensity of the light output by the ambient light sensor.
10. The electronic product according to claim 9, wherein the ambient light sensor further comprises: a first photodiode that is sensitive to visible light and infrared light, the first photodiode being operatively connected to the acquiring device; a second photodiode that is sensitive only to infrared light, the second photodiode being operatively connected to the acquiring device; and the acquiring device comprises: a sub-acquiring device, configured to acquire a light spectral curve of the incoming light received by the ambient light sensor, a light sensitivity curve of the first photodiode and a light sensitivity curve of the second photodiode, an integrator, configured to integrate the incoming light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the first photodiode to obtain a first data parameter Cdata, and integrate the incoming light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the second photodiode to obtain a second data parameter Irdata, and a parameter ratio calculator, configured to acquire a parameter ratio between the Cdata and Irdata as
11. The electronic product according to claim 10, wherein the ambient light sensor further comprises: the output light intensity calculating device is further, configured to calculate the output light intensity according to an output light intensity calculation formula comprising: Lux=K×MAX [(Cdata−B×Irdata),(C×Cdata−D×Irdata),0], wherein Lux is an output light intensity of the ambient light sensor; K, B, C and D are coefficients that are used to enable the output light intensity of the ambient light sensor to be close to a light intensity perceived by human eyes; and MAX is an operation symbol for obtaining a maximum value; and wherein the adjusting device is configured to adjust a K value in the output light intensity calculation formula according to different parameter ratios
12. The electronic product according to claim 11, wherein the adjusting device is configured to adjust the K value in the output light intensity calculation formula according to the different parameter ratios
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9) The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
(10) As shown in
(11) Step 101. Acquire a color temperature of light received by the ambient light sensor.
(12) Step 102. Adjust an output light intensity of the ambient light sensor according to the color temperature to enable output light intensities of the ambient light sensor to be consistent under received light with different color temperatures.
(13) Specifically, the output light intensity of the ambient light sensor is obtained by means of calculation of a formula, where the formula may reflect that an output light intensity is directly proportional to an intensity of received light. Therefore, adding different coefficients to the formula can change a proportional relationship of the output light intensity and the intensity of the received light, so that the output light intensity can be adjusted according to different color temperatures of received light to implement consistency of output light intensities when the ambient light sensor receives light with different color temperatures.
(14) According to the method for adjusting the ambient light sensor in this embodiment of the present invention, output light intensities of the ambient light sensor are adjusted according to received light with different color temperatures to enable the output light intensities to be consistent when the ambient light sensor receives the light with the different color temperatures, thereby avoiding an output light intensity deviation generated when the ambient light sensor detects intensities of the ambient light with the different color temperatures.
(15) Further, the foregoing ambient light sensor specifically includes: a first photodiode that is sensitive to visible light and infrared light, and a second photodiode that is sensitive only to infrared light.
(16) As shown in
(17) Step 1011. Acquire a light spectral curve of the light received by the ambient light sensor, a light sensitivity curve of the first photodiode and a light sensitivity curve of the second photodiode.
(18) Specifically, according to properties of a photodiode itself, the photodiode has different light sensitivity curves. For example, as shown in
(19) Step 1012. Integrate the light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the first photodiode to obtain a first data parameter Cdata, and integrate the light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the second photodiode to obtain a second data parameter Irdata.
(20) Step 1013. Acquire a parameter ratio
(21)
where the parameter ratio
(22)
is used to reflect the color temperature of the light received by the ambient light sensor.
(23) For example, in this embodiment of the present invention, a parameter ratio of horizon light with a color temperature of 2300K is
(24)
a parameter ratio of daylight with a color temperature of 6900K is
(25)
and a parameter ratio of coolwhite with a color temperature of 4200K is
(26)
(27) Specifically, the output light intensity of the ambient light sensor is obtained according to the following output light intensity calculation formula:
(28) Lux=K×MAX[(Cdata−B×Irdata), (C×Cdata−D×Irdata),0], where Lux is an output light intensity of the ambient light sensor; K, B, C and D are coefficients that are used to enable the output light intensity of the ambient light sensor to be close to a light intensity perceived by human eyes; and MAX is an operation symbol for obtaining a maximum value. The output light intensity calculation formula can reflect that the output light intensity is directly proportional to an intensity of received light, therefore, adding different coefficients to the output light intensity calculation formula can change a proportional relationship of the output light intensity and the intensity of the received light, and adjusting a K value is equivalent to adding different coefficients to the output light intensity calculation formula.
(29) A process of the adjusting an output light intensity of the ambient light sensor according to the color temperature to enable output light intensities of the ambient light sensor to be consistent under received light with different color temperatures in the foregoing step 102 is specifically:
(30) adjusting the K value in the output light intensity calculation formula according to different parameter ratios
(31)
to enable the output light intensities Lux of the ambient light sensor to be consistent for different parameter ratios
(32)
(33) For example, when the parameter ratio is
(34)
K′ is adjusted to
(35)
where K′ is a coefficient in the output light intensity calculation formula after the adjustment, the adjustment of the K value is equivalent to adding a coefficient 1/1.2 to the output light intensity calculation formula; when the parameter ratio is
(36)
K′ is adjusted to
(37)
and when the parameter ratio is
(38)
K′ is adjusted to
(39)
As shown in
(40) Preferably, a process of the adjusting the K value in the output light intensity calculation formula according to different parameter ratios
(41)
to enable the output light intensities Lux of the ambient light sensor to be consistent for different parameter ratios
(42)
is specifically:
(43) adjusting the K value in the output light intensity calculation formula according to the different parameter ratios
(44)
to enable the output light intensities of the ambient light sensor to be equal to intensities of the light received by the ambient light sensor for the parameter ratios
(45)
(46) Specifically, for example, as shown in
(47) Certainly, it may also be set that after the K value is adjusted, under the three types of ambient light with the different color temperatures, the slopes of the output light intensity curves of the ambient light sensor are all 1.2 or 0.8 or another numeric value. The output light intensities of the ambient light sensor are enabled to be consistent as long as the slopes are the same; however, an output light intensity of the ambient light sensor is equal to, when the slope is 1, an intensity of light received by the ambient light sensor, which may best reflect a real ambient light intensity, thereby enabling brightness detected by the ambient light sensor to be consistent with that perceived by human eyes.
(48) It should be noted that, a photodiode is an element for detecting light brightness in the ambient light sensor, because the photodiode is highly sensitive to infrared light and the infrared light is invisible light, it is unable to accurately simulate brightness perception of human eyes. Therefore, the ambient light sensor in this embodiment of the present invention includes the first photodiode that is sensitive to visible light and infrared light, and the second photodiode that is sensitive only to infrared light, and finally a response value of the latter is subtracted from a response value of the former to reduce infrared light interference to the minimum, so as to simulate real brightness perception of human eyes. It is understandable that, the ambient light sensor may also have only one photodiode, and infrared light interference is reduced by using an infrared cut-off membrane or another processing method. In a case in which only one photodiode exists, an output light intensity calculation formula of the ambient light sensor may be different, but an output light intensity still can be adjusted by means of the method of adding a coefficient. In addition, this embodiment of the present invention is described only by using output light intensity adjustment performed for the three types of ambient light with the different color temperatures, namely, horizon light, daylight and coolwhite, as an example, and a more specific division or a wider-scope division may also be performed on color temperatures of ambient light according to a need.
(49) According to the method for adjusting an ambient light sensor in this embodiment of the present invention, output light intensities of the ambient light sensor are adjusted according to received light with different color temperatures to enable the output light intensities to be consistent when the ambient light sensor receives the light with the different color temperatures, thereby avoiding an output light intensity deviation generated when the ambient light sensor detects intensities of the ambient light with the different color temperatures.
(50) As shown in
(51) an acquiring device 1, configured to acquire a color temperature of light received by the ambient light sensor; and
(52) an adjuster 2, configured to adjust an output light intensity of the ambient light sensor according to the color temperature acquired by the acquiring device to enable output light intensities of the ambient light sensor to be consistent under received light with different color temperatures.
(53) Specifically, a method and a principle for adjusting the ambient light sensor are the same as those in the foregoing embodiment, and details are not described repeatedly herein.
(54) According to the ambient light sensor in this embodiment of the present invention, output light intensities of the ambient light sensor are adjusted according to received light with different color temperatures to enable the output light intensities to be consistent when the ambient light sensor receives the light with the different color temperatures, thereby avoiding an output light intensity deviation generated when the ambient light sensor detects intensities of the ambient light with the different color temperatures.
(55) Further, as shown in
(56) a first photodiode D1 that is sensitive to visible light and infrared light, and a second photodiode D2 that is sensitive only to infrared light, where
(57) the acquiring device 1 includes:
(58) a sub-acquiring device 11, configured to acquire a light spectral curve of the light received by the ambient light sensor, a light sensitivity curve of the first photodiode 4 and a light sensitivity curve of the second photodiode 5;
(59) an integrator 12, configured to integrate the light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the first photodiode 4 to obtain a first data parameter Cdata, and integrate the light spectral curve of the light received by the ambient light sensor and the light sensitivity curve of the second photodiode 5 to obtain a second data parameter Irdata; and
(60) a parameter ratio calculator 13, configured to acquire a parameter ratio
(61)
where the parameter ratio
(62)
is used to reflect the color temperature of the light received by the ambient light sensor.
(63) Further, the foregoing ambient light sensor further includes:
(64) an output light intensity calculator 3, configured to calculate the foregoing output light intensity, where an output light intensity calculation formula:
(65) Lux=K×MAX[(Cdata−B×Irdata), (C×Cdata−D×Irdata),0], where Lux is an output light intensity of the ambient light sensor; K, B, C and D are coefficients that are used to enable the output light intensity of the ambient light sensor to be close to a light intensity perceived by human eyes; and MAX is an operation symbol for obtaining a maximum value, where
(66) the adjuster 2 is specifically configured to adjust a K value in the output light intensity calculation formula according to different parameter ratios
(67)
to enable the output light intensities Lux of the ambient light sensor to be consistent for different parameter ratios
(68)
(69) Further, the adjuster 2 is specifically configured to adjust the K value in the output light intensity calculation formula according to the different parameter ratios
(70)
to enable the output light intensities of the ambient light sensor to be equal to intensities of the light received by the ambient light sensor for the parameter ratios
(71)
(72) Specifically, a method and a principle for adjusting the ambient light sensor are the same as those in the foregoing embodiment, and details are not described repeatedly herein.
(73) According to the ambient light sensor in this embodiment of the present invention, output light intensities of the ambient light sensor are adjusted according to received light with different color temperatures to enable the output light intensities to be consistent when the ambient light sensor receives the light with the different color temperatures, thereby avoiding an output light intensity deviation generated when the ambient light sensor detects intensities of the ambient light with the different color temperatures.
(74) An embodiment of the present invention further provides an electronic product, including: a display apparatus, a display brightness adjusting apparatus connected to the display apparatus and the foregoing ambient light sensor, where the ambient light sensor is connected to the display brightness adjusting apparatus, and the display brightness adjusting apparatus is configured to adjust brightness of the display apparatus according to an output light intensity of the ambient light sensor. Specifically, when the output light intensity of the ambient light sensor is relatively low, that is, the ambient light intensity is relatively low, the brightness of the display apparatus decreases, so that a user does not feel dazzled, and power consumption is reduced; and when the output light intensity of the ambient light sensor is relatively high, that is, the ambient light intensity is relatively high, the brightness of the display apparatus increases, which avoids a phenomenon that the user cannot see the screen clearly. A specific structure and an adjusting method of the ambient light sensor are the same as those in the foregoing embodiments, and details are not described repeatedly herein.
(75) It should be noted that, the foregoing electronic product may be a mobile phone, an MP4, a tablet computer or another portable electronic device. The foregoing ambient light sensor may be a sensor that functions separately, and may also be integrated in a three-in-one light sensor. For example, in addition to having an ambient light sensor, a three-in-one light sensor in a mobile phone is also integrated with an infrared LED and an optical proximity sensor, where the infrared LED is configured to emit proximity light, and the optical proximity sensor is configured to receive proximity light reflected by a face when the mobile phone is close to the face, thereby closing the screen to reduce power consumption.
(76) According to the electronic product in this embodiment of the present invention, an output light intensities of an ambient light sensor is adjusted according to received light with different color temperatures to enable the output light intensities to be consistent when the ambient light sensor receives the light with the different color temperatures, thereby avoiding an output light intensity deviation generated when the ambient light sensor detects intensities of the ambient light with the different color temperatures.
(77) Based on the foregoing descriptions of the implementation manners, a person skilled in the art may clearly understand that the present invention may be implemented by software in addition to necessary universal hardware or by hardware only. In most circumstances, the former is a preferred implementation manner. Based on such an understanding, the technical solutions of the present invention essentially or the part contributing to the prior art may be implemented in a form of a software product. The software product is stored in a readable storage medium, such as a floppy disk, a hard disk or an optical disc of a computer, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform the methods described in the embodiments of the present invention.
(78) The foregoing descriptions are merely specific implementation manners of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.