【正文】
西華大學(xué) 課程設(shè)計(jì)說明書 課 程 設(shè) 計(jì) 說 明 書 課程設(shè)計(jì)名稱: 計(jì)算機(jī)控制技術(shù) 題 目: 水位自動(dòng)控制裝置的設(shè)計(jì) 學(xué) 生 姓 名: 專 業(yè): 電氣工程與自動(dòng)化 學(xué) 號(hào): 指 導(dǎo) 教 師: 郭 秀 麗 日期: 2021 年 12 月 18 日 成績(jī) 西華大學(xué) 課程設(shè)計(jì)說明書 摘要: 隨著微電子技術(shù)的快速發(fā)展,單片機(jī)控制的智能型控制器件廣泛應(yīng)用于電子產(chǎn)品中,為了達(dá)到對(duì)單片機(jī)控制器進(jìn)一步層次學(xué)習(xí)和掌握,經(jīng)過綜合分析系統(tǒng)選擇了由 STC89C51 單片機(jī)為處理單元,完成液位智能控制功能。 液位自動(dòng)控制是通過控制 開關(guān) 閥 的開關(guān) 來控制液位的高低,當(dāng)傳感器檢測(cè) 得 到液位 高度 設(shè)定值,閥門關(guān)閉,防止 液體 溢出;當(dāng)檢測(cè)液位低于設(shè)定值時(shí),閥門打開,使液位上升,從而達(dá)到控制液位的目的。 通過對(duì)系統(tǒng)設(shè)計(jì)的分析、方案論證和選擇、系統(tǒng)模塊設(shè)計(jì)到最后系統(tǒng)的完善和調(diào)試,系統(tǒng)能按照要求能完成液位高度控制功能,運(yùn)行情況穩(wěn)定。 關(guān)鍵詞 :?jiǎn)纹瑱C(jī),智能控制,開關(guān)閥,液位高度 Abstract: With the rapid development of microelectronics technology and singlechip microputer control of intelligent control devices are widely used in electronic products, in order to achieve further level of single chip microputer controller to learn and master, after prehensive analysis system chosen by the STC89C51 microcontroller as the processing unit, plete the level of intelligent control function. Liquid level automatic control is through the control of switch valve switch to control the liquid level height, when the sensor detects the level of value, the valve closed, to prevent liquid overflow。 When testing liquid level is lower than the set value, the valve is opened, the liquid level rise, so as to achieve the goal of control level. Through the analysis of the system design, scheme parison and selection, system module design to the final system to improve and debugging, the system can plete liquid level height control function, according to the requirements can run in a stable condition. Key words: single chip microputer, intelligent control, onoff valves, liquid level height 西華大學(xué) 課程設(shè)計(jì)說明書 目錄: 前言: ............................................................ 1 ...................................................... 2 控制方式選擇 .................................................. 2 微處理器型號(hào)選擇 ............................................. 2 整體方案設(shè)計(jì) ................................................. 3 .......................................................... 4 單片機(jī)最小系統(tǒng) ................................................ 4 傳感器 ........................................................ 5 信號(hào)放大電路 .................................................. 6 鍵盤電路 ...................................................... 7 液晶顯示電路 .................................................. 7 A/D 轉(zhuǎn)換電路及控制輸出 ........................................ 9 系統(tǒng)電源電路設(shè)計(jì) ............................................. 11 3. 軟件設(shè)計(jì) ........................................................ 13 軟件系統(tǒng)設(shè)計(jì) ................................................. 13 4. 系統(tǒng)設(shè)計(jì)總結(jié) .................................................... 14 參考文獻(xiàn): ......................................................... 15 附頁(yè): ............................................................. 16 1. 系統(tǒng)設(shè)計(jì)總圖 ................................................ 16 2. 系統(tǒng)核心程序 ................................................ 17 西華大學(xué) 課程設(shè)計(jì)說明書 第 1 頁(yè) 前言: 系統(tǒng)基于 STC12C5A60S2 單片機(jī)為處理器,完成液位檢測(cè)、顯示和控制功能。通過電子