【正文】
microputer, and the auxiliary ones are based on AT89C2051. The system can do many jobs, such as wired munication, wireless data transmitting, controlling and display. The paper describes the designing process of the circuit at length, including: keyboard and LED display circuit, RS485 munication circuit, wireless transmitting circuit, control circuit of lighting, watchdog circuit, etc. The designing of software mainly includes the several programming, such as wired munication, wireless data transmitting, lamplight controlling, timed controlling, keyboard scanning and LED displaying. The wired munication programming function is that through Masterslave munication method based on RS485 the host controller sends orders to the all auxiliary controllers or each one, including: turning on lighting, turning off lighting, regulating brightness of lighting, controlling timed lighting, etc. The wireless data transmitting programming function is that by wireless transmitter it realizes wireless controlling of the lighting, and achieves the functions identical to wired munication. Key Words: Host controller, Auxiliary controller, Singlechip microputer, Wired munication, Wireless data transmitting, controlling brightness of lighting, Timed controlling 鄭州大學(xué) 物理工程學(xué)院 畢業(yè)論文 I 目 錄 摘 要 ....................................................................................................................... I 目 錄 ....................................................................................................................... I 引言 ........................................................................................................................ 1 1 系統(tǒng)概述 ............................................................................................................. 2 單片機的應(yīng)用技術(shù) .................................................................................. 2 有線通信技術(shù) .......................................................................................... 2 無線數(shù)傳技術(shù) .......................................................................................... 3 智能照明控制系統(tǒng)的發(fā)展與現(xiàn)狀 ......................................................... 3 智能控制技術(shù)的研究現(xiàn)狀 ........................................................... 3 國內(nèi)外智能照明發(fā)展概況 ........................................................... 3 智能照明控制系 統(tǒng)的優(yōu)點 ........................................................... 4 智能照明控制系統(tǒng)的組成 ........................................................... 4 現(xiàn)有智能照明控制系統(tǒng)的分析 ................................................... 4 系統(tǒng)設(shè)計 .................................................................................................. 5 系統(tǒng)設(shè)計要點 ............................................................................... 5 系統(tǒng)設(shè)計思路 ............................................................................... 5 本章小結(jié) .................................................................................................. 8 2 基于單片機的照明控制系統(tǒng)的設(shè)計框架與性能 ............................................. 9 系統(tǒng) 設(shè)計要點 ......................................................................................... 9 系統(tǒng)的結(jié)構(gòu) ............................................................................................. 9 本章小結(jié) ................................................................................................ 12 3 基于單片機的照明控制系統(tǒng)的硬件電路設(shè)計 ............................................... 13 系統(tǒng)硬件總述 ........................................................................................ 13 ........................................................................................ 13 主控制器的電路設(shè)計 ............................................................................ 13 鍵盤的接口設(shè)計 ........................................................................ 14 LED 數(shù)碼顯示的接口設(shè)計 ........................................................ 15 看門狗監(jiān)控電路的設(shè)計 ............................................................ 15 光信號取樣電路 .................................................................................... 15 Microwire 串行總線性能介紹 ................................................... 16 鄭州大學(xué) 物理工程學(xué)院 畢業(yè)論文 II TLC1549 的接口設(shè)計 ................................................................ 17 TCL1549 的數(shù)據(jù)采集程序設(shè)計 ................................................ 17 人體信號采集電路 ................................................................................ 18 人體紅外探頭 ............................................................................. 18 信號處理電路 ............................................................................. 21 比較電路 ..................................................................................... 22 DS12887 時鐘芯片接口電路設(shè)計 ........................................................ 23 時鐘芯片的接口設(shè)計 ................................................................. 24 RS485 通信電路的設(shè)計 ........................................................................ 25 無線數(shù)傳電路的設(shè)計 ............................................................................ 27 無線數(shù)傳電路的連接 ................................................................. 27 本章小結(jié) ................................................................................................ 29 4 基于單片機的照明控制系統(tǒng)的軟件設(shè)計 ....................................................... 30 人機交互程序設(shè)計 ................................................................................ 30 鍵盤掃描程序設(shè)計 ................................................................................ 31 LED 數(shù)碼顯示程序設(shè)計 ....................................................................... 32 照明啟??刂瞥绦蛟O(shè)計 ........................................................................ 33 單獨啟停控制程序設(shè)計 ........................................................................ 35 照明亮度控制程序設(shè)計 ........................................................................ 37 照明定時控制程序設(shè)計 .......................................................................