This project focuses on the dynamic modeling, analysis, and control of a second-order RLC electrical system. The transfer function of the system is derived and analyzed using MATLAB. The system is also modeled using state-space representation in Simulink, and a PID controller is designed to improve transient and steady-state performance.
- Derive and analyze the transfer function of an RLC circuit
- Analyze system time-domain response
- Design a state-space model
- Verify controllability and observability of the system
- Design and implement a PID controller
- Improve system dynamic performance
The circuit parameters used in this project:
| Parameter | Value |
|---|---|
| Resistance (R) | 9 Ω |
| Inductance (L) | 1 H |
| Capacitance (C) | 1 mF |
Sinusoidal voltage input
Capacitor voltage
The transfer function of the RLC system was derived using circuit analysis and Laplace transform techniques.
- The system has no zeros
- Poles are complex conjugate and located in the left half plane
- The system is stable
Pole values: s = -4.5 ± 31.3i
- Real part affects settling time
- Imaginary part determines oscillation frequency
- The system is underdamped
Damping ratio: ζ = 0.1423
System response was analyzed using impulse and step response simulations.
| Parameter | Value |
|---|---|
| Rise Time | 0.0252 s |
| Peak Time | 0.0702 s |
| Maximum Overshoot | 72.77 % |
| Settling Time | 0.8572 s |
| Steady-State Value | 1 |
| Maximum Output | 1.6366 |
MATLAB simulation results were validated using analytical calculations and final value theorem.
The RLC system was converted into state-space representation and implemented in Simulink.
- Inductor current
- Capacitor voltage
Controllability matrix rank: 2
Observability matrix rank: 2
These results confirm that the system is fully controllable and observable.
A closed-loop control system was designed using a PID controller.
| Parameter | Value |
|---|---|
| Kp | 4.1293 |
| Ki | 54.5229 |
| Kd | 0.0782 |
The step input final value was set to 5 for controller evaluation.
| Parameter | Before PID | After PID |
|---|---|---|
| Rise Time | 0.0252 s | 0.0155 s |
| Peak Time | 0.0702 s | 0.0323 s |
| Overshoot | 72.77 % | 9.85 % |
| Settling Time | 0.8572 s | 0.2115 s |
| Steady-State Error | 0.5 | 0 |
The PID controller significantly improved system stability and transient response.
- MATLAB
- Simulink
- Control System Toolbox
- Open MATLAB
- Run MATLAB scripts for transfer function analysis
- Open Simulink model
- Run simulation and observe system response
The following MATLAB training modules were completed during this project:
- Simulink Onramp
- Simulink Fundamentals
- Control System Modeling Essentials
- Linearization of Nonlinear Systems
- Hardware implementation
- Advanced control techniques (LQR, Adaptive Control)
- Real-time system simulation
Kerem Danışık
Electrical and Electronics Engineering Student