




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、ECE451 Con troll Engin eeri ngInverted p endulum09/29/2013Introduction:Inv erted pen dulum is a typi cal fast, multi-varaibles, non li near, un stable system, it has sig nifica nt meaning. We choose the PID con troller to fot the inv erted pen dulum.Assume the input is a step signal , the gravitatio
2、nal acceleration g=9.8m/s2 and lin earize the non li near model around the op erati ng point.I. Mathematic Modii ngM m b l I F x0mass of the car0.5 kgmass of the pen dulum0.2 kgcoefficie nt of frictio n for cart0.1 N/m/seclen gth to pen dulum cen ter of mass0.3 mmass mome nt of in ertia of the pen d
3、ulum 0.006 kg.m2 force app lied to the cart coord in ate of cart p ositi onpen dulum an gle from vertical (dow n)N and F are the force from horiz on tal and vertical direct ion.d2N = m dt7(x + l sin 0)Force an alysisCon sider the horiz on tal directi on cart force, we get the equatio n:Mx?= F- bx? N
4、Con sider the horiz on tal directi on pen dulum force, we get the equati on:N = mx?+ ml 0cos (- ml e2sin 0To get rid of P and N, we get this equati on:-PI sin 0- Nlcos 0=1 0 Merge these two equatio ns, about to P And N, to obta in a sec ond moti on equati on:(l + ml2) 0+ mgl sin 0 = -mix?cos 0 u to
5、rep rese nt the con trolled object with the input force F, li nearized two moti on equati ons(7 + F廠妙一= (ZV亠 X(71/ -F / /J )A十 bJc 一 tfApply LapI ace tran sform to the equati on above(7 +?/ )cD( s ).5 5)= s)v(A/ + rft)X(s)s + bXs)s -jftl- Us)The tran sfer fun cti on of an gle and p ositi on (5)mis工0
6、)(/ +曲- mglLet v = x?G)V(s) (7 +訕-n/gfput the equati on above into the sec ond equatio n十屮皿)4十 bL訕sWe get the tran sfer function川/ Fyqt/(r)4 b(J 十 niP)片(A/ 十 Hjmgl 2State sp ace equati on:= XV十Bnv= CY 十 DtfSolve the algebraic equati on, obta in soluti on as follows:t = y.-(I.nrgf-(I + JH 卩、 IM + M)+
7、 皿屮UM + JU) + mF /(A/ + 川)+ Mm I- 0=07一訕b用時(shí)(水J +川) ,ndd = y + 0 十/(M + M)+加廠/(jV +川)+ A伽廠/(.V + m +皿心 01000-.Y0(7 + wFb譏尸07 + hN,.Y”0+於尸/jV + /W)+:Y/jV + HJ)*dT rX000100-titib嘖U/ -卻)0訕$ J /仁/ L Hl) +伽心/ 7八 + mF/(J7 + J/Jl Fin ally we get the system state sp ace equati ons.;.V000Py+O0010002. PID Con
8、troller Desig nWe now desig n a PID con troller for the inv erted pen dulum system. KD(s) is the tran sfer fun ctio n of the con troller.G(s) is the tran sfer fun cti on of the con trolled car.Con sideri ng that the input r(s) =0, the block diagram can be tran sformed as: The out put of the system i
9、snumy s F s1 kD sG sdenF snumPID numdenPID dennum denPIDF denPID den numPID numU(sPlantGUInum the nu merator of the object den the denomin ator of the object numPID -the nu merator of the PID con troller tran sfer fun cti on denPID -the denominator of the PID controller transfer function The object
10、tran sfer fun cti on isml 2sqm M mgl 2snumb I ml23sqbmglsqdenin which qml2 ml 2PID Con troller Tran sfer Fun cti on is2KD s KDs Kp sKI KdS KpS Ki 2sNow, we add the cars positi on as ano ther out put, we get in which G1 is the tran sfer fun cti on of the pen dulum, G2 is the tran sfer fun cti on of t
11、he car.The out put of the car po siti on isG2 s1 KD s G1 s F snum2den2Lin which, nu m1,de n1,nu m2,de n2 are sep arately mea n the con trolled object 1 and object 2 and PID controllers numerators and denominators.I ml2mlX sFrom_g2 sG2 ss4In which, qWe can easily simp lified the equati on ass,we coul
12、d get thatI ml2 bmgls s q q b I ml23s qml2 ml 2m M mgl s2 bmgl sqqF s 1 numPID nug denPID demnum2 denPIDF s denPID den k numPID num,3. Matlab SimulationIn desig n, the carts po siti on will be igno red. Un der these con diti ons, the desig n criteria are:1) settli ng time is less tha n 5 sec onds2)
13、pen dulum should not move more tha n 0.05 radia ns away from the verticalWhen kd=1,k=1,ki=1:numc1=4.5455 0 0 0, denc1=1 4.7273 -26.6364 0.0909 0 0, n um2= -1.8182 0 44.54550, den c2=1 4.7273 -26.6364 0.0909 0Angle_L- -lbTime (se-c)Then we tried many times to adjust the p arameter to satisfy the requ
14、ireme nts: Ts =5 s and overshoot M0.05.We find the op timal p arameters of kd,k,ki which is the sec ond situati on.2. When kd=20,k=300,ki=1:Numc仁 4.5455 0 0 0, dene仁0.001 0.09111.3325 0.0001 0 0, nu mc2= -1.8182 0 44.5455 0, den c2=0.001 0.09111.3325 0.0001 0 0The results:upnlj-aLUV& iaTime fsec)ll
15、:;Ptts itiencc c2 cIC 12Tine sec)Matlab codesM=0.5;m=0.2;b=0.1;l=0.006;g=9.8;l=0.3;q=(M+m)*(l+m*|A2)/q-(m*l)A2;num1=m*l/q 0 0;den 仁1 b*(l+m*|A2)/q-(M+m)*m*g*l/q-b*m*g*l/q 0;num2=-(l+m*|A2)/q 0 m*g*l/q;den2=den1;kd=1;k=1;ki=1;numP ID=kd k ki;denP ID=1 0;nu mci=c onv (num1 denP ID);den c1= po lyadd(c
16、onv (de nP ID,de n1),c onv(numPID,nu m1);t=0:0.1:20;figure(l)impu lse( nu mc1,de nc1,t)title( Anglefigure (2)impu lse( nu mc2,de nc2,t)title( PositionM=0.5;m=0.2;b=0.1;1=0.006;g=9.8;1=0.3;q=(M+m)*(l+m*|A2)/q-(m*l)A2;num1=m*l/q 0 0;den 仁1 b*(l+m*|A2)/q-(M+m)*m*g*l/q-b*m*g*l/q 0;num2=-(l+m*|A2)/q 0 m*
17、g*l/q;den2=den1;kd=20;k=300;ki=1;numP ID=kd k ki;denP ID=1 0;nu mci=c onv (num1 denP ID);den e1= po lyadd(c onv (de nP ID,de n1),c onv(numPID,nu m1); t=0:0.1:20;figure(1)impu lse( nu mc1,de nc1,t)title( Anglefigure (2)impu lse( nu mc2,de nc2,t)title( PositionSimulatio n:We will build a closed-lo op model with refere nee input of pen dulum p ositi on and a disturba nee force app lied
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 門面服裝銷售合同范本
- 2025建筑工程公司用工合同協(xié)議書
- 2025年合同終止與解除的備案流程解析
- 2025耕地流轉(zhuǎn)合同規(guī)定
- 語言魅力提升知到課后答案智慧樹章節(jié)測(cè)試答案2025年春北京城市學(xué)院
- 2025年智能家居設(shè)備采購合同
- 2024年啟東市市屬事業(yè)單位考試真題
- 租賃扶貧工廠合同范本
- 2024年臨高縣公安局招聘警務(wù)輔助人員真題
- 2024年江蘇無錫高新區(qū)國企全球選聘人才新增崗位筆試真題
- 健康日用品設(shè)計(jì)與研發(fā)趨勢(shì)
- 【化學(xué)】常見的鹽(第1課時(shí))-2024-2025學(xué)年九年級(jí)化學(xué)下冊(cè)(人教版2024)
- 公園物業(yè)管理
- 新人教版初中英語七至九年級(jí)全部課本單詞
- 宜賓市新能源產(chǎn)業(yè)有限公司招聘筆試沖刺題2025
- 數(shù)字化背景下國有企業(yè)財(cái)會(huì)監(jiān)督體系的構(gòu)建與實(shí)踐創(chuàng)新
- 龍游經(jīng)濟(jì)開發(fā)區(qū)下屬國資公司招聘筆試沖刺題2025
- 《海上風(fēng)電設(shè)備運(yùn)輸規(guī)范》
- 工業(yè)園物業(yè)管理方案參考范本
- 2024年黑龍江牡丹江中考英語真題及答案
- 《電力基礎(chǔ)設(shè)施數(shù)字化鎖控系統(tǒng)技術(shù)》
評(píng)論
0/150
提交評(píng)論