【正文】
....................5 DHT11 傳感器電路 ..........................................................................................................7 DHT11 簡(jiǎn)介 ..............................................................................................................7 接口說(shuō)明 .................................................................................................................8 DHT11 模塊電路圖 ................................................................................................10 液晶顯示電路 ...............................................................................................................10 1602 液晶簡(jiǎn)介 .........................................................................................................10 液晶引腳說(shuō)明 .........................................................................................................11 指令介紹 .................................................................................................................12 液晶顯示模塊電路 .................................................................................................15 蜂鳴器模塊 ....................................................................................................................16 按鍵輸入模塊 ................................................................................................................17 LED 顯示電路 ................................................................................................................17第 4 章 軟件設(shè)計(jì) .....................................................................................................................19 程序語(yǔ)言及開(kāi)發(fā)環(huán)境 ...................................................................................................19 程序流程圖設(shè)計(jì) ...........................................................................................................20 總體程序流程圖設(shè)計(jì) .............................................................................................20 1602 液晶程序設(shè)計(jì) .................................................................................................21 溫濕度 DHT11 傳感器程序設(shè)計(jì) ..........................................................................21第 5 章 系統(tǒng)調(diào)試 .....................................................................................................................22 硬件調(diào)試 .......................................................................................................................22 軟件調(diào)試 .......................................................................................................................22第 6 章 總結(jié) .............................................................................................................................23鳴 謝 .......................................................................................................................................24參考文獻(xiàn) ...................................................................................................................................25附 錄 .......................................................................................................................................26附錄一 元件清單 .................................................................................................................26附錄二 原理圖 .....................................................................................................................27附錄三 PCB 圖 ....................................................................................................................28設(shè)計(jì)總說(shuō)明溫濕度的測(cè)量應(yīng)用范圍是很廣的,對(duì)溫濕度測(cè)量系統(tǒng)的研究也具有深遠(yuǎn)意義,本課題針對(duì)國(guó)內(nèi)外對(duì)溫濕度測(cè)量系統(tǒng)的研究與發(fā)展?fàn)顩r,分析了目前溫濕度測(cè)量系統(tǒng)存在的主要問(wèn)題,設(shè)計(jì)了一種基于單片機(jī)的溫濕度測(cè)量系統(tǒng),對(duì)某些有著特殊要求溫度和濕度的場(chǎng)合實(shí)現(xiàn)長(zhǎng)期、穩(wěn)定、實(shí)時(shí)、自動(dòng)的監(jiān)測(cè)。本設(shè)計(jì)主要由硬件電路和軟件電路兩部分組成,系統(tǒng)通過(guò)溫濕度檢測(cè)電路,把采集到的信號(hào)傳給單片機(jī),通過(guò)單片機(jī)來(lái)處理采集到的信號(hào)并通過(guò) LCD 顯示出來(lái),如果溫濕度過(guò)高或過(guò)低,報(bào)警電路會(huì)自動(dòng)報(bào)警。整個(gè)系統(tǒng)由溫濕度檢測(cè)電路、LCD 顯示電路、鍵盤(pán)電路、報(bào)警電路和單片機(jī)等組成。關(guān)鍵詞:?jiǎn)纹瑱C(jī);溫濕度;液晶INTRODUCTION Temperature and humidity measurement application range is very wide, the research on temperature and humidity measurement system has the profound meaning, aiming at domestic and foreign to the temperature and humidity measurement system research and development situation, analyzes the main problems existing in current temperature and humidity measuring system, the design of a temperature and humidity measuring system with single chip microputer based on the monitoring, some special requirements for temperature and humidity to achieve longterm, stable, realtime situations, automatic. Mainly by the design of hardware circuit and software circuit posed of two parts, the system through the temperature and humidity detection circuit, the acquisition of signal to the mic