Scanner driving method and optical fiber scanning device
By pre-stored quantified fast-axis and slow-axis drive signals in the optical fiber scanning device to ensure that the relationship between their output points is an integer multiple, the problem of image shaking caused by the DDS signal generation algorithm is solved, and stable movement of the optical fiber and image display are achieved.
Patent Information
- Application Number
- CN202011370876.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-30
AI Technical Summary
The traditional DDS signal generation algorithm cannot ensure that the frequencies of the fast-axis and slow-axis drive signals are integer multiples, resulting in the fiber being unable to completely repeat its movement in each cycle, causing the projection image to shake.
By pre-stored quantified data of fast-axis and slow-axis drive signals in the waveform memory, it is ensured that the number of slow-axis output points is an integer multiple of the number of fast-axis output points, and corresponding drive signals are generated to drive the fiber scanner.
It realizes the repetition of the movement trajectory of the optical fiber in each cycle, ensuring the stable display of the projected image and solving the problem of image shaking.
Smart Images

Figure CN114578548B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of projection display, and in particular to a scanner driving method and an optical fiber scanning device. Background Art
[0002] The imaging principle of scanning projection technology is to modulate the light corresponding to each pixel of the image to be displayed through a light source, and then drive the scanning optical fiber through a scanner or through the movement of a MEMS (English full name: Microelectro Mechanical Systems, Chinese name: micro-electromechanical system) scanning mirror to scan and output the light corresponding to each pixel, thereby projecting the light corresponding to each pixel of the image to be displayed onto the projection screen one by one to form a projection picture.
[0003] Taking the fiber optic scanning imaging system as an example, the fiber optic scanning imaging system generally includes a fiber optic scanner and a light source. The light source generates light for each pixel on the image, and then couples the light of each pixel into the optical fiber. The fiber optic scanner then drives the optical fiber to perform scanning vibration, thereby projecting the light of each pixel on the image one by one onto the projection screen to form a projection picture.
[0004] Generally speaking, in order to ensure the projection effect during the optical fiber scanning vibration process, the optical fiber must be completely repeated in each slow axis cycle. In order to make the optical fiber completely repeat in each cycle, when controlling the optical fiber scanner, the frequencies of the fast axis drive signal and the slow axis drive signal must be integer multiples. At present, when generating the fast axis drive signal and the slow axis drive signal, a general DDS (Direct Digital Frequency Synthesis) signal generation algorithm can be used.
[0005] The specific principle of the general DDS signal generator is as follows Figure 1 As shown in the figure, the phase accumulator is composed of an N-bit adder and an N-bit register, which is an extremely important part of the DDS module. Driven by the reference clock, the DDS module starts working; when each clock arrives, the accumulator accumulates the frequency control word FW and the value output by the register, and inputs the result of the addition into the waveform register, and the register transmits the data generated by the previous reference clock to the accumulator by feedback. In this way, under the action of the clock, the frequency control word FW can be accumulated continuously. At this time, the data output by the phase accumulator is used as the address, and the conversion from phase to amplitude can be completed by searching the amplitude table corresponding to the address in the waveform memory.
[0006] In the DDS module, the output frequency formula is fo=fclk*FW / 2^N; when storing the waveform ROM, in order to improve memory utilization, the depth of integer powers of 2 is often selected for storage. When calculating FW, in order to make the actual driving frequency close to the expected output frequency, the ROM step address is often not stepped by an integer power of 2, which will make the waveform output to the DA converter not completely repeated in each cycle, causing phase fluctuations in each cycle. In this way, the two driving signals cannot ensure that the waveforms in each cycle are completely repeated, and it is also impossible to make the optical fiber trajectory overlap in each slow axis cycle.
[0007] It can be seen that since the general DDS signal generation algorithm generally aims to minimize the frequency error, it cannot ensure that the frequencies of the two generated signals are integer multiples. This will make it impossible for the optical fiber to completely repeat the movement in each cycle, causing the projected image to shake. Summary of the invention
[0008] The purpose of the present invention is to provide a scanner driving method and an optical fiber scanning device to solve the technical problem that the traditional DDS signal generation algorithm in the prior art cannot ensure that the frequency is an integer multiple, resulting in shaking of the projected display image.
[0009] In order to achieve the above-mentioned object of the invention, a first aspect of an embodiment of the present invention provides a scanner driving method, which is applied to a fiber scanning device, wherein the fiber scanning device includes a fiber scanner and a waveform memory, wherein the fiber scanner includes a fast axis and a slow axis, and the waveform memory pre-stores quantized data of a fast axis driving signal and quantized data of a slow axis driving signal, wherein the fast axis driving signal and the slow axis driving signal have the same number of quantized points; the method includes:
[0010] Reading the quantized data of the fast-axis drive signal from the waveform memory according to the first memory address step to generate a fast-axis drive signal;
[0011] According to the second memory address step, the quantized data of the slow axis driving signal is read from the waveform memory to generate a slow axis driving signal; wherein the first memory address step is greater than the second memory address step, and the number of slow axis output points in a slow axis scanning cycle is an integer multiple of the number of fast axis output points in a fast axis scanning cycle;
[0012] The fast axis and the slow axis are driven respectively by the fast axis driving signal and the slow axis driving signal.
[0013] Optionally, the method for generating quantized data of a fast-axis driving signal and quantized data of a slow-axis driving signal comprises:
[0014] According to the target fast axis frequency f x, calculate the output time interval δt of the digital-to-analog converter DAC and the number of fast-axis output points N within a fast-axis scanning cycle x ;
[0015] According to the actual fast axis frequency 1 / (N x *δt), target slow axis frequency f y and the number of fast axis output points N x , calculate the number of slow axis output points N y ; Among them, N y / N x Equal to (1 / (N x *δt)) / f y The integer obtained by rounding;
[0016] The number of slow axis output points N y As the quantization points, the waveform of the fast-axis driving signal and the waveform of the slow-axis driving signal are sampled respectively to obtain quantized data of the fast-axis driving signal and quantized data of the slow-axis driving signal.
[0017] Optionally, the second memory address step is 1, and the first memory address step is equal to N. y / N x .
[0018] Optional, depending on the target fast axis frequency f x , calculate the output time interval δt of the digital-to-analog converter DAC and the number of fast-axis output points N within a fast-axis scanning cycle x ,include:
[0019] Determine the range of the output time interval δt according to the sampling theorem and the maximum update rate of the DAC;
[0020] Determine all possible candidate values of δt according to the range of the output time interval δt and the adjustment accuracy of the DAC;
[0021] According to the target fast axis frequency f x , determine the N corresponding to each of the δt alternative values x Alternative value;
[0022] Select the δt candidate value with the smallest period error as the output time interval δt of the DAC, and select the N corresponding to the δt candidate value with the smallest period error. x The alternative value is used as the number of fast axis output points N x ; Wherein, the periodic error refers to δt*N x and 1 / f x The difference between .
[0023] Optionally, if there are multiple candidate values of δt and corresponding Nx When the candidate value minimizes the period error, the smallest candidate value of δt is selected as the time interval δt of the DAC, and the N corresponding to the smallest candidate value of δt is selected. x The alternative value is used as the number of fast axis output points N x .
[0024] Optionally, the starting position of the fast-axis drive signal read from the waveform memory is calculated by the quantization point number and the initial phase of the fast-axis drive signal; the starting position of the slow-axis drive signal read from the waveform memory is calculated by the quantization point number and the initial phase of the slow-axis drive signal.
[0025] Optionally, the fast-axis driving signal and the slow-axis driving signal are of the same signal type, and the fast-axis driving signal and the slow-axis driving signal share a set of quantized data.
[0026] A second aspect of an embodiment of the present invention provides a fiber optic scanning device, comprising a fiber optic scanner, a waveform memory, a processor and a computer-readable storage medium, wherein the fiber optic scanner comprises a fast axis and a slow axis, and the waveform memory pre-stores quantized data of a fast axis drive signal and quantized data of a slow axis drive signal, wherein the fast axis drive signal and the slow axis drive signal have the same number of quantized points; and a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the processor executes the method described in the first aspect.
[0027] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:
[0028] In the scheme of the embodiment of the present invention, by pre-storing the quantized data of the fast-axis drive signal and the quantized data of the slow-axis drive signal in the waveform memory, the quantized points of the fast-axis drive signal and the slow-axis drive signal are the same. When outputting the drive signal, by ensuring that the number of slow-axis output points in a slow-axis scanning cycle is an integer multiple of the number of fast-axis output points in a fast-axis scanning cycle, it is possible to ensure that the frequencies of the two output signals are integer multiples, thereby solving the technical problem in the prior art that the traditional DDS signal generation algorithm cannot ensure that the frequency is an integer multiple, resulting in shaking of the projected display image, so that the movement trajectory of the optical fiber is repeated in each cycle, thereby achieving the technical effect that the image can be stably displayed. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor:
[0030] Figure 1 It is a schematic diagram of a general DDS signal generator in the prior art;
[0031] Figure 2A-2B Schematic diagram of the structure of the optical fiber scanning projection imaging system in an embodiment of the present invention;
[0032] Figure 2C is a schematic diagram of a fast axis and a slow axis of an optical fiber scanner in an embodiment of the present invention;
[0033] Figure 3 A schematic flow chart of a scanner driving method provided by an embodiment of the present invention;
[0034] Figure 4 A schematic flow chart of a method for generating quantized data of a fast-axis driving signal and quantized data of a slow-axis driving signal provided by an embodiment of the present invention;
[0035] Figure 5A A schematic diagram of a waveform of a fast axis driving signal provided by an embodiment of the present invention;
[0036] Figure 5B A quantized data table of a fast axis driving signal provided by an embodiment of the present invention;
[0037] Figure 6 A schematic flow chart of a method for calculating an output time interval and a fast axis output point number provided by an embodiment of the present invention;
[0038] Figure 7 A schematic diagram of a scanning trajectory when the fast and slow axis frequencies are integer multiples provided in an embodiment of the present invention;
[0039] Figure 8 A schematic diagram of a scanning trajectory when the fast and slow axis frequencies are non-integer multiples provided in an embodiment of the present invention;
[0040] Fig. 9 A schematic diagram of a module of an optical fiber scanning device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The fiber scanning projection imaging system uses the actuator in the fiber scanner to drive the optical fiber to vibrate at high speed, and cooperates with the laser modulation algorithm to realize the display of image information. Figure 2A As shown, an existing fiber scanning projection imaging system mainly includes: a processor 100, a laser group 110, a fiber scanner 120, a transmission fiber 130, a light source modulation circuit 140, a scanning drive circuit 150 and a beam combining unit 160.
[0043] The processor 100 may be a graphics processing unit (GPU), a central processing unit (CPU), or other chips or circuits with control functions and image processing functions, which are not specifically limited here.
[0044] When the system is working, the processor 100 can control the light source modulation circuit 140 to modulate the laser group 110 according to the image data to be displayed. The laser group 110 includes multiple monochromatic lasers, which emit light beams of different colors. Figure 2A As can be seen in the figure, the laser group can specifically use three color lasers, namely red (Red, R), green (Green, G), and blue (Blue, B). The light beams emitted by the lasers in the laser group 110 are combined into a laser beam by the beam combining unit 160 and coupled into the transmission optical fiber 130.
[0045] The processor 100 may also control the scanning driving circuit 150 to drive the optical fiber scanner 120 to scan, thereby scanning and outputting the light beam transmitted in the transmission optical fiber 130 .
[0046] The light beam scanned and output by the fiber scanner 120 acts on a certain pixel position on the surface of the medium, and forms a light spot at the pixel position, thereby realizing the scanning of the pixel position. Driven by the fiber scanner 120, the output end of the transmission fiber 130 sweeps along a certain scanning trajectory, so that the light beam moves to the corresponding pixel position for scanning. In the actual scanning process, the light beam output by the transmission fiber 130 will form a light spot with corresponding image information (such as color, grayscale or brightness) at each pixel position. In one frame of time, the light beam traverses each pixel position at a sufficiently high speed to complete the scanning of one frame of image. Due to the characteristic of "visual residual" when the human eye observes things, the human eye cannot perceive the movement of the light beam at each pixel position, but sees a complete frame of image.
[0047] Continue to refer Figure 2B , which is the structure of the existing optical fiber scanner 120, mainly includes: a piezoelectric actuator 121, an optical fiber cantilever 122, a lens 123, a scanner package 124 and a fixing member 125. The piezoelectric actuator 121 is fixed in the scanner package 124 by the fixing member 125, and the transmission optical fiber 130 extends from the free end of the actuator 121 to form the optical fiber cantilever 122 (also called scanning optical fiber). When working, the piezoelectric actuator 121 vibrates along the Y-axis direction and the X-axis direction under the driving of the scanning driving signal. Driven by the piezoelectric actuator 121, the free end of the optical fiber cantilever 122 sweeps along a preset trajectory and emits a light beam, and the emitted light beam can be scanned on the surface of the medium through the lens 123.
[0048] Continue to refer Figure 2C , which is a schematic diagram of the fast axis and slow axis of the optical fiber scanner. The piezoelectric actuator 121 includes a fast axis 1210 and a slow axis 1211. The slow axis 1211 can drive the fast axis 1210 to vibrate in a first direction (Y-axis direction), and the fast axis 1210 can vibrate in a second direction (X-axis direction). One end of the optical fiber exceeds the fast axis 1210 and forms an optical fiber cantilever 122. The free end of the optical fiber cantilever 122 is eventually driven to sweep in a three-dimensional space in a composite direction of the first direction and the second direction, and the emitted light beam can form an image on the surface of the medium.
[0049] In an embodiment of the present invention, the optical fiber scanning device includes an optical fiber scanner and a waveform memory, wherein the optical fiber scanner includes a fast axis and a slow axis, and the waveform memory pre-stores quantized data of a fast axis driving signal and quantized data of a slow axis driving signal, wherein the fast axis driving signal and the slow axis driving signal have the same quantized points. The fast axis driving signal is used to drive the fast axis to vibrate along the X direction, and the slow axis driving signal is used to drive the slow axis to drive the fast axis and the scanning optical fiber to vibrate along the Y direction, thereby forming a waveform as shown in FIG. Figure 2A The scanning track shown in ; the waveform memory can be a ROM (Read Only Memory).
[0050] Please refer to Figure 3 , Figure 3 A schematic flow chart of a scanner driving method provided in an embodiment of the present invention includes the following steps.
[0051] Step 201 : Read the quantized data of the fast-axis driving signal from the waveform memory according to the first memory address step, and generate a fast-axis driving signal.
[0052] Step 202 : Read the quantized data of the slow-axis driving signal from the waveform memory according to the second memory address stepping, and generate a slow-axis driving signal.
[0053] Step 203: driving the fast axis and the slow axis respectively by using the fast axis driving signal and the slow axis driving signal.
[0054] In an embodiment of the present invention, the quantized data of the waveforms of the fast-axis drive signal and the slow-axis drive signal are quantized and stored in the waveform memory of the optical fiber scanning device; when the optical fiber scanning device needs to drive the actuator to vibrate, the quantized data is read from the waveform memory according to the first memory address step of the fast axis, the second memory address step of the slow axis and the initial phase of each, and then the drive signal is generated by the DAC (Digital-to-Analog Converter) corresponding to the fast axis and the slow axis, respectively, so as to realize the driving of the fast axis and the slow axis. For an optical fiber scanner, after its factory setting is completed, the waveform data may be solidified and stored in the ROM. For a piezoelectric actuator, the quantized data of its drive signal includes a voltage value. Among them, the starting position of reading the fast-axis drive signal can be calculated by the number of quantization points and the initial phase of the fast-axis drive signal; the starting position of reading the slow-axis drive signal can be calculated by the number of quantization points and the initial phase of the slow-axis drive signal.
[0055] In the embodiment of the present invention, the address step of the first memory is greater than the address step of the second memory, that is, the address step of the output fast-axis drive signal is greater than the address step of the output slow-axis drive signal, the update rate of the fast-axis drive signal and the slow-axis drive signal is the same, and the number of slow-axis output points in a slow-axis scanning cycle is an integer multiple of the number of fast-axis output points in a fast-axis scanning cycle, which can ensure that the frequencies of the two output signals are integer multiples. In the embodiment of the present invention, there is no need to use the phase accumulator and frequency control word FW in the traditional DDS signal generator, thereby solving the technical problem in the prior art that the traditional DDS signal generation algorithm cannot ensure that the frequency is an integer multiple, resulting in shaking of the projected display image, so that the motion trajectory of the optical fiber is repeated in each cycle, that is, the fast axis and the slow axis are completely repeated in each of their respective motion cycles, and the number of fast-axis cycles in each slow-axis cycle is an integer, thereby achieving the technical effect that the image can be stably displayed.
[0056] In the embodiment of the present invention, the driving signal may be a sine wave signal, a triangle wave signal or a sawtooth wave signal, etc. The signal types of the fast axis driving signal and the slow axis driving signal may be the same or different, and the present invention does not impose any limitation on this.
[0057] In a possible implementation, when the signal types of the fast-axis drive signal and the slow-axis drive signal are the same, the fast-axis drive signal and the slow-axis drive signal can share a set of quantized data, and the quantized data can be stored in the waveform memory in the form of a quantized data table, but the address stepping when reading the data is different, and the initial phase can be the same or different.
[0058] Next, the method for generating the quantized data of the fast-axis driving signal and the quantized data of the slow-axis driving signal in the embodiment of the present invention is described. When two signals need to be generated, the output time interval δt and the number of output points N should be calculated based on the signal with a higher frequency (for the optical fiber scanner, the fast-axis frequency is greater than the slow-axis frequency), so that the frequency of the driving signal finally obtained according to the output time interval δt and the number of output points N is closest to the desired frequency (i.e., the target fast-axis frequency f x ),like Figure 4 As shown, the generating method includes the following steps.
[0059] Step 301: according to the target fast axis frequency f x , calculate the output time interval δt of the digital-to-analog converter DAC and the number of fast-axis output points N within a fast-axis scanning cycle x .
[0060] The DAC output time interval δt refers to the time interval of the DAC outputting a point; in order to maximize the swing amplitude of the optical fiber, the target fast axis frequency can be close to or equal to the natural frequency of the optical fiber. It should be noted that the target fast axis frequency is not the final fast axis drive frequency (i.e., the actual fast axis frequency). The final fast axis drive frequency is determined by factors such as the target fast axis frequency and the performance of the DAC. As can be seen from step 301, the final fast axis drive frequency is equal to 1 / (N x *δt).
[0061] Step 302: According to the actual fast axis frequency 1 / (N x *δt), target slow axis frequency f y and the number of fast axis output points N x , calculate the number of slow axis output points N y ; Among them, N y / N x Equal to (1 / (N x *δt)) / f y The integer obtained by rounding. Therefore, according to (1 / (N x *δt)) / f y The rounded integer and the number of fast axis output points N calculated in step 301 x , we can calculate the number of slow axis output points N y Similarly, the target slow axis frequency is not the final slow axis drive frequency. The final slow axis drive frequency is (1 / (N x *δt)) / f y The rounded integer and the number of fast axis output points N calculated in step 301 x Decide.
[0062] Step 303: Output the number of slow axis points N y As the quantization points, the waveform of the fast-axis driving signal and the waveform of the slow-axis driving signal are sampled respectively to obtain quantized data of the fast-axis driving signal and quantized data of the slow-axis driving signal.
[0063] In the embodiment of the present invention, it is assumed that the driving signal is a sine wave signal, such as Figure 5A As shown in FIG. 1 , it is a schematic diagram of the waveform of the fast-axis driving signal. After the quantization points are determined, the waveform of the fast-axis driving signal is sampled according to the quantization points to obtain the quantized data of the fast-axis driving signal. Figure 5B The table shows the quantized data of the fast axis driving signal, each quantized data includes the voltage quantized value of the driving signal. In the embodiment of the present invention, the quantized data of the slow axis driving signal can be obtained by the same method, which will not be described in detail here.
[0064] In the embodiment of the present invention, when reading quantized data from the waveform memory to generate a fast-axis drive signal and a slow-axis drive signal, the second memory address step may be 1, and the first memory address step is equal to N. y / N x .
[0065] Next, the implementation of step 301 is described. Figure 6 As shown, the following steps are included.
[0066] Step 3011, determine the range of the output time interval δt according to the sampling theorem and the maximum update rate of the DAC. The sampling theorem means that during the conversion of analog / digital signals, when the sampling frequency fs is greater than twice the highest frequency fmax in the signal (fs>2*fmax), the digital signal after sampling completely retains the information in the original signal.
[0067] Step 3012, determine all possible alternative values of δt according to the range of the output time interval δt and the adjustment accuracy of the DAC. In the embodiment of the present invention, the chip model DAC8563 is used as an example for explanation. δt=1+n*0.02 is because the selected DAC chip is DAC8563, and the highest control interface (using this interface to input digital signals) frequency supported by this chip is 50Mhz (corresponding to a period of 0.02us), and the highest update rate is 1us to output 1 point (that is, 50 50Mhz clock cycles to output 1 point. When adjusting the update rate, it can only be adjusted according to an integer number of cycles, that is, δt=0.02*(50+n), n is an integer greater than or equal to 0, that is, 0, 1, 2, 3..., so δt=1+n*0.02. So how to enumerate all δt and N values? Since T=δt*N=(1+n*0.02)*N, and the fast axis period T is the known value we expect (the target fast axis frequency f x is known, and the corresponding expected fast axis period T is also known), and δt needs to follow the sampling theorem, resulting in a limited value, so that all possible N values can be obtained according to each n, that is, all possible δt and N are enumerated.
[0068] Step 3013, according to the target fast axis frequency f x , determine the N corresponding to each of the δt alternative values x Alternative value. x When selecting alternative values, enumerate the values that make δt*N according to each δt alternative value x Closest to T x (T x =1 / f x ) value of N, we can get the corresponding N x Alternative value.
[0069] Step 3014, selecting the δt candidate value with the smallest period error as the output time interval δt of the DAC, and selecting N corresponding to the δt candidate value with the smallest period error x The alternative value is used as the number of fast axis output points N x ; Wherein, the periodic error refers to δt*N x and 1 / f x The difference between .
[0070] In the embodiment of the present invention, in order to ensure the output accuracy of the waveform of the driving signal, if there are multiple candidate values of δt and corresponding N x When the candidate value minimizes the period error, the smallest candidate value of δt is selected as the time interval δt of the DAC, and the N corresponding to the smallest candidate value of δt is selected. x The alternative value is used as the number of fast axis output points N x , so that the DAC outputs as many points as possible in one cycle to ensure the accuracy of the waveform.
[0071] It can be seen from the above-mentioned scheme of the embodiment of the present invention that in order to make the frequency of the two-way DDS output signal an integer multiple, the traditional DDS signal generation method cannot use a fixed number of points (one cycle) when quantizing the waveform ROM, but needs to determine the specific number of quantization points N (one cycle) according to the two-way signal frequency currently expected to be generated. Since two-way signals need to be generated, the same update rate is selected in the control of the two-way DAC (that is, the time when the fast axis corresponds to the DAC output of one point and the time when the slow axis corresponds to the DAC output of one point are the same, both are δt, and the output is synchronized) to ensure that the output error of the two-way signal is minimized, and the period of the output signal is T=δt*N. If the periods of the two-way signals are integer multiples, the frequencies of the two are also integer multiples. The periods of the two-way signals are T and T respectively. x =δt*N x , T y =δt*N y , then N x and N y It can be guaranteed that the frequencies of the two output signals are integer multiples.
[0072] When two signals are generated, the δt and N values should be calculated based on the high-frequency signal first, so that they are closest to the expected frequency f. As described in the above embodiment, δt is limited to an acceptable range of output rate according to the sampling theorem, so that all δt values can be enumerated, and then the N value that makes δt*N close to T is enumerated according to each δt value, and then the δt with the smallest period error and the corresponding N value are selected. If there are multiple results that minimize the period error and are the same, the group with the smallest δt is selected, so that the DAC outputs as many points as possible in one cycle to ensure the accuracy of the waveform.
[0073] Assume f y <f x , f x is the target fast axis frequency, f y For the target slow axis frequency, by enumerating all possible δt and N x value, select N x , and then according to N x and (1 / (N x *δt)) / f y Determine N y , and then the two signals are divided into points N y Quantization is performed. When outputting signals, the ROM address step of the low-frequency signal is 1, and the ROM address step of the high-frequency signal is N. y / N x The time interval for the DAC of the two signals to update a point is δt, the phase adjustment step of the two signals is 1, and the phase adjustment accuracy is 2π / N y .
[0074] like Figure 7 As shown in the figure, taking the two signal frequencies of 200Hz and 10Hz as an example, when the frequencies of the two DDS signals are strictly integer multiples and the initial phases are both -π / 2, the motion trajectory of the optical fiber is Figure 7 shown.
[0075] like Figure 8 As shown in the figure, when the two DDS signals are not integer multiples, taking the frequencies of 100.6 Hz and 10 Hz as an example, the optical fiber will appear as follows Figure 8 The track shown will cause the image to shake when displayed.
[0076] Based on the same inventive concept, an embodiment of the present invention further provides a fiber scanning device, such as Fig. 9 As shown, Fig. 9 A schematic diagram of an optical fiber scanning device provided in an embodiment of the present invention; the optical fiber scanning device includes an optical fiber scanner 901, a waveform memory 902, a processor 903 and a computer-readable storage medium 904, the optical fiber scanner 901 includes a fast axis and a slow axis, the waveform memory 902 pre-stores quantized data of a fast axis drive signal and quantized data of a slow axis drive signal, and the fast axis drive signal and the slow axis drive signal have the same number of quantized points; the computer-readable storage medium 904 stores a computer program, and when the computer program is executed by the processor 903, the processor 903 executes the method in any of the above embodiments.
[0077] The fiber optic scanning device in the embodiment of the present invention can be applied to various projection display devices, such as: AR (English full name: Augmented Reality; Chinese name: augmented reality) equipment, laser TV, laser projector, etc. In these projection display devices, one fiber optic scanning device can be used for scanning and display, or multiple fiber optic scanning devices can be spliced for display, and the present invention does not impose any restrictions on this.
[0078] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:
[0079] In the scheme of the embodiment of the present invention, by pre-storing the quantized data of the fast-axis drive signal and the quantized data of the slow-axis drive signal in the waveform memory, the quantized points of the fast-axis drive signal and the slow-axis drive signal are the same. When outputting the drive signal, by ensuring that the number of slow-axis output points in a slow-axis scanning cycle is an integer multiple of the number of fast-axis output points in a fast-axis scanning cycle, it is possible to ensure that the frequencies of the two output signals are integer multiples, thereby solving the technical problem in the prior art that the traditional DDS signal generation algorithm cannot ensure that the frequency is an integer multiple, resulting in shaking of the projected display image, so that the movement trajectory of the optical fiber is repeated in each cycle, thereby achieving the technical effect that the image can be stably displayed.
[0080] All features disclosed in this specification, or steps in all methods or processes disclosed, except mutually exclusive features and / or steps, can be combined in any manner.
[0081] Any feature disclosed in this specification (including any additional claims, abstract and drawings), unless otherwise stated, may be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
[0082] The present invention is not limited to the above-mentioned specific embodiments, but extends to any new features or any new combination disclosed in this specification, as well as any new method or process steps or any new combination disclosed.
Claims
1. A scanner driving method, applied to an optical fiber scanning device, wherein the optical fiber scanning device comprises an optical fiber scanner and a waveform memory, wherein the optical fiber scanner comprises a fast axis and a slow axis, wherein: The waveform memory pre-stores quantized data of a fast-axis driving signal and quantized data of a slow-axis driving signal, and the fast-axis driving signal and the slow-axis driving signal have the same number of quantized points; the method comprises: Reading the quantized data of the fast-axis drive signal from the waveform memory according to the first memory address step to generate a fast-axis drive signal; According to the second memory address step, the quantized data of the slow axis drive signal is read from the waveform memory to generate a slow axis drive signal; wherein the first memory address step is greater than the second memory address step, the fast axis drive signal and the slow axis drive signal have the same update rate, and the number of slow axis output points in a slow axis scanning cycle is an integer multiple of the number of fast axis output points in a fast axis scanning cycle; The fast axis and the slow axis are driven respectively by the fast axis driving signal and the slow axis driving signal.
2. The method according to claim 1, characterized in that A method for generating quantized data of a fast-axis driving signal and quantized data of a slow-axis driving signal, comprising: According to the target fast axis frequency f x , calculate the output time interval δt of the digital-to-analog converter DAC and the number of fast-axis output points N within a fast-axis scanning cycle x ; According to the actual fast axis frequency 1 / (N x *δt), target slow axis frequency f y and the number of fast axis output points N x , calculate the number of slow axis output points N y ; Among them, N y / N x Equal to (1 / (N x *δt)) / f y The integer obtained by rounding; The number of slow axis output points N y As the quantization points, the waveform of the fast-axis driving signal and the waveform of the slow-axis driving signal are sampled respectively to obtain quantized data of the fast-axis driving signal and quantized data of the slow-axis driving signal.
3. The method according to claim 2, characterized in that The second memory address step is 1, and the first memory address step is equal to N y / N x .
4. The method according to claim 2, characterized in that According to the target fast axis frequency f x , calculate the output time interval δt of the digital-to-analog converter DAC and the number of fast-axis output points N within a fast-axis scanning cycle x ,include: Determine the range of the output time interval δt according to the sampling theorem and the maximum update rate of the DAC; Determine all possible candidate values of δt according to the range of the output time interval δt and the adjustment accuracy of the DAC; According to the target fast axis frequency f x , determine the N corresponding to each of the δt alternative values x Alternative value; Select the δt candidate value with the smallest period error as the output time interval δt of the DAC, and select the N corresponding to the δt candidate value with the smallest period error. x The alternative value is used as the number of fast axis output points N x ; Wherein, the periodic error refers to δt*N x and 1 / f x The difference between .
5. The method according to claim 4, characterized in that If there are multiple candidate values of δt and corresponding N x When the period error is minimized, the smallest candidate δt value is selected as the time interval δt of the DAC, and the N corresponding to the smallest candidate δt value is selected. x The alternative value is used as the number of fast axis output points N x .
6. The method according to claim 1, characterized in that The starting position of the fast-axis drive signal read from the waveform memory is calculated by the quantization point number and the initial phase of the fast-axis drive signal; the starting position of the slow-axis drive signal read from the waveform memory is calculated by the quantization point number and the initial phase of the slow-axis drive signal.
7. The method according to claim 1, characterized in that The fast-axis driving signal and the slow-axis driving signal have the same signal type, and the fast-axis driving signal and the slow-axis driving signal share a set of quantized data.
8. A fiber scanning device, comprising a fiber scanner, a waveform memory, a processor and a computer readable storage medium, wherein the fiber scanner comprises a fast axis and a slow axis, and wherein: The waveform memory pre-stores quantized data of a fast-axis driving signal and quantized data of a slow-axis driving signal, and the fast-axis driving signal and the slow-axis driving signal have the same number of quantized points; The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Electric power subharmonic digital signal source
CN102707106A
Grid type optical fiber scan imaging system and control method and application thereof
CN109581654A
Grid type optical fibre scanner, driving method of grid type optical fibre scanner, and projection display equipment
CN110426842A
Scanning laser microscope, its control method and program
JP2005115072A
Digital filter and information communication apparatus
JP2006197637A
