【正文】
西南科技大學(xué)本科生畢業(yè)論文 I 基于 單片機(jī) ATmega16 的 電子濕度計(jì) 設(shè)計(jì) 摘要: 濕度與 人們的生活和工 農(nóng) 業(yè)生產(chǎn)有著密切的關(guān)系。為了創(chuàng)造舒適的生活環(huán)境和理想的生產(chǎn)條件 , 必須對(duì)空氣濕度進(jìn)行 精確檢測(cè) 和調(diào)整 控制 。 本文論述了基于測(cè)控技術(shù)的空氣濕度檢測(cè)報(bào)警裝置的硬件和監(jiān)控軟件的設(shè)計(jì)與實(shí)現(xiàn)。 該系統(tǒng)以 AVR 單片機(jī)ATmega16 為硬件核心,通過實(shí)時(shí)采集 和 數(shù)據(jù)處理能夠準(zhǔn)確地監(jiān)測(cè) 環(huán)境 濕度, 采用 LED 數(shù)碼管作為輔助 顯示 模塊, 顯示 當(dāng)前 環(huán)境 濕度 ,當(dāng)被測(cè) 環(huán)境 濕度 超過預(yù) 設(shè) 定數(shù)值時(shí),將產(chǎn)生聲光報(bào)警 , 并且 用 PC 機(jī) 作 為上位機(jī) 為 系統(tǒng) 提供一個(gè)可視 的操作 界面 ,實(shí)現(xiàn) 串口通信 , 數(shù)據(jù) 庫(kù) 保存、查詢、備份 等 功能 。 文中重點(diǎn)講述系統(tǒng)的 軟 硬件結(jié)構(gòu)和功能特點(diǎn),著重闡述了信號(hào)采集處理、單片機(jī)及擴(kuò)展電路的設(shè)計(jì)思路和實(shí)現(xiàn)方法。 在目前的試用中 , 該系統(tǒng) 能夠可靠、穩(wěn)定、安全的測(cè)量 現(xiàn)場(chǎng)濕度 , 具有推廣應(yīng)用價(jià)值。 關(guān)鍵詞: 濕度傳感器 ; AVR 單片機(jī) ; 濕度檢測(cè);聲光報(bào)警 西南科技大學(xué)本科生畢業(yè)論文 II Design of the Electronic Hygrometer Based on ATmega16 AVR Microcontroller Abstract: Humidity is closely related with industrial and agricultural production, as well as people39。s lives. In order to create a fortable living environment and the ideal production conditions, we need measure and control the humidity precisely. This article discusses the detection of air humidity alarm monitoring hardware, software design and implementation of programs that based on the measurement and control technology. The system uses ATmega16 AVR Microcontroller as the core, it can accurately monitor the indoor air humidity through realtime acquisition, data processing. LED digital tube display is used as a supplementary module displays the current air humidity. When measured more or less than preset value, the system will have a sound and light alarm. And used as a PC for the system to provide a visual interface, Serial munication, Data retention, Data query, Data backup, and control paper focuses on the system hardware, the structure of software, and the features of function, and stress on the signal acquisition and processing, the expansion circuit of singlechip, design ideas and implementation. In the current trial, the system can measure the environment humidity reliably, stably and securely, with the promotion of application value. Key words: Humidity Sensor, AVR Microcontroller, Humidity Measurement, SoundLight Alare 西南科技大學(xué)本科生畢業(yè)論文 III 目 錄 摘要 I Abstract. II 第 1 章 緒論 1 課題背景、目的及意義 1 課題背景 1 課題的目的及意義 2 系統(tǒng)設(shè)計(jì)內(nèi)容 2 第 2 章 系統(tǒng)概述 4 系統(tǒng)設(shè)計(jì)主要原理 4 系統(tǒng)硬件 設(shè)計(jì)方案 4 微控制器的選擇 4 濕度傳感器的選擇 5 顯示方案的確定 6 系統(tǒng)軟件設(shè)計(jì)方案 7 上位機(jī)軟件設(shè)計(jì)方案 8 微控器軟件設(shè)計(jì)方案 9 第 3 章 系統(tǒng)硬件設(shè)計(jì)實(shí)現(xiàn) 12 電子濕度計(jì)系統(tǒng)的組成結(jié)構(gòu) 12 主控器最小系統(tǒng) 13 ATmega16 簡(jiǎn)介 13 引腳圖及引腳介紹