【正文】
.................................................................. 4 下位機(jī)系統(tǒng) ............................................................................................................... 5 上位機(jī)系統(tǒng) ............................................................................................................... 5 3 系統(tǒng)硬件電路設(shè)計 ............................................................................................................. 6 下位機(jī)系統(tǒng)硬件 電路 設(shè)計 ....................................................................................... 6 溫度檢測模塊 ................................................................................................ 6 濕度檢測模塊 ................................................................................................ 9 RS485S 串口通信模塊 ................................................................................. 9 報警電路模塊 ............................................................................................ 14 上位機(jī)系統(tǒng)硬件 電路 設(shè)計 ..................................................................................... 14 顯示模塊 ...................................................................................................... 14 RS485S 串口通信模塊 ............................................................................... 16 鍵盤模塊 ...................................................................................................... 16 AT89C51 硬件電路設(shè)計 ......................................................................................... 17 AT89C51 性能參數(shù) ...................................................................................... 17 內(nèi)部時鐘電路設(shè)計 ...................................................................................... 19 復(fù)位電路設(shè)計 .............................................................................................. 20 AT89C51 內(nèi)部結(jié)構(gòu) ...................................................................................... 21 4 軟件設(shè)計 ........................................................................................................................... 23 下位機(jī)軟件設(shè)計 ..................................................................................................... 23 寧夏理工學(xué)院畢業(yè)設(shè)計 V 溫度子程序設(shè)計 .......................................................................................... 23 濕度子程序設(shè)計 .......................................................................................... 24 報警子程序設(shè)計 .......................................................................................... 24 下位機(jī)中斷程序設(shè)計 .................................................................................. 25 串口通信程序設(shè)計 ..................................................................................... 26 上位機(jī)軟件設(shè)計 .................................................................................................... 27 鍵盤子程序設(shè)計 .......................................................................................... 28 串口通信模塊子程序設(shè)計 .......................................................................... 29 5 總結(jié)與展望 ....................................................................................................................... 30 總結(jié) ......................................................................................................................... 30 展望 ......................................................................................................................... 30 參考文獻(xiàn) ............................................................................................................................... 31 結(jié)束語 ................................................................................................................................... 32 致謝詞 ................................................................................................................................... 33 附錄 1:下位機(jī)系統(tǒng)電路圖 ................................................................................................ 34 附錄 2:上位機(jī)系統(tǒng)電路圖 ................................................................................................ 35 附錄 3:下位機(jī)系統(tǒng)程序 .................................................................................................... 36 附錄 4:上位機(jī)系統(tǒng)程序 .................................................................................................... 39 寧夏理工學(xué)院畢業(yè)設(shè)計 1 1 緒論 研究背景 糧食是人類生存的必需品,溫度與濕度是保存好糧食的先決條件,隨著中國加入 WTO和糧食市場的逐漸開放,儲存大量的糧食對穩(wěn)定國民經(jīng)濟(jì)的發(fā)展起到至關(guān)重要的作用。 Select HS1101 as humidity sensor, through the wet sensitive capacitance in 555 timer and resistors circuit, will the change of capacitance values to the inverse of a voltage and frequency signal, and USES the RS485 munication and the upper machine。 單片機(jī)在這種系統(tǒng)中往往作為一個終端機(jī),安裝在系統(tǒng)的某些節(jié)點上,對現(xiàn)場 溫濕度 進(jìn)行實時的測量和控制。上位 機(jī)系統(tǒng)仍以單片機(jī)為核心,擴(kuò)展數(shù)據(jù)存儲器,在鍵盤模塊里可以更改閾值, LCD 顯示模塊顯示從下位單片機(jī)傳來的溫度、濕度值。人們通常使用溫度計、濕度計來測量糧庫的溫度和濕度,通過人工加熱、加濕、通風(fēng)和降溫等方法來控制糧庫的溫度、濕度,這種方法不但控制精度低、實時性差,而且操作人員的勞動強(qiáng)度大。寧夏理工學(xué)院畢業(yè)設(shè)計 I 摘要 糧食儲藏是國家為防備戰(zhàn)爭、荒災(zāi)以及其他突發(fā)性事件而采取的有效措施。同時溫度與相對濕度的大幅度變化可能導(dǎo)致種子大范圍 腐爛或者影響種子的發(fā)芽率,從而帶來極大地經(jīng)濟(jì)及財產(chǎn)損失。從而實現(xiàn)一種小型糧庫的溫濕度智能監(jiān)控。單片機(jī)的高可靠性和強(qiáng)抗干擾能力,使它可以置于惡劣環(huán)境的前端工作 。Once the temperature or humidity value more than setting threshold, can realize the alarm. PC system based on singlechip microputer is still, extended data storage in the keyboard module can change the threshold, LCD display module from a single chip that under the temperature, humidity value from. So as to achieve a small the temperature and humidity of the warehouse intelligent monitoring. Experiments show that the system has a conversion speed and precision, strong ability to control etc. Characteristics. Now realize intelligent control of the temperature and humidity warehouse need a high stability, low cost of temperature, humidity intelligent control system, and its use,under a machine control structure, achieving allround intelligent warehouse management control 寧夏理工學(xué)院畢業(yè)設(shè)計 III in such systems often