| The locking screw machine is an automatic equipment for fastening screws,which can improve the production efficiency and product quality of the assembly line.However,most domestic locking screw machines currently use imported motor control systems,and limited scalability limits their application in small and medium-sized enterprises.This paper follows the design principles of embedded software and hardware,and designs a motor control system suitable for locking screw machines by studying motor control and speed measurement technology.On the basis of ensuring system performance,the scalability of system software and hardware is improved.The main research contents are as follows:(1)Aiming at the problem of torque ripple,by analyzing the structure and working principle of the brushless DC motor,a vector control strategy with high control precision is selected.In order to solve the torque ripple problem caused by the dead zone effect of the inverter,a dead zone effect compensation algorithm based on time compensation is designed.By establishing the simulation model of the brushless DC motor vector control system on the MATLAB/Simulink platform,it is verified that the vector control system has good torque control performance.(2)In order to improve the accuracy of the speed feedback in the speed control,the T method with high resolution is selected by analyzing the principle of the Hall sensor to measure the motor speed.Aiming at the problem that the measurement error is large due to the long T-method rotational speed measurement period,an improved speed measurement algorithm based on T-method is proposed.In order to detect the possible faults of the Hall sensor,a fault diagnosis algorithm based on the characteristics of the Hall signal sequence is designed.(3)Using the CH32V307VCT6 microcontroller with V4F kernel launched by Nanjing Qinheng Microelectronics in 2021 as the main control chip,a locking screw machine control system was designed following the design principles of embedded software and hardware.The test results show that the motor speed error of the system does not exceed ± 1%,and the fastening torque error rate does not exceed ±5%,which meets the needs of the locking screw machine. |