【正文】
瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 2022 年度本科生畢業(yè)論文(設(shè)計(jì)) 基于 AT89C52 單片機(jī)的溫控電風(fēng)扇 設(shè)計(jì) 學(xué) 院: 電子信息工程學(xué)院 專 業(yè): 通信技術(shù) 年 級: 2022 級 學(xué)生姓名: 張志強(qiáng) 學(xué) 號: 08250336 導(dǎo)師及職稱: 林元乖(副教授) 2022 年 5 月 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 2022 Annual Graduation Thesis (Project) of the College Undergraduate Microcontrollerbased temperature control fan design Department: College of Electronics and Information Engineering Major: Computer Science and Technology Grade: 2022 Student’s Name: Zhang Student No.:08253036 Tutor: Associate Professor Lin Yuanguai Finished by May, 2022 畢業(yè)論文(設(shè)計(jì))原創(chuàng)性聲明 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 摘 要 生活中,我們經(jīng)常會使用到電風(fēng)扇。比如,在炎熱的夏天人們用電風(fēng)扇來降溫;在工業(yè)生產(chǎn)中,大型機(jī)械用電風(fēng)扇來散熱等。但是當(dāng)環(huán)境溫度變化的時候,人工很難做到及時控制風(fēng)扇的轉(zhuǎn)速,也很難有效利用寶貴的電資源。 隨著溫度控制的技術(shù)不斷發(fā)展,溫控技術(shù)已經(jīng)完全滿足現(xiàn)代的日常生活和生產(chǎn)的要求,應(yīng)運(yùn)而生的溫控電風(fēng)扇也逐漸走 進(jìn)了人們的生活中。 溫控電風(fēng)扇可以根據(jù)環(huán)境溫度自動調(diào)節(jié)電風(fēng)扇啟停與轉(zhuǎn)速,在實(shí)際生活的使用中,溫控電風(fēng)扇不僅可節(jié)省寶貴的電資源,也大大方便了人們的生活和生產(chǎn)。 溫控風(fēng)扇 是利用溫度的變化控制風(fēng)扇啟停及轉(zhuǎn)速的智能系統(tǒng), 在現(xiàn)代社會中的生產(chǎn)以及人們的日常生活中都有廣泛的應(yīng)用,如工業(yè)生產(chǎn)大型機(jī)械散熱系統(tǒng)中的風(fēng)扇、現(xiàn)在筆記本電腦上的廣泛應(yīng)用的智能 CPU 風(fēng)扇等。本文設(shè)計(jì)了基于單片機(jī)的溫控風(fēng)扇系統(tǒng),采用單片機(jī)為控制器,利用溫度傳感器 DS18B20 作為溫度采集元件,并根據(jù)采集到的溫度,通過一個達(dá)林頓反向驅(qū)動器 ULN2803 驅(qū)動風(fēng) 扇電機(jī)。根據(jù)檢測到的溫度與系統(tǒng)設(shè)定的溫度比較實(shí)現(xiàn)風(fēng)扇電機(jī)的自動啟動和停止,并能根據(jù)溫度的變化自動改變風(fēng)扇電機(jī)的轉(zhuǎn)速, 同時 用 LED 八段數(shù)碼管顯示檢測到的溫度與設(shè)定的溫度。系統(tǒng)的預(yù)設(shè)溫度的設(shè)置是通過兩個獨(dú)立按鍵來實(shí)現(xiàn)的,一個增大預(yù)設(shè)溫度,一個減小預(yù)設(shè)溫度。 關(guān)鍵詞 : 單片機(jī); DS18B20;溫控;風(fēng)扇 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) ABSTRACT In life, we often use to electric fan. For example, in the hot summer people use electric fan to cool。 in industrial production, largescale machinery use electric fan for cooling. But when the environmental temperature changes, artificial hard to timely control the speed of the fan, is also very difficult to effectively utilize valuable resources. With the development of technology of temperature control, temperature control technology has been fully meet the modern daily life and production requirements, emerge as the times require temperaturecontrolled electric fan has gradually entered people39。s life. Temperature control electric fan according to the ambient temperature automatic regulating electric fan start / stop and speed, in real life use, temperaturecontrolled electric fan not only can save valuable resources, also brings great convenience for people39。s life and production. Temperature control fan in modern society production and people39。s daily life have a wide range of applications, Such as industrial production of large mechanical cooling system of fan, now notebook puter on a wide range of application of intelligent CPU fan. This paper introduces the design of MCU based temperature control fan system, using SCM as the controller, use of temperature sensor DS18B20 as a temperature acquisition ponent, and according to the collected temperature, through a Darlington reverse driving fan motor driver ULN2803. According to the detected temperature and a set temperature to achieve system parison of fan motor for automatic start and stop, and according to temperature changes automatically change the fan motor speed, at the same time with the LED eight digital tube display the detected temperature and a set temperature. The preset temperature set by two independent buttons to achieve, The one increase the preset temperature, and the another one reduced the preset temperature. Key words: single chip microputer。 DS18B20。 temperature control。 fan 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 目 錄 第一章 前 言 ................................................................................................................ 1 第二章 整體方案設(shè)計(jì) .................................................................................................. 2 系統(tǒng)整體的設(shè)計(jì) .............................................................................................. 2 方案論證 ........................................................................................................... 2 溫度傳感器的選擇 ................................................................................ 3 控制核心的選擇 .................................................................................... 3 溫度顯示器件的選擇 ............................................................................ 4 調(diào)速方式的選擇 .................................................................................... 4 第三章 各單元模塊的硬件設(shè)計(jì) .................................................................................. 6 系統(tǒng)器件簡介 .................................................................................................. 6 DS18B20 單線數(shù)字溫度傳感器簡介 .................................................... 6 達(dá)林頓反向驅(qū)動器 ULN2803 簡介 ..................................................... 6 AT89C52 單片機(jī)簡介 ............................................................................ 7 LED 數(shù)碼管簡介 .................................................................................... 9 電路設(shè)計(jì) ......................................................................................................... 10 開關(guān)復(fù)位與晶振電路 .......................................................................... 10 獨(dú)立 按鍵 連接電路 .............................................................................. 11 數(shù)碼管顯示電路 .................................................................................. 12 溫度采集電路 ...................................................................................... 13 風(fēng)扇電機(jī)驅(qū)動與調(diào)速電路 .................................................................. 14 電路總圖 .............................................................................................. 15 第四章 軟件設(shè)計(jì) ........................................................................................................ 17 程序設(shè)置 ........................................................................................................ 17 主要程序代碼 ..........