0 Preface
The most basic principle of the laser ranging system is to measure the time interval of the laser pulse propagating in space, so as to obtain the measured distance. This paper studies the basic principle and implementation method of phase-based laser ranging. It combines the advantages of embedded, frequency-difference phase measurement and real-time operating system μC/OS-II. The hardware structure is reasonable and the software implementation method is flexible, which meets the requirements of networked real-time high-speed information extraction and transmission.
It avoids the problems of high labor intensity, slow data collection, long data processing time, low calculation accuracy and data cannot be directly output to other systems in traditional distance measurement systems. This system is relatively simple to implement and has the advantages of high measurement accuracy, good stability and fast speed. It has a large application space in production plants, scientific research schools, metrology institutes, etc. and has high practical value.
1 Basic principles of the system
1.1 Phase laser ranging principle
For continuous wave laser ranging, phase ranging is generally used, which mainly refers to irradiating the object to be measured with a continuously modulated laser beam, and calculating the distance D between the laser sensor and the target object to be measured from the phase change relationship generated by the round trip of the measuring beam.
Formula (1) is a phase-based ranging formula, where C is the propagation speed of light waves in the air, φ is the phase difference caused by the adjustment of the laser signal after reflection, and f is the modulation frequency of the signal. It can obtain ranging accuracy that is better than the pulse-based time-of-flight measurement method, but the ranging speed is slow, the structure is more complex, and there is a Doppler effect for high-speed moving objects.
Figure 1 is a schematic diagram of the phase laser ranging principle, where Δφ is the part of the phase delay less than 2π during the round trip of the signal, where φ= 2Nπ + Δφ, and N is the number of wavelengths contained in the round trip of the laser. Therefore, under a given modulation frequency, the distance measurement becomes the measurement of the integer number of wavelengths contained in the round trip of the laser and the measurement of the phase less than one wavelength. With the development of modern radio phase measurement technology, phase measurement can achieve very high accuracy, so phase laser ranging can also achieve very high accuracy.
1.2 Principle of difference frequency phase measurement
The principle of the difference frequency method for phase measurement is to obtain the superposition of two new frequency signal components by multiplying and mixing the master oscillation frequency and the local oscillation frequency, and then convert them into medium and low frequency signals after passing through a low-pass filter. Since the difference frequency signal still maintains the corresponding phase relationship of the original high frequency signal, measuring the phase of the medium and low frequency signal is equivalent to measuring the phase delay of the master oscillation signal after the round-trip distance. This can reduce the circuit complexity and improve the ranging accuracy.
After multiplying and mixing these two signals with the external signal U3 = I3 cos (ω1 t + φ3), we can get:
The two newly obtained signals 1 W and 2 W are then passed through low-pass filters to filter out their high-frequency components, obtaining low-frequency signals containing (ω -ω1) spectral components, and the corresponding phase information φ1 and φ2 are still retained in the filtered signals without causing the loss of phase information. The two signals are then AD sampled, and the microprocessor uses a digital signal processing algorithm to derive the phase difference Δφ, which can then calculate the distance between the emitted laser and the object to be measured.
2. Hardware structure and working principle of the system
The hardware composition of the system is shown in Figure 2, including ARM9 (S3C2440A) processor module, laser modulation drive circuit, local oscillator signal generator, laser emission circuit, laser receiving circuit, mixing filter circuit, LCD display module, keyboard input module and other parts. S3C2440A is an ARM 9 microcontroller launched by SAM SUNG. Its core is 32 bit ARM920T. Its system clock is a 400MHz CPU core operating frequency generated by the internal PLL. It also has 64 MB Flash and 64 MB SDRAM external memory. It has an internal integrated SDRAM and FLASH controller and rich functional interfaces. It is a high-speed, low-power, high-performance new processor that can be widely used in the development of communication, automobile, industrial control , PDA, medical and other systems. In this system, the ARM9 core board is used as the data acquisition control core, which generates various control signals of the A/D converter and basic data processing.
The hardware working principle of the system is as follows: The system is mainly composed of a local oscillator signal generator, a laser transmitting circuit and a receiving circuit, a mixing and filtering circuit, a processor and a display circuit. The local oscillator signal generator can generate two sinusoidal signals with a frequency difference of 1KHz, modulate the power of the transmitting laser through the laser transmitting circuit, and then convert the transmitting laser and the receiving laser into corresponding electrical signals respectively, and then transfer the phase difference information to two low-frequency signals through the mixing and filtering amplifier circuit. Finally, the ARM 9 processor collects these two low-frequency signals, calculates the phase difference and converts it into distance, and finally displays it on the display module. The system peripheral circuits include system clock, analog-to-digital conversion ADC, external interrupt, timing system, signal capture module (Capture), pulse width modulation output (PWM), etc.
3 System Software Design
Since the software functions of this system are relatively complex, including input and output modules, measurement operations and data processing, the speed and real-time requirements are relatively high. Therefore, this paper adopts the μC/OS-II real-time operating system. μC/OS-II is a simple, efficient, and open source real-time embedded operating system. The basic functions provided by μC/OS-II include task creation, operation, deletion, task priority setting, task switching, etc., and it provides four mechanisms for communication between tasks and protection of shared resources: event flags, semaphores, mutex semaphores, and mailboxes. This paper adopts the μC/OS-II real-time system, which fully reflects its simplicity and efficiency. The software design is mainly the porting of μC/OS-II and the writing of tasks. The operating system is ported to the ARM9 processor, and the task scheduling of the μC/OS-II kernel can solve the problems of complex programming, poor maintainability, and lack of real-time guarantee of the system in traditional embedded software design. The system software includes ARM programming, based on μC/OS-II operating system, using Keil uVision3 integrated development environment, and all program codes are written in C language, which has strong portability and readability.
As shown in Figure 3, the system software consists of modules such as data acquisition, processing, and display. These modules are uniformly scheduled and run by the μC/OS-II real-time operating system. In this way, the software part becomes the writing of programs for each task module. Data acquisition is completed by the AD acquisition module, and data processing is completed by the ARM communication and data processing module, DA conversion module, etc. The display is mainly the display and driver module of the LCD. The bottom-level driver includes the initialization of the system hardware, the bottom-level code for sending and receiving data on the UART interface, and the LCD driver module includes the implementation code for displaying the dots, lines, Chinese characters, etc. on the LCD screen.
4 Conclusion
This paper describes the principle of phase laser ranging, gives a detailed design of the system, and uses the ARM9 processor and introduces the embedded real-time operating system μC/OS-II. On the one hand, the real-time operating system has efficient multi-task priority management, a scalable kernel structure, strong scalability and portability, and microsecond interrupt management, which are more conducive to improving efficiency, effectively reducing the difficulty of application development, and helping to improve software development efficiency and shorten the development cycle. On the other hand, the application of embedded technology and the performance of the ARM9 processor itself provide the system with excellent hardware conditions, which improves the real-time, stability, and anti-interference of the ranging system as a whole, and has certain practical value.
Previous article:Application of S3C2410 and MBF200 in Fingerprint Collection System
Next article:Design of digital voltage-stabilized power supply for test system based on S3C2440
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- [Allwinner heterogeneous multi-core AI intelligent vision V853 development board evaluation] NPU test YOLOV3
- Common Mistakes in MSP430 Programming
- [2022 Digi-Key Innovation Design Competition] K210 driver serial port
- Considerations for selecting solid-state relays
- OMAPL138 Learning ---- Codec Engine xDAIS
- Tektronix 7x24 hours online practice camp - online experience with mainstream oscilloscopes worth 500,000 yuan with prizes!
- I'm urgently looking for a high voltage DC power supply design solution, experts, please take a look!
- Original program development environment: AVRStudio changed to IAR for AVR 7 errors and 3 warnings appeared. Please guide me
- Global chip shortage could last until 2023
- 【RPi PICO】Read the internal temperature sensor