DC Motor Physical Parameters R 5358 Electric Resistance L 3

%DC Motor Physical Parameters R 5.35,8 Electric Resistance L 3 . 93E-6; %Electric Inductance J = 8.75E-6; % Total Moment of Inertia of the Motor -L ad b = 3.867E-6; % Mot r viscus friction constant K = 0.0316 ;% motor torgue constant s = tf ( \'s\') sys-K/ (s* ((J* s+b)*(L*s+R) +K^ 2 )) %open-loop transfer function of the motor t = 0:0.01:10 u 45 *ones (1,1001); y-lsim (sys,u,t) plot (t, y) grid 1400 12000 1000 8000 6000 4000 2000 8 10 PID Kp=5, Ki - 40 Kd = 0.93; sys_1 = feedback (C*sys, 1) ;%Close-loop transfer function of the motor t = 0:0.01:10 u 45*ones (1,1001) plot (t, y) ylabel \'Position, Theta degree) qrid Response 50 40 30 S 20 10 -10 4 10 HOW WE CAN p1 t VOLATGE AND TIME (t,v)

Solution

>> Kp=5

Kp =

5

>> Ki=40

Ki =

40

>> Kd=0.93

Kd =

0.9300

>> c=[Kp,Ki,Kd]

c =

5.0000 40.0000 0.9300

>> R=5.35

R =

5.3500

>> L=3.93E-6

L =

3.9300e-006

>> J=8.75E-6

J =

8.7500e-006

>> b=3.867E-6

b =

3.8670e-006

>> K=0.0316E-6

K =

3.1600e-008

>> num=[K]

num =

3.1600e-008

>> den=[J*L b*L+J*R b*R+K*K 0]

den =

1.0e-004 *

0.0000 0.4681 0.2069 0

>> A=tf(num,den)

Transfer function:
3.16e-008
----------------------------------------------
3.439e-011 s^3 + 4.681e-005 s^2 + 2.069e-005 s
>> sys_1=feedback(A*c,1)

>> t=0:0.01:10;
>> u=45*ones(1,1001)

u =

Columns 1 through 27

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 28 through 54

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 55 through 81

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 82 through 108

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 109 through 135

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 136 through 162

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 163 through 189

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 190 through 216

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 217 through 243

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 244 through 270

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 271 through 297

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 298 through 324

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 325 through 351

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 352 through 378

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 379 through 405

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 406 through 432

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 433 through 459

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 460 through 486

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 487 through 513

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 514 through 540

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 541 through 567

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 568 through 594

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 595 through 621

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 622 through 648

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 649 through 675

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 676 through 702

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 703 through 729

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 730 through 756

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 757 through 783

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 784 through 810

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 811 through 837

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 838 through 864

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 865 through 891

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 892 through 918

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 919 through 945

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 946 through 972

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 973 through 999

45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45

Columns 1000 through 1001

45 45

>> y=lsim(sys_1,u,t)

 %DC Motor Physical Parameters R 5.35,8 Electric Resistance L 3 . 93E-6; %Electric Inductance J = 8.75E-6; % Total Moment of Inertia of the Motor -L ad b = 3.86
 %DC Motor Physical Parameters R 5.35,8 Electric Resistance L 3 . 93E-6; %Electric Inductance J = 8.75E-6; % Total Moment of Inertia of the Motor -L ad b = 3.86
 %DC Motor Physical Parameters R 5.35,8 Electric Resistance L 3 . 93E-6; %Electric Inductance J = 8.75E-6; % Total Moment of Inertia of the Motor -L ad b = 3.86
 %DC Motor Physical Parameters R 5.35,8 Electric Resistance L 3 . 93E-6; %Electric Inductance J = 8.75E-6; % Total Moment of Inertia of the Motor -L ad b = 3.86

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site