Design of Anti-interference Micro-displacement Measuring Instrument Based on Pattern Matching Algorithm#br#
ZHOU Naiyun 1 ,PENG Yuping 1 ,WU Guiling 2
1.School of Information Science and Engineering,Wuchang Shouyi University,Wuhan 40064,China;2.School of Basic Science,Wuchang Shouyi University,Wuhan 40064,China
Abstract: This project proposes a scheme for measuring minute displacements using spot detection technology
and an improved equal-thickness interference instrument composed of an STM32F103 microcontroller,an k230
camera,and a display screen.Traditional wedge interferometry is limited by manual reading errors and data
processing efficiency,making it difficult to achieve real-time dynamic measurement.In the experiment,a sodium
lamp is used as the light source,and the wedge device forms equal-thickness interference fringes.The improved
scheme introduces an STM32F103 microcontroller as the core controller,combined with a high-resolution
camera to capture real-time images of the interference fringes and transmit them to the PC.Since computer
vision has difficulty determining the direction of movement,spot detection is used in MATLAB to detect the
circular area of the image.On this basis,a pattern matching algorithm is used to enhance the contrast,and then
the moving fringes are automatically counted,and the distance between the bright and dark fringes is measured.
The accuracy of the count is verified by comparing the distances of the bright and dark fringes to calculate the
displacement;at the same time,the direction of the fringe movement is determined. Based on the linear
relationship between the number of moving fringes and the displacement value automatically calculated by the
software,the minute displacement value is calculated in real time.Finally,the calculated minute displacement
and the number of moving fringes are fitted and analyzed using MATLAB to reduce errors.In addition,the
influence of the environment on the measurement system,such as vibration,device moisture,and ambient light,
is considered and overcome. A display screen is equipped to visually present the experimental results and
facilitate real-time monitoring.The improved instrument effectively overcomes the limitations of the traditional
method,significantly improves measurement accuracy and efficiency,and realizes real-time dynamic
measurement of minute displacements.