【正文】
法也不是完美的,它也有一些缺點,此種測量系統(tǒng)的結(jié)構(gòu)復雜,并且價格昂貴。 風扇是一個十分常見的商品, 它無論在工業(yè)制造中還是日常生活中,它都擁有著不可替代的地位,例如在日常生活中,隨處可見人們使用風扇進行降溫,在大大型的工業(yè)制造中廠商采用大型風扇給機器設(shè)備進行降溫,同時我們也可以發(fā)現(xiàn)現(xiàn)在的筆記本個人電腦也廣泛采取風扇降溫策略。 關(guān)鍵詞: 單 片 機 ; C 語 言 ; 紅 外 溫 度 傳 感 器 ; 風 扇 電 機 成都學院學士學位論文(設(shè)計) The Design of Temperature Detection and the Cooling System Based on Single Chip Microputer Specialty:Measure ement Control and Instrusemention Student Number:20xx10114221 Student: Li Hai Supervisor:Yu Hong ping Abstract:Temperature both in industry and agriculture, it is an important physical quantity, so the staff in a wide range of industries are to control the temperature of single chip microputer temperature control is the temperature control in the field of a kind of intelligent temperature control that is loved by chip microputer intelligent control temperature has many advantages. The single chip microputer intelligent control temperature is not only convenient and reduce the workload of operators and can greatly improve the technical index of temperature at the same time and increased the intelligent temperature modulation the MCU industry developing, MCU application is gradually enhanced in scope and depth. In terms of intelligent operation and control, singlechip puter is usually the core of the whole system. In recent years, with the rapid development of science and technology, MUC applications are developing in the depth and drive the traditional detection at the same , only with the use of singlechip microputer technology is not enough. We want to have the basic knowledge of hardware system design at the same time, as well as the understanding of the specific of the specific application requirements, at the same time the software needs to understand the use of C language and the development environment. The paper is based on C C language has a lower efficiency than assembly, but it is general and is easy to the development of the piler, conversion efficiency has been improved. Software part is used the modular design. The modular design is clear and transparent. software design can be changed with the change of the requirements. According to the design requirements of this system, the design scheme of this system is the singlechip microputer and a temperature sensor in a body39。單片機智能調(diào)控溫度擁有很多優(yōu)點,單片機智能調(diào)控溫度不僅方便,減少操控人員工作量,同時可以大大提高溫度調(diào)控的技術(shù)指標,加大了智能溫度調(diào)制精度。 作者簽名: 日期: 年 月 日 學位論文版權(quán)使用授權(quán)書 本學位論文作者完全了解學校有關(guān)保留、使用學位論文的規(guī)定,同意學校保留并向國家有關(guān)部門或機構(gòu)送交論文的復印件和電子版,允許論文被查閱和借閱。 本科畢業(yè)設(shè)計 題 目 基于單片機的溫度檢測及散熱系統(tǒng)設(shè)計 學 院 機械工程 學院 專 業(yè) 測控技術(shù)與儀器 成都學院學士學位論文(設(shè)計) 畢業(yè)設(shè)計(論文)原創(chuàng)性聲明和使用授權(quán)說明 原創(chuàng)性聲明 本人鄭重承諾:所呈交的畢業(yè)設(shè)計(論文),是我個人在指導教師的指導下進行的研究工作及取得的成果。本人完全意識到本聲明的法律后果由本人承擔。采用單片機進行溫度調(diào)控是當今溫度控制領(lǐng)域的一種被人喜愛的智能溫度調(diào)控方式。它是以 51 單片機為整個系統(tǒng)的控制核心,紅外溫度傳感器采集溫度,鍵盤和 LED 作為 IO 端,調(diào)控風扇電機來進行溫度調(diào)節(jié)。溫度檢測及顯示也逐漸采用自動化控制技術(shù)來實現(xiàn)監(jiān)控。另外有一種非接 觸式的測量溫度的方法,該方法的原理是通過物體向外輻射的能量來測量實際物體的溫度的,這種方法的最大優(yōu)點是可以不破壞測量的溫場,可以測量腐蝕性物體,可以測量高溫物體,可以測量熱容量小的物體,可以測量快速移動的一系列物體。 成都學院學士學位論文(設(shè)計) 第三章為系統(tǒng)硬件簡介,主要說明了溫度測控系統(tǒng)中涉及到的硬件原理。 圖 21 系統(tǒng)結(jié)構(gòu)框圖 本章小結(jié) 本章只是從總體的思路上進行 了一個大體的介紹,分析了其中每個部分的功能 溫度顯示 LED 按鍵溫度設(shè)定 電動風扇調(diào)節(jié)溫度 PWM 電機驅(qū)動 STC89C51RC 紅外傳感器溫度采集 成都學院學士學位論文(設(shè)計) 作用,為今后的具體涉及做好了基本的框架,其中并沒有涉及到過多的技術(shù)內(nèi)容,下面將從硬件和軟件兩部分進行詳細的介紹。故該方案不 適合本系統(tǒng)。s 的產(chǎn)品可以承受 10℃ 的熱沖擊。 溫度顯示器件的選擇 在本次設(shè)計中溫度顯示器的選擇方案共有兩套,分別是: 方案一:應(yīng)用動態(tài)掃描的方式,采用 LED 共陰極數(shù)碼管顯示溫度。 PWM是英文 Pulse Width Modulation 的縮寫,它是按一定的規(guī)律改變脈沖序列的脈沖寬度,以調(diào)節(jié)輸出量和波形的一種調(diào) 節(jié)方式,在 PWM 驅(qū)動控制的調(diào)節(jié)系統(tǒng)中,最常用的是矩形波 PWM 信號,在控制時需要調(diào)節(jié) PWM 波得占空比。 (3) 利用單片機自帶的 PWM 控制器。晶振為 。進行串行通訊時要滿足一定的條件,計算機的串口是 RS232 電平的,而單片機的串口是 TTL 電平的,兩者之間必須有一個電平轉(zhuǎn)換電路,采用專用芯片 MAX232 進行轉(zhuǎn)換,雖然也可以用幾個三極管進行模擬轉(zhuǎn)換,但是還是用專用芯片更簡單可靠。這樣鍵盤中按鍵的個數(shù)是 4 4 個。 成都學院學士學位論文(設(shè)計) 第四章 系統(tǒng)軟件設(shè)計 軟件設(shè)計部分是關(guān)鍵的一部分,在進行具體的編程實現(xiàn)之前,我們需要對總體結(jié)構(gòu)進行分析,然后制定出總體流程圖,軟件測試平臺的程序流程圖如圖 41 所示。因此匯編程序的效率非常高,但實際上匯編語言會因為各種控制器的不同,匯編語言會出現(xiàn)不同,從而導致程序十分難移植,通用性差。 //T1 定時器裝初值, 12M 晶振時為 0XFD,32M 晶振時為 0XF7 TL1=0xFD。 //控制寄存器, 用來設(shè)定串口的工作方式、接受 /發(fā)送控制及設(shè)置狀態(tài)標志等 REN=1。 圖 43 SPI 時序圖 根據(jù)以上的時序圖分析,我們需要首先編寫初始化 SPI 串口函數(shù) void SPI_Init(),根據(jù)發(fā)送和接收時序圖,我們編寫了最基本的 SPI 字節(jié)的發(fā)送和接收函數(shù)驅(qū)動 void IO_Send_Byte(uint8 dataout)和 uint8 IO_Receive_Byte(),同時在使用 SPI傳輸數(shù)據(jù)完成后,我們需要結(jié)束傳送 void SPI_End(),使用這些基本的驅(qū)動函數(shù)即可與傳感器通信來采集數(shù)據(jù)。軟件編程的編程模型采用單元化和層次化,這樣可以加大程序的可重用度和程序的可調(diào)試,當出現(xiàn)錯誤或程序需要功能需要更改時,我們只需要簡單更改程序即可避免了大規(guī)模重寫程序。 四、 電機調(diào)試。 通過本次的溫控系統(tǒng)的設(shè)計實 現(xiàn),我們可以對溫控系統(tǒng)有一個比較深的認識,無論從硬件還是從軟件部分我們都可以學習到一種系統(tǒng)設(shè)計的概念,同時對工程實際有了較深的了解,但學無止境,我們還可以繼續(xù)往這方面深