Tag: DC servo motor ESP32

1 articles found.

PID Auto-Tune DC Servo Motor with ESP32 - Proteus Simulation

PID Auto-Tune DC Servo Motor with ESP32 - Proteus Simulation: the ESP32, the TB6612FNG, the DC servo with its flywheel and encoder, and the OLED

Hello friends, I hope you all are doing great. Today, I am going to share the PID Auto-Tune DC Servo Motor with ESP32 - Proteus Simulation, the eighty-fifth project of our IoT Projects series. If you have searched for PID control of a DC motor with an ESP32, how to tune a PID controller, Ziegler-Nichols tuning, relay auto-tuning, or a DC servo with an encoder and a TB6612FNG, here is a complete one in a Proteus simulation. Anyone who has tuned a PID loop by hand knows the routine: raise the gain until the motor buzzes, back off, add some derivative, try again, and still the motor overshoots or crawls to the target. Industrial controllers have had a better way for decades: a button labelled TUNE. Press it and the controller tests the plant by itself and works out its own gains. That is what this ESP32 does with a DC servo. A bump test measures how fast the motor answers a step of voltage. A relay test makes the loop oscillate on purpose, just a little, to find the gain at which it would go unstable and the period of that oscillation. The Ziegler-Nichols rules then turn those two numbers into PID gains, and every move the servo makes is measured: rise time, overshoot and settling time. In this tutorial, we will go through the circuit, quadrature encoders, PID control, the bump test, the relay test, the tuning rules, integral windup and how a move is measured. Then we watch the whole auto-tune in the simulation and compare the quick Ziegler-Nichols gains with a no-overshoot ...