【正文】
of the Smart Home, its main function as follow: 1. The corresponding function of IR remote control. when press the button can enter relevant function respectively. 2. Code lock is set six passwords, and passwords are input through the keyboard. When found errors in the process of iuputing,you can run a operation of deleting each password. If the correct password, then LCD screen display the lock open, otherwise there will be three times relisted and input errors are locked with buzzer warned. In addition, in the correct, it can change the password . 3. Step motor can undertake are turning and reverse, and delay three seconds. 4. Temperature sensing device, can be in digital tube display the current temperature. When more than a certain temperature ,it alarms to buzzer tips. This design selects AT89S52 of ATMEL pany and use MINI80 development board of Shanghai HaoTun electronic technology development pany as environment simulation of the Smart Home and pile with software of keil uVision3. And then dowanload the program to the development board. Last, test the circuit board withed the software and hardware to finish the design. KEY WORDS: Smart Home, MCU,AT89S52, IR Remote II 目 錄 第 1 章 緒論 ................................................................................................................................... 1 第 2 章 智能家居系統(tǒng)總體設(shè)計(jì) ................................................................................................... 2 系統(tǒng)設(shè)計(jì)任務(wù)和要求 ........................................................................................................... 2 課題分析 ............................................................................................................................... 2 系統(tǒng)可行性分析 ................................................................................................................... 2 設(shè)計(jì)原理 ............................................................................................................................... 4 系統(tǒng)組成 ............................................................................................................................... 4 第 3 章 智能家居系統(tǒng)的硬 件電路設(shè)計(jì) ....................................................................................... 6 單片機(jī) AT89S52 簡(jiǎn)介 .......................................................................................................... 6 紅外遙控簡(jiǎn)介 ....................................................................................................................... 8 44 矩陣鍵盤 ...................................................................................................................... 10 步進(jìn)電機(jī) ............................................................................................................................. 11 LCD1602 顯示器 ................................................................................................................. 13 DS18B20 數(shù)字溫度傳感器 ................................................................................................ 16 數(shù)碼管顯示電路 ................................................................................................................. 19 復(fù)位電路 ............................................................................................................................. 20 振蕩電路 ............................................................................................................................. 21 蜂鳴器 ............................................................................................................................... 21 第 4 章 軟件程序設(shè)計(jì) ................................................................................................................. 23 軟件設(shè)計(jì) ............................................................................................................................. 23 C 語(yǔ)言 的特點(diǎn) ...................................................................................................................... 23 具體軟件模塊實(shí)現(xiàn) ............................................................................................................. 24 軟件抗干擾技術(shù) ................................................................................................................. 29 第 5 章 系統(tǒng)調(diào)試 ......................................................................................................................... 31 部分模塊電路調(diào)試 ............................................................................................................. 31 調(diào)試分析 ............................................................................................................................. 32 故障分析 ............................................................................................................................. 32 結(jié) 論 ............................................................................................................................................. 33 致 謝 ............................................................................................................................................. 34 參考文獻(xiàn) ....................................................................................................................................... 35 附錄 1: 部分 系統(tǒng)程序清單 ........................................................................................................ 36 附錄 2: 系統(tǒng)實(shí)物照片 ................................................................................................................ 42 3 1 第 1 章 緒論 20 世紀(jì)八十年代初, 20 世紀(jì)八十年代初,隨著大量采用電子技術(shù)的家用電器面市,住宅電子化出現(xiàn), 80 年代中期,將家用電器、通信設(shè)備與安全防范設(shè)備各自獨(dú)立的功能綜合為一體后,形成了住宅自動(dòng)化概念。最后聯(lián)合軟、硬件調(diào)試電路板,完成本次畢業(yè)設(shè)計(jì)。 本次設(shè)計(jì) 以 ATMEL 公司的 單片機(jī) AT89S52 為核心控制器件 , 選用 上海浩豚電子科技公司開發(fā)的 MINI80 開發(fā)板模擬智能家居環(huán)境 。 ( 4) 溫度感應(yīng)裝置,可以在數(shù)碼管顯示當(dāng)前溫度。此外,在密碼正確的情況下可以進(jìn)行更改密碼操作 。 ( 2) 密碼鎖設(shè)置有 6 位密碼,密碼通過(guò) 矩陣 鍵盤輸入,輸入過(guò)程中發(fā)現(xiàn)錯(cuò)誤可進(jìn)行 逐個(gè) 刪除 的 操作 。而且隨著作為智能家居控制器的電子產(chǎn)品向智能化和微型化的不斷發(fā)展,單片機(jī)已經(jīng)成為電子產(chǎn)品研制和開發(fā)中首先選擇的控制器。 1 摘 要