SCE3113 - Controle Systems 3 Nicky Magro Lab Assignment – 3 Introduction The Proportional Integral Derivative (PID) controller is a very popular type of controller. The goal of this lab was to investigate the implementation of a PID controller, by implementing a proportional and proportional-derivative controller schemes on the servo mechanism. Theory The controller output m(t) depends on the error signal e(t) according to the equation below. Taking πΎπ , ππ and ππ as the tuning parameters, respectively being proportional, derivative and integral parameters. π(π‘) = πΎπ (π(π‘) + ππ ππ 1 + ∫ π(π‘)ππ‘) ππ‘ ππ The above equation was represented by the block diagram in figure 1, the transfer function represented by the plant and the controller represented by the PID controller block. -figure 1: System Block diagram The proportional term is a control action which is directly proportional to the error, increasing the proportional gain reduces the systems response time. This can lead to overshoot at larger values of gain which may lead to oscillations and instability which is not ideal. The integral term is dependent on the accumulation of error over time, this results in reduced steady state error by adjusting the degree of control. This leads to improved accuracy, however it results in a slower response time and an increased value for overshoot, potentially negatively impacting the system stability. The derivative term is proportional to the rate of change of the error, this proves a predictive action that can reduce future error resulting in larger values of damping. While this doesn’t inherently effect the steady state error it may reduced to increased noise sensitivity. The plant consists of a permanent magnet DC motor, this was placed in a system that was configured in closed loop format to work as a servo motor. The they of control was adjusted using the program, using this the systems PID terms were adjusted as needed. The DC motor consists of an armature, with a coil providing the inductance πΏ and resistance π , since the system made use of a small motor the inductive term was assumed to be negligible due to the size of π . The voltage at the armature π was responsible for controlling the torque of the motor, by controlling the magnitude of the magnetic field. It is also responsible for the back emf which was generated as the armature rotated through the field, this is directly proportional to the angular velocity π. Assuming the constant of proportionality of the torque and the coils current and the coils back emf and the angular velocity are equal, they were denoted by the constant ππ . Hence the transfer function of the motor was derived according to the diagram below. -figure 2: DC motor equivalent diagram By taking Kirchoff’s equation of the circuit above the below equation was derived: π£(π‘) = πΏ • ππ + π π (π‘) + ππ π(π‘) ππ‘ The inductance was taken to be very low and the Laplacian was calculated: π(π ) = π πΌ(π ) + ππ π(π ) πΌ(π ) = π(π ) − ππ π(π ) π The motor torque can be denoted by the following equation: ππ (π‘) = ππ π(π‘) π½π′ (π‘) + πΉπ(π‘) = ππ (π‘) • The Laplacian was calculated: (π½π + πΉ)π(π ) = ππ πΌ(π ) • Substituting the equation for I(s) into the above equation: (π½π + πΉ)π(π ) = ππ (π(π ) − ππ π(π )) π (π π½π + π πΉ)π(π ) = ππ (π(π ) − ππ π(π )) (π π½π + π πΉ + ππ2 )π(π ) = ππ (π(π )) (π π½π + π πΉ + ππ2 )π(π ) = π(π ) ππ (π π½π + π πΉ + ππ2 ) π(π ) = ππ π(π ) ππ π(π ) = (π π½π + πΉπ + ππ2 ) π(π ) ππ (πΉπ + ππ2 ) [ π π½π + 1] πΉπ + ππ2 ππ (πΉπ + ππ2 ) [ π π½π + 1] πΉπ + ππ2 = π(π ) π(π ) = π(π ) π(π ) ππ π(π ) πΉπ + ππ2 = π π½π [ + 1] π(π ) πΉπ + ππ2 Method: 1 The setup was connected to the computer, and the program was set to allow the adjustment of the π and π terms according to the equation below. The system was initially set to open loop operation, and the terms were adjusted so that the output of the system Results and Discussion: 1 matches the transfer function wave in figure 3. This was accomplished by setting the π term to 0.1 and the π term to 17.4, which was rounded to 17 in subsequent calculations. π π(π ) = π π + 1 π(π ) -figure 3: System in open loop Using the values obtained through experimentation for π and π the viscous damping coefficient F was calculated. Comparing the above equation to the previously derived equation the relationships below were derived. • Using the parameters from table 1, the viscous damping coefficient was calculated. ππ πΉπ + ππ2 π= 0.0502 πΉ × 10.6 + 0.0502 0.1 = π= 17 = πΉ = 40.84ππNms/radπ −1 π½π πΉπ + ππ2 22.1π × 10.6 πΉπ + ππ2 πΉ = −4.515πNms/radπ −1 The difference in the calculated damping coefficients was due to finding the π and π values using experimental methods, which resulted in slight differences between input and output results. However the calculated values resulted in numbers close to zero and similar values which aligned with what was expected. DC MOTOR PARAMETERS PARAMETE R Symbol Value Units ROTOR RESISTAN CE R 10.6 Ω TORQUE CONSTAN T BACK EMF CONSTAN T ππ 0.0502 Nm/A ππ 0.0502 Vs/rad ARMATUR E AND LOAD MOMENT OF INERTIA J 22.1 πkgm² VISCOUS DAMPING COEFFICIE NT F Unknown Nms/rad ROTOR COIL INDUCTAN CE L Negligible — -table 1: DC motor parameters Method: 2a The system was then set to operate in closed loop mode with a PID controller with variable proportional integral and differential terms. The equation used by the system varied when compared to the standard system as seen in the equation below. π(π‘) = ππ π(π‘) + ππ ππ + ππ ∫ π(π‘)ππ‘ ππ‘ While the proportional gain ππ is equivalent to the ππ in the equation, however the ππ derivative gain ππ is equivalent to ππ ππ and the integral gain ππ is equivalent to π . For a π proportional gain controller, the integral and derivative terms were set to 0. The π(π ) term was taken in terms of the shaft angle π(π ) below. π(π ) = π π(π ) The equation was rearranged to relate to give the motor transfer function as seen below. π π(π ) π = π(π ) ππ + 1 π π(π ) 17 = π(π ) 0.1π + 1 • Taking into consideration the proportional gain ππ π π(π ) 17 = × ππ π(π ) 0.1π + 1 170ππ π(π ) = π(π ) π (π + 10) • Substituting 170ππ as π π(π ) π = π(π ) π (π + 10) The root locus was then plotted in figure 4: • • Taking the poles at s = 0, -10 Taking the breakaway points at: o 1 π 1 + π+10 = 0 π + 10 + π =0 π(π + 10) 2π + 10 = 0 π = −5 • The damping ratio was taken to be 0.5, and the angle was computed as follows o cos(π) = 0.5 π = 60° • The asymptotes were computed below o ±ππ π−π ±π 2 -figure 4: Proportional gain root locus Using this plot the blue line, which is ππ was calculated as seen below: cos(60) = ππ 5 ππ = 10 From the diagram it is evident that the blue line and the green line are equal, hence the calibration rule was applied to compute a value for the system gain π. π= πππππ’ππ‘ ππ πππ π‘ππππ ππππ πππππ πππππ’ππ‘ ππ πππ π‘ππππ ππππ π§ππππ π= 10 × 10 1 π = 100 The value for ππ was then computed from the previous substitution. π = 170ππ 100 = 170ππ 0.588 = ππ Results and Discussion: 2a Using the previous value for damping ratio the theoretical percentage peak overshoot was computed. %ππ−π‘βππππ¦ = π %ππ−π‘βππππ¦ = π (− (− ππ ) √1−π 2 × 100 0.5π ) √1−0.52 × 100 %ππ−π‘βππππ¦ = 16.3% Using experimental results the experimental percentage peak overshoot was computed. %ππ−ππ₯π = %ππ−ππ₯π = π × 100 ππ π (4.78 − 0.04) − 4 × 100 4 %ππ−ππ₯π = 18.5% The resulting values were very similar meaning the constructed system behaved as expected from the theory. %ππ π = πππππ × 100 π %ππ π = 0.04 × 100 4 %ππ π = 1% The percentage steady state error in theory was assumed to be zero or very close to zero, this aligned with the experimental calculations as the value obtained was very small. Using the value of ππ computed previously the theoretical rise time was computed as follows. π‘π−π‘βππππ¦ = 1.8 ππ π‘π−π‘βππππ¦ = 1.8 10 π‘π−π‘βππππ¦ = 0.18π The experimental rise time was computed by taking 10% and 90% of the input voltage and taking the time at each point and finding the difference between the two points. π‘π−ππ₯π = 11.28 − 11.12 π‘π−ππ₯π = 0.156π The experimental rise time was very similar to the theoretical rise time which means the system aligned with theory. The discrepancies between the experimental and theoretical values were due to several modelling assumptions taken, such as assuming a perfectly linear motor, ignoring the play in the motor gears and friction of the system. Taking also into consideration the parameter estimations that were rough values rather than calculated ones, all these factors and more were responsible for the discrepancies observed. Method: 2b The system’s response time was improved by adding a derivative component and using a PD controller instead of a P controller. This meant the transfer function from before needed to be computed again now considering the derivative term. π(π ) 170 × ππ (1 + π ππ ) = π(π ) π (π + 10) π(π ) 170 × 0.588(1 + π ππ ) = π(π ) π (π + 10) π(π ) 99.96(1 + π ππ ) = π(π ) π (π + 10) 1 π(π ) ππ × 99.96(ππ + π ) = π(π ) π (π + 10) The previous root locus diagram was modified by including the additional zero in the plot which resulted in a shift. -figure 5: Proportional Derivative gain root locus Using the diagram above the value for s’ was computed. • Taking the rise time the value for ππ was computed 1.8 o π‘π = π π 90π = 1.8 ππ ππ = 20 • Finding the value for ππ π o sin(60) = 20π ππ = 17.32 • Finding the value for π π o cos(60) = 20 π = 10 The value of s’ was found to be: π ′ = −10 + π17.32 To compute the angle of the additional pole, the phase criterion was used, taking the value of ±π as positive: ∠πΊ(π )π»(π ) = ±π180° ∠πΊ(π ) = ±π180° − ∠π»(π ) ∠πΊ(π ) = ±π180° − (−90 − ∅) ∠πΊ(π ) = ±π180° − (−90 − (180 − 60)) ∠πΊ(π ) = ±π180° + 210 ∠πΊ(π ) = 30 Using the computed angle above, the value of ππ was computed. • 1 Computing the distance of π from -10. π o tan(30) = 17.32 π₯ π₯ = 30 • 1 Computing the value of π o 1 ππ π = 10+30 ππ = 0.025 The value for the grey line was computed to find the value of π using the calibration rule. sin(30) = 17.32 π π = 34.64 Using the calibration rule the value of π was computed. π= πππππ’ππ‘ ππ πππ π‘ππππ ππππ πππππ πππππ’ππ‘ ππ πππ π‘ππππ ππππ π§ππππ π= 17.32 × 20 34.64 π = 10 The value of ππ was computed below by first computing the value of ππ : ππ = ππ ππ ππ = 2.3 × 0.025 ππ = 0.0575 • Using the previous substitution the value for ππ was computed. ππ πππ = 10 π ππ × 17.4 × 0.025 = 10 0.1 ππ = 2.3 Results and Discussion: 2b Using the previous value for damping ratio the theoretical percentage peak overshoot was computed. %ππ−π‘βππππ¦ = π %ππ−π‘βππππ¦ = π (− (− ππ ) √1−π 2 × 100 0.5π ) √1−0.52 × 100 %ππ−π‘βππππ¦ = 16.3% Using experimental results the experimental percentage peak overshoot was computed. %ππ−ππ₯π = π × 100 ππ π (4.7) − 4 × 100 4 %ππ−ππ₯π = %ππ−ππ₯π = 17.5% The resulting values were very similar meaning the constructed system behaved as expected from the theory. %ππ π = πππππ × 100 π %ππ π = 0.05 × 100 4 %ππ π = 1.25% The percentage steady state error in theory was assumed to be zero or very close to zero, this aligned with the experimental calculations as the value obtained was very small. Using the value of ππ computed previously the theoretical rise time was computed as follows. π‘π−π‘βππππ¦ = 90ππ The experimental rise time was computed by taking 10% and 90% of the input voltage and taking the time at each point and finding the difference between the two points. π‘π−ππ₯π = 2.014 − 2.069 π‘π−ππ₯π = 55ππ The experimental rise time was very similar to the theoretical rise time which means the system aligned with theory. The experimental peak overshoot as observed was slightly lower than the previous P controller result, this is due to the non-idealities in the damping factor. While the steady state error remained the same, which was as expected since no integral term was used. The largest change was the heavily reduced rise time while maintaining an acceptable level of peak overshoot which aligns with the theoretical expectations for a system such as the one used. Conclusion The DC servomotor was modeled using P and PD controller schemes. The experimental results aligned with the theoretical analysis, certain discrepancies were observed however. These discrepancies are attributed to the assumptions and simplifications taken when modelling the system, such as neglecting the friction, the play in the motor and the errors due to quantization incase of a digital system. The PD controller consistently provided an improved transient performance compared to the P controller, with a faster rise time and better damping while maintaining an acceptable steady state error close to zero. Overall, the results obtained align with the theory of controller design while highlighting the advantages and disadvantages of the different controllers.
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )