【正文】
鄭州航空工業(yè)管理學(xué)院 畢 業(yè) 論 文(設(shè) 計(jì)) 2020 屆 電子信息工程 專業(yè) 0913082 班級(jí) 題 目 基于單片機(jī)的室內(nèi)溫濕度計(jì)的設(shè)計(jì) 姓 名 學(xué)號(hào) 081308224 指導(dǎo)教師 職稱 講 師 二 О一 三 年 五 月 十九 日 內(nèi) 容 摘 要 本次設(shè)計(jì)是采用 MSC51 系列單片機(jī)中的 STC89C52和 DHT11的低成本的溫濕度的 檢測(cè)系統(tǒng)。本設(shè)計(jì)主要包括硬件電路的設(shè)計(jì)和系統(tǒng)軟件的設(shè)計(jì)。硬件電路主要包括單片機(jī)、溫濕度傳感器、顯示模塊、報(bào)警器以及鍵盤(pán)等 5部分,由 DHT11 溫濕度傳感器及 1602 字符型液晶模塊構(gòu)成系統(tǒng)顯示模塊,該系統(tǒng)電路簡(jiǎn)單、工作穩(wěn)定、集成度高,調(diào)試方便,測(cè)試精度高,具有一定的實(shí)用價(jià)值。其中測(cè)溫濕度控制電路由溫濕度傳感器和預(yù)設(shè)溫度值比較報(bào)警電路組成,用戶根據(jù)需要輸入預(yù)設(shè)值,當(dāng)實(shí)際測(cè)量的溫濕度大于預(yù)設(shè)的溫濕度數(shù)值時(shí),發(fā)出報(bào)警信號(hào)(蜂鳴器蜂鳴, led燈亮)。軟件部分包括了主程序、顯示子程序、測(cè)溫濕度子程序。本次設(shè)計(jì)采用的 DHT11 溫濕度傳感器是一款含有已校準(zhǔn)數(shù)字輸出的溫濕度復(fù)合傳感器,傳感器包括一個(gè)電阻式感濕原件和一個(gè) NTC 測(cè)溫元件,并與一個(gè)高性能的 8位單片機(jī)相連接。 關(guān)鍵詞 溫度測(cè)量; 濕度測(cè)量; STC89C52; DHT11 Abstract This design is the use of MSC51 Series MCU STC89C52 and DHT11 in the lowcost temperature and humidity detection system. This design includes the design of hardware and system software design. Hardware circuit includes a microcontroller, temperature and humidity sensors, display module, the alarm and the keyboard 5, the DHT11 temperature and humidity sensor and 1602 constitute a system of character LCD module display module, the system circuit is simple, stable, high integration, missioning Convenient, high precision, has some practical value. Temperature and humidity control circuit in which the temperature and humidity sensors and pare the value of the preset temperature alarm circuit, the user input required predefault value, when the actual temperature and humidity measurements of temperature and humidity is greater than the preset value, an alarm signal (bee Buzzer beep). Software part includes the main program, display routines, subroutines side temperature and humidity。 The design uses the DHT11 temperature and humidity sensors is a digital output with a calibrated temperature and humidity bined sensor, the sensor includes a resistance and a sense of the original wet NTC temperature measurement devices, and with a highperformance 8bit microcontroller connected. Key words Temperature measurement; Humidity measurement; STC89C52; DHT11 目 錄 第一章 緒 論 .............................................................. 1 研究背景及意義 ....................................................... 1 研究要實(shí)現(xiàn)的功能 ..................................................... 1 第二章 設(shè)計(jì)分析及方案論 ..................................................... 3 設(shè)計(jì)總體方案及方案論證 .............................................. 3 元器件的選擇 ......................................................... 4 主控制器件:?jiǎn)纹瑱C(jī) ............................................. 4 傳感器:溫濕度傳感器 dht11 ...................................... 5 顯示器件: lcd1602 .............................................. 8 第三章 硬件電路圖的設(shè)計(jì) ................................................... 12 報(bào)警電路 ........................................................... 12 晶振電路 ........................................................... 13 3. 3 顯示電路 .......................................................... 14 傳感器電路 ......................................................... 14 復(fù)位電路 ........................................................... 15 總體電路 ........................................................... 16 第四章 軟件部分設(shè)計(jì) .......................