課程設計步進電機控制步進電機轉速實時控制_第1頁
課程設計步進電機控制步進電機轉速實時控制_第2頁
課程設計步進電機控制步進電機轉速實時控制_第3頁
課程設計步進電機控制步進電機轉速實時控制_第4頁
課程設計步進電機控制步進電機轉速實時控制_第5頁
已閱讀5頁,還剩7頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、太原理工大學現(xiàn)代科技學院 課程設計目 錄一、任務與要求3二、設計方案3三、硬件設計原理4四、軟件設計7五、調(diào)試9六、收獲和體會9七、參考文獻9步進電機轉速實時控制一、任務與要求步進電機轉速實時控制要求控制步進電機正轉、反轉,以及對步進電機的轉速進行實時控制。1,用8086處理器和可編程并行接口芯片8255組成控制系統(tǒng),掌握步進電機與8255的接口電路原理;2,理解步進電機正、反轉工作原理和轉速控制原理3,能編制出步進電機正、反轉運行程序(以3種不同速度);低速正轉和高速反轉程序,并寫出較完整的設計程序二、設計方案根據(jù)課題要求,用8086處理器和可編程并行接口芯片8255組成控制系統(tǒng),控制步進電

2、機正轉、反轉以及轉速控制,步進電機不能直接由8255驅動,而需要用相應的驅動芯片,因此,控制系統(tǒng)直接控制電機驅動即可控制步進電機。設計流程圖如下:8086cpu8255步進電機步進電機驅動三、硬件原理與設計1、 系統(tǒng)硬件子系統(tǒng)的構成:本設計采用的步進電機為35byj46型四相八拍電機,電壓為dc12v,其勵磁線圈及其勵磁順序如下圖及下表所示:123456785+4-3-2-1-2、步進電機工作原理以及與8255接口的關系:實驗線路圖3、工作原理:四相步進電機示意圖見下左圖,轉子由一個永久磁鐵構成,定子分別由4組繞組構成電機定子和轉子示意圖電氣連接示意圖 當s1連通電源后,定子磁場將產(chǎn)生一個靠近

3、轉子為n極,遠離轉子為s極才磁場,這樣的定子磁場和轉子的固有磁場發(fā)生作用,轉子就會轉動,正確地s1、s4的送電次序,就能控制轉子旋轉的方向。 例如:若送電的順序為s1閉合斷開s2閉合斷開s3閉合斷開s4閉合斷開,周而復始的循環(huán),在定子和轉子共同作用下,電機就瞬時針旋轉: 若送電的順序為s4閉合斷開s3閉合斷開s2閉合斷開s1閉合斷開,周而復始的循環(huán),則電機就逆時針旋轉,原理同理。 8255a向步進電機發(fā)出的控制脈沖4、8255工作方式選擇: 8255有三個數(shù)據(jù)端口(a口、b口、c口),8255有三種基本的工作方式,分別為:方式一(基本輸入/輸出方式),方式二(選通輸入/輸出方式),方式三(雙向

4、總線i/o方式)。其中a口可選擇三種方式中的任意一種,b口只能選擇方式0或方式1,c口常用作兩個4為端口,若工作于方式0,其高四位工作方式與a端口一致,低四位與工作方式與端口b一致;若工作于其余兩種方式,端口的部分信號作為a口和b口的控制聯(lián)絡信號。其方式選擇控制字如圖所示:四、軟件設計data segmenttable1 db 01h,03h,02h,06h,04h,0ch,08h,09h table2 db 08h,0ch,04h,06h,02h,03h,01h,09hdata endscode segment assume cs:code,ds:datastart: mov ax,data

5、 mov ds,axmain: mov al,90h out 63h,almovdx,0005ha1:mov bx,offset table1 ;中速正轉程序 mov cx,0008h movdi,2000h a2: moval,bx out61h,alcalldally incbx loopa2 decdxjnza1movdx,0008ha3:mov bx,offset table1 ;高速正轉程序 mov cx,0008h movdi,1000h a4: moval,bx out61h,alcalldally incbx loopa4 decdxjnza3 movdx,0005ha5:mo

6、v bx,offset table1 ;低速正轉程序 mov cx,0008h movdi,5000h a6: moval,bx out61h,alcalldally incbx loopa6 decdxjnza5movdx,0005hb1:mov bx,offset table2 ;低速反轉程序 mov cx,0008h movdi,5000h b2: moval,bx out61h,alcalldally incbx loopb2 decdxjnzb1movdx,0008hb3:mov bx,offset table2 ;高速反轉程序 mov cx,0008h movdi,1000h b4

