【正文】
廣西 科技大學(xué) (籌 ) 畢業(yè)設(shè)計(論文)說明書 課題名稱 :基于 CAN 總線的智能照明控制系統(tǒng)設(shè)計 院 系 電氣與信息工程學(xué)院 專 業(yè) 測控技術(shù)與儀器 班 級 081班 學(xué) 號 202100903072 姓 名 秦宗偉 指導(dǎo)教師 羅功坤 二 0 一二 年 五 月 二 十 日 摘 要 本設(shè)計是 基于 CAN 總線 的 智能照明控制系統(tǒng)。 設(shè)計中 采用主從節(jié)點組網(wǎng)設(shè)計 方案 ,廣西科技大學(xué) (籌 )畢業(yè)設(shè)計論文 摘要 I 通過主節(jié)點與多個從節(jié)點之間的 相互 通信以實現(xiàn)對照明 設(shè)備 的遠(yuǎn)程實時監(jiān)控。 主節(jié)點 采用 NXP 公司生產(chǎn)的 ARM7 系列 LPC2119 微處理器 和 其內(nèi)部集成的 CAN 控制器 以及PCA82C250 收發(fā) 器 設(shè)計出 主節(jié)點 硬件原理圖,并制作出主節(jié)點硬件電路板。從節(jié)點采用STC89C52 單片機(jī)和 SJA1000 獨立 CAN 控制器以及 PCA82C250CAN 總線收發(fā)器,設(shè)計出從節(jié)點硬件原理圖并制作出 2個從節(jié)點 實驗電路板。 通過將 主從節(jié)點 實驗電路板 掛 接到 網(wǎng)絡(luò)構(gòu)成 一個 一主多從的主從式 照明控制局域 網(wǎng)絡(luò) 。 利用 該網(wǎng)絡(luò)進(jìn)行 CAN 總線 照明 控制 系統(tǒng) 理論 研究 和實驗測試 。 在本文中詳細(xì)的 介紹了 CAN 總線 主從節(jié)點的 軟硬件設(shè)計 原理 、 CAN 總線 通信原理 、以及 CAN 總線 應(yīng)用層協(xié)議的 制定, 并采用 SD 卡存儲技術(shù)、 TFT 彩屏顯示技術(shù)、觸摸屏技術(shù) 等現(xiàn)實了 友好的人機(jī)界面。 在 TFT 液晶顯示方面 是本設(shè)計的一大亮點, 設(shè)計中模擬工業(yè)控 制 工藝流程圖 , 對工藝中涉及的總線、燈設(shè)備、板卡等進(jìn)行精心 繪制 顯示。 使 整個控制 系統(tǒng) 結(jié)構(gòu) 清晰 、 形象 、逼真 。 在輸入設(shè)備方面是本設(shè)計的第二大亮點, 本設(shè)計采用當(dāng)前較為先進(jìn)方便的觸摸屏輸入技術(shù), 為用戶提供一個方便易捷的輸入方式,以實現(xiàn)人機(jī)交互。 燈設(shè)備離線檢測功能是 本 設(shè)計的 又一 大亮點 , 本設(shè)計采用 定時詢問方法,實現(xiàn)了 從節(jié)點的離線檢測功能。 總之, 在本設(shè)計中 ,主節(jié)點 實現(xiàn)了對多個從節(jié)點燈設(shè)備的 遠(yuǎn)程 設(shè)置 和 監(jiān)控功能 、離線檢測 功能 、運行通信指示 功能 、實時更新顯示 功能 等。 從節(jié)點具有獨立設(shè)置、控制本節(jié)點燈設(shè)備的功能。 整體系統(tǒng)運行可靠,通 信正常,不出現(xiàn)通信擁堵、死機(jī)等現(xiàn)象 。 并開發(fā)出具有一定 應(yīng)用 意義的 系統(tǒng)軟硬件 ,實現(xiàn)了照明燈設(shè)備的有效控制。 關(guān)鍵詞: CAN 總線;節(jié)點;照明控制; TFT;觸摸屏技術(shù); SD 卡 廣西科技大學(xué) (籌 )畢業(yè)設(shè)計論文 Abstract II Abstract The design is intelligent lighting control system . It’s based on CAN the design we use master and slave work The main munication between the master node and multiple slave nodes to make the remote realtime monitoring of lighting equipment successful. The master node uses the ARM7 family NXP LPC2119 microprocessors and integrated to its internal CAN controller and PCA82C250 transceiver design hardware schematic diagram of the master node, and create the hardware circuit board of the master salve node use STC89C52 microcontroller SJA1000 standalone CAN controller and PCA82C250CAN bus transceiver design from the node hardware schematic diagram and also create two nodes put the master and slave node experimental circuit board to the main work to constitute a main and some slaves lighting control local area work. U sing the work to research and experimental testing of the CAN bus lighting control system. In this paper a detailed introduction master and slave node of the CAN bus ,hardware and software design principles, the principle of CAN bus munication, the formulation of the CAN bus application layer protocol, SD card storage technology, TFT color display, touch screen technology and other practicalfriendly TFT LCD is one of the most wonderful of this the design,we simulate industrial control process flow diagram of the bus involved in the process, light equipment, boards, carefully drawing then make the control system more clear image and vivid. Advanced and convenient touchscreen input technology are the second highlights in the it apply a convenient input to the third highlights is that Light equipment offline detection. So We use from time to time ask, from the node offline detection. In short, in this design, the master node to multiple remote setup and monitoring functions of light equipment from the node offline detection, run munication indicator, updated in real time slave node With independent settings, control the function of the lamp device of the node from the node. The overall system is reliable, normal munication, the munication congestion, crashes and so on. And develop system software and hardware with a certain significance of application to achieve effective control of the lighting equipment. Keyword: CAN bus; node; Lighting control; TFT; Touch screen technology; SD card 廣西科技大學(xué) (籌 )畢業(yè)設(shè)計論文 目錄 III 目錄 摘 要 .......................................................................................................................................... ABSTRACT .................................................................................................................................... II 1 緒論 ...................................................................................................................................... 1 課題背景 ........................................................................................................................ 1 現(xiàn)場總線的技術(shù)特點和現(xiàn)狀 ........................................................................................ 1 課題的提出及意義 ........................................................................................................ 2 2 系統(tǒng)設(shè)計 .............................................................................................................................. 3 設(shè)計要求 ........................................................................................................................ 3 總體設(shè)計方案 ................................................................................................................ 3 設(shè)計思路 ................................................................................................................. 3 方案論證與比較 ..................................................................................................... 4 主控制器 ......................................................................................................... 4 CAN 控制器選擇 .............................................................................................. 4 CAN 收發(fā)器 ...................................................................................................... 5 CAN 通信電纜 ..................................................................................