




已閱讀5頁(yè),還剩15頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
畢業(yè)設(shè)計(jì)翻譯文獻(xiàn)與原文題 目: 直流電機(jī)轉(zhuǎn)速控制的閉環(huán)電路設(shè)計(jì)學(xué) 院: 測(cè)控與光電工程學(xué)院 專 業(yè): 測(cè)控技術(shù)與儀器 姓 名: 學(xué) 號(hào): 指導(dǎo)教師: 直流電機(jī)轉(zhuǎn)速控制的閉環(huán)電路設(shè)計(jì)這項(xiàng)研究是由廣州市科技攻關(guān)項(xiàng)目資助摘要 本文介紹了直流電動(dòng)機(jī)的調(diào)速原理,闡述了把 PIC16F877 單片機(jī)作為主控制組件的速度控制系統(tǒng),即利用 PIC16F877 單片機(jī)中的捕捉模塊、比較模塊、模數(shù)轉(zhuǎn)換模塊來(lái)作為觸發(fā)系統(tǒng),并給出了程序流程圖。該系統(tǒng)具有很多優(yōu)點(diǎn),包括結(jié)構(gòu)簡(jiǎn)單,與主電路的同步,穩(wěn)定換檔相,足夠的轉(zhuǎn)換相位范圍,10000 步控制的角度,電機(jī)的無(wú)級(jí)平滑控制,陡脈沖前沿,足夠的振幅值,設(shè)置脈沖寬度, 穩(wěn)定性好,抗干擾能力強(qiáng),成本低廉,并且系統(tǒng)具有良好的實(shí)用性可以容易地實(shí)現(xiàn)。關(guān)鍵詞PIC16F877 電機(jī)控制控制電路PI 控制算法1 簡(jiǎn)介電子技術(shù)的快速發(fā)展使得直流電機(jī)的速度控制從模擬逐步轉(zhuǎn)化為數(shù)字,目前廣泛采用可控硅設(shè)備在電氣拖船控制系統(tǒng)中,以將電力提供給電動(dòng)機(jī)的 KZ-D 拖帶系統(tǒng),已經(jīng)取代笨重的 FD 發(fā)電機(jī)電動(dòng)機(jī)系統(tǒng),特別是單片機(jī)技術(shù)的應(yīng)用使得電機(jī)速度控制進(jìn)入了一個(gè)新的層次。在直流調(diào)速系統(tǒng),由很多部分控制電路。SCM 具有許多優(yōu)點(diǎn),如高性能,速度快,體積小,價(jià)格便宜,可靠穩(wěn)定,應(yīng)用廣泛, 提高控制能力并且滿足實(shí)時(shí)控制得需要。采用模擬或數(shù)字的控制電路可以用單片機(jī)來(lái)實(shí)現(xiàn)。在這篇文章中,我們將介紹基于單片機(jī) PIC16F877 的一種直流電機(jī)調(diào)速系統(tǒng)。2 直流電機(jī)調(diào)速原理表一中,電壓時(shí) Ua,電流是 Ia,閉環(huán)總電阻是 Ra,電機(jī)電容是 Ca,磁通是 。根據(jù) KVL 方程,電機(jī)的轉(zhuǎn)速是n = (Ua - Ia Ra )(CF)(2,1)Ca =pN60a(2.2)Ua - Ia Ra UaTd (k) = Td (k -1)+ a0e(k)- a1e(k -1) = Td (k -1)+ 0.84e(k)-0.63e(k -1)(2.3)(2.4)a =Tf 0Kp 1+ T a1 = Kp Tf = T + Tdt (2.5)(2.6)(2.7)其中,P 是極對(duì)數(shù),N 是匝數(shù)。電機(jī)的電樞支路數(shù)是 a,電機(jī)電容 Ca=PN|60a, 這意味著,電機(jī)一定時(shí),電容是一定的。但是在 Ua-IaRa,因?yàn)?Ra 是繞線電阻, 所以非常小,Ua-IaRa=Ua.所以很清楚當(dāng)我們改變了電壓,轉(zhuǎn)速也隨之改變。3 系統(tǒng)組成和工作原理3.1 系統(tǒng)的硬件結(jié)構(gòu)的模塊框系統(tǒng)硬件的模塊框圖。如圖 2 所示3.2 系統(tǒng)的工作原理該系統(tǒng)主要由主開(kāi)關(guān),電動(dòng)機(jī)的勵(lì)磁回路,二極管調(diào)速電路(包括轉(zhuǎn)速表電路),整流濾波電路,平波電抗器,放電電路,能耗制動(dòng)電路。該系統(tǒng)采用閉環(huán)PI 調(diào)節(jié)器來(lái)實(shí)現(xiàn)控制。當(dāng)主開(kāi)關(guān)關(guān)閉時(shí),通過(guò)二極管速度控制電路的控制,和橋式整流,濾波和平面波反應(yīng)堆的處理產(chǎn)生脈沖小的連續(xù)的單相交流電,同時(shí)通過(guò)激勵(lì)整流電路。交流電使電動(dòng)機(jī)獲得動(dòng)力開(kāi)始工作。當(dāng)輸入電壓降低時(shí),觸發(fā)電路的速度使得 PIC16F877 產(chǎn)生的輸出控制角度降低。同時(shí),晶閘管隨流角度, 主電路輸出電壓,電機(jī)轉(zhuǎn)速,測(cè)速電路的輸出電壓提高,通過(guò) PI 調(diào)節(jié)器的作用, 電機(jī)穩(wěn)定運(yùn)行在設(shè)定的轉(zhuǎn)速范圍。4 系統(tǒng)的各部分電路的設(shè)計(jì)4.1 主電路設(shè)計(jì)電路中各元件的參數(shù)是在圖 3 所示按下開(kāi)始按鈕 SW,使 KM 電容器充電,然后 KM 常開(kāi)觸點(diǎn)關(guān)閉,常閉觸點(diǎn)打開(kāi),按下自鎖按鈕,主電路接通。然后,二極管調(diào)速電路通過(guò)改變雙向?qū)ǘO管的控制角來(lái)控制交流電輸出,通過(guò)整橋電路獲得直流,與此同時(shí),電機(jī)通過(guò)整流電路獲得動(dòng)力開(kāi)始工作。為限制直流電波動(dòng),在電路中連上電容,當(dāng)主電路斷電時(shí) ,R3 與電容組成放電回路。為立即制動(dòng),設(shè)備中采用了能耗制動(dòng),制動(dòng)部分由 R4 和主電路中的常閉觸點(diǎn)組成。電機(jī)激勵(lì)部分由單一的整流電路供電,為了防止電磁損耗使得點(diǎn)擊高的速度不能控制引起事故,在電路中串聯(lián)了繼電器 KA,和滑動(dòng)變阻器 RP.。4.2 二極管觸發(fā)電路的設(shè)計(jì)AB 間的電壓通過(guò)變壓器成為 20V,經(jīng)過(guò)整橋電路后,大約一半 100H 的信號(hào)發(fā)生在這兩點(diǎn),再經(jīng)過(guò) R6 和 R7 分壓電路進(jìn)行放大,輸入三極管的兩端,在三極管集電極產(chǎn)生過(guò)零脈沖,同時(shí)通過(guò) CCPI 模塊捕獲脈沖的上升沿并記錄時(shí)間,然后獲得下降沿并記錄時(shí)間,兩個(gè)時(shí)間的差是脈沖的寬度,該值的一半是中點(diǎn)脈沖, 通過(guò)這種捕捉模式,我們可以準(zhǔn)確的獲得交流電的零值點(diǎn)。同時(shí),我們可以通過(guò)數(shù)模轉(zhuǎn)換器來(lái)改變PIC16F877 的RA1/RN1 接口的模擬電壓值作為二極管控制電路的實(shí)際值,改變變阻器 RP1 的設(shè)定值,并極大改變二極管控制電路的設(shè)定值,轉(zhuǎn)速表電路的輸出值輸入 PIC16F877 的 RA1/RN1 接口,得出的值作為速度反饋值通過(guò)模數(shù)轉(zhuǎn)換器。在單片機(jī)系統(tǒng)的振蕩頻率為 4MHz,并根據(jù) PIC16F877 的命令特點(diǎn),二極管控制角的分辨率是四分之一單片機(jī)振蕩的倒數(shù),即 1對(duì)于電力 10ms 的半波時(shí)間,控制角可以實(shí)現(xiàn) 10000 個(gè)步驟,完全實(shí)現(xiàn)電動(dòng)機(jī)的無(wú)級(jí)平滑控制。4.3 轉(zhuǎn)速表電路設(shè)計(jì)轉(zhuǎn)速表電路由連接著電機(jī)轉(zhuǎn)子和放大整形電路的光電碼盤(pán)組成。電脈沖頻率與電動(dòng)機(jī)的轉(zhuǎn)速成一定的比例,通過(guò)放大整形,由光電碼碼盤(pán)輸出的電脈沖從PIC16F877 的引腳 RC0/T1CK1 輸入作為標(biāo)準(zhǔn)的 TTL 電平,由計(jì)數(shù) TMR1 計(jì)數(shù)器來(lái)計(jì)算轉(zhuǎn)速,與設(shè)定的轉(zhuǎn)速比較,得到差值轉(zhuǎn)速,PIC16F877 進(jìn)行 PI 運(yùn)算獲得這種差異的價(jià)值來(lái)獲得控制增加,并控制二極管的控制角來(lái)有效改變 CCP2 電機(jī)的兩個(gè)端口的電壓,從而控制轉(zhuǎn)速。5 軟件設(shè)計(jì)為了在二級(jí)管控制角調(diào)制中得到微小的值,我們?cè)O(shè)計(jì)了速度控制的典型一封閉系統(tǒng)。PI 運(yùn)算器用來(lái)運(yùn)算二極管控制角的值 Td ,算法是Td (k ) = Td (k -1) + a0e (k ) - a1e (k -1) = Td (k -1) + 0.84e (k ) - 0.63e (k -1)(5.1)a =Tf 0Kp 1+ T t (5.2)其中,a1=KP,KP 是控制器的比例系數(shù),Tl 是積分時(shí)間常數(shù),Ti 是采樣周期??紤]到系統(tǒng)中的電動(dòng)機(jī)的電動(dòng)機(jī)常數(shù)時(shí)間 0.12s,幾個(gè)采樣周期內(nèi)可以忽略誤差, 所以我們選擇采樣周期 2ms 的測(cè)速系統(tǒng)。在系統(tǒng)的軟件設(shè)計(jì)模塊主要包括 CCP1 上升沿捕捉模塊,CCP1 下降沿捕捉模塊,控制角度設(shè)定值的 A/D 轉(zhuǎn)換模塊,測(cè)速電路脈沖定時(shí)計(jì)數(shù)模塊,PI 調(diào)節(jié)器模塊和 CCP2 比較輸出模塊。假設(shè)我們得到過(guò)零時(shí)間 T,二極管控制角時(shí)間 Td,那么被輸入寄存器 CCP2 引腳 CCPR2H 的值 Tf=T+Td,當(dāng)比較一定時(shí),引腳輸出的高電平使得二極管導(dǎo)通, 修改引腳的值根據(jù)要求的脈沖寬度值維持輸出的高電平值,然后返回低電平值。雙向二極管的觸發(fā)脈沖輸出完畢。6 總結(jié)該速度控制系統(tǒng)以PIC16F877 單片機(jī)為雙向?qū)ǘO管觸發(fā)電路的設(shè)計(jì)具有許多特點(diǎn),諸如結(jié)構(gòu)簡(jiǎn)單,運(yùn)行可靠,調(diào)節(jié)范圍寬,良好的電流連續(xù)性,在中小型快大小的直流電機(jī)速度控制系統(tǒng)中的快速反應(yīng)等特點(diǎn)。和轉(zhuǎn)速環(huán)采用 PI 控制算法,能有效地抑制超調(diào)轉(zhuǎn)速,所以它是采用一種可行單片機(jī)速度控制系統(tǒng),并運(yùn)行曲線如圖 5 所示。參考書(shū)目康華光.鄒收臏. 電子技術(shù)基礎(chǔ):數(shù)字部分(第四版). 北京高等教育出版社,2000. 李血海. PIC 單片機(jī)實(shí)用教程. 北京航空航天大學(xué)出版社,2002.蘇建輝. 對(duì)光伏水泵系統(tǒng)及其控制的研究. 合肥科技大學(xué)的博士學(xué)位論文,2002. 張申. 無(wú)刷直流電動(dòng)機(jī)的應(yīng)用原理. 北京機(jī)械工業(yè)出版社,1996.附錄表一 電機(jī)原理圖表二 硬件結(jié)構(gòu)圖注;從左到右依次是主開(kāi)關(guān)電路,電機(jī)激勵(lì)電路,二極管觸發(fā)電路,整流電路,平波 濾波電路,能耗制動(dòng)電路。表三 主電路圖表四 觸發(fā)電路圖表五 運(yùn)行圖Design of the Closed Loop Speed Control System for DC MotorThe research is financed by the Guangzhou Municipal Science and Technology KeyProjectsAbstract This article introduces the speed control principle of DC motor, expatiates on the speed control system taking PIC16F877 SCM as the main controlcomponent, utilizes the characters of catching module, comparing module and analog-to-digital conversion module in PIC16F877 SCM to be the trigger circuit, and gives the program flow chart. The system has many advantages including simple structure, synchronization with the main circuit, stable shifting phase and enough shifting phase range, the control angle of 10000 steps, stepless smooth control of motor, steep pulse front edge,enough amplitude value, setting pulse width, good stability and anti-jamming, and cheap cost, and this speed control system with good practical values can be realized easily.Keywords PIC16F877 DC motor speed control Control circuit PI control algorithm1. IntroductionThe quick development of electric technology makes the speed control of DC motor gradually translate from analog to digital, and at present, the KZ-D towage system which extensively adopts the thyristor equipment (i.e. silicon controlled hyristor, SCR) in the electrical towage control systems to supply power to electromotor has replaced cumbersome F-D system of generator-electromotor, and especially the application of SCM technology makes the speed control technology of DC motor enter into a new phase. In the DC governor system, there are many sorts of control circuit.SCM has many advantages such as high performance, quick speed, small volume, cheap price and reliable stability,extensive application and strong currency, and it can increase the ability of control and fulfill the requirement of real-time control (quick reaction). The control circuit adopting analogy or digital circuit can be implemented by SCM.In this article, we will introduce a sort of DC motor speed control system based on SCM PIC16F877.2. Speed regulation principle of DC motorIn Figure 1, the armature voltage is Ua, the armature current is Ia, the total resistance of armature loop is Ra , the motor constant is Ca , and the excitation flux is .According to KVL equation, the rotate speed of the motor isn = (Ua - Ia Ra )(CF)(2.1)Ca =pN60a(2.2)Ua - Ia Ra UaTd (k ) = Td (k -1) + a0e (k ) - a1e (k -1) = Td (k -1) + 0.84e (k ) - 0.63e (k -1)(2.3)(2.4)a =Tf 0Kp 1+ T a1 = Kpt (2.5)(2.6)Tf = T + Td(2.7)Where, p s the pole-pairs,N is the number of turns. For the motor that the armaturespur track number is a, the motor constant Ca=PN/60a, that means when the motor is confirmed, the value is fixed. But in Ua-IaRa,Because only the winding resistance, s I aRa is very small, and Ua-IaRaUa . So it is obvious that when we change the armature voltage, the rotate speed n changes with that 。3. System composition and work principle3.1 Module frame of system hardware structureThe module block diagram of system hardware is seen in Figure 2.3.2 Work principle of the systemThe system is mainly composed by master switch, motor exciting circuit, thyristor speed control circuit (including tachometer circuit), rectifying filter circuit, flat wave reactor and discharge circuit, energy consumption braking circuit, and the system adopts the closed loop PI regulator to implement control. When the master switch closes, the single-phase AC obtains continual current with small pulse through the control of thyristor speed control circuit, and bridge rectifier, filtering and flat wave reactor for the motor, and at the same time, through the rectifying of excitingcircuit, AC makes the motor obtain excitation to begin to work. The speed in the regulation trigger circuit sets the potentiometer RP1 to make the control angle output by PIC16F877 decrease when AN1 input voltage decreases, and the flow angle of thyristor increases with that, and the output voltage of main circuit increase, and the motor speed increases, and the output voltage of tachometer circuit increases, and the motor stably runs in the setting speed range through the function of PI regulator.4. Circuit designs of various parts in the system4.1 Design of main circuitThe parameters of various components in the circuit are seen in Figure 3.Press the start-up button SW, electrify the contactor KM loop, and KM normally open contact closes, and the normally closed contact opens, and start the button self-lock, the main circuit connects, and the thyristor speed control circuit controls the AC output through changing the control angle of bidirectional thyristor, and obtains the DC through bridge rectifying and filtering, and at the same time, the motor obtainsthe excitation through rectifying of exciting circuit to begin to work. To limit thepulsation of DC, connect the flat wave reactor in the circuit, and the resistance R3 offers discharge loop for the flat wave reactor when the master circuit suddenly breaks off. To quicken braking and stopping, the energy consumption braking is adopted in the equipment, and the braking part is composed by the resistance R4 and master circuit contactor normally closed contact. The motor excitation is powered by the single rectifying circuit, and to prevent the uncontrollable high speed accident induced by the excitation loss of motor, in the exciting circuit, serially connect the under-current relay KA, and the action current can be regulated through the potentiometer RP.4.2 Design of thyristor trigger circuitThe voltages at the point A and the point B in the main circuit change to 20V through the transformer, and after bridge rectifying, the half signals about 100H occur at these two points, and the signals meet with NPN audion through voltage-division R6 and R7 to amplify, produce zero passage pulse at the collector of the audion, and catch the zero passage pulse ascending edge by CCP1 module and note the time of occurrence first, and catch the zero passage pulse descending edge, and the time difference between both is the zero passage pulse width, and the half of the value is the midpoint of pulse, and by this catching mode, we can exactly obtain the actual zero passage point of AC, and at thesame time, we can utilize ADC analog/digital conversion module to translate the simulation voltage of PIC16F877 pin RA1/AN1 as the setting value of thyristor control angle (setting value of motor speed), change the setting value of potentiometer RP1 and correspondingly change the setting value of thyristor control angle, and the output value of tachometer circuit is input by the pin RA1/AN1 of PIC16F877, and the value is taken as the speed feedback value through A/D conversion. The oscillation frequency of SCM in the system adopts 4MHz, and according to the character of PIC16F877 order period, the resolution of thyristor control angle is the reciprocal of one fourth of SCM oscillation frequency, i.e. 1s,for the half wave time of 10ms of the power, the control angle can achieve 10000steps, which can completely realize the stepless smooth control of motor.4.3 Design of tachometer circuitThe tachometer circuit is composed by the optical coded disc accreting with motor rotor and the electric pulse amplifying and shaping circuit. The frequency of electric pulse has fixed proportion with the rotate speed of motor, and through amplifying and shaping, the electric pulse output by the optical coded disc is input from the pins RC0/T1CK1 of PIC16F877 as the standard TTL level, count by the TMR1 counter to compute the rotate speed, and compare this rotate speed with the presetting rotate speed and obtain the difference value, and PIC16F877 implements PI operation tothis difference value to obtain the control increase, and send the thyristor control angle in CCP2 to change the effective voltage of two ports of the motor, and finally control the rotate speed.5. Software designTo obtain small super modulation of thyristor control angle, we design the speed closed control as the typical I system, i.e. PI regulator, which is used to regulate the thyristor control angle time Td and its control algorithm isTd (k ) = Td (k -1) + a0e (k ) - a1e (k -1) = Td (k -1) + 0.84e (k ) - 0.63e (k -1) (5.1)a =Tf 0Kp 1+ T t (5.2)Where a1=kp,kp is the proportion coefficient of controller,Tt is the integral time constant, Tiand is the sampling cycle.Considering that the motor time constant of electromotor in the system is 0.12s, the warps couldn t be eliminated in several sampling cycles, so we select 2ms as the tachometer sampling cycle in the system.The software design module in the system mainly includes CCP1 ascending catching module, CCP1 descending catching module, control angle setting value A/D conversion module, tachometer circuit pulse timing counting module, PI regulator module and CCP2 comparison output module. Suppose we obtain the zero-pass time T , and the thyristor control angle time is Td, so the comparison value which is sent into CCP2 register CCPR2H:L is Tf=T+Td. and when the comparison is consistent, output high level in the pin of CCP2 to make the thyristor connect, and modify the value of CCPR2H:L again according to the required trigger pulse width value tosustain the out
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 醫(yī)護(hù)人員職業(yè)道德培養(yǎng)的策略與實(shí)踐
- 醫(yī)院安全管理體系的構(gòu)建與實(shí)施
- 區(qū)塊鏈在提升供應(yīng)鏈透明度中的實(shí)踐報(bào)告
- 囊腫的臨床護(hù)理
- 醫(yī)療APP的用戶行為模式研究及商業(yè)價(jià)值挖掘
- 企業(yè)生產(chǎn)經(jīng)營(yíng)貸款合同范例
- 區(qū)塊鏈技術(shù)革新商業(yè)地產(chǎn)管理的未來(lái)趨勢(shì)
- 醫(yī)學(xué)人文素質(zhì)教育的國(guó)際化視野與發(fā)展趨勢(shì)
- 醫(yī)療大數(shù)據(jù)的隱私保護(hù)技術(shù)進(jìn)展
- 中標(biāo)掛鉤合同范例
- 醫(yī)務(wù)科依法執(zhí)業(yè)自查表
- PDP性格測(cè)試表模板
- 醫(yī)師執(zhí)業(yè)變更注冊(cè)申請(qǐng)審核表
- 領(lǐng)導(dǎo)干部任前談話記錄表
- 2023建筑施工承插型套扣式鋼管腳手架安全技術(shù)規(guī)程
- (完整版)各檔口單品菜品毛利率核算表
- 新生兒醫(yī)源性皮膚損傷的預(yù)防與護(hù)理課件
- 西安外國(guó)語(yǔ)大學(xué)
- 信息隱藏技術(shù)全套教學(xué)課件
- 常見(jiàn)顱腦急癥的CT、MRI診斷
- 各種傳染病診斷標(biāo)準(zhǔn)
評(píng)論
0/150
提交評(píng)論