Saturday 23 November 2013

Matlab program to design a 30 HP,440 V, 50 Hz, Delta connected Induction Motor


This post will teach you how to ulitize Matlab in Induction Motor design, this is real time engineering application example: Problem statement: Design a 30HP, 3 phase, 440V, 900 r.p.m, 50Hz, delta connected squirrel cage induction motor. Assume specific electric loading 25000, specific magnetic loading .46 Wb full load effeciency 85% power factor = .9 calculate the following i) Stator core dimension D and L ii) Number of stator slots and winding turns Matlab program: %Matlab program to design squirrel cage induction motor clc; clear all; Po = 30*.746; %kw Vin = 440; N = 900; Ns = N/60; f = 50; Bav = .46; pf = 0.9; eff = 0.85; ac = 25000; Kws = .955; phase = 3; %rating in kVA Q = Po/(eff*pf); Kw = .9; fprintf('\nProgram to design squirrel cage induction motor'); fprintf('\n_______________________'); Co = 1.11*pi*pi*Bav*ac*Kw*(10^-3); %number of poles pole = (2*f)/Ns; %Q = Co*Ns*D2L disp('Input power or rating power = '); disp(Q); D2L = Q/(Co*Ns); %for good overall design %L/tow = 1 %L*pole/pi*D D3 = (Q*pole)/(Co*Ns*pi); D = D3^(1/3); disp('Hence Diameter D = '); disp(D); disp('Hence Length L = '); L = pi*D/(pole); disp(L); %peripheral speed Va Va = pi*D*Ns; disp('Peripheral speed = '); disp(Va); if(Va<30) fprintf('\nAs Peripheral speed is less than 30m/secs so dimensions are permissable'); else fprintf('\nAs Peripheral speed is not less than 30m/sec the dimensions are not mpermissabel. But still the dimensions will be'); end phim = Bav*pi*D*L/pole; fprintf('\nFlux density phim = '); disp(phim); %number of stator turns Ts Ts = Vin/(4.44*f*phim*Kws); fprintf('\nNumber of stator turns Ts = '); disp(round(Ts)); %total number of stator slot per phase per pole Ss Ss = 3*pole*phase; fprintf('\nTotal number of stator slot per phase per pole Ss'); disp(Ss); fprintf('\nSlot pitch Yss = '); Yss = pi*D/Ss; disp(Yss); Zss = 6*round(Ts); fprintf('\nTotal Coonductors Zss = '); disp(Zss); fprintf('\nNumber of Slots = '); noofslots = Zss/Ss; disp(noofslots); fprintf('\n——————'); fprintf('\nCreated By A K Tyagi'); Program Output: Program to design squirrel cage induction motor _______________________Input power or rating power = 29.2549 Hence Diameter D = 0.3317 Hence Length L = 0.1563 Peripheral speed = 15.6318 As Peripheral speed is less than 30m/secs so dimensions are permissable Flux density phim = 0.0112 Number of stator turns Ts = 185 Total number of stator slot per phase per pole Ss 60 Slot pitch Yss = 0.0174 Total Coonductors Zss = 1110 Number of Slots = 18.5000 —————— Created By A K Tyagi>>

Thursday 21 November 2013

Wanna learn Matlab, bored from fake Matlab courses


If you really want to learn and admire the features of Matlab and are bored from the fake courses of Matlab which will never teach you about the fundamentals of Matlab join the following course. 40% ENGINEERS I meet who claim they know Matlab do not even know the fundamentals of Matlab programming. Matlab is mastered by me and I always proud of imparting my knowledge to the genuine seekers. Good Luck!!! MATLAB/SIMULINK Course structure Complete course on MATLAB Duration: 56 Hrs or 6 weeks (1.5 month) Coverage: Session 1 to 9 Fees: Rs 12,000/- Session # Title of session Brief Description Expected Duration (hrs) Sess.-1 An overview of MATLAB This session devoted to MATLAB basics like various types of windows, symbols, commonly used commands, various Formats available, mediocre arithmetic operations along with their operations, engineering programming approach with programs and simple programming exercises follows. 6(4 for illustrations & 2 for discussions with students) Sess.- 2 Intro to MATLAB programming Review of session 1 with few more illustrations and exercises so as to build up a robust foundation for a naïve programmer along with a practice session of 4-6 hrs 3 to 4 depending on the understanding of the students and a practice session of 4-6 hrs Sess.- 3 Fundamentals of MATLAB programming In this session fundamentals required for programming like variables, useful commands, arrays & their syntax matrices, arithmetic operations, relational operators, logical operators & operator precedence will be demonstrated. Further we will discuss about MATLAB graphics (2D & 3D plots), Branching & looping functions, Input & Output functions along with detailed programming problems. This session is again followed by a practice session & illustrations so as to make a good foundation for coding. 8 (4 for discussions and illustrations & 4 for programming exercises) Sess.- 4 Numeric cells & Structured Arrays This session deals with Vectors, creating Arrays & Matrices, array addressing, multi-dimensional arrays, array operations, special Matrices, polynomials, structure functions & illustrative examples 4 Sess. 5 Programming structure In this session algorithms & control structures, structured programming, step for developing a computer solution, Documenting with charts, flow chart representation for various statements, pseudo codes, finding bugs, operators, strings and conditional statements are discussed. 4 Sess. 6 Fundamentals of Simulink This session is devoted to fundamentals of Simulink and covers: Introduction to Simulink, frequently used blocks, Configuration parameters, various blocks and their description, power system simulation blockset and simulation projects. 6 (4 for discussion and 2 for illustration) Sess. 7 Applications of Basic Electrical Engineering Elementary definitions, Basic waveforms, average, rms & peak values, Ohm’s law, KCL, KVL, Dependant sources, Series/parallel circuits, Superposition, Reciprocity, Thevenin’s, Maximum power transfer theorems, Types of powers and Simulation projects 6 Sess. 8 Simulation of Rectifiers This session deals with power electronic Rectifiers. It contains introduction, performance parameters, controlled & uncontrolled switches, different types of rectifiers with various loads and their analysis and Simulation projects. 6 Sess. 9 Review & brainstorming This review and brainstorming session for setting up the things learned by you so far. One or two projects might be discussed. 2 For further enquires contact 9557069448, tyagiagam@gmail.com Visit: agamtyagi.blogspot.com regularly Following are the snaps of my active Matlab Learning centre:

Program for subplots of flowers in Matlab


clf n=4; n2=n*n; % for a 2-by-2 graphics window theta=linspace(0,2*pi,200); for j=1:n2 r=sqrt(abs(2*sin(j*theta))); plotnum=[int2str(n),',',int2str(n),',',int2str(j)]; eval(['subplot(',plotnum,')',',',' polar(theta,r)']); end

Wednesday 20 November 2013

Simple Program to transfer data in Matlab by Com ports (USB) serially


%% Create a serial object CALLED Board board = serial('COM8', 'BaudRate', 96000, 'DataBits',8); fopen(board); %This code will open and connect to COM8 with a speed of 96000 baud and %8 bits of data will be transferred to the deivice connected to the com 8 % port % you can also use fprintf command to transfer the data serially