In the laser ranging technology,the distance information is considered to be one of the most important measurement indicators.With the continuous development and progress of microelectronics technology and electronic manufacturing technology,users have proposed the measurement performance of the laser ranging system in terms of accuracy and stability.In order to achieve higher application requirements,objective factors such as measurement environment,hardware failures,and differences between measured targets must be able to effectively control the errors caused by system interference,and the requirements of designing various functional modules in combination with embedded systems.Therefore,the combined application of embedded system design and laser ranging technology is conducive to obtaining more reliable and accurate distance data.At the same time,it has positive significance for research and design that can improve the comprehensive performance of the laser ranging system in the measurement environment adaptability.The specific research content of this topic is as follows :(1)Aiming at the problem that the system error generated by the laser ranging system in the data transmission process affects the measurement performance of the system,a set of embedded high-precision laser ranging system based on the principle of phase laser ranging has been researched and developed.System software and hardware design: the hardware part mainly includes device selection and circuit design.STM32F103ZET6 and STM32F030K6T6 with ARM Cortex M series as the core are selected as master and slave controllers,laser modulation circuit and photoelectric receiving and processing circuit are designed.A detailed theoretical analysis of the N value algorithm of the number of phase shift cycles and the phase measurement of the difference frequency mixing are done.The software part is based on the hardware based on the Keil5 platform for the development of the lower computer software,and combined with the VI virtual instrument LabVIEW to develop the upper computer monitoring interface,and the serial communication module,LCD liquid crystal display module and other program design,through the host controller embedded RTOS real-time operation the system μC/OS-Ⅲ realizes multi-task management and improves the real-time performance of the measurement system.(2)In the actual measurement process,the system is often interfered by objective factors such as the measurement environment,hardware failures,and differences between the measured targets,resulting in some systematic errors.The occurrence of these system errors will cause abnormal data in the intermediate measurement results.Even unknown data,etc.At the same time,the erroneous return data transmitted between systems will eventually lead to deviations from the true measurement value,thereby affecting the accuracy and stability of the system measurement.Therefore,a software method for customizing the HEX communication protocol is proposed.This method enables the system to only communicate and interact with the correct return data,avoiding the problem of incorrect measurement caused by the system directly analyzing and processing the incorrect return data,especially in the later period.When testing and analyzing a large number of measurement data samples,the accuracy and stability of the system measurement process can be improved.(3)Data collection is carried out by grouping control experiments for the above-mentioned main system errors and mathematical analysis is carried out through Matlab.Finally,the measurement accuracy of the system is verified through experiments:±2mm;measurement range: 0.05~50m;Maximum relative error MRE is less than or equal to2%,which improves the measurement accuracy and stability of the system,and can meet the design requirements of the system in terms of accuracy and stability. |