Professional Documents
Culture Documents
Me210 Motorcharacterization
Me210 Motorcharacterization
THIS SCRIPT IS MODIFIED FROM A SCRIPT OBTAINED NI ME112 FOR USE IN CHARACTERIZING MOTORS THIS IS THE RESULT OF INTIAL EXPERIMENTATION WITH OUR MOTOR AND CALCULATIONS
MADE FROM THE RESULT OF THOSE EXPERIMENTS
This script plots out motor plots for two different voltages given input data for I_noload, W_noload (in
rpm) and I_stall at two different voltages Modified 1.25-2011 -mrc
clear all; close all;
RPM_TO_IPS = in2rot.*m2s;
RPM_TO_RADPERSEC = .1047;
Motor Characterization
T_Stall_1 = (K1*V1)/R;
T_Stall_2 = (K1*V2)/R;
%calculated step size for plots
N = 100;
Tstep1 = (T_Stall_1-T_f_1)/N;
Tstep2 = (T_Stall_2-T_f_2)/N;
Wstep1 = (W_noLoad_1 - 0)/N;
Wstep2 = (W_noLoad_2 - 0)/N;
Istep1 = (I_Stall_1-I_noLoad_1)/N;
Istep2 = (I_Stall_2-I_noLoad_2)/N;
%torque values
Torque1 = 0:Tstep1:(T_Stall_1 - T_f_1);
Torque2 = 0:Tstep2:(T_Stall_2 - T_f_2);
%omega values
W1 = W_noLoad_1:-Wstep1:0;
W2 = W_noLoad_2:-Wstep2:0;
%current values
I1 = I_noLoad_1:Istep1:I_Stall_1;
I2 = I_noLoad_2:Istep2:I_Stall_2;
%calculated power
Pout1 = Torque1.*W1;
Pout2 = Torque2.*W2;
%calculated efficiency
Efficiency1 = (1-I_noLoad_1./I1).*(1-I1./I_Stall_1);
Efficiency2 = (1-I_noLoad_2./I2).*(1-I2./I_Stall_2);
%Plot 1: Torque-Speed
figure(1)
clf
hold on
plot(W1,Torque1,'linewidth',2);
plot(W2,Torque2,'r','linewidth',2);
grid on
title('Torque-Speed Curve')
xlabel ('speed (rad/s)','fontsize',14)
ylabel ('torque (Nm)','fontsize',14)
%Plot 2: Power-Current
figure(2)
clf
plot(I1,Pout1,'linewidth',2);
plot(I2,Pout2,'r','linewidth',2);
grid on
title('Power-Current Curve')
xlabel('Current [amps]','fontsize',14)
ylabel('Power
[W]','fontsize',14)
%Plot 3: Power-Speed
Motor Characterization
figure(3)
hold on
plot(W1,Pout1,'linewidth',2);
plot(W2,Pout2,'r','linewidth',2);
plot(57.*RPM_TO_RADPERSEC, 12*.275, 'bO')
grid on
xlabel('Angular Velocity [rad/s]')
ylabel('Power
[W]')
title('Power-Speed Curve')
hold off
%Plot 4: Efficiency-Current
figure(4)
hold on
plot(I1,Efficiency1,'linewidth',2);
plot(I2,Efficiency2,'r','linewidth',2);
plot(.275, 0:.01:.6, 'bo');
grid on
xlabel('Current [amps]')
ylabel('Efficiency [ ]')
title('Efficiency-Current Curve')
Motor Characterization
Motor Characterization