




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、(此文檔為word格式,下載后您可任意編輯修改?。┚幪?樣#令孑科技直浄GUILIN UNIVERSITY OF ELECTRONIC TECHNOLOGY畢業(yè)設(shè)計說明書題 目:電梯控制系統(tǒng)設(shè)計院(系):電子工程與自動化學(xué)院專業(yè):電子信息科學(xué)與技術(shù)專業(yè)學(xué)生姓名:學(xué)號: 0900840218指導(dǎo)教師:李莉職 稱:講 師題目類型:理論研究實驗研究工程設(shè)計2工程技術(shù)研究軟件開發(fā)2013年5月20日摘要本設(shè)計主要利用AT89S52單片機,實現(xiàn)電梯控制系統(tǒng)的設(shè)計。單片機與電機驅(qū)動電 路的結(jié)合完成了電梯基本的升降、樓層???、方向選擇、時間控制等基本功能,研究并 實現(xiàn)了在上位機的模式下通過 LABVIEW的
2、遠程監(jiān)測的方法,完成了系統(tǒng)樣機的設(shè)計與 制作。本設(shè)計參照了通用電梯的設(shè)計標準,有良好的操作界面和通用的外部接口,具有人 性化設(shè)計,實現(xiàn)較好的外設(shè)兼容性。同時在系統(tǒng)樣機中完成的其它設(shè)計研究還包括,利 用LED和蜂鳴器組成的簡單電路實現(xiàn)電梯意外聲光報警、禾U用數(shù)碼管實現(xiàn)電梯樓層顯 示,利用4x4矩陣鍵盤實現(xiàn)電梯樓層按鍵選擇,利用LED實現(xiàn)目的樓層的指示,利用MAX232串口電路實現(xiàn)串口通信,來監(jiān)測電梯實時狀態(tài)。樣機使用的主要器件包括低功 耗、高性能的AT89S52單片機,低功耗、低成本、低電壓的MAX232,雙全橋電機專用驅(qū)動芯片L298,共陰極八段數(shù)碼管,4x4矩陣鍵盤等,通過比較合理的設(shè)計使樣
3、機系 統(tǒng)基本達到了任務(wù)要求,并具有很高的性價比,硬件設(shè)計簡單可靠。軟件部分使用keil軟件進行C語言程序編寫,用proteus 7軟件進行仿真調(diào)試。本設(shè)計中綜合使用了數(shù)字 電路、模擬電路、高頻電路、單片機及編程、硬件邏輯描述、LABVIEW及其應(yīng)用以及計算機輔助設(shè)計(CAD )等多方面的知識,軟硬件結(jié)合,很好地完成了本科畢業(yè)設(shè)計任 務(wù)要求并取得了良好的學(xué)習(xí)效果。關(guān)鍵詞:AT89C52;單片機;電梯控制系統(tǒng);C語言AbstractAT89S52 microcontroller, the design of the main use of the elevator control system d
4、esig n. Comb in ati on of microc on troller and motor driver circuit completed basic lifti ng of the elevator floor stop, the choice of directio n, time con trol basic fun cti ons such as research and in the mode of the and production.The desig n with refere nee to the gen eric elevator desig n sta
5、ndards, good user in terface and a com mon exter nal in terface, with user-frie ndly desig n, better peripheral compatibility. System prototype design research also includes the use of LED and buzzer simple circuit elevator accident sound and light alarm, use of digital control elevator floor displa
6、y 4x4 matrix keyboard elevator floor butt on to select the use of light-emitti ng diode dest in ati on floor display, the MAX232 serial circuit serial com muni cati on to mon itor the state of the elevator. Prototype device in eludes a low-power, bridge motor driver chip L298N com mon cathode eight
7、digital tube, 4x4 matrix keyboard, by comparing the rational design of the prototype system basically reached the mission requirements, and . The software part using keil software written in C Ianguage program ming, debug using proteus 7 software simulatio n. The desig n of the in tegrated use of di
8、gital circuits, analog circuits, , LABVIEW and its applications as well as computer-aided desig n (CAD) and other aspects of kno wledge, a comb in atio n of task requirements and the 100-storeyed building disposes.Engineers conference materials of the third lift of Hong Kon g.2000.317 Sokoloff,Leo n
9、ard. Applicatio ns in LabVIEWM.2OO418 Meehan Joanne,Muir Lindsey.SCM in Merseyside SMEs:Benefits and barriersJ.TQM Journal. 200819 Kli nger,Thomas. Image process ing with LabVIEW and IMAQ visio nM.2OO320 Olansen,Jon B. Virtualbio-i nstrume ntatio n:Biomedical,cli niacalandLabbiewM.2002附錄A :硬件仿真附錄B :
10、串口電路圖附錄C:總體電路圖単片ISF下載口復(fù)位電路直流電機犧功按鍵電路XI ATi8樓層顯示,站IIQKO-O工MO叩:Fi:-7LJfittwPILNirisFl?M3NlFNPliMSh*PI*M#fthi?TlF3MuMi KI1礎(chǔ):TOF3*BTWJuXIgisrrKXD師rai AixfO-FSEN毋工X1 蘭r-時鐘電路W -JIu 亠 I IJ -fraa冃的樓層指示報警燈蜂鳴器noE丄7By,.T n. 1 C-n.”.1 !. - X附錄D:電梯驅(qū)動電路圖附錄E:電梯系統(tǒng)設(shè)計總程序#in elude reg52.,t;void delay(ui nt z);函數(shù)聲明void
11、 delay2();void keysca n();void display( uint aa);void ini t();void zhishide ng();void temp send(uchar dat);主函數(shù)一void main()ini t();調(diào)用初始化函數(shù)temp_se nd(lc);while(1)調(diào)用串口發(fā)送函數(shù)keysca n();調(diào)用鍵盤掃描函數(shù)zhishide ng();調(diào)用目的樓層點燈函數(shù)if(flag=O)zz=fz=0;電機不轉(zhuǎn)sha nglc=0; xialc=0; n eilc=0; n=lc ;電梯運行標志位置for(i=n+1;i=1;i-)當(dāng)下部的電
12、梯呼叫時,2 keysca n(); 同時內(nèi)部做鍵盤掃描 zhishide ng();if(sha ngi=1|xiai=1| neii=1)flag=2; break; if(flag=1)keysca n();zhishide ng();for(t=1;t=33;t+)當(dāng)運行標志位為1,電梯正轉(zhuǎn)zz=1;fz=0;delay(5);zz=0;fz=0;delay(20); 一lc+;樓層標志位自加1temp_se nd(lc);串口發(fā)送樓層標志位display(lc);數(shù)碼管顯示樓層if(sha nglc=1| neilc=1)sha nglc=0;n eilc=0;zhishide ng
13、();fz=0;zz=0; delay2();flag=0;n=lc ;標志位置1for(i=n+1;i=5)運行標志位為1或者超出5層,電梯n=lc ;if(sha ngn =0&n ei n=0)fz=0;zz=0; delay2();xia n=0;for(i=n-1;i=1;i-)內(nèi)部繼續(xù)判斷呼叫的樓層在下,則運行標志位置2keysca n(); zhishide ng();停止運行if(sha ngi=1|xiai=1| neii=1)flag=2; break;if(flag=2)keysca n();zhishide ng();for (t=1;t=1;i-)向下繼續(xù)有呼叫,電梯
14、運行標志位置keysca n();zhishide ng();if(sha ngi=1|xiai=1| neii=1) flag=2; break;if(flag=0|lc=1)電梯運行標志位為1或者到達一樓,電梯 n=lc ;if(xia n=0&n ei n=0)fz=0; zz=0;delay2();sha ngn=O;for(i=n+1;i0;x-)for(y=109;y0;y-) keysca n(); zhishide ng();ms級延函數(shù)。void delay( uint z)uint x,y;for (x=z;x0;x_)for(y=109;y0;y-)J鍵盤掃描函數(shù)。voi
15、d keysca n()num=0;P2=0xfe; temp=P2;temp=temp&0 xf0;while(temp!=0xf0)delay(5); temp=P2; temp=temp&0 xf0; while(temp!=0xf0) temp=P2; switch(temp)case 0xee:num=1; break;case 0xde:num=2; break;case Oxbe:num=3; break;case 0x7e:num=4; break; while(temp!=OxfO) temp=P2; temp=temp&0 xf0;P2=0xfd;temp=P2;temp=
16、temp&0 xf0;while(temp!=0xf0) delay(5); temp=P2; temp=temp&0 xf0; while(temp!=0xf0)temp=P2; switch(temp)case 0xed:num=5; break;case 0xdd:num=6; break;case 0xbd:num=7; break;case 0x7d:num=8; break; while(temp!=0xf0) temp=P2; temp=temp&0 xf0;P2=0xfb; temp=P2; temp=temp&0 xf0; while(temp!=0xf0) delay(5)
17、; temp=P2; temp=temp&0 xf0; while(temp!=0xf0)temp=P2; switch(temp)case Oxeb:num=9; break;case Oxdb:num=10; break;case Oxbb:num=11; break;case 0x7 b:num=12; break; while(temp!=OxfO) temp=P2; temp=temp&0 xfO;P2=0xf7;temp=P2;temp=temp&0 xfO; while(temp!=OxfO) delay(5); temp=P2; temp=temp&0 xfO; while(t
18、emp!=OxfO)temp=P2; switch(temp) case 0xe7:num=13; break;case 0xd7:num=14; break;case 0xb7:num=15; break;case 0x77:num=16; break; while(temp!=OxfO) temp=P2; temp=temp&0 xfO; switch( num)case 1:sha ng1=1; break;case 2:sha ng2=1;break;case 3:sha ng3=1; break;case 4:sha ng4=1; break;case 5:xia2=1;break;case 6:xia3=1
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 精益生產(chǎn)方式與企業(yè)精益化管理探討
- 供暖行業(yè)部門管理辦法
- 殯葬管理辦法實施效果
- 金融碩士課程體系核心知識圖譜構(gòu)建
- 高效農(nóng)田建設(shè)與管理策略研究
- 北京通風(fēng)廊道管理辦法
- 小學(xué)教師教學(xué)研究成果展示
- 煤礦安全檢查工證件查詢
- 機場勘測項目管理辦法
- 安全生產(chǎn)知培訓(xùn)
- 中遠海運招聘筆試題庫2025
- 中小學(xué)小班化教學(xué)模式與支持體系構(gòu)建研究
- 溫州市2024-2025學(xué)年高一下學(xué)期6月期末-英語試卷及答案
- 2025至2030中國核應(yīng)急機器人行業(yè)市場現(xiàn)狀分析及競爭格局與投資發(fā)展報告
- 導(dǎo)管室護理管理制度
- 降低跌倒事件的發(fā)生率QC圈
- 深靜脈血栓的試題及答案
- 2025年安徽省郵政行業(yè)職業(yè)技能大賽(快遞員賽項)備賽試題庫(含答案)
- 汽車產(chǎn)業(yè)鏈協(xié)同發(fā)展-洞察闡釋
- 滴灌帶造顆粒合同協(xié)議
- 學(xué)??倓?wù)后勤工作總結(jié)模版
評論
0/150
提交評論