7、: moval,bx out61h,alcalldally incbx loopb4 decdxjnzb3 dally:pushcx mov cx,dic1:pushaxpopaxloopa3popcxretcodeendsend start五、調(diào)試控制程序編寫好后,首先進行查錯、編譯,然后下載到實驗系統(tǒng)里面運行,觀察步進電機的運行情況是否與預期一致,也就是觀察步進電機能否實現(xiàn)正轉、反轉以及變速;如果都能實現(xiàn),還可以修改程序,實現(xiàn)速度的任意調(diào)整,以及正轉、反轉步數(shù)或圈數(shù)的控制。六、收獲和體會通過本學期對微型計算機控制技術課程學習以及這次課程設計的實踐鍛煉,首先我對微型計算機控制技術這門課程涉及

8、到的理論知識有一定認識和了解,對計算機的工作原理以及內(nèi)部結構都有一定了解;其次我也掌握了計算機的一些基本操作步驟和基本編程方法,對一些生活中常見的簡單運用進行編程設計,通過這次課程設計鍛煉,將書本上的編程理論應用到實際編程控制中,對編程技術的提升有很大幫助,同時也讓我深刻體會得到程序對整個系統(tǒng)運行的作用;這次課程設計讓我從對書面上的理論知識邁向實踐操作,讓我懂得如何讓將計算機原理融合到實際應用中。在這個過程中,我自己經(jīng)歷了一次從課題要求到電路設計再到程序編寫以及由編程再到程序運行到最后步進電機的正反轉旋轉的完整過程,對動手鍛煉和實踐操作都有很大幫助,讓我對計算機控制方面的東西產(chǎn)生了濃厚的興趣,

9、讓我在以后的生活以及工作中給予很大的幫助。七、參考文獻1、潘新民 張燕芳:微型計算機控制技術,高等教育出版社;g an employment tribunal claimemployment tribunals sort out disagreements between employers and employees.you may need to make a claim to an employment tribunal if: you dont agree with the disciplinary action your employer has taken against you

10、your employer dismisses you and you think that you have been dismissed unfairly.for more information about dismissal and unfair dismissal, seedismissal.you can make a claim to an employment tribunal, even if you haventappealedagainst the disciplinary action your employer has taken against you. howev

11、er, if you win your case, the tribunal may reduce any compensation awarded to you as a result of your failure to appeal.remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are complaining about happened. if your applic

12、ation is received after this time limit, the tribunal will not usually accept it.if you are worried about how the time limits apply to you, take advice from one of the organisations listed underfurther help.employment tribunals are less formal than some other courts, but it is still a legal process

13、and you will need to give evidence under an oath or affirmation.most people find making a claim to an employment tribunal challenging. if you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the organisations listed underfurther help.if you a

14、re being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your compensation if you win the case. this is known as adamages-based agreement. in england and wales, your solicitor cant charge you more than 35% of your compensation if you w

15、in the case.if you are thinking about signing up for a damages-based agreement, you should make sure youre clear about the terms of the agreement. it might be best to get advice from an experienced adviser, for example, at a citizens advice bureau. to find your nearest cab, including those that give

16、 advice by e-mail, click onnearest cab.for more information about making a claim to an employment tribunal, seeemployment tribunals.the (lack of) air up there watch mcayman islands-based webb, the head of fifas anti-racism taskforce, is in london for the football associations 150th anniversary celeb

17、rations and will attend citys premier league match at chelsea on sunday.i am going to be at the match tomorrow and i have asked to meet yaya toure, he told bbc sport.for me its about how he felt and i would like to speak to him first to find out what his experience was.uefa hasopened disciplinary pr

18、oceedings against cskafor the racist behaviour of their fans duringcitys 2-1 win.michel platini, president of european footballs governing body, has also ordered an immediate investigation into the referees actions.cska said they were surprised and disappointed by toures complaint. in a statement th

19、e russian side added: we found no racist insults from fans of cska.age has reached the end of the beginning of a word. may be guilty in his seems to passing a lot of different life became the appearance of the same day; may be back in the past, to oneself the paranoid weird belief disillusionment, t

