Stepping motor double-closed-loop control method and system based on PID control
A double closed-loop control, stepper motor technology, applied in the control system, motor generator control, electrical components and other directions, can solve the problem of overshoot of the stepper motor, difficult to achieve precise control of the stepper motor, etc., to solve the phenomenon of overshoot Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] Embodiment 1 of the present disclosure provides a double-closed-loop control system for a stepping motor based on PID control.
[0028] Such as figure 1 Shown a kind of stepper motor double-closed-loop control system based on PID control, comprises PID controller, driver, stepper motor and encoder, and described driver is connected with described PID controller and stepper motor respectively; The encoder is connected with the stepping motor; the PID controller includes a current loop, a speed loop and a position loop respectively connected with the encoder.
[0029] The PID controller calculates based on the total number of pulses of the encoder and the first target value set by the host computer to obtain the expected value of the position loop used to control the direction of the stepping motor; set the control coefficient through the PID controller and combine the obtained position The loop expectation value judges whether to enable the speed loop control, so that t...
Embodiment 2
[0037] Embodiment 2 of the present disclosure provides a double-closed-loop control method for a stepping motor based on PID control, and adopts the double-closed-loop control system for a stepping motor based on PID control provided in Embodiment 1.
[0038] Such as figure 2 A double closed-loop control system of a stepper motor based on PID control is shown, including the following steps:
[0039] Step S01: Calculate the pulse signal collected by the encoder to obtain the total number of pulses and the number of pulses per unit time;
[0040] Step S02: Input the obtained total number of pulses into the position loop as the first actual value and the first target value set in the host computer, and calculate the expected value of the position loop based on the PID algorithm;
[0041] Step S03: Control the rotation direction of the stepper motor according to the expected value of the position loop;
[0042] Step S04: Set the control coefficient based on the PID controller, ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


