代做EEE203 Signals and Systems I Lab: Turn on the Cruise Control代做Matlab语言

EEE203 Signals and Systems I

Lab: Turn on the Cruise Control

Your friend Bob needs your help to design a cruise control system for his car. He drives a Toyota Corolla that weighs 1300 kg (2866 lbs). He wants to accelerate his car from stationary to within 2% of 18 m/s (40 mph) under 5 second and then maintain the 18 m/s speed with less than 2% error. Given Bob lives on a street that has a 40 mph speed limit, he doesn’t want his car to ever go beyond 45 mph because he doesn’t want to get a speeding ticket.

To help Bob with his cruise control, let’s first understand how a cruise control works, which is a classic control system. The objective of any control system is to change the dynamics of the given system to be able to achieve a desired response. This is typically done by means of a feedback connection of a

controller to a plant, as shown in Figure 1. The plant is a system such as a motor, a chemical plant, or an automobile we would like to control so that it responds in a certain way. The controller is a system we design to make the plant follow a prescribed input or reference signal. By feeding back the response of the system to the input, it can be determined how the plant responds to the controller. The commonly used negative feedback generates an error signal that permits us to judge the performance of the controller.

Figure 1. Block diagram of a closed-loop negative feedback control system

In classic linear control, the transfer function, i.e., the Laplace transform. of its impulse response, of the plant we wish to control is available; let us call it HP(s). The controller, with a transfer function Hc (s), is designed to make the output of the overall system perform in a specified way. For instance, in a cruise control system, the plant is the car, and the desired performance is to automatically set the speed of the car to a desired value. In Figure 1, x(t) is the desired output. Suppose we want to keep the speed of the  car at V0 miles per hour for t ≥ 0, then x(t) = V0u(t).  v(t) is the actual output, i.e., the actual speed of the car. The difference between the two e(t) = x(t) 一 v(t) is the error signal and the input to the controller. Given the error signal, the controller generates a control signal C(t) as the plant input.

The transfer function of the plant, i.e., the model for a car in motion, can be derived by the free body diagram shown in Figure 2.

Figure 2. Free body diagram of a car in motion

In the simplified model shown in Figure 2, the control force u is generated at the road-tire interface; the resistive forces due to rolling resistance and wind drag are assumed to vary linearly with the car speed v, and have the value of bv, where b is the damping coefficient. Assuming the mass of the car is m, by applying Newton’s 2nd  Law, the following equation is derived to describe the input u and output v of the model/system:

Taking Laplace transform. of both sides, we get the system transfer function:

with m being the mass of the car and b being the damping coefficient.

There are various possible controllers that are able to achieve this cruise control function. Let us consider a proportional plus integral (PI) controller with transfer function shown below. The first term of the controller is the “proportional” term, the second term is the “integral” term, and Kp and Ki are constants:

The values of Kp and Ki need to be tuned to achieve specific performance measures.

Lab Objectives:

1.    Get familiar with the terminology used in a feedback control system.

2.    Derive system transfer function for a feedback system. (We know how to derive a system transfer function for a serial or parallel system already.) Give a system input, derive system output.

3.    Practice tuning a PI controller. (The emphasis here is NOT to design a controller, which is a topic of a control system class. But to understand the choice of parameters in a controller will have impact on  the performance metrics of a control system, such as stability, how fast a steady state is reached, steady state error, and etc.)

Lab Tasks:

Submit your derivation, answer to questions, MATLAB script and plot in a signal PDF file.

1. Download the MATLAB script. “lab_cruise_control.m” . Assume the damping coefficient is 60 Ns/m.  Run the script. and experiment with different values for Kp and Ki. What are your values for Kp and Ki to satisfy Bob’s requirements?

a.    In the script, an example is shown to set up a feedback control system transfer function and test if the system is stable. Then the system is tested by applying a step function x(t) = V0u(t) at the input (the desired speed), the system output v(t) (the actual speed) can be observed to see if the controller works properly. Of course for the cruise control to work, the system output v(t) should approach V0, i.e., zero steady state error, however, there are also other attributes that are desirable, such as a fast transient time to reach steady state, zero oscillation, no large overshoot/undershoot, etc.

b.   Your task is to tune the PI controller, i.e., choose proper values of Kp and Ki by observing the step response characteristics to satisfy the following constraints: 1) the rise of speed from  0 m/s to within 2% of 18 m/s (40 mph) is under 5 second, 2) once speed increases to within 2% of 18 m/s, maintain speed in that range, 3) speed should never go over 45 mph (20.12 m/s) at any time.

2. Submit the MATLAB step response plot and the output of stepinfo. Explain how your controller’s characteristics satisfy Bob’s requirements. (Besides the output from stepinfo, it could be helpful to add a “Data Cursor” under “Tools” in the step response figure window to trace the data points and  see their values.)

3. Derive the system transfer function H(s) in terms of Hc (s) and Hp(s).  Given input x(t) = V0u(t),  if kp = ki  = m = b = 1, derive the expression for output y(t) and verify the steady state of y(t) is approaching V0 .

(Hint: see Textbook section 9.8.1 Figure 9.31 as an example on how to derive transfer function, note the example is different from the setup here. To get system output, use convolution property and inverse Laplace transform.)



热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图