CN206472356U - The adjusting apparatus of ambient brightness - Google Patents

The adjusting apparatus of ambient brightness Download PDF

Info

Publication number
CN206472356U
CN206472356U CN201621457078.7U CN201621457078U CN206472356U CN 206472356 U CN206472356 U CN 206472356U CN 201621457078 U CN201621457078 U CN 201621457078U CN 206472356 U CN206472356 U CN 206472356U
Authority
CN
China
Prior art keywords
ambient brightness
queue
data
preset
limit value
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.)
Withdrawn - After Issue
Application number
CN201621457078.7U
Other languages
Chinese (zh)
Inventor
徐毅
蔚俊刚
朱小平
孔伟
朱祥和
沈锦祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shengdi Wisdom Technology Co Ltd
Original Assignee
Shengdi Wisdom Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shengdi Wisdom Technology Co Ltd filed Critical Shengdi Wisdom Technology Co Ltd
Priority to CN201621457078.7U priority Critical patent/CN206472356U/en
Application granted granted Critical
Publication of CN206472356U publication Critical patent/CN206472356U/en
Withdrawn - After Issue legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The utility model provides a kind of adjusting apparatus of ambient brightness, including:Data acquisition unit and processor;Data acquisition unit is electrically connected with processor;Data acquisition unit, for obtaining ambient brightness data according to data collection cycle collection;Processor, for by ambient brightness data storage in queue;Judge whether the number of the ambient brightness data in queue more than preset upper limit value is more than the half of preset length, and judge whether the number in queue less than the ambient brightness data of preset lower limit value is more than the half of preset length, obtain judged result;Preset upper limit value is more than preset lower limit value;The operation of adjustment ambient brightness is triggered according to judged result.The adjusting apparatus for the ambient brightness that the utility model is provided, improves the judged result accuracy of ambient brightness, improves the Adjustment effect of adjustment ambient brightness.

Description

The adjusting apparatus of ambient brightness
Technical field
The utility model is related to lighting technical field, more particularly to a kind of adjusting apparatus of ambient brightness.
Background technology
Illuminations is usually operated under set power.But, when ambient brightness is not too dark, what illuminations was sent Light for environment some be unnecessary, this has resulted in power supply waste, also can be to human eye moreover, ambient brightness is too high Damage.When environment is very dark, it is necessary to the illumination of relatively high power, and then improve ambient brightness.Therefore, for illuminating lamp Tool, an important topic is had become with the function that corresponding luminous intensity regulation is carried out according to ambient brightness.
At present, for intensity adjustable illuminations, generally using light sensitive integrated devices (integrated Circuit, abbreviation IC) collection ambient brightness data, determine the bright of environment by carrying out processing to whole ambient brightness data Dark degree, and then the power of the bright dark degree regulation illuminations according to environment.
But, the data gathered using photosensitive IC, in fact it could happen that burr.Judged using the ambient brightness data including burr The power of illuminations whether is adjusted, judged result will be caused inaccurate, the Adjustment effect of illuminations is have impact on.
Utility model content
The utility model provides a kind of adjusting apparatus of ambient brightness, and the judged result that can improve ambient brightness is accurate Property, the Adjustment effect of lifting adjustment ambient brightness.
The adjusting apparatus for the ambient brightness that the utility model is provided, including:
Data acquisition unit, for obtaining ambient brightness data according to data collection cycle collection;
Processor, for by the ambient brightness data storage in queue;The length of the queue is preset length;Sentence Whether the number for being more than the ambient brightness data of preset upper limit value in the disconnected queue is more than the half of the preset length, and Judge whether the number in the queue less than the ambient brightness data of preset lower limit value is more than the half of the preset length, obtain Obtain judged result;The preset upper limit value is more than the preset lower limit value;According to judged result triggering adjustment ambient brightness Operation.
Optionally, the processor specifically for:
If the judged result is more than to be more than the number of the ambient brightness data of the preset upper limit value in the queue The operation of the half of the preset length, then triggering reduction ambient brightness;
If the judged result is more than to be less than the number of the ambient brightness data of the preset lower limit value in the queue The half of the preset length, then triggering improves the operation of ambient brightness.
Optionally, the processor specifically for:
According to the data collection cycle, the ambient brightness data for being obtained the last collection using first in first out It is updated in the queue.
Optionally, the processor is additionally operable to:
Judge whether the update times of queue are more than predetermined threshold value.
Optionally, the preset length is positive odd number.
Optionally, the data acquisition unit is light sensitive integrated devices or photo resistance.
Optionally, the data acquisition unit passes through the I2C on the processor and/or UART interface electricity with the processor Connection.
The utility model provides a kind of adjusting apparatus of ambient brightness, processor judge in queue more than preset upper limit value or Person is less than the number of the ambient brightness data of preset lower limit value, then the half of the number and preset length is compared, so that it may To neglect influence of the burr data for the judged result accuracy of ambient brightness, the judged result for improving ambient brightness is accurate True property, and then improve the Adjustment effect that ambient brightness is adjusted according to judged result.
Brief description of the drawings
, below will be to embodiment in order to illustrate more clearly of the utility model embodiment or technical scheme of the prior art Or the accompanying drawing used required in description of the prior art is briefly described, it should be apparent that, drawings in the following description are Some embodiments of the present utility model, for those of ordinary skill in the art, are not paying the premise of creative labor Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the method for adjustment for the ambient brightness that the utility model embodiment one is provided;
Fig. 2 is the structural representation of the adjusting apparatus for the ambient brightness that the utility model embodiment one is provided;
Fig. 3 is the circuit diagram of the adjusting apparatus for the ambient brightness that the utility model embodiment one is provided.
Description of reference numerals:
11:Data acquisition unit; 12:Processor;
21:Photosensitive IC; 22:CPU.
Embodiment
It is new below in conjunction with this practicality to make the purpose, technical scheme and advantage of the utility model embodiment clearer Accompanying drawing in type embodiment, the technical scheme in the utility model embodiment is clearly and completely described, it is clear that retouched The embodiment stated is a part of embodiment of the utility model, rather than whole embodiments.Based on the implementation in the utility model Example, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made is belonged to The scope of the utility model protection.
Fig. 1 is the flow chart of the method for adjustment for the ambient brightness that the utility model embodiment one is provided.As shown in figure 1, this The method of adjustment for the ambient brightness that embodiment is provided, executive agent can be the adjusting apparatus of ambient brightness, the tune of ambient brightness Engagement positions can be applied in illuminations.As shown in figure 1, the method for adjustment for the ambient brightness that the present embodiment is provided, can be wrapped Include:
Step 101, according to data collection cycle, collection obtains ambient brightness data.
Wherein, the specific component that the present embodiment obtains ambient brightness data for collection is not specially limited, and can be adopted With it is existing any one obtain ambient brightness data element, chip, circuit, etc..For example:Ring can be gathered using photosensitive IC Border brightness data.
Wherein, the present embodiment is not specially limited for the specific implementation of ambient brightness data, can be used existing Any one ambient brightness data.For example:Ambient brightness data can be photosensitive IC current value.
Wherein, the present embodiment is not specially limited for the concrete numerical value of data collection cycle, is configured as needed.
Step 102, by ambient brightness data storage in queue.
Wherein, the length of queue is preset length.
Specifically, ambient brightness data are stored in queue, by preset length ambient brightness data in queue Analyzed and processed, it may be determined that the light and shade situation of current environment brightness.
Wherein, the present embodiment is not specially limited for the concrete numerical value of preset length, is configured as needed.
Optionally, preset length is positive odd number.
Step 103, judge in queue more than preset upper limit value ambient brightness data number whether be more than preset length Half, and judge in queue less than preset lower limit value ambient brightness data number whether be more than preset length one Half, obtain judged result.
Wherein, preset upper limit value is more than preset lower limit value.
Specifically, preset upper limit value is used for maximum of the indicative for environments brightness in normal range (NR).Preset lower limit value is used for Minimum value of the indicative for environments brightness in normal range (NR).Judged result can indicate the bright dark degree of current environment brightness.If Judged result can then recognize to be more than the half that the number of the ambient brightness data of preset upper limit value is more than preset length in queue Excessively become clear for current environment brightness.If it is judged that the number of the ambient brightness data to be less than preset lower limit value in queue More than the half of preset length, then it is considered that current environment brightness is excessively dark.Other judged results, which then can consider, works as front ring Border brightness is in normal range (NR).
It can be seen that, it is to judge to be more than on default in queue for the processing of environment brightness data in queue in the present embodiment The number of limit value or ambient brightness data less than preset lower limit value, then the half of the number and preset length is compared It is right, it may thereby determine that the bright dark degree of current environment brightness.Due to when carrying out light collection, can just keep a period of time Process that is constant or gradually changing, the particle that brightness is not produced or the particle for producing strong brightness belong to a small number of particles, this A little minority particles will trigger the acute variation of ambient brightness data, therefore produce burr data.The number of burr data is very It is small, therefore, the accounting very little of the numbers of burr data in queue.In the present embodiment, by by ambient brightness data with Preset upper limit value and pre-determined lower limit system are compared the number for obtaining and being each grouped, it is possible to avoid burr data bright for environment The influence of judged result is spent, and then improves the accuracy of ambient brightness judged result.
It should be noted that the present embodiment is not specially limited for preset upper limit value, the concrete numerical value of preset lower limit value, It is configured as needed.
Step 104, the operation according to judged result triggering adjustment ambient brightness.
Wherein, the present embodiment is not specially limited for adjusting the specific implementation of the operation of ambient brightness.For example:Adjust The operation of whole ambient brightness can include:Increase power, reduce power, stand-by lamp started working, stand-by lamp is stopped, Etc..
It can be seen that, the present embodiment provide ambient brightness method of adjustment, by judge in queue be more than preset upper limit value or Person is less than the number of the ambient brightness data of preset lower limit value, then the half of the number and preset length is compared, so that it may To neglect influence of the burr data for the judged result accuracy of ambient brightness, the judged result for improving ambient brightness is accurate True property, and then improve the Adjustment effect that ambient brightness is adjusted according to judged result.
Optionally, as a kind of specific implementation of step 104,
If judged result is more than the one of preset length to be more than the number of the ambient brightness data of preset upper limit value in queue Half, the then operation of triggering reduction ambient brightness.
If judged result is more than the one of preset length to be less than the number of the ambient brightness data of preset lower limit value in queue Half, then triggering improves the operation of ambient brightness.
It is described in detail below by taking concrete numerical value as an example.
Assuming that:Preset length is 9, and preset upper limit value is 60, and preset lower limit value is 40.Gather the ambient brightness data obtained Respectively 24,21,72,22,25,77,20,55,23.By these ambient brightness data storages in queue.
It was determined that the number of the ambient brightness data in queue more than preset upper limit value (60) is 2, less than preset length (9) half.Ambient brightness data are specially 72,77.It is less than the number of the ambient brightness data of preset lower limit value (40) in queue Mesh is 6, more than the half of preset length.Ambient brightness data are specially 24,21,22,25,20,23.
So, judged result is more than preset length to be less than the number of the ambient brightness data of preset lower limit value in queue Half, it is excessively dark that judged result indicates current environment brightness.The operation for improving ambient brightness can be triggered according to the judged result.
Optionally, step 102, by ambient brightness data storage in queue, it can include:
According to data collection cycle, the last ambient brightness data for gathering acquisition are updated using first in first out Into queue.
Specifically, when the ambient brightness data collected according to data collection cycle acquisition the last time, it is necessary to should Data are updated in queue.According to first in first out, the data are inserted to last position of queue, while will get earliest Ambient brightness data remove queue.And then, the ambient brightness data in queue after renewal can be carried out with processing and obtain current The bright dark degree of ambient brightness.
Optionally, according to data collection cycle, the environment for being obtained the last collection using first in first out is bright After degrees of data is updated in queue, method can also include:
Judge whether the update times of queue are more than predetermined threshold value.
Specifically, due to when carrying out light collection, can just keep the mistake that a period of time is constant or gradually changes Journey.Therefore, by setting predetermined threshold value, the operating frequency for judging ambient brightness can be adjusted flexibly.If the update times of queue More than predetermined threshold value, then perform and the operation that processing obtains judged result is carried out to queue.If the update times of queue are less than default Threshold value, then do not handle the ambient brightness data in queue, need not frequently judge in a short time, improve ambient brightness Judging efficiency.
A kind of method of adjustment of ambient brightness is present embodiments provided, including:According to data collection cycle, collection obtains ring Border brightness data, by ambient brightness data storage in queue, judges to be more than the ambient brightness data of preset upper limit value in queue Number whether be more than preset length half, and judge in queue be less than preset lower limit value ambient brightness data number Whether it is more than the half of preset length, obtains judged result, the operation for adjusting ambient brightness is triggered according to judged result.This implementation The method of adjustment for the ambient brightness that example is provided, by judging to be more than preset upper limit value or the ring less than preset lower limit value in queue The number of border brightness data, then the half of the number and preset length is compared, it is possible to neglect burr data for The influence of the judged result accuracy of ambient brightness, improves the judged result accuracy of ambient brightness, and then improves basis Judged result adjusts the Adjustment effect of ambient brightness.
Fig. 2 is the structural representation of the adjusting apparatus for the ambient brightness that the utility model embodiment one is provided.Such as Fig. 2 institutes Show that the adjusting apparatus for the ambient brightness that the present embodiment is provided can include:Data acquisition unit 11 and processor 12.Data acquisition Device 11 is electrically connected with processor 12.
Data acquisition unit 11, for obtaining ambient brightness data according to data collection cycle collection.
Processor 12, for by ambient brightness data storage in queue.The length of queue is preset length.Judge queue In be more than preset upper limit value the numbers of ambient brightness data whether be more than the half of preset length, and judge to be less than in queue Whether the number of the ambient brightness data of preset lower limit value is more than the half of preset length, obtains judged result.Preset upper limit value More than preset lower limit value.The operation of adjustment ambient brightness is triggered according to judged result.
Optionally, processor 12 specifically for:
If judged result is more than the one of preset length to be more than the number of the ambient brightness data of preset upper limit value in queue Half, the then operation of triggering reduction ambient brightness.
If judged result is more than the one of preset length to be less than the number of the ambient brightness data of preset lower limit value in queue Half, then triggering improves the operation of ambient brightness.
Optionally, processor 12 specifically for:
According to data collection cycle, the last ambient brightness data for gathering acquisition are updated using first in first out Into queue.
Optionally, processor 12 is additionally operable to:
Judge whether the update times of queue are more than predetermined threshold value.
Optionally, preset length is positive odd number.
It should be noted that the present embodiment is not done especially for the specific implementation of data acquisition unit 11 and processor 12 Limit, can be realized using existing any component with corresponding function, chip, circuit, equipment.
Optionally, data acquisition unit 11 can be photosensitive IC or photo resistance.
Optionally, data acquisition unit 11 can pass through the twin wire universal serial bus on processor 12 with processor 12 (Inter-Integrated Circuit, abbreviation I2C) and/or universal asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/Transmitter, abbreviation UART) interface electrical connection.
Below by taking a specific circuit as an example, the adjusting apparatus for the ambient brightness that the present embodiment is provided is described in detail.Its In concrete numerical value it is merely illustrative.
Fig. 3 is the circuit diagram of the adjusting apparatus for the ambient brightness that the utility model embodiment one is provided.As shown in figure 3, number It is specially photosensitive IC21 according to collector, processor is specially central processing unit (Central Processing Unit, abbreviation CPU)22.Electrically connected between photosensitive IC21 and CPU22 by the I2C on CPU22 and UART interface.Wherein, photosensitive IC21 has 6 Individual pin, respectively VDD, GND, NC, SDA, SCL, INT-.VDD is photosensitive IC21 DC supply input pin, photosensitive IC21 By transmitting clock signal between SCL pins and CPU22, photosensitive IC21 between SDA pins and CPU22 by transmitting data. In Fig. 3, C5 and C6 are used to filter alternating current.R1 and R2 is used to be used as pull-up resistor.
In figure 3, photosensitive IC21 is used for the function of performing above-mentioned data acquisition unit, and CPU22 is used to perform above-mentioned processor Function.
The adjusting apparatus for the ambient brightness that the present embodiment is provided, the environment for performing the offer of embodiment of the method shown in Fig. 1 The method of adjustment of brightness, its technical principle is similar with technique effect, and here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is only limited to illustrate the technical solution of the utility model, rather than to it System;Although the utility model is described in detail with reference to foregoing embodiments, one of ordinary skill in the art should Understand:It can still modify to the technical scheme described in foregoing embodiments, or to which part or whole Technical characteristic carries out equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from this practicality newly The scope of each embodiment technical scheme of type.

