| In modern industrial production,due to the higher and higher requirements for product quality and performance,there are also higher requirements for the control accuracy and motion stability of stepper motors.Viewed from the perspective of stepping motor servo control,the traditional incremental photoelectric encoder,due to its hardware structure and working principle,when faced with severe vibration and harsh working environment,such as oil pollution,condensation,etc.,photoelectric encoder The encoder is easily disturbed by external factors,resulting in a decrease in accuracy.Due to its complex structure and positioning assembly,there are also great challenges in the maintenance and service life of the photoelectric encoder.In some applications,it has been unable to meet the high requirements of modern stepping motors.Accuracy control requirements.The magnetic encoder has the advantages of non-contact measurement,high resolution,high stability and high precision,which can effectively avoid the life and packaging of photoelectric components in the photoelectric encoder,so it has gradually become more and more manufacturers and manufacturers.Researcher’s Choice.Magnetic encoders use the principle of magnetic field induction to achieve high-resolution position measurement with high stability and reliability.Since the sensor part of the magnetic encoder is usually packaged in a metal casing,it can better resist external interference,such as electromagnetic interference and mechanical shock.In addition,magnetic encoders can also achieve absolute position measurement,even after power failure or restart,the position information can be read accurately without re-zeroing.Therefore,this paper takes the application of stepper motors in the field of servo control as the basis,takes the high-precision position closed-loop as the main control target,adopts a new scheme,takes the magnetic encoder TLE5012 and the stepping driver TMC5160 as the main body,and designs a magnetic encoder based The miniaturized,integrated and highly integrated closed-loop stepper motor driver is used to solve a series of disadvantages of the stepper motor closed-loop control scheme using the photoelectric encoder as a synchronous detection device,and is suitable for high-precision control of stepper motors.Scenes offer a whole new alternative.This paper mainly considers the design of the closed-loop stepping motor driver comprehensively from the perspective of hardware and software.In meeting the design concept of miniaturization,integration,and high integration,the position and speed running curve of the motor can be displayed in real time by matching with the host computer H7 TOOL,and the low power consumption quality of the stepper motor can be improved by integrating an excellent chopping algorithm.PID algorithm to achieve smooth variable speed control of the motor.Taking the photoelectric encoder as the standard,the reliability and stability of the magnetic encoder in the field of stepper motor closed-loop control are verified through the position closed-loop comparison experiment under load and MATLAB data analysis,so as to prove the rationality and feasibility of this design scheme sex. |