20、hese days, my mind has been very messy, in my mind constantly. always feel oneself should go to do something, or write something. twenty years of life trajectory deeply shallow, suddenly feel something, do it.一字開頭的年齡已經(jīng)到了尾聲?;蛟S是愧疚于自己似乎把轉瞬即逝的很多個不同的日子過成了同一天的樣子;或許是追溯過去,對自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海

21、中不斷糾纏。總覺得自己自己似乎應該去做點什么,或者寫點什么。二十年的人生軌跡深深淺淺,突然就感覺到有些事情,非做不可了。the end of our life, and can meet many things really do?而窮盡我們的一生,又能遇到多少事情是真正地非做不可?during my childhood, think lucky money and new clothes are necessary for new year, but as the advance of the age, will be more and more found that those thing

22、s are optional; junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isnt really grow up, it seems is not so important; then in high school, think dont want to give vent to out your in

23、ner voice can be in the high school children of the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already cant remember his appearance

24、.童年時,覺得壓歲錢和新衣服是過年必備,但是隨著年齡的推進,會越來越發(fā)現(xiàn),那些東西根本就可有可無;初中時,以為要有一場暗戀才意味著真正的成長,但三年過去后,自己心平氣和的寫同學錄的時候,突然就發(fā)現(xiàn)是不是真正的成長了,好像并沒有那么重要了;然后到了高中,覺得非要吐露出自己的心聲才能為高中生涯里的懵懂情愫劃上一個句點,但畢業(yè)晚會的時候最終還是被梗塞在了咽喉,后來再次站在他曾經(jīng)揮汗如雨的球場,看著他投過籃球的球框時,突然間發(fā)現(xiàn)自己已經(jīng)想不起他的容顏。originally, this world, can produce a chemical reaction to an event, in addi

25、tion to resolutely, have to do, and time.原來,這個世界上,對某個事件能產(chǎn)生化學反應的,除了非做不可的堅決,還有,時間。a persons time, your ideas are always special to clear. want, want, line is clear, as if nothing could shake his. also once seemed to be determined to do something, but more often is he backed out at last. dislike his co

26、wardice, finally found that there are a lot of love, there are a lot of miss, like shadow really have been doomed. those who do, just green years oneself give oneself an arm injection, or is a self-righteous spiritual.一個人的時候,自己的想法總是特別地清晰。想要的,不想要的,界限明確,好像沒有什么可以撼動自己。也曾經(jīng)好像已經(jīng)下定了決心去做某件事,但更多的時候是最后又打起了退堂鼓。

27、嫌惡過自己的怯懦,最終卻發(fā)現(xiàn)有很多緣分,有很多錯過,好像冥冥之中真的已經(jīng)注定。那些曾經(jīng)所謂的非做不可,只是青蔥年華里自己給自己注射的一支強心劑,或者說,是自以為是的精神寄托罷了。at the moment, the sky is dark, the air is fresh factor after just rained. suddenly thought of blue plaid shirt; those were broken into various shapes of stationery; from the corner at the beginning of deep frie

28、ndship; have declared the end of the encounter that havent start planning. those years, those days of do, finally, like youth, will end in our life.此刻,天空是陰暗的,空氣里有著剛下過雨之后的清新因子。突然想到那件藍格子襯衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場還沒有開始就宣告了終結的邂逅計劃那些年那些天的非做不可,終于和青春一樣,都將在我們的人生中謝幕。baumgartner the disappointing new

29、s: mission aborted. r plays an important role in this mission. starting at the ground, conditions have to be very calm - winds less than 2 mph, with no precipitation or humidity and limited cloud cover. the balloon, with capsule attached, will move through the lower level of the atmosphere (the trop

30、osphere) where our day-to-day weather lives. it will climb higher than the tip of mount everest (5.5 miles/8.85 kilometers), drifting even higher than the cruising altitude of commercial airliners (5.6 miles/9.17 kilometers) and into the stratosphere. as he crosses the boundary layer (called the tro

31、popause),e can expect a lot of turbulence.the supersonic descent could happen as early as sunda.the weathethe balloon will slowly drift to the edge of space at 120,000 feet ( then, i would assume, he will slowly step out onto something resembling an olympic diving platform.below, the earth becomes the concrete bottom of a swimming pool that he wants to land on, but not too hard. still, hell be traveling fast, so despite the distance, it will not be like diving into the deep

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論