Claims (7)

1. a kind of adjusting apparatus of ambient brightness, it is characterised in that including:Data acquisition unit and processor;The data acquisition Device is electrically connected with the processor;
The data acquisition unit, for obtaining ambient brightness data according to data collection cycle collection;
The processor, for by the ambient brightness data storage in queue;The length of the queue is preset length;Sentence Whether the number for being more than the ambient brightness data of preset upper limit value in the disconnected queue is more than the half of the preset length, and Judge whether the number in the queue less than the ambient brightness data of preset lower limit value is more than the half of the preset length, obtain Obtain judged result;The preset upper limit value is more than the preset lower limit value;According to judged result triggering adjustment ambient brightness Operation.
2. device according to claim 1, it is characterised in that the processor specifically for:
If the judged result is more than described for the number in the queue more than the ambient brightness data of the preset upper limit value The operation of the half of preset length, then triggering reduction ambient brightness;
If the judged result is more than described for the number in the queue less than the ambient brightness data of the preset lower limit value The half of preset length, then triggering improves the operation of ambient brightness.
3. device according to claim 1, it is characterised in that the processor specifically for:
According to the data collection cycle, the last ambient brightness data for gathering acquisition are updated using first in first out Into the queue.
4. device according to claim 3, it is characterised in that the processor is additionally operable to:
Judge whether the update times of queue are more than predetermined threshold value.
5. the device according to any one of Claims 1-4, it is characterised in that the preset length is positive odd number.
6. the device according to any one of Claims 1-4, it is characterised in that the data acquisition unit is photosensitive integrated electricity Road or photo resistance.
7. the device according to any one of Claims 1-4, it is characterised in that the data acquisition unit and the processor Electrically connected by the twin wire universal serial bus I2C on the processor and/or universal asynchronous receiving-transmitting transmitter UART interface.
CN201621457078.7U 2016-12-28 2016-12-28 The adjusting apparatus of ambient brightness Withdrawn - After Issue CN206472356U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201621457078.7U CN206472356U (en) 2016-12-28 2016-12-28 The adjusting apparatus of ambient brightness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201621457078.7U CN206472356U (en) 2016-12-28 2016-12-28 The adjusting apparatus of ambient brightness

