Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
The technical scheme of the invention can be applied to the technical fields of laser beam scanning projectors (LBS), Head Up Displays (HUD) and the like. For ease of understanding, the LBS is described below as an example.
As shown in fig. 1, the LBS mainly includes: and the image input interface is used for receiving image data output by a PC (personal computer), a set-top box and the like and processing the image data.
And a laser controller for controlling brightness of RGB laser, and simultaneously lighting and synthesizing pixel data of the image received from the image input interface into a pixel color by using the RGB laser.
RGB three-color laser, under the control of laser controller, three-color laser synthesizes image pixel point according to image information in proper order.
And a scanning control system for outputting a driving signal to control the MEMS (micro electro mechanical system) to rotate in the horizontal direction and the vertical direction at the same time.
MEMS (micro electro mechanical system), the control mirror swings around two axes of horizontal and vertical directions.
In the projection apparatus, a driving effect that a scanning angle is large, driving power consumption is low, and a scanning voltage is low is required for the MEMS. In order to solve the above problems, the technical solution of the present invention can be adopted, which specifically comprises the following steps:
fig. 2 is a schematic flowchart of a laser projection period processing method according to an embodiment of the present invention, where the laser projection period processing method may be executed by a control chip (e.g., an FPGA, etc.). The method comprises the following steps:
step 201: and acquiring the resonant frequency of the laser device.
It should be noted that different laser devices have different resonant frequencies (resonant frequencies) due to differences in assembling and adjusting processes. Therefore, in order to drive the laser device MEMS more favorably, it is necessary to measure the resonance frequency for each laser device. It is, of course, common for the laser devices described herein to have different resonant frequencies, and in practice it may occur that the two laser devices have the same resonant frequency.
Step 202: determining a first frequency-division constant and a second frequency-division constant based on the laser device resonant frequency.
As can be seen from the foregoing, the MEMS in the laser apparatus needs to perform laser projection and scanning in the horizontal and vertical directions simultaneously. The first division constant and the second division constant may correspond to a horizontal division constant and a vertical division constant, respectively. The first and second parts are used herein for convenience of distinguishing different control words, and there is no limitation in order or size.
In order to realize the driving of the MEMS in the laser device with lower power consumption, the first frequency division constant and the second frequency control word are determined according to the resonant frequency of the laser device, so that the horizontal driving signal and the vertical driving signal can be driven based on the resonant frequency, and the driving power consumption can be reduced.
Step 203: and acquiring a horizontal driving signal waveform according to the first frequency division constant.
In practice, after the division constant is determined, the desired horizontal drive signal waveform can be obtained from the first frequency control word using an accumulator and a look-up table. In particular, the present invention relates to a method for producing,
(ii) a Where M is the frequency control word, fc is the fixed clock frequency, 2
NIs bit wide.
Step 204: and obtaining the vertical driving signal waveform according to the second frequency division constant.
As mentioned above, the vertical driving signal waveform needs to be determined by looking up the table using the second frequency dividing constant and the corresponding accumulator.
It should be noted that, the driving signal waveforms obtained in step 203 and step 204 are not in sequence, and may be obtained simultaneously, or the horizontal driving signal waveform obtained after the vertical driving signal waveform is obtained first.
In one or more embodiments of the present invention, the determining a first frequency-dividing constant and a second frequency-dividing constant based on the resonant frequency of the laser device may specifically include: determining the first and second frequency-dividing constants based on the laser device resonant frequency, an external fixed clock frequency, and a number of drive signal bytes.
Specifically, the determining the first frequency-dividing constant and the second frequency-dividing constant includes:
wherein, K isnRepresents a frequency control word; fHRepresenting the resonant frequency of the laser device; m represents the number of bytes of the driving signal; n represents a constant; fclkRepresenting the external fixed clock frequency.
In one or more embodiments of the present invention, the obtaining a horizontal driving signal waveform according to the first frequency-division constant may specifically include: determining the frequency of a horizontal driving signal according to a first frequency division constant and the resonant frequency of the laser equipment; searching a sine wave table according to the frequency of the horizontal driving signal; the horizontal drive signal waveform is obtained.
As mentioned above, after obtaining the first frequency-dividing constant, the corresponding phase code is obtained by the accumulator. Then searching by phase codeThe address waveform table (such as waveform memory ROM) is subjected to phase code-amplitude coding conversion, then the phase code-amplitude coding conversion is carried out by the address waveform table, corresponding component waveforms are obtained by a D/A digital-to-analog converter, and finally the component waveforms are subjected to smoothing processing by a low-pass filter to obtain the frequency control word KnA determined frequency-tunable output waveform. For example, as shown in fig. 3, a sine wave diagram is formed by a step wave, and if the output horizontal driving signal waveform is a sine wave, the corresponding waveform output by the digital-to-analog converter is a step wave.
In one or more embodiments of the present invention, the determining the horizontal clock frequency according to the first frequency-division constant and the resonant frequency of the laser device may specifically include: fsin=FH×Ksin(ii) a Wherein, F issinRepresents the horizontal drive signal frequency; fHRepresents the resonant frequency of the laser device; ksinRepresenting the first frequency-division constant.
As described above, the horizontal drive signal frequency is an integer multiple of the resonant frequency of the laser device, and thus, as can be seen from the above equation, the horizontal drive signal frequency is K, which is the resonant frequency of the laser devicesinAnd (4) doubling.
In one or more embodiments of the present invention, obtaining the vertical driving signal waveform according to the second frequency division constant may specifically include: determining the frequency of a vertical driving signal according to a second frequency division constant and the resonant frequency of the laser equipment; searching a sawtooth waveform table according to the vertical driving signal frequency; the vertical driving signal waveform is obtained.
As mentioned above, after obtaining the second frequency-dividing constant, the corresponding phase code is obtained by the accumulator. Then, phase code-amplitude coding conversion is carried out by phase code addressing waveform table (such as waveform memory ROM), corresponding component waveform is obtained by D/A digital-to-analog converter, and finally smoothing processing is carried out on the component waveform by low pass filter to obtain frequency control word KnA determined frequency-tunable output waveform. For example, as shown in fig. 4, a sawtooth wave is formed by a step wave. Assuming that the waveform of the output vertical driving signal is sawtooth wave, the corresponding digital-to-analog converterThe output waveform is a step wave.
In one or more embodiments of the present invention, the determining the frequency of the vertical driving signal according to the second frequency-dividing constant and the resonant frequency of the laser device may specifically include:
Fsaw=FH×Ksaw;
wherein, F issawRepresents the vertical drive signal frequency; fHRepresents the resonant frequency of the laser device; ksawRepresenting the second frequency-dividing constant.
In one or more embodiments of the present invention, the method may further include: superposing the horizontal driving signal waveform and the vertical driving signal waveform to obtain an accumulated driving waveform; wherein the frequency of the horizontal drive signal waveform is an integer multiple of the frequency of the vertical drive signal waveform.
In order to simplify the digital-to-analog conversion and filtering process of the driving signal, the horizontal driving signal waveform and the vertical driving signal waveform may be superimposed to generate an accumulated driving waveform. Of course, the horizontal driving signal waveform and the vertical driving signal waveform may not be superimposed, and the two waveforms may be separately subjected to digital-to-analog conversion and filtering.
If the driving is performed by accumulating the driving waveforms, a required driving signal needs to be selected when the driving control is performed. In practical application, the frequency of the horizontal driving signal is different from that of the vertical driving signal, so that the required effective driving signal can be selected according to the frequency, and the problem of mutual interference among various driving signals can be avoided while the control requirement is met. Note that the frequency of the horizontal drive signal waveform is an integer multiple of the frequency of the vertical drive signal waveform, that is, K = Fsaw/Fsin, where K is a positive integer.
In one or more embodiments of the present invention, after obtaining the accumulated driving waveforms, the method may further include: performing digital-to-analog conversion on the accumulated driving waveform to obtain an analog driving signal; and filtering the analog driving signal to obtain an output driving signal.
In practical applications, to realize the driving control of the MEMS, a digital signal needs to be converted into an analog signal. Since the analog signal obtained by conversion contains some interference signals, a filtering unit, such as a low-pass filter, may be added. And filtering to obtain the required output driving signal.
Based on the same idea, an embodiment of the present invention further provides a laser projection period processing apparatus, and as shown in fig. 5, a schematic structural diagram of the laser projection period processing apparatus provided in the embodiment of the present invention is provided, where the apparatus includes:
a resonant frequency acquisition module 51, configured to acquire a resonant frequency of the laser device;
a control word determination module 52, configured to determine a first frequency-dividing constant and a second frequency-dividing constant based on the resonant frequency of the laser device;
a first waveform obtaining module 53, configured to obtain a horizontal driving signal waveform according to the first frequency-division constant;
and a second waveform obtaining module 54, configured to obtain a vertical driving signal waveform according to the second frequency dividing constant.
Further, the control word determining module 52 is configured to determine the first frequency-dividing constant and the second frequency-dividing constant based on the laser device resonant frequency, the external fixed clock frequency, and the number of driving signal bytes.
Further, the first obtaining module 53 is configured to determine a horizontal driving signal frequency according to a first frequency-dividing constant and the laser device resonant frequency;
searching a sine wave table according to the frequency of the horizontal driving signal;
the horizontal drive signal waveform is obtained.
Further, the method for determining the horizontal clock frequency according to the first frequency-dividing constant and the resonant frequency of the laser device comprises the following steps:
Fsin=FH×Ksin;
wherein, F issinRepresents the horizontal drive signal frequency; fHRepresents the resonant frequency of the laser device; ksinRepresents the first divisionA frequency constant.
The second obtaining module 54 is configured to determine a vertical driving signal frequency according to a second frequency-dividing constant and the laser device resonant frequency;
searching a sawtooth waveform table according to the vertical driving signal frequency;
the vertical driving signal waveform is obtained.
Further, the determining of the frequency of the vertical driving signal according to the second frequency-dividing constant and the resonant frequency of the laser device includes:
Fsaw=FH×Ksaw;
wherein, F issawRepresents the vertical drive signal frequency; fHRepresents the resonant frequency of the laser device; ksawRepresenting the second frequency-dividing constant.
Further, still include: superposing the horizontal driving signal waveform and the vertical driving signal waveform to obtain an accumulated driving waveform;
wherein the frequency of the horizontal drive signal waveform is an integer multiple of the frequency of the vertical drive signal waveform.
Further, after obtaining the accumulated driving waveform, the method further includes: performing digital-to-analog conversion on the accumulated driving waveform to obtain an analog driving signal;
and filtering the analog driving signal to obtain an output driving signal.
As can be seen from the foregoing, different laser devices have different resonant frequencies, and the horizontal driving signal frequency and the vertical driving signal frequency can be set based on the resonant frequencies when the MEMS is driven to operate. Specifically, when the horizontal driving signal frequency and the vertical driving signal frequency are determined, the determination can be performed based on integral multiple of the resonance frequency, and when the driving is performed at the resonance frequency, the driving power consumption can be effectively reduced, and the electric energy can be further saved under the same driving effect. Furthermore, the horizontal driving signal frequency is set to be the integral multiple of the vertical driving signal frequency, so that the pixel display rows and columns can be kept synchronous, the pixel points in the projected image can not be subjected to position deviation, and the display effect can be effectively improved. According to the technical scheme, corresponding horizontal driving signal frequency and vertical driving signal frequency are set according to the resonance frequency of different laser devices, and meanwhile, the horizontal driving signal frequency is set to be an integral multiple of the vertical driving signal frequency; the laser projection device has lower driving power consumption on the premise of ensuring the laser projection effect.
Based on the same idea, fig. 6 provides a laser projection cycle processing system according to an embodiment of the present invention, which includes: the first frequency divider 61 and the second frequency divider 62 are configured to divide the frequency of the clock signal to obtain a first frequency dividing constant and a second frequency dividing constant.
Here, the first frequency divider 61 and the second frequency divider 62 are connected to a clock signal unit to obtain the same clock signal, and further, the clock signal is divided by the first frequency divider 61 and the second frequency divider 62 to obtain control words for controlling horizontal driving and vertical driving.
A first accumulator 631, a first waveform table 632, a second accumulator 641, a second waveform table 642 for outputting a horizontal driving signal waveform and a vertical driving signal waveform according to the first frequency division constant and the second frequency division constant.
A Direct Digital Synthesizer (DDS) is formed by the first accumulator 631 and the first wavetable 632, or by the second accumulator 641 and the second wavetable 642. The DAC in fig. 6 represents digital-to-analog conversion, and the LPF represents a low-pass filter.
Based on the same idea, as shown in fig. 7, an electronic device includes: a memory 71, a processor 72; wherein the content of the first and second substances,
the memory 71 is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 72, implement a laser projection cycle processing method as previously described.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable coordinate determination device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable coordinate determination device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable coordinate determination apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable coordinate determination device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.