Professional Documents
Culture Documents
Course Instructor: Dr.Atul Kelkar Lab Instructor: Ruchir Goswami (goswami@iastate.edu !ime Allocated: " #eek !otal $oints: %&
! "b#ecti$e
!reliminary ob-ective of this lab is to get acquainted with the computer+hardware interface like dS!"C#. In this lab you will design a controller in order to control the angle of the DC motor and then implement it using dS!"C# and .anser servo rotary module. /nce the e&periment is set up( then you can check the step response and frequency response of the closed loop system.
%igure 1 &loc' diagra( of a t)*ical DC (otor !aramenter *alue 0eq 1 2.34 & 1567+48 kgm2 %eq 1 2.9&1567+:8 ;e 1 ;m 1 5.554:4'mamp <m 1 2.: ohm <2 1 <11 1 +able 1 ,ariable ,alues
$he values of parameters are given in the table 1 "ssuming that the e&ternal mechanical force 7$D8 is >ero( the transfer function from input voltage to the angle of the motor is given by
4 Procedure
4/1 Part 1 011 Points2 deri$e controller d)na(ics
'ow design a !D controller for the plant model+ ?sys7s8 in order to control the angle of the DC motor. @ollow the same procedure as in the )ab 2( i.e. calculate the damping ratio 7>eta8 and natural frequency 7omega n8 from design criteria( and then compare the desired characteristic polynomial with the characteristic polynomial of the closed loop system. $he design criteria are + overshoot A1 9B. settling time A1 2sec. >ero steady state error. Cou can use the same atlab program you have written for previous labs.
%igure ! Connections for (easuring t.e angle of t.e (otor/ Gse the FCaptureSettingsF from FData "cquisitionF tab for setting up the data capture options. $here are many other virtual visual instruments in dS!"C# software which you can try. In order to start the data acquisition( start the F"nimation modeF from the toolbar and then turn on the power supply. Gse Fnumerical inputF visual instrument to change the value of the gain. $une the gain such that the output of the gain varies from Hpi to +pi in a full rotation of the potentiometer gear. Save the measured angle in a .mat Ile and plot the angle measured by the dS!"C# during one full rotation of the potentiometer gear. @or this( rotate the potentiometer by hand and record the angle measured by dS!"C#.
Figure 3: Schematic diagram of the overall system. $he schematic diagram of software+hardware combined system is shown in figure 2. %uild a simulink model with D"C and "DC blocks as Foutput to hardwareF and Finput from hardwareF. %efore connecting the new circuit( turn on the power supply and then make the connections. @or this part of the lab( use square wave input of unit amplitude from the signal generator. <ead the angle of the motor using dS!"C# visual instruments. <ecord and save the input as well as the angle data for at least one period of the input. !lot step response by cropping the data set. Compare the e&perimental plot with the step response obtained from the matlab+ FstepF command. Comment on the e&perimental response.
3 %inal 5ords
Dhat to turn in+ $he atlab code and its output or hand calculations for the process of designing the !D controller. Clearly write the values of gains ;p and ;d. Simulink model for part 2( screen shot of dS!"C# control desk layout for part 2( plot of angle measured by dS!"C# for one complete rotation of the potentiometer gear. Simulink model for part 2( screen shot of dS!"C# control desk layout for part 2( a plot comparing square wave input and measured angle. " table for amplitude ratios and phase angles at different input frequencies. agnitude and phase bode plots. " small note on difference between e&pected 7theoretical8 responses and actual 7e&perimental8 step responses. $his lab e&ercise is a group e&ercise but write the reports independently.