Publications (1)

Publication Number Publication Date
CN206472356U true CN206472356U (en) 2017-09-05

Family

ID=59712801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201621457078.7U Withdrawn - After Issue CN206472356U (en) 2016-12-28 2016-12-28 The adjusting apparatus of ambient brightness

Country Status (1)

Country Link
CN (1) CN206472356U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106793407A (en) * 2016-12-28 2017-05-31 生迪智慧科技有限公司 The method of adjustment and device of ambient brightness
CN113851096A (en) * 2020-06-28 2021-12-28 北京小米移动软件有限公司 Brightness detection method, device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106793407A (en) * 2016-12-28 2017-05-31 生迪智慧科技有限公司 The method of adjustment and device of ambient brightness
CN106793407B (en) * 2016-12-28 2023-04-25 生迪智慧科技有限公司 Method and device for adjusting ambient brightness
CN113851096A (en) * 2020-06-28 2021-12-28 北京小米移动软件有限公司 Brightness detection method, device and storage medium
CN113851096B (en) * 2020-06-28 2023-05-02 北京小米移动软件有限公司 Brightness detection method, device and storage medium

Similar Documents

Publication Publication Date Title
JP6714469B2 (en) Electronic device and control method thereof
CN206472356U (en) The adjusting apparatus of ambient brightness
CN101689073A (en) Interrupt/wake-up of an electronic device in a law power sleep mode when detecting a sensor or frequency source activated frequency change
TW201234184A (en) Adaptive USB charging method and system
CN103607822B (en) A kind of method of overheat protector of photoflash lamp of terminal and device
US20120290853A1 (en) Indicator light control circuuit
CN105718012B (en) Method and circuit for automatically switching Vbus voltage in master-slave mode of OTG (on-the-go) equipment
CN103024195A (en) Smart mobile terminal and implementation method of charging of smart mobile terminal
CN103778916A (en) Method and system for monitoring environmental sound
CN106793407A (en) The method of adjustment and device of ambient brightness
CN206601695U (en) A kind of burning device for detecting and indicating objective chip state
CN102510642A (en) Non-volatile LED (Light Emitting Diode) lamp operation data recording method based on Internet of things
CN108767923A (en) Terminal and circuit control method
CN209375986U (en) A kind of high pressure deep ultraviolet LED light constant-current drive circuit can be used for measuring instrument
CN106445854A (en) Method and system for supporting transparent transmission of serial interfaces
CN103345610B (en) The Apparatus and method for of fast verification intelligent card data integrality
CN108924366B (en) Low-voltage reminding method and device, electronic equipment and storage medium
CN108664365A (en) The detection method of the external accessory of a kind of electronic equipment
CN110457158A (en) House dog implementation method, device, equipment and storage medium based on finite state machine
CN103543682A (en) Method and device for identifying input state by common IO port
CN114443445B (en) Hard disk lighting method and device, electronic equipment and storage medium
CN212847692U (en) Testing device for verifying eMMC and SD card
CN205384552U (en) Mainboard of DRAM and applied this DRAM
CN209199608U (en) Read and write the switching strobe unit of more optical module EEPROM
CN110895502B (en) Control method and device for hard disk state indicating device, electronic equipment and storage medium

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
AV01 Patent right actively abandoned
AV01 Patent right actively abandoned
AV01 Patent right actively abandoned

Granted publication date: 20170905

Effective date of abandoning: 20230425

AV01 Patent right actively abandoned

Granted publication date: 20170905

Effective date of abandoning: 20230425