【正文】
廣西科技大學(xué)(籌)畢業(yè)設(shè)計(jì)(論文)說(shuō)明書(shū)課題名稱:基于 CAN 總線的智能照明控制系統(tǒng)設(shè)計(jì) 院 系 電氣與信息工程學(xué)院 專 業(yè) 測(cè)控技術(shù)與儀器 班 級(jí) 081 班 學(xué) 號(hào) 202202203072 姓 名 秦宗偉 指導(dǎo)教師 羅功坤 二 0 一二 年 五 月 二十 日摘 要本設(shè)計(jì)是基于 CAN 總線的智能照明控制系統(tǒng)。設(shè)計(jì)中采用主從節(jié)點(diǎn)組網(wǎng)設(shè)計(jì)方案,廣西科技大學(xué)(籌)畢業(yè)設(shè)計(jì)論文 摘要I通過(guò)主節(jié)點(diǎn)與多個(gè)從節(jié)點(diǎn)之間的相互通信以實(shí)現(xiàn)對(duì)照明設(shè)備的遠(yuǎn)程實(shí)時(shí)監(jiān)控。主節(jié)點(diǎn)采用 NXP 公司生產(chǎn)的 ARM7 系列 LPC2119 微處理器和其內(nèi)部集成的 CAN 控制器以及PCA82C250 收發(fā)器設(shè)計(jì)出主節(jié)點(diǎn)硬件原理圖,并制作出主節(jié)點(diǎn)硬件電路板。從節(jié)點(diǎn)采用STC89C52 單片機(jī)和 SJA1000 獨(dú)立 CAN 控制器以及 PCA82C250CAN 總線收發(fā)器,設(shè)計(jì)出從節(jié)點(diǎn)硬件原理圖并制作出 2 個(gè)從節(jié)點(diǎn)實(shí)驗(yàn)電路板。通過(guò)將主從節(jié)點(diǎn)實(shí)驗(yàn)電路板掛接到網(wǎng)絡(luò)構(gòu)成一個(gè)一主多從的主從式照明控制局域網(wǎng)絡(luò)。利用該網(wǎng)絡(luò)進(jìn)行 CAN 總線照明控制系統(tǒng)理論研究和實(shí)驗(yàn)測(cè)試。在本文中詳細(xì)的介紹了 CAN 總線主從節(jié)點(diǎn)的軟硬件設(shè)計(jì)原理、CAN 總線通信原理、以及 CAN 總線應(yīng)用層協(xié)議的制定,并采用 SD 卡存儲(chǔ)技術(shù)、TFT 彩屏顯示技術(shù)、觸摸屏技術(shù)等現(xiàn)實(shí)了友好的人機(jī)界面。在 TFT 液晶顯示方面是本設(shè)計(jì)的一大亮點(diǎn),設(shè)計(jì)中模擬工業(yè)控制工藝流程圖,對(duì)工藝中涉及的總線、燈設(shè)備、板卡等進(jìn)行精心繪制顯示。使整個(gè)控制系統(tǒng)結(jié)構(gòu)清晰、形象、逼真。在輸入設(shè)備方面是本設(shè)計(jì)的第二大亮點(diǎn),本設(shè)計(jì)采用當(dāng)前較為先進(jìn)方便的觸摸屏輸入技術(shù),為用戶提供一個(gè)方便易捷的輸入方式,以實(shí)現(xiàn)人機(jī)交互。燈設(shè)備離線檢測(cè)功能是本設(shè)計(jì)的又一大亮點(diǎn),本設(shè)計(jì)采用定時(shí)詢問(wèn)方法,實(shí)現(xiàn)了從節(jié)點(diǎn)的離線檢測(cè)功能。總之,在本設(shè)計(jì)中,主節(jié)點(diǎn)實(shí)現(xiàn)了對(duì)多個(gè)從節(jié)點(diǎn)燈設(shè)備的遠(yuǎn)程設(shè)置和監(jiān)控功能、離線檢測(cè)功能、運(yùn)行通信指示功能、實(shí)時(shí)更新顯示功能等。從節(jié)點(diǎn)具有獨(dú)立設(shè)置、控制本節(jié)點(diǎn)燈設(shè)備的功能。整體系統(tǒng)運(yùn)行可靠,通信正常,不出現(xiàn)通信擁堵、死機(jī)等現(xiàn)象。并開(kāi)發(fā)出具有一定應(yīng)用意義的系統(tǒng)軟硬件,實(shí)現(xiàn)了照明燈設(shè)備的有效控制。關(guān)鍵詞: CAN 總線;節(jié)點(diǎn);照明控制;TFT;觸摸屏技術(shù);SD 卡廣西科技大學(xué)(籌)畢業(yè)設(shè)計(jì)論文 AbstractIIAbstractThe 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è)計(jì)論文 目錄III目錄摘 要 ........................................................................................................................................IABSTRACT...................................................................................................................................II1 緒論 .....................................................................................................................................1 課題背景 ........................................................................................................................1 現(xiàn)場(chǎng)總線的技術(shù)特點(diǎn)和現(xiàn)狀 ........................................................................................1 課題的提出及意義 ........................................................................................................22 系統(tǒng)設(shè)計(jì) .............................................................................................................................3 設(shè)計(jì)要求 ........................................................................................................................3 總體設(shè)計(jì)方案 ................................................................................................................3 設(shè)計(jì)思路 ................................................................................................................3 方案論證與比較 ....................................................................................................4 主控制器 .........................................................................................................4 CAN 控制器選擇 ..............................................................................................4 CAN 收發(fā)器 ......................................................................................................5 CAN 通信電纜 ..................................................................................................5 系統(tǒng)結(jié)構(gòu)框圖 ........................................................................................................53 硬件設(shè)計(jì) .............................................................................................................................7 系統(tǒng)硬件結(jié)構(gòu) ................