【正文】
用壽命和產(chǎn)品的質(zhì)量起著至關重要的作用。該系統(tǒng)操作方便、性能良好,比較符合電廠生產(chǎn)用水系統(tǒng)控制的需要。所以,對水箱控制,如果能夠使用精密的而且完全會嚴格按照生產(chǎn)規(guī)定運行的自動化系統(tǒng),可以最大限度的避免事故的幾率,同時也能節(jié)省資源并能有效提高生產(chǎn)的效率。畢 業(yè) 論 文題目: 基于單片機的水箱液位控制系統(tǒng) 學 號: 姓 名: 專業(yè)班級: 指導教師: 完成日期: 摘要:大型水箱是很多公司生產(chǎn)過程中必不可少的部件,它的性能和工作質(zhì)量的優(yōu)良不僅僅對生產(chǎn)有著巨大的影響,而且也關系著生產(chǎn)的安全。在過去,大量的對水箱操作是由相應的人員進行操作的,這樣的人工方式帶來了很大的弊端,比如水位的控制,時刻監(jiān)控水箱的環(huán)境,夜間的監(jiān)控等等,操作員稍有疏忽,或者簡易的監(jiān)則器件損壞,將帶來無法彌補的損失,更嚴重的會危機到生產(chǎn)人員的人身安全等。本單片機系統(tǒng)設計的目的是應用單片機控制技術,以8051單片機為核心控制水箱的水位,并實現(xiàn)了報警和手動、自動切換功能。關鍵詞:單片機 水位 控制 報警Abstract:Large water tanks are a lot of panies essential to the production process of parts, its performance and the quality of work not only on production of the fine has enormous influence, but also the safety of production. In the past, many of the tanks are operated by the staff to operate, so that artificial means a lot of drawbacks, such as the water level control, water tanks at all times to monitor the environment, and so on the night of monitoring, the operator slightly negligence, or damage to the Summary of the monitoring device will bring irreparable damage will be even more serious crisis in production, such as the personal safety of staff. Therefore, control of water tanks, if the use of sophisticated and can totally be run in strict accordance with the provisions of the automated production system that can maximize the chances of avoiding accidents, but also save resources and can effectively improve the efficiency of production. The purpose of singlechip system design is the application of singlechip control technology, to 8051 as the core to control the water level in water tanks, and lementation of the alarm and manual, automatic switching function. The system is easy to operate, good performance, more in line with the power to control the production of the necessary water system.Keywords: Singlechip Level Control Alarm目錄一、 前言…………………………………………………………………1 (一)課題背景………………………………………………………………1(二)國內(nèi)外研究的現(xiàn)狀…………………………………………………1(三) 使用單片機實現(xiàn)水體液位控制的優(yōu)點…………………………2二、本課題主要研究內(nèi)容………………………………………………2(一) 系統(tǒng)硬件總體方案………………………………………………2(二) 系統(tǒng)軟件總體方案………………………………………………3(三) 設計的研究進程…………………………………………………3三、 系統(tǒng)硬件設計…………………………………………………………3(一) 核心芯片8051單片機…………………………………………4(二) 液位傳感器設計…………………………………………………7(三)光電傳感器的基本特性…………………………………………….10 (四)DAC0832 D/A 轉(zhuǎn)換器和ADC0809 A/D 轉(zhuǎn)換器…………………12(五)鍵盤及顯示接口…………………………………………………16(六) 報警裝置…………………………………………………………17四、軟件的設計…………………………………………………………18(一) 軟件設計流程圖……………………………………………………18(二)水位檢測的主程序…………………………………………………19五、結(jié)論…………………………………………………………………21參考文獻……………………………………………………………22致謝…………………………………………………………………23一、前言(一)課題背景液位控制系統(tǒng)是以液位為被控參數(shù)的控制系統(tǒng),它在工業(yè)生產(chǎn)的各個領域都有廣泛的應用。液位控制一般指對某一液位進行控制調(diào)節(jié),使其達到所要求的控制精度。2在運行中可以隨時方便的修改各種各樣的運行參數(shù)的控制值,并修改系統(tǒng)的控制參數(shù),可以方便的改變液位的上限、下限。單片機是在一塊芯片上集成了一片微型計算機所需的CPU、存儲器、輸入、輸出等部件。一般,工業(yè)控制系統(tǒng)的工作環(huán)境差,干擾強,利用單片機控制就能克服這些缺點,因此單片機在控制領域得到廣泛的應用,使用單片機控制液體液位是很好的選擇。在上海,新型的單片機測控裝置與系統(tǒng)研究的生產(chǎn)基礎較雄厚,在生產(chǎn)過程中需要新型的測控裝置與系統(tǒng),因此在不斷的努力研究與開發(fā)。深圳在研制新型的測控裝置與系統(tǒng)領域也比較有成就,盡管與其他國家比較尚有差距,但是,深圳的高校、研究院所的最大的特點就是實際,與生產(chǎn)實際應用項目無關的問題基本不去考慮,主要考慮選取什么材料,測控什么物理量,優(yōu)點是什么,與機器設備的通訊接口等等。我國在新型測控裝置與系統(tǒng)研究、制造、應用和經(jīng)驗上,與其他發(fā)達國家相比還存在差距,但是我國的研究人員已經(jīng)克服很多困難,并在不斷的摸索中前進,有望在相關領域趕上甚至超過發(fā)達國家的技術水平,這是發(fā)展趨勢。采用高亮二極管和光敏三級管所組成的液位傳感器測量水位,可有效保證水位的自動控制,能更好地對水體水位進行自動化控制,避免了工作人員在現(xiàn)場進行檢測操控,方便了人員對液位系統(tǒng)的控制,控制方便且系統(tǒng)穩(wěn)定性能好;單片機不僅有體積小,安裝方便,功能較齊全等優(yōu)點,而且有很高的性價比,應用前景廣,同時有助于發(fā)現(xiàn)可能存在的故障,通過微機實現(xiàn)給水系統(tǒng)的自動控制與調(diào)節(jié),維持穩(wěn)定系統(tǒng),保證安全經(jīng)濟運行。本系統(tǒng)與PLC控制系統(tǒng)相比大大降低了使用成本,提高了控制運行速度。二、本課題主要研究內(nèi)容本設計是采用8051單片機為核心芯片,及其相關硬件來實現(xiàn)的水體液位控制系統(tǒng),在用液位傳感器測液位的同時