【正文】
1 1 1 IN7 系統(tǒng)電源電路設(shè)計 電源:(由 7812 可調(diào)電源和 7805 構(gòu)成的 +5V 穩(wěn)壓電源)由電源變壓器,整流電路,濾波和穩(wěn)壓電路等部分組成。 (以上兩種信號用于啟動 A/D 轉(zhuǎn)換) . EOC:轉(zhuǎn)換結(jié)束信號輸出引腳,開始轉(zhuǎn)換時為低電平,當(dāng)轉(zhuǎn)換結(jié)束時為高電平。 圖 ADC0809 內(nèi)部電路結(jié)構(gòu) ( 2) ADC0809 引腳結(jié)構(gòu) ADC0809 各腳功能如下: D7D0: 8 位數(shù)字量輸出引腳。圖 是 A/D 轉(zhuǎn)換部分原理圖,在接線時先經(jīng)過運(yùn)算放大器和分壓電路把傳感器輸出的電流信號轉(zhuǎn)換成電壓信號,然后輸入到 A/D 轉(zhuǎn)換器。當(dāng)使能為低時,輸出將鎖存在已建立的數(shù)據(jù)電平上。 圖 INA168管腳分布圖 系統(tǒng)中將 SY9411LD 傳感器采集得到的電信號,經(jīng)過 INA168 高精度運(yùn)算放M~1單相電機(jī)JDQ1JDQ111T19013GNDR81kGND+5VCOND5~220VD4R6510 西華大學(xué) 課程設(shè)計說明書 第 7 頁 大器放大處理。寬輸入共模電壓范圍,低靜態(tài)電流,和小的 SOT 23包裝使在各種應(yīng)用中的用途。電壓傳感器是美國 SM 公司生產(chǎn)的 5552 型 OEM 壓阻壓力傳感器,其有全溫度補(bǔ)償及標(biāo)定( 0~70),傳感器經(jīng)過特殊加工處理,用兼顧的耐高溫塑料外殼封裝。該系統(tǒng)控制器特點是直觀地顯示水位高度,可任意控制水位高度。由此來看方案 1 不適合設(shè)計要求。但是控制方式單一,不具有遠(yuǎn)程控制的發(fā)展?jié)摿Α5嬖谶@樣的問題:浮球易受外界雜物影響其穩(wěn)定性,特別是纖維狀的雜物纏繞而有失誤,同一小水箱里不宜使用多個,否則會相纏繞。 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è)計說明書 目錄: 前言: ............................................................ 1 ...................................................... 2 控制方式選擇 .................................................. 2 微處理器型號選擇 ............................................. 2 整體方案設(shè)計 ................................................. 3 .......................................................... 4 單片機(jī)最小系統(tǒng) ................................................ 4 傳感器 ........................................................ 5 信號放大電路 .................................................. 6 鍵盤電路 ...................................................... 7 液晶顯示電路 .................................................. 7 A/D 轉(zhuǎn)換電路及控制輸出 ........................................ 9 系統(tǒng)電源電路設(shè)計 ............................................. 11 3. 軟件設(shè)計 ........................................................ 13 軟件系統(tǒng)設(shè)計 ................................................. 13 4. 系統(tǒng)設(shè)計總結(jié) .................................................... 14 參考文獻(xiàn): ......................................................... 15 附頁: ............................................................. 16 1. 系統(tǒng)設(shè)計總圖 ................................................ 16 2. 系統(tǒng)核心程序 ................................................ 17 西華大學(xué) 課程設(shè)計說明書 第 1 頁 前言: 系統(tǒng)基于 STC12C5A60S2 單片機(jī)為處理器,完成液位檢測、顯示和控制功能。 關(guān)鍵詞 :單片機(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。這種水位開關(guān)價格便宜,對于一些要求不太嚴(yán)格的場合適用,有一定耐污能力。 方案論證與比較:方案 1 整體設(shè)計簡單,成本較低。而在驅(qū)動只采用 74HC573由于受到 74HC573 輸入管腳灌電流的影響,當(dāng)在陰極單列全亮的情況下回影響到LED 的亮度。通過鍵盤設(shè)置液位高度