Method, apparatus, rearview mirror and the storage medium of LED light brightness Multistage Control
Technical field
The present embodiments relate to intelligent back vision mirror LED light brilliance control technical field, more particularly to a kind of LED light brightness
Method, apparatus, rearview mirror and the storage medium of Multistage Control.
Background technology
Intelligent back vision mirror LED (Light Emitting Diode, light emitting diode) lamp, generally from be power supply chip to
What LED control circuit was directly powered, correspondingly, the side of the electric current in LED control circuit can be flowed into by varying power supply chip
Formula, realizes the adjusting to intelligent back vision mirror LED light brightness.
But because the control ability of power supply chip is limited so that the brightness degree of intelligent back vision mirror LED light often can only
It is changed in the range of 3-4 grades, therefore when using intelligent back vision mirror LED light, it is possible that it is not bright enough when bright,
It is again not dark enough when dark.
Inventor in the implementation of the present invention, it is found that there are following defect for the prior art:Due to intelligent back vision mirror LED
The brightness degree change of lamp is limited, can not realize the multistage change of intelligent back vision mirror LED light brightness, poor user experience.
The content of the invention
The embodiment of the present invention provides a kind of method, apparatus, rearview mirror and the storage medium of LED light brightness Multistage Control, with
Realize the multistage change of intelligent back vision mirror LED light brightness.
In a first aspect, an embodiment of the present invention provides a kind of method of LED light brightness Multistage Control, this method includes:
Obtain the brightness adjustment grade of LED light in intelligent back vision mirror;
According to the brightness adjustment grade, the signal parameter of voltage output signal is adjusted;
LED light in the intelligent back vision mirror is supplied to using the voltage output signal after adjustment as power supply, with to institute
State LED light in intelligent back vision mirror and carry out brightness adjustment.
Second aspect, the embodiment of the present invention additionally provide a kind of device of LED light brightness Multistage Control, which includes:
Brightness degree acquisition module, for obtaining the brightness adjustment grade of LED light in intelligent back vision mirror;
Signal parameter adjusts module, for according to the brightness adjustment grade, adjusting the signal parameter of voltage output signal;
LED light brightness adjusting section, for the voltage output signal after adjustment to be supplied to the intelligence as power supply
LED light in energy rearview mirror, to carry out brightness adjustment to LED light in the intelligent back vision mirror.
The third aspect, the embodiment of the present invention additionally provide a kind of rearview mirror, including memory, processor and are stored in storage
On device and the computer program that can run on a processor, the processor are realized that the present invention is any and are implemented when performing described program
The method of intelligent back vision mirror LED light brightness Multistage Control described in example.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer
Program, realizes the intelligent back vision mirror LED light brightness multistage control described in any embodiment of the present invention when which is executed by processor
The method of system.
The embodiment of the present invention is by obtaining the brightness adjustment grade of LED light in intelligent back vision mirror;According to the brightness adjustment
Grade, adjusts the signal parameter of voltage output signal;It is supplied to using the voltage output signal after adjustment as power supply described
LED light in intelligent back vision mirror, to carry out the technological means of brightness adjustment to LED light in the intelligent back vision mirror, after intelligence
It is the new paragon that LED light is powered in intelligent back vision mirror that the main control chip of visor, which replaces power module, is thrown not increasing hardware
On the premise of entering, the Multistage Control to intelligent back vision mirror LED light brightness is realized.
Brief description of the drawings
Fig. 1 is the flow chart of the method for the LED light brightness Multistage Control that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the method for LED light brightness Multistage Control provided by Embodiment 2 of the present invention;
Fig. 3 is the structure chart of the device for the LED light brightness Multistage Control that the embodiment of the present invention three provides;
Fig. 4 is a kind of hardware architecture diagram for rearview mirror that the embodiment of the present invention five provides.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings to of the invention specific real
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention,
Rather than limitation of the invention.
It also should be noted that for the ease of description, illustrate only in attached drawing part related to the present invention rather than
Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail
Into the processing or method described as flow chart.Although operations (or step) are described as the processing of order by flow chart,
It is that many of which operation can be implemented concurrently, concomitantly or at the same time.In addition, the order of operations can be by again
Arrange.The processing can be terminated when its operations are completed, it is also possible to the additional step being not included in attached drawing.
The processing can correspond to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart of the method for the LED light brightness Multistage Control that the embodiment of the present invention one provides, and the present embodiment can fit
For carrying out the situation of Multistage Control to LED light brightness, this method can be performed by the device of LED light brightness Multistage Control,
The device can be realized by way of software and/or hardware, and can generally be integrated in onboard system (such as:Vehicle-mounted back vision
Mirror or vehicle device etc.) main control chip in, the method for the present embodiment specifically comprises the following steps:
S110, the brightness adjustment grade for obtaining LED light in intelligent back vision mirror.
In an optional embodiment of the present embodiment, LED light can be uniformly arranged in the intelligent back vision mirror
The outer surface of plane where the display screen of the intelligent back vision mirror.
Wherein, the brightness adjustment grade of LED light can be determined according to the input of user in the intelligent back vision mirror, can also
Ambient light in surrounding environment determines that the present embodiment is to this and is not limited.
In a specific example, vehicular rear mirror or vehicle device can provide a brightness adjustment option (allusion quotation to the user
Type, one can drag control), and the brightness adjustment option is based on, obtains the bright of LED light in intelligent back vision mirror input by user
Degree adjustment grade.
In another specific example, the ambient light in surrounding environment can be obtained by ambient light sensor, may be used also
Brightness value or definition values with the photo shot according to camera, obtain the ambient light etc. in surrounding environment, the present embodiment
To this and it is not limited.
S120, according to the brightness adjustment grade, adjust the signal parameter of voltage output signal.
In the present embodiment, the voltage output signal is specifically referred in vehicular rear mirror or the main control chip of vehicle device
Set the voltage output signal of port output.The signal parameter of the voltage output signal can be at least one of following:Amplitude,
Frequency and duty cycle etc..
Wherein, the vehicular rear mirror or the main control chip of vehicle device can be MT8665 chips, the MT8665 chips
The customized high-performance of intelligent cloud rearview mirror, low-power chip are aimed at, integrates the functions such as 4G, GPS, WiFi, FM.The chip is adopted
With 64 four core A53 processors, 28nm low-power chip processing procedures, compared to 32 bit processors, at least one times of performance boost.
Mali-T720GPU, highly integrated Mali-T720GPU, compared to Mali-400, possess stronger image-capable.
In addition inventor in view of main control chip be generally only capable of output TTL (transistor transistor logic,
Transistor-transistor logic level) level form voltage output signal, analog voltage signal can not be exported to realize to intelligence
The multi-level brightness control of LED light in rearview mirror.Correspondingly, it is contemplated that main control chip voltage signal output end, connection one
A D/A converting circuit, according to the brightness adjustment grade, is controlled the D/A converting circuit so that the digital-to-analogue conversion
The adjustable voltage output signal of circuit output amplitude LED light into intelligent back vision mirror, and then realize to LED in intelligent back vision mirror
The multi-level brightness control of lamp.
Further, in order to further reduce hardware input, the D/A converting circuit can not be introduced, directly by the voltage
Signal output is exported to LED light in the intelligent back vision mirror.By the brightness adjustment grade, change the voltage of the main control chip
The duty cycle or frequency of signal are exported, to change the output signal power in the unit interval, can equally be realized to after intelligence
The multi-level brightness control of LED light in visor.
Optionally, the voltage output signal is pulse width modulating signal;The signal parameter of the voltage signal includes:
Signal dutyfactor, and/or signal frequency.
Pulsewidth modulation (Pulse Width Modulation, PWM) basic principle is exactly to inverter circuit switching device
Break-make is controlled so that output terminal obtains a series of equal pulse of amplitudes, and sine wave or required is replaced with these pulses
The waveform wanted, that is, multiple pulses are produced in the half period of output waveform, the threshold voltage that waits for making each pulse is sine wave
Shape, the output smoothing and low-order harmonic obtained are few.The width of each pulse is modulated by certain rule, you can change inverse
Become the size of circuit output voltage, can also change output frequency.The duty cycle in cycle, PWM by adjusting PWM can also reach
To the purpose of control output voltage.
S130, using the voltage output signal after adjustment as power supply be supplied to LED light in the intelligent back vision mirror, with
Brightness adjustment is carried out to LED light in the intelligent back vision mirror.
It will be appreciated by persons skilled in the art that LED light according to the voltage of input either the difference of voltage amplitude or
The difference of the performance number of input, can be presented different brightness values in unit interval.
Correspondingly, it is supplied to by regarding the voltage output signal after adjustment as power supply in the intelligent back vision mirror
LED light, can allow adjustment after intelligent back vision mirror in LED light brightness by the original brightness that can only realize 3-4 grades
Excursion, increases to 200 multistage even more brightness change scopes, and then can carry out adaptability according to being actually needed
Multi-level brightness adjusts.
The embodiment of the present invention is by obtaining the brightness adjustment grade of LED light in intelligent back vision mirror;According to the brightness adjustment
Grade, adjusts the signal parameter of voltage output signal;It is supplied to using the voltage output signal after adjustment as power supply described
LED light in intelligent back vision mirror, to carry out the technological means of brightness adjustment to LED light in the intelligent back vision mirror, after intelligence
It is the new paragon that LED light is powered in intelligent back vision mirror that the main control chip of visor, which replaces power module, is thrown not increasing hardware
On the premise of entering, the Multistage Control to intelligent back vision mirror LED light brightness is realized.
Embodiment two
Fig. 2 is a kind of flow chart of the method for the LED light brightness Multistage Control of offer provided by Embodiment 2 of the present invention.This
Embodiment is optimized based on above-described embodiment, in the present embodiment, by step obtain intelligent back vision mirror in LED light it is bright
Degree adjustment grade is further optimized for:Current environmental light brightness in surrounding environment is obtained by ambient light sensor;According to obtaining
Correspondence between the current environmental light brightness taken, and the environmental light brightness and the brightness degree of LED light to prestore, is obtained
Take the brightness adjustment grade of LED light in the intelligent back vision mirror.Meanwhile step is made the voltage output signal after adjustment
It is supplied to LED light in the intelligent back vision mirror to be further optimized for for power supply:The voltage output signal after adjustment is passed through
GPIO interface exports the power input of the LED light into the intelligent back vision mirror.
Correspondingly, the method for the present embodiment specifically includes:
S210, pass through the current environmental light brightness in ambient light sensor acquisition surrounding environment.
Wherein, ambient light sensor can with but be not restricted to be arranged in intelligent back vision mirror, or vehicle can be arranged at
Internal and front windshield can also be arranged at the outside of vehicle, and then pass through ambient light sensor and obtain surrounding close to setting
Current environmental light brightness in environment.
S220, the current environmental light brightness according to acquisition, and brightness of environmental light brightness and LED light to prestore etc.
Correspondence between level, obtains the brightness adjustment grade of LED light in the intelligent back vision mirror.
Specifically, the brightness adjustment grade of LED light is determined by current environmental light brightness in intelligent back vision mirror.Work as getting
After preceding environmental light brightness, by by between the current environmental light brightness and the environmental light brightness and the brightness degree of LED light that prestore
It is compared, obtains the brightness adjustment grade of LED light in the intelligent back vision mirror.
S230, according to the brightness adjustment grade, adjust the signal parameter of voltage output signal.
Wherein, after the brightness adjustment grade is got, the duty cycle of voltage output signal can realize the model of adjustment
It is trapped among 5% to 90%, the scope for the adjustment that the frequency of voltage output signal can be realized arrives several kHz more than a kHz
Left and right, can accordingly realize brightness adjustment grade between 1 grade to 256 grades.By taking 1 grade of brightness adjustment grade as an example, corresponding electricity
The duty cycle of pressure output signal is 5%, and the frequency of voltage output signal is 1000 hertzs.
S240, by the voltage output signal after adjustment export the LED into the intelligent back vision mirror by GPIO interface
The power input of lamp, to carry out brightness adjustment to LED light in the intelligent back vision mirror.
In the present embodiment, in order to realize that the LED light that control chip can be in the accessible mirror for intelligent back vision is supplied
Electricity, can be exported the voltage output signal to the intelligent back vision mirror by GPIO interface (being referred to as general-purpose interface)
The power input of middle LED light.
Wherein, GPIO interface can be the GPIO interface of control chip itself configuration or the GPIO being separately configured
Interface.
If the GPIO interface is the interface being separately configured, one end of GPIO interface is described defeated with the master signal
The output terminal for going out voltage signal is connected, and the other end is connected with the power input of LED light, and GPIO interface is by the voltage output signal
The power input of LED light is sent to as power supply, and then realizes the adjustment to the brightness of LED light in intelligent back vision mirror.
On the basis of above-described embodiment, the control circuit for the output voltage signal being connected with one end of GPIO interface
On be built-in with main control chip, i.e. MT8665 chips.In the technical solution of the application, the MT8665 chips, which can be realized, to be passed through
Ambient light sensor obtains the current environmental light brightness in surrounding environment, and the brightness of the environmental light brightness and LED light to prestore
Correspondence between grade, obtains the brightness adjustment grade of LED light in the intelligent back vision mirror, can also control output voltage
Signal, and then realize the control to the brightness of LED light in intelligent back vision mirror.
On the basis of the various embodiments described above, LED light is uniformly arranged on the intelligent back vision mirror in the intelligent back vision mirror
Display screen where plane outer surface.
The embodiment of the present invention obtains the current environmental light brightness in surrounding environment, the ring that will be prestored by ambient light sensor
Correspondence between border brightness and the brightness degree of LED light, obtains brightness adjustment of LED light etc. in the intelligent back vision mirror
Level, according to the brightness adjustment grade, adjusts the signal parameter of voltage output signal, by the voltage output signal after adjustment
The power input of the LED light into the intelligent back vision mirror is exported by GPIO interface, LED light in intelligent back vision mirror is carried out bright
Degree adjustment, to realize that intelligent back vision mirror LED light brightness realizes multistage with the change of the current environmental light brightness in surrounding environment
Change, LED light is lightened, dim LED light when surrounding environment is dark when surrounding environment is bright, is mitigated user and is used
When mobile unit when, the brightness of LED light mismatches the sense of discomfort brought to user with surrounding environment brightness, lifts the use of user
Experience.
Embodiment three
Fig. 3 is the flow chart of the device for the LED light brightness Multistage Control that the embodiment of the present invention three provides, and the present embodiment can fit
For carrying out the situation of Multistage Control to LED light brightness.
As shown in figure 3, described device includes:Brightness degree acquisition module 310, signal parameter adjustment module 320 and LED light
Brightness adjusting section 330, wherein:
Brightness degree acquisition module 310 is used for the brightness adjustment grade for obtaining LED light in intelligent back vision mirror;
Signal parameter adjustment module 320 is used for the signal ginseng for according to the brightness adjustment grade, adjusting voltage output signal
Number;
LED light brightness adjusting section 330 is used to be supplied to using the voltage output signal after adjustment as power supply described
LED light in intelligent back vision mirror, to carry out brightness adjustment to LED light in the intelligent back vision mirror.
The device of the LED light brightness Multistage Control of the embodiment of the present invention, is obtained in surrounding environment by ambient light sensor
Current environmental light brightness, by the correspondence between the environmental light brightness to prestore and the brightness degree of LED light, obtain the intelligence
The brightness adjustment grade of LED light in energy rearview mirror, according to the brightness adjustment grade, the signal for adjusting voltage output signal is joined
Number, the power supply that the voltage output signal after adjustment is exported to the LED light into the intelligent back vision mirror by GPIO interface are defeated
Enter end, brightness adjustment is carried out to LED light in intelligent back vision mirror, to realize that the multistage of intelligent back vision mirror LED light brightness changes.
On the basis of the various embodiments described above, the voltage output signal is pulse width modulating signal;The voltage letter
Number signal parameter include:Signal dutyfactor, and/or signal frequency.
On the basis of the various embodiments described above, the brightness degree acquisition module 310, including:
The current environment that environmental light brightness acquiring unit 311 is used to obtain in surrounding environment by ambient light sensor is bright
Degree;
Brightness degree adjustment unit 312 is used for the current environmental light brightness according to acquisition, and the ambient light to prestore
Correspondence between brightness and the brightness degree of LED light, obtains the brightness adjustment grade of LED light in the intelligent back vision mirror.
On the basis of the various embodiments described above, LED light brightness adjusting section 330 is specifically used for:
The voltage output signal after adjustment is exported to the electricity of the LED light into the intelligent back vision mirror by GPIO interface
Source input terminal.
On the basis of the various embodiments described above, LED light is uniformly arranged on the intelligent back vision mirror in the intelligent back vision mirror
Display screen where plane outer surface.
The device for the LED light brightness Multistage Control that the various embodiments described above are provided can perform any embodiment of the present invention and be carried
The method of the LED light brightness Multistage Control of confession, possesses the corresponding function module of method for performing LED light brightness Multistage Control and has
Beneficial effect.
Example IV
The embodiment of the present invention also provides a kind of storage medium for including computer executable instructions, and the computer can perform
When being performed by computer processor for performing a kind of method of LED light brightness Multistage Control, this method includes for instruction:
Obtain the brightness adjustment grade of LED light in intelligent back vision mirror;
According to the brightness adjustment grade, the signal parameter of voltage output signal is adjusted;
LED light in the intelligent back vision mirror is supplied to using the voltage output signal after adjustment as power supply, with to institute
State LED light in intelligent back vision mirror and carry out brightness adjustment.
Optionally, which can be also used for performing the present invention times when being performed by computer processor
A kind of technical solution of the method for LED light brightness Multistage Control that meaning embodiment is provided.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases
Good embodiment.Based on such understanding, what technical scheme substantially in other words contributed the prior art
Part can be embodied in the form of software product, which can be stored in computer-readable recording medium
In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
Embodiment five
As shown in figure 4, a kind of hardware architecture diagram of the rearview mirror provided for the embodiment of the present invention five, as shown in figure 4,
The rearview mirror includes:
One or more processors 410, in Fig. 4 by taking a processor 410 as an example;
Memory 420;
The rearview mirror can also include:Input unit 430 and output device 440.
Processor 410, memory 420, input unit 430 and output device 440 in the rearview mirror can be by total
Line or other modes connect, in Fig. 4 exemplified by being connected by bus.
Memory 420 is used as a kind of non-transient computer readable storage medium storing program for executing, can available for storage software program, computer
Executive program and module, as a kind of LED light brightness Multistage Control in the embodiment of the present invention the corresponding programmed instruction of method/
Module is (for example, brightness degree acquisition module 310, signal parameter adjustment module 320 and LED light brightness adjustment mould shown in attached drawing 3
Block 330).Processor 410 is stored in software program, instruction and module in memory 420 by operation, so as to perform backsight
The various function application of mirror and data processing, that is, realize a kind of side of LED light brightness Multistage Control of above method embodiment
Method.
Memory 420 can include storing program area and storage data field, wherein, storing program area can store operation system
System, the required application program of at least one function;Storage data field can be stored uses created data according to rearview mirror
Deng.In addition, memory 420 can include high-speed random access memory, non-transitory memory can also be included, for example, at least
One disk memory, flush memory device or other non-transitory solid-state memories.In certain embodiments, memory 420
It is optional including network connection to terminal can be passed through relative to the remotely located memory of processor 410, these remote memories
Equipment.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 430 can be used for the numeral or character information for receiving input, and produce the user with vehicular rear mirror
Set and function control it is related key signals input.Output device 440 may include the display devices such as display screen.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.