【正文】
《優(yōu)秀畢業(yè)論文》 基于 FPGA 的空調(diào)控制系統(tǒng)設(shè)計 I 基于 FPGA 的空調(diào)控制系統(tǒng)設(shè)計 作者姓名: 專業(yè)名稱: 電子科學(xué)與技術(shù) 《優(yōu)秀畢業(yè)論文》 基于 FPGA 的空調(diào)控制系統(tǒng)設(shè)計 II 摘 要 近幾年來,隨著中國科學(xué)技術(shù)的進步和人民生活水平的不斷提高,各種產(chǎn)業(yè)在迅速發(fā)展,當(dāng)然,空調(diào)業(yè)也包括其中,空調(diào)在公共場所,專用場地和普通家庭等場所都廣泛應(yīng)用。但是隨著空調(diào)數(shù)量的增加,相應(yīng)的負面問題也隨之出現(xiàn),耗能的日益增加已成為我國部分地區(qū)能源及電力供需矛盾的主要原因之一,當(dāng)務(wù)之急必須采取有效措施降低空調(diào)的能耗。如何降低空調(diào)能耗,實現(xiàn)空調(diào)自動控制,利用空調(diào)改善室內(nèi)溫度,延長空調(diào)使用壽命已成為當(dāng)前首要 課題。 本文介紹了空調(diào)控制器的設(shè)計,提出了一種采用現(xiàn)場可編程門陣列器件 FPGA 實現(xiàn)空調(diào)控制器的方法,該設(shè)計采用采用 Altera 公司高性價比 FPGA, CycloneIV 系列 EP4CE6E22C8 做主控制器,使用高精度的溫度傳感器 DS18B20 采集環(huán)境溫度, LCD1602 用于顯示控制溫度情況,并用按鍵調(diào)節(jié)控制溫度和定時, LED 燈模擬空調(diào)電機狀態(tài),本設(shè)計給出了用 Verilog HDL 語言實現(xiàn)高效率空調(diào)控制器的設(shè)計,最后給出了其在 FPGA 硬件上實現(xiàn) 關(guān)鍵詞: 空調(diào)控制器 FPGA CycloneIV Verilog HDL 《優(yōu)秀畢業(yè)論文》 基于 FPGA 的空調(diào)控制系統(tǒng)設(shè)計 III Abstract In recent years , with the continuous improvement of scientific and technological progress and the Chinese people39。s living standards , the rapid development of various industries in the course, which also includes the airconditioning industry , air conditioners are widely used in public places , special venues and ordinary families and other places. However, with the increasing number of airconditioning , the corresponding negative issues appeared, increasing energy consumption has bee one of the energy and electricity supply and demand in some areas of the main reasons , it is imperative to take effective measures to reduce the energy consumption of air conditioning . How to reduce air conditioning energy consumption for air conditioning automatic control , the use of air conditioning to improve the indoor temperature and prolong the life of air conditioning has bee a priority issue. This paper describes the design of air conditioning controller presents a method using field programmable gate array device FPGA controller for air conditioning , which is designed using Altera39。s high cost FPGA, CycloneIV series EP4CE6E22C8 master controller, using highprecision temperature collecting the ambient temperature sensor DS18B20 , LCD1602 display control for temperature conditions , with the temperature and timing adjustment control buttons , LED lights simulate airconditioned motor state , this design gives the Verilog HDL language used to achieve high efficiency air conditioning controller design , Finally its implementation in FPGA hardware Keywords: air conditioning controller, FPGA, CycloneIV, Verilog HDL 《優(yōu)秀畢業(yè)論文》 基于 FPGA 的空調(diào)控制系統(tǒng)設(shè)計 IV 目錄 摘要 ..................................................................................................... II Abstract ............................................................................................. III 目錄 ................................................................................................... IV 前言 ..................................................................................................... 1 1 FPGA 的概述 .................................................................................... 2 FPGA 的特點 ........................................................................ 2 本設(shè)計中使用的 FPGA 具有的特點 .................................. 3 2 系 統(tǒng)方案論證與確定 ..................................................................... 4 方案的選擇 ............................................................................ 4 方案 1: ................................................................................ 4 方案 2: ................................................................................ 5 方案論證與確定 .................................................................... 6 3 硬件電路設(shè)計 ................................................................................. 7 硬件整體結(jié)構(gòu)及原理 ............................................................ 7 電源部分 ................................................................................ 8 時鐘電路 ................................................................................ 9 按鍵電路 ................................................................................ 9 溫度傳感器 DS18B20 的特點 .............................................. 9 DS18B20 的測溫原理 ......................................................... 10 程序下載 .............................................................................. 12 ....................................................................................... 13 頂層結(jié)構(gòu)框圖: .................................................................. 14 DS18B20 的狀態(tài)機框圖: ................................................. 15 LCD1602 的狀態(tài)機框圖: ................................................. 17 5 Modelsim 仿真及仿真 .................................................................. 19 Modelsim 介紹 .................................................................... 19 書寫 testbench 激勵信號 ................................................... 20 時鐘模塊仿真 ..................................................................... 20 時鐘模塊的激勵信號 testbench .............................. 20 時鐘仿真波形及分析 ............................................... 22 溫度數(shù)據(jù)處理及空調(diào)電機仿真 ......................................... 23 LED 模塊激勵信號 testbench ................................... 23 LED 模塊仿真結(jié)果及分析 ....................................... 25 《優(yōu)秀畢業(yè)論文》 基于 FPGA 的空調(diào)控制系統(tǒng)設(shè)計 V 6 實際運行結(jié)果及總結(jié) ................................................................... 26 配置管腳 ............................................................................. 26 燒錄程序 ............................................................................. 27 運行結(jié)果分析 ...................................................................... 27 致謝 ................................................................................................... 29 參考文獻 ........................................................................................... 30 附件 程序代碼 ........................................