【正文】
I 江蘇科技大學(xué) 本 科 畢 業(yè) 設(shè) 計(論文) 學(xué) 院 電氣與信息工程學(xué)院 專 業(yè) 電氣工程及其自動化 學(xué)生姓名 班級學(xué)號 0945533115 指導(dǎo)教師 二零一三年六月 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) 江蘇科技大學(xué)本科生畢業(yè)論文 基于 CAN 總線的火災(zāi)報警系統(tǒng)設(shè)計 The fire alarm system design based on the CAN bus I 江蘇科技大學(xué) 畢業(yè)論文(設(shè)計)任務(wù)書 學(xué)院名稱: 電氣信息工程學(xué)院 專 業(yè): 電氣工程及其自動化 學(xué)生姓名: 學(xué) 號: 0945533115 指導(dǎo)教師: 職 稱 : 講 師 2021 年 3 月 1 日 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) II 畢業(yè)設(shè)計(論文)題目: 基于 CAN 總線的火災(zāi)報警系統(tǒng)設(shè)計 一、 畢業(yè)設(shè)計(論文)內(nèi)容及要求(包括原始數(shù)據(jù)、技術(shù)要求、達到的指標(biāo)和應(yīng)做的實驗等) : 隨著人們防火意識的增強,火災(zāi)探測報警技術(shù)越來越受到人們的重視。傳統(tǒng)的火災(zāi)報警系統(tǒng)多采用 RS485 總線通信方式,與之相比, CAN 總線具有突出的可靠性、實時性和靈活性,本文主要研究基于 CAN 總線的火災(zāi)報警系統(tǒng)的設(shè)計方案及實現(xiàn)方法。 : (1)選擇合適的溫度及煙霧傳感器; (2)主從節(jié)點通過 CAN 總線通信; (3)可進行數(shù)據(jù)處理、顯示、存儲等; (4)根據(jù)測量值可驅(qū)動滅火裝置。 除以上要求的功能外,設(shè)計者可增加其他功能。 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) III 二、 完成后應(yīng)交的作業(yè)(包括各種說明書、圖紙等) 1. 畢業(yè)設(shè)計論文一份(不少于 萬字); 2. 外文譯文一篇(不少于 5000 英文單詞); 3. 軟件流程圖; 三、 完成日期及進度 2021 年 3 月 25 日至 2021年 6 月 12日。 進度安排: ~ :系統(tǒng)調(diào)研,收集資料,方案論證; ~ :軟硬件系統(tǒng)設(shè)計; ~ :綜合測試; ~ :畢業(yè)論文撰寫,答辯。 四、同組設(shè)計者(若無則留空): 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) IV 五、主要參考資料(包括書刊名稱、出版年月等) : ,新編 MCS51 單片機應(yīng)用設(shè)計,哈爾濱工業(yè)大學(xué)出版社, 2021 ,綜合電子設(shè)計與實踐,清華大學(xué)出版社, 2021 ,基于 C 語言編程 MCS51 單片機原理與應(yīng)用,清華大學(xué)出版社, 2021 ,單片機應(yīng)用系統(tǒng)設(shè)計實例與分析,北京航空 航天大學(xué)出版社, 2021 系 (教研室 )主任: (簽章) 年 月 日 學(xué)院主管領(lǐng)導(dǎo): (簽章) 年 月 日 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) V 摘 要 伴隨著人們防火意識的不斷增強,人們也對火災(zāi)報警系統(tǒng)技術(shù)給予了更多的重視。傳統(tǒng)意義上的火災(zāi)報警系統(tǒng),很多情況下采用 RS485總線作為系統(tǒng)的通信方式,并且采取單一的溫度傳感器監(jiān)控現(xiàn)場環(huán)境,在執(zhí)行滅火的裝置中使用玻璃球灑水噴頭。 本文主要研究的是基于 CAN總線的 火災(zāi)報警系統(tǒng)設(shè)計的方案以及實現(xiàn)的方法,用CAN總線取代傳統(tǒng)的 RS485總線,以解決抗干擾能力較差、對火災(zāi)報警響應(yīng)較慢以及傳輸速率較低等一系列的缺點。 本文分為五個章節(jié),第一章節(jié)是緒論部分,主要介紹本課題研究的背景,國內(nèi)外發(fā)展現(xiàn)狀,以及研究的意義;第二章節(jié)是災(zāi)報警系統(tǒng)的總體設(shè)計部分,主要介紹了本系統(tǒng)的總體設(shè)計的方案;第三章節(jié)是 火災(zāi)報警系統(tǒng)的硬件設(shè)計部分,主要介紹了本系統(tǒng)在主節(jié)點的硬件設(shè)計和從節(jié)點的硬件設(shè)計;第四章是火災(zāi)報警系統(tǒng)的軟件設(shè)計,主要介紹了系統(tǒng)的整體軟件設(shè)計,主節(jié)點軟件設(shè)計, CAN模塊通信電路軟件設(shè) 計以及從節(jié)點的軟件設(shè)計;第五章是火災(zāi)報警系統(tǒng)的調(diào)試,主要介紹了系統(tǒng)的調(diào)試過程中遇到的問題以及問題的處理方案等等。 關(guān)鍵詞: CAN 總線;單片機;火災(zāi)報警器 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) VI Abstract With people39。s growing awareness of fire prevention, fire alarm system, people also pay more attention. The traditional sense of the fire alarm system, in many cases by using RS485 bus as the munication system, and take the temperature sensor to monitor the environment is a single, the use of glass ball sprinkler in the device to carry out the. This paper mainly studies the method of CAN bus fire alarm system design scheme and Realization Based on, to replace the traditional RS485 bus with CAN bus, in order to solve the problem of poor antiinterference ability, alarm of slow response and low transmission rate of a series of shortings on the fire. This paper is divided into five chapters, the first chapter is the introduction part, mainly introduces the research background, development situation at home and abroad, and the significance of the research。 the second chapter is fire alarm system design part, mainly introduced the whole design of the system scheme。 the third chapter is the fire alarm part of the hardware design of the system, mainly introduces the hardware design of the system in the master node and the node hardware design。 the fourth chapter is the software design of the system of fire alarm, mainly introduces the overall design of system software, the master node software design, munication module circuit design software CAN and from the software design。 the fifth chapter is the system debugging fire alarm, mainly introduces the debugging process of the system problems and solutions. Keywords: CAN bus。 MCU。 fire alarm 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) VII 目 錄 第一章 緒論 ................................................................................................................. 1 本課題研究背景 .................................................. 1 火災(zāi)報警系統(tǒng)的國內(nèi)外發(fā)展現(xiàn)狀 .................................... 2 本文的研究意義 .................................................. 3 第二章 災(zāi)報警系統(tǒng)的總體設(shè)計 ........................... 4 系統(tǒng)設(shè)計內(nèi) 容 .................................................... 4 系統(tǒng)設(shè)計要求 .................................................... 4 系統(tǒng)總體方案設(shè)計 ................................................ 4 第三章 火災(zāi)報警系統(tǒng)的硬件設(shè)計 ........................ 8 主節(jié)點硬件設(shè)計 .................................................. 8 LCD1602 顯示器電路設(shè)計 ..................................... 9 時鐘電路設(shè)計 .............................................. 9 CAN 模塊通信電路設(shè)計 ...................................... 10 從節(jié)點硬件設(shè)計 ................................................. 11 溫度傳感器電路設(shè)計 ........................................ 11 可燃氣體及煙霧傳感器電路設(shè)計 ............................. 13 滅火裝置電路 .............................................. 15 第四章 火災(zāi)報警系統(tǒng)的軟件設(shè)計 ....................... 17 系統(tǒng)整體軟件設(shè)計 .............................................. 17 主節(jié)點軟件設(shè)計 ................................................. 17 LCD1602 顯示屏的軟件設(shè)計 .................................. 18 時鐘電路軟件設(shè)計 ......................................... 19 CAN 模塊通信電路軟件設(shè)計 ....................................... 19 CAN 控制器的初始化 ........................................ 19 江蘇科技大學(xué)本科畢業(yè)設(shè)計(論文) VIII 信號發(fā)送模塊程序設(shè)計 ...................................... 20 信號接收模塊程序設(shè)計 ..................................... 21 從節(jié)點軟件設(shè)計 ................................................. 22 溫度傳感器