Pankaj(ADS)

Featured post

Python Codes for Electric Potential

Python Codes for Electric Potential Code:- import numpy as np import math import matplotlib.pyplot as plot ''' Calculating Elect...

Monday, 20 July 2020

DC Motor (Drive)- Matlab

0 comments
Matlab Codes for DC Motor Drive

State-Space Equation for DC Motor Drive

and

Matlab Code

-------% PARAMETERS %------(Pankaj Aswal)----------%
%Rm  = 2.06;             % Motor resistance (ohm)
%Lm  = 0.000238;         % motor inductance (Henrys)
%Kb = 1/((406*2*pi)/60); % Back EMF constant (Volt-sec/Rad)
%Kt = 0.0235;            % Torque constand (Nm/A)
%Jm = 1.07e-6;           % Rotor inertia (Kg m^2)
%bm = 12e-7;             % MEchanical damping (linear model of
                        % friction: bm * dth)
%---------% $$$$$$$$$$$$$$$$$$ %----------------
Rm  = 2.06;             
Lm  = 0.000238;         
Kb = 1/((406*2*pi)/60); 
Kt = 0.0235;            
Jm = 1.07e-6;           
bm = 12e-7;

A = [-bm/Jm   -Kb/Jm ;
      Kt/Lm   -Rm/Lm ];  
B = [0 1/Lm ]';
C = [0 1; 0 0];
D = [0 0]';
sys = ss(A, B, C, D);
[num den] = ss2tf(sys.a, sys.b, sys.c, sys.d, 1);
E = tf(num(2,:), den)
elim = boolean([1 0]');
sys_blue = modred(sys, elim);
ltiview(sys_blue)
figure;
ltiview(sys)

Output Of Scope
1.
2.

No comments:

Post a Comment