CN106370296A - Detection method and system for the environment light by mobile terminal light sensor - Google Patents
Detection method and system for the environment light by mobile terminal light sensor Download PDFInfo
- Publication number
- CN106370296A CN106370296A CN201610713914.1A CN201610713914A CN106370296A CN 106370296 A CN106370296 A CN 106370296A CN 201610713914 A CN201610713914 A CN 201610713914A CN 106370296 A CN106370296 A CN 106370296A
- Authority
- CN
- China
- Prior art keywords
- voltage
- current
- light
- value
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 40
- 238000006243 chemical reaction Methods 0.000 claims abstract description 46
- 238000004364 calculation method Methods 0.000 claims abstract description 21
- 230000003287 optical effect Effects 0.000 claims description 102
- 230000007613 environmental effect Effects 0.000 claims description 34
- 230000001186 cumulative effect Effects 0.000 claims description 15
- 230000005611 electricity Effects 0.000 claims description 8
- 238000000465 moulding Methods 0.000 claims 1
- 230000008859 change Effects 0.000 abstract description 31
- 238000000034 method Methods 0.000 abstract description 14
- 230000000007 visual effect Effects 0.000 abstract description 6
- 238000009825 accumulation Methods 0.000 abstract description 4
- 238000004134 energy conservation Methods 0.000 description 6
- 238000005286 illumination Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000005622 photoelectricity Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000004907 flux Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a detection method and system for the environment light by mobile terminal light sensor. The method comprises the following steps: A) using the light sensor of a mobile terminal to detect the light signal of the current environment light at a designated time interval and converting the light signal into current corresponding voltage value; B) accumulating the current voltage value to the stored voltage sum for the current voltage sum; based on the current voltage sum and the accumulation times, obtaining the average voltage value; and C) converting the obtained average voltage value; outputting the corresponding environment light brightness instruction and determining the brightness of the current environment light. According to the invention, through the calculation of the average voltage value of the voltage signal outputted by a photoelectric conversion unit in a period of time in which the brightness of the environment light does not change significantly, the accuracy of environment light detection is improved so that the brightness on the display screen of a mobile terminal can be adjusted instantly, that a user has good visual effect and that the mobile terminal can be energy conserving in a more accurate manner.
Description
Technical field
The present invention relates to mobile terminal light sensors technical field, more particularly, to a kind of mobile terminal light sensing
Device is to the detection method of ambient light and system.
Background technology
With the development of communication technology, the use of the mobile terminal such as mobile phone is more and more extensive.Due to the mobility of mobile phone, lead
Cause it to be used in the environment of different brightness, but the brightness of traditional mobile phone screen is fixing, so there is one
Problem: indoors under the brightness of light, the brightness of mobile phone screen is suitable, but arrive under the sunlight of outdoor, Mobile phone screen
Curtain dark will must not see Chu, or has arrived under dim environment, and mobile phone screen seems too bright too dazzling again, and user is regarded
Power causes damage.
For the problems referred to above, existing solution is: add optical sensor to detect the power of ambient light to mobile phone, and
Power according to the ambient light detecting is changing the brightness of screen backlight.So, screen just can be with the intensity of ambient light
To change brightness so that user can see clearly, and to protect eyes.
With the concern to green energy conservation and intelligent product for the people these years, mobile terminal ambient light sensor obtains
Increasing utilization.Ambient light sensor plays two effects in the terminal: on the one hand, it can be according to ambient light
Line situation automatically adjusts the backlight illumination of display screen, reduces the power consumption of product.On the other hand, ambient light sensor contributes to showing
Screen provides soft picture.When ambient brightness is higher, the display screen of use environment optical sensor can be tuned into high brightness automatically, when
When external environment is dark, display screen will turn down brightness.
At present, the every money intelligent terminal on market has had been provided with this light sensation function, that is, can be with the change of light
And automatically adjust the brightness of display screen, and allow the more preferable visual effect of Consumer's Experience to reach, simultaneously more next in nowadays intelligent terminal
In the case of more intelligent, battery of mobile phone increasingly highlights, and the use of ambient light sensor can be very good to reach the mesh of energy-conservation
's.
But, intelligent mobile terminal optical sensor detect ambient light when, due to ambient light be in transient change state, then
Optical sensor, when detecting ambient light, exists and judges inaccurate problem, or have the situation of erroneous judgement.
Therefore, prior art has yet to be improved and developed.
Content of the invention
A kind of in view of in place of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide mobile terminal optical sensor pair
, it is intended to improve the accuracy of light sensors ambient light, adjustment mobile terminal shows in time for the detection method of ambient light and system
Display screen brightness makes user have good visual effect, reaches mobile terminal more accurately energy-conservation.
In order to achieve the above object, the technical scheme that present invention solution technical problem is adopted is as follows:
A kind of detection method to ambient light for mobile terminal optical sensor, comprises the following steps:
A, the optical signal specifying time interval to detect current environment light is pressed by the optical sensor in mobile terminal, and corresponding conversion
Become current voltage value;
B, the voltage summation adding up current voltage value to storage are worth to current voltage total value, according to current voltage summation
Value and its cumulative number, obtain average voltage;
C, described average voltage is converted, output corresponding environmental light brightness instruction, judge current environmental light brightness.
The detection method to ambient light for the described mobile terminal optical sensor, wherein, also includes between step b and c:
C00, judge that whether the difference of described average voltage each magnitude of voltage corresponding with voltage total value is respectively less than default electricity
Pressure threshold value;
C01, when in the difference of described average voltage each magnitude of voltage corresponding with voltage total value exist be not less than described voltage
During the difference of threshold value, then voltage total value is reset and export current voltage value as average voltage.
The detection method to ambient light for the described mobile terminal optical sensor, wherein, also includes in described step c01: when
The difference of described average voltage each magnitude of voltage corresponding with voltage total value is respectively less than described voltage threshold, then export described electricity
Flatten average.
The detection method to ambient light for the described mobile terminal optical sensor, wherein, described step a specifically includes:
A1, clock pulse signal is produced by clock generator unit;
A2, the clock pulses letter being produced by the clock calculation unit calculating clock generator unit in optical sensor module
Number number;
A3, when the number of described clock pulse signal reaches specified number, then detect current environment light optical signal;
A4, the optical signal of current environment light correspondence is changed into by current voltage value by photoelectric conversion unit.
The detection method to ambient light for the described mobile terminal optical sensor, wherein, described step b specifically includes:
B1, sued for peace or integral operation by voltage summation acquiring unit, current voltage value is added up to the voltage of storage
Summation is worth to current voltage total value;
B2, average calculation unit, according to current voltage total value and its cumulative number, obtain average voltage.
A kind of detecting system to ambient light for mobile terminal optical sensor, comprising:
Optical sensor module, for detecting the optical signal of current environment light by specified time interval, and correspondence changes into current electricity
Pressure value;
Computing module, the voltage summation for adding up current voltage value to storage is worth to current voltage total value, according to
Current voltage total value and its cumulative number, obtain average voltage;
First judge module, for converting to described average voltage, output corresponding environmental light brightness instruction, judge to work as
Front environmental light brightness.
The detecting system to ambient light for the described mobile terminal optical sensor, also includes:
Second judge module, whether the difference for judging described average voltage each magnitude of voltage corresponding with voltage total value is equal
Less than default voltage threshold;
Control module, for being not less than when existing in the difference of described average voltage each magnitude of voltage corresponding with voltage total value
During the difference of described voltage threshold, then voltage total value is reset and export current voltage value as average voltage.
The detecting system to ambient light for the described mobile terminal optical sensor, wherein, described control module is additionally operable to work as institute
The difference stating average voltage each magnitude of voltage corresponding with voltage total value is respectively less than described voltage threshold, then export described voltage
Meansigma methodss.
The detecting system to ambient light for the described mobile terminal optical sensor, wherein, described optical sensor module specifically wraps
Include:
Clock generator unit, for producing clock pulse signal;
Clock calculation unit, for calculating the number of the clock pulse signal of clock generator unit generation;
Light sensors unit, for when the number of described clock pulse signal reaches specified number, then front ring is worked as in detection
The optical signal of border light;
Photoelectric conversion unit, for changing into current voltage value by the optical signal correspondence of current environment light.
The detecting system to ambient light for the described mobile terminal optical sensor, wherein, described computing module specifically includes:
Voltage summation acquiring unit, is used for being sued for peace or integral operation, current voltage value is added up total to the voltage of storage
Be worth to current voltage total value;
Average calculation unit, for according to current voltage total value and its cumulative number, obtaining average voltage.
Beneficial effect: compared to prior art, a kind of inspection to ambient light for the mobile terminal optical sensor that the present invention provides
Survey method and system, methods described includes: a, the optical sensor passing through in mobile terminal are pressed and specify time interval detection to work as front ring
The optical signal of border light, and correspondence changes into current voltage value;B, the voltage total value adding up current voltage value to storage obtain
To current voltage total value, according to current voltage total value and its cumulative number, obtain average voltage;C, to described voltage put down
Average is converted, output corresponding environmental light brightness instruction, judges current environmental light brightness.By to ambient light in brightness not
There is the calculating of the average voltage of voltage signal of photoelectric conversion unit output in a period of time under significant change state, and lead to
Cross and average voltage is carried out with the corresponding instruction of conversion output to judge current respective environment brightness, improve and ambient light is examined
The accuracy surveyed, not only improving timely adjustment mobile terminal display screen brightness makes user have good visual effect, also reaches
Mobile terminal more accurately energy-conservation.
Brief description
A kind of detection method first preferred embodiment to ambient light for the mobile terminal optical sensor that Fig. 1 provides for the present invention
Flow chart.
A kind of detection method second preferred embodiment to ambient light for the mobile terminal optical sensor that Fig. 2 provides for the present invention
Flow chart.
A kind of work(of the detecting system preferred embodiment to ambient light for the mobile terminal optical sensor that Fig. 3 provides for the present invention
Can module map.
Specific embodiment
For making the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention further describes.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and without
In the restriction present invention.
Refer to Fig. 1, a kind of detection method first to ambient light for the mobile terminal optical sensor that Fig. 1 provides for the present invention
The flow chart of preferred embodiment, including step:
The optical signal specifying time interval to detect current environment light pressed by s100, the optical sensor passing through in mobile terminal, corresponding turn
Chemical conversion current voltage value.
Wherein, step s100 specifically includes:
S110, clock pulse signal is produced by clock generator unit;
S120, the clock pulses being produced by the clock calculation unit calculating clock generator unit in optical sensor module
The number of signal;
S130, when the number of described clock pulse signal reaches specified number, then detect current environment light optical signal;
S140, the optical signal of current environment light correspondence is changed into by current voltage value by photoelectric conversion unit.
During enforcement, pre-set clock generator unit, produce clock pulse signal to clock computing unit, clock
Computing unit passes through to calculate the number of this clock pulse signal, judges every certain time interval δ t time, that is, specify between the time
Every.
Setting clock calculation unit, calculates mobile terminal optical sensor when detecting ambient light, every certain time interval
δ t, that is, optical sensor is at interval of the δ t time, namely specified time interval detects an ambient light.
When being embodied as, mobile terminal optical sensor changes into ambient light after voltage signal, by calculating clock pulses
Signal number judging every certain time interval, i.e. δ t time, namely specified time interval.When mobile terminal optical sensor
When starting to detect ambient light, the ambient light detecting is changed into voltage letter by the photoelectric conversion unit in mobile terminal optical sensor
After number, mobile terminal optical sensor sends high level signal 1 and arrives clock generator unit, opens clock pulse generator list
Unit, produces clock pulse signal to clock computing unit.Clock calculation unit starts to calculate the number of this clock pulse signal, with
Calculating every certain time interval δ t time, mobile terminal optical sensor is at interval of ambient light of δ t time detecting for this.
If the time that clock calculation unit calculates required for a clock pulse signal is t0, then every certain time interval
In the δ t time, clock calculation unit calculative pulse signal number is n=δ t/t0, then clock generator unit
Needing to produce quantity is t/t0 pulse signal of n=δ.
It is to be noted here that ring light sensors being arrived when the photoelectric conversion unit in mobile terminal optical sensor
After border light changes into voltage signal, optical sensor, when clock calculation unit calculates the clock pulse signal number of δ t time, moves
Dynamic terminal optical sensor stops detection ambient light, and that is, optical sensor, within the δ t time, will not detect ambient light.
Meanwhile, when optical signal is changed into voltage signal by the photoelectric conversion unit within mobile terminal optical sensor, light
Sensor will not send high level signal 1 and arrive clock generator unit, and clock generator unit is closed, and prevents photoelectricity
Conversion unit does not also complete the process of photoelectric conversion, and clock generator unit just produces clock pulse signal to clock calculation
Unit, calculates the δ t time, makes light sensors ambient light inaccurate, error detection.
S200, the voltage summation adding up current voltage value to storage are worth to current voltage total value, according to current
Voltage total value and its cumulative number, obtain average voltage.
Wherein, step s200 includes:
S210, sued for peace or integral operation by voltage summation acquiring unit, current voltage value is added up to the electricity of storage
Pressure summation is worth to current voltage total value;
When being embodied as, optical signal is changed into voltage signal by photoelectric conversion unit within mobile terminal optical sensor, every
Every the δ t time, optical signal is changed into voltage signal by photoelectric conversion unit, is set to v1, v2, v3 ..., vn.
If it is δ v that optical signal is changed into voltage signal by photoelectric conversion unit.
Setting accumulator element, the photoelectric conversion unit within mobile terminal optical sensor often realizes a photoelectric conversion
Process, the voltage signal of output is input to accumulator element, realizes voltage accumulation, then the voltage value that accumulator element adds up is
V=v1+v2+v3+ ...+vn, this is prior art, will not be described in detail herein.
The mode that another calculates the voltage summation that the internal photoelectric conversion unit of optical sensor converts is, if photoelectricity turns
Change unit optical signal being changed into voltage signal is δ v, then arrange integral and calculating unit, 0 Dao the δ t time within, integral and calculating
The voltage signal δ v that photoelectric conversion unit converts is integrated into total magnitude of voltage v by unit, and integral and calculating belongs to prior art,
This repeats no more.
In the preferred embodiment, further, in order that the ambient light detecting is more accurate, calculating voltage
Before total value, can detect whether ambient light occurs significant change, you can setting environmental light brightness change-detection unit, when mobile whole
The optical signal specifying time interval to detect current environment light pressed by optical sensor in end, and whether detection ambient light state occurs simultaneously
Significant change, that is, judge whether the brightness value changes of the ambient light detecting each time exceed predetermined threshold value, if it is, being considered as
Significant change in environmental light brightness, otherwise, is considered as environmental light brightness and significant change does not occur, that is, environmental light brightness is in phase
To stable state.
Specifically, environmental light brightness change-detection unit can be directly disposed as environment bright angle value detector unit, that is, exist
During mobile terminal light sensors ambient light, when ambient light state generation significant change is detected, that is, work as movement
Terminal light sensors to environmental light brightness value changes exceed predetermined threshold value when, such as set more than 50lux as light, be less than
30lux is half-light, and ambient light by light to half-light, or by half-light to light, then believe by the voltage that the conversion of photoelectric conversion unit exports
Number occur significantly increasing or reduce, now in order that the ambient light that arrives of mobile terminal light sensors is more accurate, start weight
New calculating voltage total value, that is, when current light state brightness value changes is detected beyond predetermined threshold value, will be clear for voltage total value
Zero, current voltage value is re-started accumulative, now optical sensor sends high level signal 2 and arrives central processing unit, central authorities are processed
Device instructs according to high level signal 2, output clear command signal to accumulator element, the numerical value of accumulator element is reset, root
According to the state of current environment light, again the magnitude of voltage of photoelectric conversion unit output is carried out accumulation calculating.Certainly, predetermined threshold value can
To set as needed, wherein, described predetermined threshold value, both can be self-defining from a kind of corresponding brightness value of light state to another
A kind of change of the corresponding brightness value of light state, such as from light to half-light.Or it is from half-light to light or self-defining
The change of brightness values exceedes certain amplitude value, such as brightness values amplitude of variation more than 50 lux, can make as needed
The adjustment of corresponding form.Wherein lux, that is, lux (lux, legal symbol lx), refers to unit of illuminance, namely intensity of illumination refers to unit
The energy of accepted visible ray on area, abbreviation illumination, unit lux (lux or lx), for indicating power and the thing of illumination
The amount of the illuminated degree of body surface area.The luminous flux that 1 lux is equal to 1 stream (lumen, lm) is uniformly distributed in 1 area
On illuminance, be prior art, repeat no more.
Certainly, similar, whether detection ambient light state there is significant change it is also possible to detect by arranging change in voltage
Unit, according to the transformational relation of intensity of illumination in opto-electronic conversion relation and magnitude of voltage, when the optical sensor in mobile terminal will be examined
When the optical signal correspondence of the current environment light surveyed changes into current voltage value and exports, by detecting the change of the magnitude of voltage exporting
To judge whether environmental light brightness occurs significant change, such as, corresponding with environmental light brightness, such as set environment bright angle value and be more than
50lux is light, and environment bright angle value is 0.25v for the magnitude of voltage of conversion output during 50lux, is half-light less than 30lux, corresponding
The magnitude of voltage of conversion output is 0.15v, then ambient light, by light to half-light, or by half-light to light, then corresponds to the voltage exporting
Value can be from becoming smaller than 0.15, or from becoming greater than 0.25 less than 0.15 it is also possible to the magnitude of voltage of detection output becomes more than 0.25
Change amplitude judging whether brightness state occurs significant change, the magnitude of voltage size variation amplitude of such as output more than 0.5v,
Thus judging that ambient light occurs significant change.When current voltage value changes is detected beyond predetermined threshold value, by voltage total value
Reset, current voltage value is re-started accumulative.It is the corresponding replacement of direct detection environmental light brightness change, repeats no more.
Likewise, according to be that another calculates the internal photoelectric conversion unit of mobile terminal optical sensor and converts
The mode of voltage summation, that is, optical signal is changed into voltage signal by photoelectric conversion unit is δ v, arranges integral and calculating unit, 0
To within the δ t time, the voltage signal δ v that photoelectric conversion unit converts is integrated into total magnitude of voltage v by integral and calculating unit, if inspection
Measure the situation that significant change in environmental light brightness, such as by light to half-light, or by half-light to light, then photoelectric conversion list
The voltage signal of unit's conversion occurs significantly increasing or reduces, similar to the above, then central processing unit output clear command signal
To integral and calculating unit, the numerical value of integral and calculating unit is reset, according to the state of current environment light, again by photoelectric conversion list
The magnitude of voltage of unit's output is integrated calculating.
S220, average calculation unit, according to current voltage total value and its cumulative number, obtain average voltage.
Setting average calculation unit, is input to average calculation unit by the voltage value v that accumulator element adds up,
Calculate under this ambient light state, the average voltage of the photoelectric conversion unit conversion within optical sensor, that is, utilize formula v'=
V/n calculates.
Similar, or total magnitude of voltage is integrated into by another integral and calculating unit mode, then pass through meansigma methodss
Computing unit calculates average voltage, calculates also with formula v'=v/n.
S300, described average voltage is converted, output corresponding environmental light brightness instruction, judge current environment light
Brightness.
What this average voltage v' calculating in s200 step reflected is the state of current environment light, mobile terminal
Optical sensor exports corresponding luminance instructions by this average voltage v' is carried out with conversion, judges current environmental light brightness, uses
In regulation mobile terminal screen brightness.In the case of ambient light is metastable, take this technical scheme can strengthen light sensing
The accuracy that device judges, it is to avoid erroneous judgement.
In order to more accurately detect ambient light further, the average voltage calculating can also be entered in first embodiment
One step judges, thus judging whether environment bright angle value occurs significant change, so that the ambient light detecting is more accurate, please join
See Fig. 2, a kind of detection method the second preferred embodiment stream to ambient light for the mobile terminal optical sensor that Fig. 2 provides for the present invention
Cheng Tu, including step:
The optical signal specifying time interval to detect current environment light pressed by s10, the optical sensor passing through in mobile terminal, corresponds to and converts
Become current voltage value, specifically as described in the first embodiment of the present invention;
S20, current voltage value is added up be worth to current voltage total value to the voltage summation of storage, total according to current voltage
Value preset and its cumulative number, obtain average voltage, specifically as described in the first embodiment of the present invention;
S30, judge that whether the difference of described average voltage each magnitude of voltage corresponding with voltage total value is respectively less than default electricity
Pressure threshold value;
In being embodied as, such as it is located under certain ambient light state, default voltage threshold is 0.05v, the light in mobile terminal passes
Sensor module presses the optical signal specifying time interval to detect current environment light, corresponds to the voltage that the ambient light of detection every time changes into
Value is followed successively by v1=0.22v, v2=0.20v, v3=0.18v, v4=0.60v, then the average voltage v'3=after third time conversion
0.20v, then v'3-v1=0.02 < 0.05, v'3-v2=0.00 < 0.05, v'3-v3=0.02 < 0.05, i.e. explanation third time
After detection ambient light, the difference of average voltage each magnitude of voltage corresponding with voltage total value is respectively less than default voltage threshold;The
Average voltage v'4=0.3v after four conversions, then v'4-v1=0.0,8 > 0.05, v'4-v2=0.10 > 0.05, v'4-
V3=0.12 > 0.05, v'4-v4=0.30 > 0.05, i.e. average voltage and voltage summation after the 4th detection ambient light of explanation
In value, the difference of corresponding each magnitude of voltage is all higher than default voltage threshold.
S40, when existing not less than described in the difference of described average voltage each magnitude of voltage corresponding with voltage total value
During the difference of voltage threshold, then voltage total value is reset and export current voltage value as average voltage.
Specifically, when depositing in the difference of described average voltage each magnitude of voltage corresponding with voltage total value in step s40
In the difference not less than described voltage threshold, then sent out to voltage summation acquiring unit by the central processing unit in mobile terminal
Go out clear command, voltage total value is reset by voltage summation acquiring unit according to described clear command, and exports current voltage value
For adjusting mobile terminal screen brightness.For example, such as in step s30 when the 4th time detect after, average voltage with electricity
In pressure total value, the difference of corresponding each magnitude of voltage is all higher than default voltage threshold, illustrates that environmental light brightness occurs in that obvious change
Change, then clear command is sent to voltage summation acquiring unit by the central processing unit in mobile terminal, voltage summation obtains single
Voltage total value is reset by unit according to described clear command, now current voltage value after the 4th time is converted for the optical sensor
0.60v is converted as meansigma methodss, and starts accumulation voltage value again, output corresponding environmental light brightness instruction, as working as
Front environmental light brightness is used for adjusting mobile terminal screen brightness.
Further, also include in step s40: when described average voltage each magnitude of voltage corresponding with voltage total value
Difference be respectively less than described voltage threshold, then export described average voltage.For example, when third time is examined such as in step s30
After survey, the difference of average voltage each magnitude of voltage corresponding with voltage total value is respectively less than default voltage threshold, and environment is described
Significant change in brightness, and ambient light is more stable, now average voltage after third time is converted for the optical sensor
Value 0.20v is converted, output corresponding environmental light brightness instruction, is used for adjusting mobile terminal screen as current environmental light brightness
Curtain brightness.
S50, described average voltage is converted, output corresponding environmental light brightness instruction, judge current environment light
Brightness, specifically as described in the first embodiment of the present invention.
It should be noted that the technical scheme of detection method second of the present invention preferred embodiment can individually judge
Environmental light brightness whether significant change occurs it is also possible to and the setting environmental light brightness detector unit in the first preferred embodiment
Technical scheme combines and jointly judges whether ambient light state brightness value occurs significant change, such that it is able to make the ring detecting
Border brightness values are more accurate.
In a word, technical scheme of the present invention passes through computing environment light when brightness does not occur next section of significant change state
The meansigma methodss of the voltage signal of interior conversion output, carry out conversion output by the average voltage that photoelectric conversion unit is exported
Corresponding instruction, to judge current respective environment brightness, improves the accuracy to ambient light detection, not only improves timely tune
Whole mobile terminal display screen brightness makes user have good visual effect, has also reached mobile terminal more accurately energy-conservation, improves
Consumer's Experience.
Corresponding to said method, the present invention also provides a kind of detecting system to ambient light for mobile terminal optical sensor, please
Refering to Fig. 3.Fig. 3 is a kind of work(of the detecting system preferred embodiment to ambient light for mobile terminal optical sensor that the present invention provides
Energy module map, comprising:
Optical sensor module 10, for detecting the optical signal of current environment light by specified time interval, and correspondence changes into currently
Magnitude of voltage, as detailed above;
During enforcement, wherein, described optical sensor module 10 can specifically include:
Clock generator unit, for producing clock pulse signal, as detailed above;
Clock calculation unit, for calculating the number of the clock pulse signal of clock generator unit generation, specifically as above
Described;
Light sensors unit, for when the number of described clock pulse signal reaches specified number, then front ring is worked as in detection
The optical signal of border light, as detailed above;
Photoelectric conversion unit, for the optical signal correspondence of current environment light is changed into current voltage value, as detailed above.
Computing module 20, the voltage summation for adding up current voltage value to storage is worth to current voltage summation
Value, according to current voltage total value and its cumulative number, obtains average voltage, as mentioned above;
During enforcement, described computing module 20 can specifically include:
Voltage summation acquiring unit, is used for being sued for peace or integral operation, current voltage value is added up total to the voltage of storage
Be worth to current voltage total value, as detailed above;
Average calculation unit, for according to current voltage total value and its cumulative number, obtaining average voltage, specifically as above
Described;
First judge module 30, for converting to described average voltage, output corresponding environmental light brightness instruction, judge
Current environmental light brightness, as detailed above.
The detecting system to ambient light for the described mobile terminal optical sensor, can also include:
Second judge module, whether the difference for judging described average voltage each magnitude of voltage corresponding with voltage total value is equal
Less than default voltage threshold, as detailed above;
Control module, for being not less than when existing in the difference of described average voltage each magnitude of voltage corresponding with voltage total value
During the difference of described voltage threshold, then voltage total value is reset and exports current voltage value, as detailed above.
During enforcement, described control module is additionally operable to when described average voltage each magnitude of voltage corresponding with voltage total value
Difference be respectively less than described voltage threshold, then export described average voltage, as detailed above.
Further, in described control module when described average voltage each magnitude of voltage corresponding with voltage total value it
When there is the difference not less than described voltage threshold in difference, then the central processing unit passing through in mobile terminal obtains to voltage summation
Unit sends clear command, and voltage total value is reset by voltage summation acquiring unit according to described clear command, and exports current
Magnitude of voltage is used for adjusting mobile terminal screen brightness, as detailed above.
In sum, a kind of mobile terminal optical sensor that the present invention provides is to the detection method of ambient light and system, institute
State detection method to include: the light letter specifying time interval to detect current environment light pressed by a, the optical sensor passing through in mobile terminal
Number, and correspondence changes into current voltage value;B, the voltage summation adding up current voltage value to storage are worth to current voltage
Total value, according to current voltage total value and its cumulative number, obtains average voltage;C, described average voltage is carried out turn
Change, output corresponding environmental light brightness instruction, judge current environmental light brightness.By not occurring substantially to become in brightness to ambient light
The calculating of the average voltage of voltage signal of photoelectric conversion unit output in a period of time under change state, and by putting down to voltage
Average carries out the corresponding instruction of conversion output to judge current respective environment brightness, and it is accurate to ambient light detection to improve
Property, not only improving timely adjustment mobile terminal display screen brightness makes user have good visual effect, has also reached mobile terminal
More accurately energy-conservation.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method,
Can be by computer program to complete to instruct related hardware (such as processor, controller etc.), described program can store
In the storage medium of an embodied on computer readable, this program may include upon execution as the flow process of above-mentioned each method embodiment.Its
Described in storage medium can be memorizer, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention
Shield scope.
Claims (10)
1. a kind of mobile terminal optical sensor to the detection method of ambient light it is characterised in that comprising the following steps:
A, the optical signal specifying time interval to detect current environment light is pressed by the optical sensor in mobile terminal, and corresponding conversion
Become current voltage value;
B, the voltage summation adding up current voltage value to storage are worth to current voltage total value, according to current voltage summation
Value and its cumulative number, obtain average voltage;
C, described average voltage is converted, output corresponding environmental light brightness instruction, judge current environmental light brightness.
2. mobile terminal optical sensor according to claim 1 to the detection method of ambient light it is characterised in that in step
Also include between b and c:
C00, judge that whether the difference of described average voltage each magnitude of voltage corresponding with voltage total value is respectively less than default electricity
Pressure threshold value;
C01, when in the difference of described average voltage each magnitude of voltage corresponding with voltage total value exist be not less than described voltage
During the difference of threshold value, then voltage total value is reset and export current voltage value as average voltage.
3. mobile terminal optical sensor according to claim 2 to the detection method of ambient light it is characterised in that described step
Also include in rapid c01: when the difference of described average voltage each magnitude of voltage corresponding with voltage total value is respectively less than described voltage
Threshold value, then export described average voltage.
4. mobile terminal optical sensor according to claim 1 to the detection method of ambient light it is characterised in that described step
Rapid a specifically includes:
A1, clock pulse signal is produced by clock generator unit;
A2, the clock pulses letter being produced by the clock calculation unit calculating clock generator unit in optical sensor module
Number number;
A3, when the number of described clock pulse signal reaches specified number, then detect current environment light optical signal;
A4, the optical signal of current environment light correspondence is changed into by current voltage value by photoelectric conversion unit.
5. mobile terminal optical sensor according to claim 1 to the detection method of ambient light it is characterised in that described step
Rapid b specifically includes:
B1, sued for peace or integral operation by voltage summation acquiring unit, current voltage value is added up to the voltage of storage
Summation is worth to current voltage total value;
B2, average calculation unit, according to current voltage total value and its cumulative number, obtain average voltage.
6. a kind of mobile terminal optical sensor to the detecting system of ambient light it is characterised in that including:
Optical sensor module, for detecting the optical signal of current environment light by specified time interval, and correspondence changes into current electricity
Pressure value;
Computing module, the voltage summation for adding up current voltage value to storage is worth to current voltage total value, according to
Current voltage total value and its cumulative number, obtain average voltage;
First judge module, for converting to described average voltage, output corresponding environmental light brightness instruction, judge to work as
Front environmental light brightness.
7. mobile terminal optical sensor according to claim 6 to the detecting system of ambient light it is characterised in that also wrapping
Include:
Second judge module, whether the difference for judging described average voltage each magnitude of voltage corresponding with voltage total value is equal
Less than default voltage threshold;
Control module, for being not less than when existing in the difference of described average voltage each magnitude of voltage corresponding with voltage total value
During the difference of described voltage threshold, then voltage total value is reset and export current voltage value as average voltage.
8. mobile terminal optical sensor according to claim 7 to the detecting system of ambient light it is characterised in that described control
Molding block is additionally operable to be respectively less than described voltage threshold when the difference of described average voltage each magnitude of voltage corresponding with voltage total value
Value, then export described average voltage.
9. mobile terminal optical sensor according to claim 6 to the detecting system of ambient light it is characterised in that described light
Sensor assembly specifically includes:
Clock generator unit, for producing clock pulse signal;
Clock calculation unit, for calculating the number of the clock pulse signal of clock generator unit generation;
Light sensors unit, for when the number of described clock pulse signal reaches specified number, then front ring is worked as in detection
The optical signal of border light;
Photoelectric conversion unit, for changing into current voltage value by the optical signal correspondence of current environment light.
10. mobile terminal optical sensor according to claim 6 to the detecting system of ambient light it is characterised in that described
Computing module specifically includes:
Voltage summation acquiring unit, is used for being sued for peace or integral operation, current voltage value is added up total to the voltage of storage
Be worth to current voltage total value;
Average calculation unit, for according to current voltage total value and its cumulative number, obtaining average voltage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610713914.1A CN106370296B (en) | 2016-08-24 | 2016-08-24 | The detection method and system of a kind of mobile terminal optical sensor to ambient light |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610713914.1A CN106370296B (en) | 2016-08-24 | 2016-08-24 | The detection method and system of a kind of mobile terminal optical sensor to ambient light |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106370296A true CN106370296A (en) | 2017-02-01 |
CN106370296B CN106370296B (en) | 2018-07-17 |
Family
ID=57878253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610713914.1A Active CN106370296B (en) | 2016-08-24 | 2016-08-24 | The detection method and system of a kind of mobile terminal optical sensor to ambient light |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106370296B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106980563A (en) * | 2017-03-08 | 2017-07-25 | 惠州Tcl移动通信有限公司 | A kind of dynamic mode detection method and its detecting system |
CN107764516A (en) * | 2017-09-04 | 2018-03-06 | 广东小天才科技有限公司 | Display screen brightness detection method and device, terminal and storage medium |
CN108257581A (en) * | 2017-12-22 | 2018-07-06 | 维沃移动通信有限公司 | A kind of method of adjustment of light intensity sensing device, mobile terminal and brightness of display screen |
CN112102766A (en) * | 2020-03-23 | 2020-12-18 | 友达光电股份有限公司 | Display device |
CN114616925A (en) * | 2019-09-20 | 2022-06-10 | 艾普顿集团有限责任公司 | Smart dimming and sensor fault detection as part of built-in ambient light collection within luminaires |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101151651A (en) * | 2005-04-01 | 2008-03-26 | 皇家飞利浦电子股份有限公司 | Display panel capable of controlling brightness according to circumstance light |
CN101236728A (en) * | 2007-02-01 | 2008-08-06 | 三星电子株式会社 | Method and apparatus for controlling backlight in display device |
CN101346755A (en) * | 2005-10-31 | 2009-01-14 | 捷讯研究有限公司 | Automatic screen and keypad brightness adjustment on a mobile handheld electronic device |
CN101527137A (en) * | 2008-03-06 | 2009-09-09 | 海尔集团公司 | Method and device for adjusting screen display |
CN101846550A (en) * | 2009-03-27 | 2010-09-29 | 统宝光电股份有限公司 | Display device and electronic apparatus comprising the same |
CN103946917A (en) * | 2011-08-22 | 2014-07-23 | 顶级公司 | Display device control |
CN104795051A (en) * | 2014-11-17 | 2015-07-22 | 苹果公司 | Ambient light adaptive display |
CN105280159A (en) * | 2014-07-31 | 2016-01-27 | 维沃移动通信有限公司 | Backlight regulating method of display equipment and display equipment |
-
2016
- 2016-08-24 CN CN201610713914.1A patent/CN106370296B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101151651A (en) * | 2005-04-01 | 2008-03-26 | 皇家飞利浦电子股份有限公司 | Display panel capable of controlling brightness according to circumstance light |
CN101346755A (en) * | 2005-10-31 | 2009-01-14 | 捷讯研究有限公司 | Automatic screen and keypad brightness adjustment on a mobile handheld electronic device |
CN101236728A (en) * | 2007-02-01 | 2008-08-06 | 三星电子株式会社 | Method and apparatus for controlling backlight in display device |
CN101527137A (en) * | 2008-03-06 | 2009-09-09 | 海尔集团公司 | Method and device for adjusting screen display |
CN101846550A (en) * | 2009-03-27 | 2010-09-29 | 统宝光电股份有限公司 | Display device and electronic apparatus comprising the same |
CN103946917A (en) * | 2011-08-22 | 2014-07-23 | 顶级公司 | Display device control |
CN105280159A (en) * | 2014-07-31 | 2016-01-27 | 维沃移动通信有限公司 | Backlight regulating method of display equipment and display equipment |
CN104795051A (en) * | 2014-11-17 | 2015-07-22 | 苹果公司 | Ambient light adaptive display |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106980563A (en) * | 2017-03-08 | 2017-07-25 | 惠州Tcl移动通信有限公司 | A kind of dynamic mode detection method and its detecting system |
CN106980563B (en) * | 2017-03-08 | 2021-03-23 | 惠州Tcl移动通信有限公司 | Dynamic mode detection method and detection system thereof |
CN107764516A (en) * | 2017-09-04 | 2018-03-06 | 广东小天才科技有限公司 | Display screen brightness detection method and device, terminal and storage medium |
CN108257581A (en) * | 2017-12-22 | 2018-07-06 | 维沃移动通信有限公司 | A kind of method of adjustment of light intensity sensing device, mobile terminal and brightness of display screen |
CN108257581B (en) * | 2017-12-22 | 2019-12-06 | 维沃移动通信有限公司 | Light intensity detection device, mobile terminal and display screen brightness adjustment method |
CN114616925A (en) * | 2019-09-20 | 2022-06-10 | 艾普顿集团有限责任公司 | Smart dimming and sensor fault detection as part of built-in ambient light collection within luminaires |
CN112102766A (en) * | 2020-03-23 | 2020-12-18 | 友达光电股份有限公司 | Display device |
Also Published As
Publication number | Publication date |
---|---|
CN106370296B (en) | 2018-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106370296A (en) | Detection method and system for the environment light by mobile terminal light sensor | |
CN105575334B (en) | A kind of screen luminance adjustment method and user terminal | |
CN102097056B (en) | Electronic device and method for controlling backlight brightness | |
JP5786254B2 (en) | Method and apparatus for controlling light emitting devices in a terminal device, and terminal device | |
CN102938247B (en) | Brightness adjusting method and device | |
CN105280159B (en) | The backlight adjusting method and its display device of a kind of display device | |
CN104111579A (en) | Method for adjusting contrast of projector in real time and projector | |
CN104780320B (en) | Ambient light detection method and electronic device | |
CN104200783B (en) | Method and system for enabling mobile phone to acquire uniform light effect through production line calibration | |
CN104007392B (en) | Battery electric quantity detecting and displaying method | |
CN111989551B (en) | Method for sensing light | |
US20110224925A1 (en) | Altimeter | |
CN104270561A (en) | Method for automatically regulating Camera frame rate of mobile terminal and mobile terminal | |
CN104318912A (en) | Method and device for detecting environmental light brightness | |
CN107566869A (en) | A kind of advertisement TV display brightness dynamic adjusting system and method | |
CN102322875B (en) | Visible light sensor | |
CN107491162A (en) | Display screen state adjustment method, display screen state adjusting device and terminal | |
CN106875922A (en) | Display terminal display brightness method of adjustment and device | |
CN102883100A (en) | Device and method for automatically adjusting pickup parameter | |
CN105895057B (en) | A kind of backlight adjusting method, device and terminal device | |
CN105721786A (en) | Image sensing device and image sensing method | |
CN103606366A (en) | Outdoor display screen brightness self adjusting method | |
CN101431612A (en) | Anti-flicker apparatus and method | |
CN103345907A (en) | Automatic regulator of LED backlight optical parameters based on ambient light detection | |
WO2017071528A1 (en) | Electronic device and charging method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |