ACS Lab Exp 3
ACS Lab Exp 3
for both speed and position control. Below is a step-by-step guide for simulating the DC motor control.
MATLAB CODE:
clc
clear all
close all
% Parameters of the DC motor
R = 1; % Resistance (Ohms)
L = 0.5; % Inductance (H)
K = 0.01; % Motor constant (Nm/A or Vs/rad)
B = 0.1; % Friction constant (Nms)
J = 0.01; % Inertia (kg.m^2)
% The PID gains in the controller may need to be tuned for your specific motor.
% You can use tools like pidtool or pidTuner in MATLAB to fine-tune these
% values based on the system's response.
pidtool(sys_cl_speed);
pidtool(sys_cl_position);
OUTPUT:
By using the PID TUNER, desired graph can be adjust by sliding the 'Response Time' and 'Transient Behaviour'
sliders. On Clicking the 'Show Parameters' values of PID controller and performance parmeters can be seen.
RESULT: We succesfully Simulated the Speed and position control of DC Motor using PID controller.
PID Tuner is also used to get the desired graph, for specific motors.
7EE4-22 ADVANCED CONTROL SYSTEM LAB
Practical No:-3
Objective:-Simulate Speed and position control of DC Motor.
1. What is DC Motor?