Memuat
Memuat
Watch every step above performed live, with English narration.
0 plays
Class book
Page 1 / 7
Cover: Class PID & FOPID Metaheuristics #1: Control System: Transfer Function, Step Response, and Performance Specifications
Click a page or use ◀ ▶ to turn · swipe on mobile · to enlarge
Want to go deeper?
Join one of our courses or ask us directly on WhatsApp.
Picked from the software, topic, and level of “Class PID & FOPID Metaheuristics #1: Control System: Transfer Function, Step Response, and Performance Specifications”.
Other ways we can help with Python.
Learn with a mentor
Scheduled Simulation & Engineering courses with live guidance and a certificate.

Course/Training Ansys ~ Heat Transfer and Heat Flux Analysis
★ 5.0 (10)

Course/Training MATLAB — MATLAB App Design: The Ultimate Guide to MATLAB Apps
★ 5.0 (10)

Course/Training Ansys — Airflow Simulation of a Car Radiator with ANSYS
★ 5.0 (9)
Have it built for you
No time to learn Python? Our team can do the project for you.

Matlab Development Service — Complete Neural Signal Processing and Analysis Zero to Hero
★ 5.0 (59)

Ansys Maxwell Development Service
★ 5.0 (50)

Petrel Development Service
★ 5.0 (14)
Get notified about new Python classes
At most one email a week. Unfollow anytime with one click.
The full narration of this video. The current sentence is highlighted while the video plays; click any sentence to jump there.
Here is the final result, the DC motor model and the automatically regulated voltage generator system, or AVR, that we wrote ourselves with Python. Without a controller, AVR voltage spikes by 65% and takes 7 seconds to settle. This is the problem we will solve in this series. Let's get started. Hello, welcome to the research tutorial series on PID and fractional order PID parameter optimization using new generation metaheuristics. PID is used in more than 90% of industrial control systems, but setting its parameters is not easy. In this 6th episode series, we build everything from scratch. Transfer function, classical Ziegler-Nichols tuning, fractional order PID, whale optimization algorithm, and Harris-Hawks algorithm Optimization for DC motor and AVR, up to robustness testing and statistical analysis. In the first episode, we model the system. We open the terminal through the terminal menu, new terminal, then install numpy, skipi, and matplotlib.
We use the Skipi.signal to calculate the transfer function response, While the entire system model and algorithms are written by us.
Create the system.py file. Our transfer function is stored as a pair of numerator and denominator polynomial. Series transfer function combines several transfer functions connected in sequence, and close the loop to form the Gepersatu Plus G for unit feedback. A DC motor maps voltage to rotational speed with inertia parameters, friction, motor constant, resistance, and inductance. AVR consists of an amplifier, exciter, and generator in the forward path, As well as voltage sensors on the feedback path, each being a first-order system.
The AVR loop function places a C controller in front of the plant, so the closed-loop transfer function is C times G1 plus C times G times H. The Response tab function calculates the output for a unit step input. The rise time specification function measures the rise time from 10 to 90 percent, overshoot, settling time 2 percent, and steady-state error. A system is said to be stable if all poles, that is, the roots of the denominator, have negative real parts.
Create a test file named underscore system.py and run it. An open-loop DC motor reaches 0.0999 radians per second per volt, and with unit feedback only 0.0908, the steady-state error is very large. AVR without a controller rises quickly, rise time 0.26 seconds, but overshoot 65.2 percent, settling time 7.02 seconds, and still deviates by 0.088 per unit. Its two poles, minus 0.52 plus minus 4.66G, are very close to the imaginary axis.
Let's look at the graph. The DC motor rises smoothly but never reaches the target 1. The AVR voltage oscillates for a long time before settling below 1. The pole map explains the cause, complex poles close to the imaginary axis produce slowly damped oscillations. The task of the PI controller is to eliminate the error and dampen these oscillations.
Done. We have modeled the DC motor and AVR as transfer functions, set up a closed-loop system, calculated the step response, and measured the performance specifications and pole locations. In the next episode, we will install PID and tune it using the classical Ziegler-Nichols method. Currently working on a thesis, dissertation, or research in the field of control systems and optimization? Cerdas Inovasi Digital helps implement control systems, from modeling DC motors and AVR generators, PI tuning in Ziegler-Nichols, fractional order PID, up to meta-heuristic optimization such as whale optimization and Harris-Hawkes, as well as opening Python programming courses for electrical engineering. Want to master the entire series, from transfer functions to statistical analysis and robustness testing? All six episodes, complete with PDF step-by-step guides and source code, are available to premium tutorial subscribers. Subscribe starting at Rp69.000 per month, save 28% with the 12-month package, or pay once Rp999.000 for lifetime access. Want just one class? Buy the single class with lifetime access. Subscribe now on the premium page cerdasinovasidigital.com. Contact us via WhatsApp, or visit cerdasinovasidigital.com. Thank you for watching, see you in the next episode.
Type a question or keyword; we find the part of this episode that explains it and jump the video there.
Notes are saved with the current video time and are only visible to you.
Stuck on a step? Ask here; the instructor and other learners can answer.
No questions yet.

Cerdas Inovasi Digital Team
Software developers, BIM & 3D engineers, and AI practitioners
We build software, BIM models, games and AI automations for clients every day, and turn that hands-on work into step-by-step classes: every step is shown on screen and comes with a PDF guide you can keep.
See our clients →