A kind of projection brightness varitrol and method
Technical field
The present invention relates to shadow casting technique, what be specifically related to is a kind of projection brightness varitrol and method, and the projection brightness being mainly used in the equipment such as the mobile phone of projecting function, projector regulates.
Background technology
Along with the fast development of electronic manufacturing technology and smart mobile phone, what mobile phone had a projecting function becomes possibility, current part smart mobile phone all has projecting function, the displaying of interior of mobile phone data, picture, PPT and video etc. can be realized by projecting function, greatly convenient for users to use.
But the projector of the current mobile phone and routine with projecting function is when projecting, higher to the requirement of ambient brightness, the effect of ambient brightness during projection to projection has a great impact, if when surrounding environment is brighter, projection brightness must increase; And ambient brightness darker time, the brightness of projection then will dim a little, and current projection mobile phone and projector all need manually to regulate, and regulative mode is cumbersome, and effect is also undesirable, and the experience sense of user is poor.
Summary of the invention
For this reason, the object of the present invention is to provide a kind of projection brightness varitrol and method, to solve current projection mobile phone, projector needs the adjustment trouble existing for manual adjustments brightness, effect bad, the problem that Consumer's Experience sense is poor.
The object of the invention is to be achieved through the following technical solutions.
A kind of projection brightness varitrol, comprise CPU, microprocessor, projection module and projection lens, described CPU is connected with microprocessor, and microprocessor is connected with projection lens by projection module, also includes a luminance sensor be connected with microprocessor.
Preferably, this system also includes a storer be connected with CPU, stores ambient brightness backoff algorithm in this storer.
Preferably, described luminance sensor is also connected with CPU.
In addition, present invention also offers a kind of projection brightness Automatic adjustment method, comprise step:
A, obtain ambient brightness parameter value by luminance sensor, and its correspondence is sent to microprocessor;
This ambient brightness parameter value is sent to CPU by B, microprocessor correspondence;
C, CPU carry out luminance compensation according to this ambient brightness parameter value, and the luminance parameter after compensating is sent to microprocessor;
D, microprocessor control projection module according to the luminance parameter after this compensation and drive projection lens to project.
Preferably, also comprise before steps A:
Ambient brightness backoff algorithm corresponding stored is set in memory.
Preferably, steps A comprises:
CPU controls luminance sensor and starts, and is obtained the ambient brightness parameter value of Current projection, and its correspondence is sent to microprocessor by luminance sensor.
Preferably, step B comprises:
Microprocessor obtains above-mentioned ambient brightness parameter value, and converts thereof into digital format, and correspondence will send to CPU.
Preferably, step C comprises:
CPU calls the ambient brightness backoff algorithm in storer, compensates calculating to above-mentioned ambient brightness parameter value, obtains the brightness value after compensating, and the luminance parameter after compensating is sent to microprocessor.
The present invention compared with prior art, beneficial effect is: projection brightness varitrol provided by the invention and method, detected needing the ambient brightness of projection by luminance sensor, obtain current environment brightness value, and this numerical value correspondence is sent to CPU, call luminance compensation algorithm by CPU to compensate current environment brightness, obtain the brightness value needing to compensate, and correspondence drives projection lens to project by Microprocessor S3C44B0X projection module.Present invention achieves environmentally brightness different, automatically regulate the object of projection brightness, avoid the problem that the weak effect existing for manual adjustments brightness, complex operation and Consumer's Experience sense are poor.
Accompanying drawing explanation
Fig. 1 is system principle diagram of the present invention.
Fig. 2 is principle of work process flow diagram of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to shown in Fig. 1, Fig. 1 is system principle diagram of the present invention.The present invention is to provide a kind of projection brightness varitrol, be mainly used in solving current projection mobile phone, projector needs the adjustment trouble existing for manual adjustments brightness, effect bad, the problem that Consumer's Experience sense is poor.
Wherein this system includes CPU, microprocessor, storer, projection module and projection lens, described CPU is connected with microprocessor, microprocessor is connected with projection lens by projection module, also include a luminance sensor be connected with microprocessor, this luminance sensor is also connected with CPU, stores ambient brightness backoff algorithm in described storer.
This system can be applicable to projection mobile phone, projector etc. have in the equipment of projecting function, it is by being arranged on the luminance sensor in corresponding device, corresponding acquisition projection brightness parameter, if this current ambient brightness is inconsistent with best projection brightness, then need to carry out calculation compensation by CPU correspondence, its luminance compensation algorithm calculates according to best projection effect and projection ambient brightness one_to_one corresponding and obtains, when the ambient brightness obtained is darker, under calculating this ambient brightness by backoff algorithm correspondence, need to compensate the drop shadow effect how much brightness just can reach the best, and drive projection module work according to result of calculation, the corresponding projection brightness regulating projection lens, to realize mating with ambient brightness.
Native system can according to the brightness of projection environment, the brightness of adjustment projection mobile phone or projector automatically.So just eliminate the trouble of each manual adjustments of user, meet the demand that user one is very real, provide better Consumer's Experience.
Be more than the explanation to a kind of projection brightness varitrol of the present invention, be further described below in conjunction with a kind of projection brightness Automatic adjustment method of accompanying drawing 2 couples of the present invention.
Shown in Figure 2, Fig. 2 is principle of work process flow diagram of the present invention.Present invention also offers a kind of projection brightness varitrol, concrete steps are as follows:
First ambient brightness backoff algorithm corresponding stored is set in memory, this ambient brightness backoff algorithm is used for compensating Current projection ambient brightness, by regulating the projection brightness of projection lens, it is made to mate with current environment brightness, such as when ambient brightness is darker, projection brightness dims by correspondence; If when ambient brightness is brighter, then projection brightness lightens by correspondence.
A, obtain ambient brightness parameter value by luminance sensor, and its correspondence is sent to microprocessor;
CPU controls luminance sensor and starts, and is obtained the ambient brightness parameter value of Current projection, and its correspondence is sent to microprocessor by luminance sensor.
This ambient brightness parameter value is sent to CPU by B, microprocessor correspondence;
Microprocessor obtains above-mentioned ambient brightness parameter value, and converts thereof into digital format, and correspondence will send to CPU.
C, CPU carry out luminance compensation according to this ambient brightness parameter value, and the luminance parameter after compensating is sent to microprocessor;
CPU calls the ambient brightness backoff algorithm in storer, compensates calculating to above-mentioned ambient brightness parameter value, obtains the brightness value after compensating, and the luminance parameter after compensating is sent to microprocessor.
D, microprocessor control projection module according to the luminance parameter after this compensation and drive projection lens to project.
The present invention utilizes the luminance sensor of mobile phone or projector, when projecting function is opened, starts luminance sensor.When finding that ambient brightness is higher, heighten the brightness of projection; When finding that ambient brightness is lower, turning down the brightness of projection, thus making drop shadow effect automatically reach good state.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.