【正文】
河南科技大學(xué)畢業(yè)設(shè)計(jì)(論文) 1 基于單片機(jī)的 紅外遙控電子鐘 設(shè)計(jì) 摘 要 本設(shè)計(jì)主要是先對(duì)紅外遙控電子鐘進(jìn)行系統(tǒng)方案的設(shè)計(jì),進(jìn)而進(jìn)行系統(tǒng)硬件(電路圖)以及系統(tǒng)軟件(程序)兩個(gè)方面的設(shè)計(jì)。使其具有顯示年、月、日、時(shí)、分、秒的基本功能之外,還具有溫度顯示功能、整點(diǎn)報(bào)時(shí)功能、鬧鐘功能和紅外遙控控制功能。 在 本 設(shè)計(jì)中首先選用文獻(xiàn)法,查找有關(guān)紅外遙控電子鐘設(shè)計(jì)的資料,了解此次設(shè)計(jì)中可以應(yīng)用到的各種單片機(jī)、電子時(shí)鐘芯片和溫度采集模塊等等;然后選用比較法,針對(duì)此次設(shè)計(jì)的要求,逐一進(jìn)行比較,分析選用不同單片機(jī)、電子時(shí)鐘芯片和溫度采集模塊應(yīng)用時(shí)的優(yōu)缺 點(diǎn),選用優(yōu)點(diǎn)最多,缺點(diǎn)最少的單片機(jī)、電子時(shí)鐘芯片和溫度采集模塊;最后選用實(shí)驗(yàn)法進(jìn)行設(shè)計(jì)方案的決定。 最終確定本 設(shè)計(jì)的產(chǎn)品是基于 DS1302 時(shí)鐘芯片和 DS18B20 溫度傳感器并用紅外遙控進(jìn)行設(shè)置的電子鐘溫度計(jì),以 STC89C54 單片機(jī)為控制核心,并用 1602 液晶顯示作為人機(jī)交互界面。可以對(duì)周圍環(huán)境溫度進(jìn)行實(shí)時(shí)監(jiān)測(cè),還可以利用紅外遙控進(jìn)行鬧鐘的設(shè)定和時(shí)間的調(diào)整。 本次基于單片機(jī)設(shè)計(jì)的紅外遙控電子鐘 與傳統(tǒng)的機(jī)械鐘相比,更具有走時(shí)準(zhǔn)確、顯示直觀、性能穩(wěn)定、攜帶方便、無機(jī)械傳動(dòng)裝置等優(yōu)點(diǎn),因而得到廣泛應(yīng)用。 關(guān) 鍵 詞: 溫度計(jì),電子鐘, DS1302, DS18B20,紅外遙控 河南科技大學(xué)畢業(yè)設(shè)計(jì)(論文) 2 THE DESIGN OF INFRARED REMORE CONTROL CLOCK BASED ON MCU ABSTRACT This design is mainly to design the system solution of the infrared remote control clock design the system hardware (circuit diagram) and system software (program).To make it not only has the function of showing year month date hour minute second,but also has the function of showing temperature,telling the time,alarming and remote controlling by infrared. In this design first use literature method,to search the material about the infrared remote control clock,and understand all kinds of MCU,electronic clock chips and temperature collection modules which will use in this use parison method,to pare each of them based on the requirement of the the advantages and disadvantages of each MCU,electronic clock chips and temperature collection modules if it is used in this design,then choose the MCU,electronic clock chips and temperature collection modules which has more advantages and less use experiment method to decide the design solution. This product is electronic clock and thermometer which can be set by users and based on the real time clock chip DS1302 and the temperature sensor chip the product use STC89C54 to be its MCU and use 1602 to be its human machine system can detect the temperature of the environment in real time,and it can be modified the time and set the alarm clock by infrared remote controller. The infrared remote control clock based on MCU has a lot of advantages pared with the traditional mechanical clock,for example the time is 河南科技大學(xué)畢業(yè)設(shè)計(jì)(論文) 3 accurate,its showing is intuitive,its stable performance,it is easy to carry and there is no mechanical transmission it is used widely. KEY WORDS: thermomter,electronic clock,DS1302,DS18B20,infrared remote controller 河南科技大學(xué)畢業(yè)設(shè)計(jì)(論文) 1 目 錄 前 言 ....................................................................................................... 1 第一章 系統(tǒng)總體方案設(shè)計(jì) .................................................................... 3 167。 系統(tǒng)的設(shè)計(jì)功能 .................................... 3 167。 方案的選擇與比較 .................................. 3 167。 系統(tǒng)的基本方案選擇 ............................ 3 167。 單片機(jī)的選擇 ................................... 3 167。 時(shí)鐘芯片的選擇 ................................ 4 167。 溫度采集模塊的選擇 ............................ 5 167。 顯示模塊的選擇 ................................ 5 167。 紅外發(fā)射接收模塊的選擇 ........................ 5 167。 電源模塊的選擇 ................................ 5 167。 聲光報(bào)警模塊的選擇 ............................ 6 167。 系統(tǒng)的總體設(shè)計(jì)方案 ................................ 6 第二章 系統(tǒng)硬件設(shè)計(jì) ............................................................................ 7 167。 單片機(jī)控制模塊 .................................... 7 167。 STC89C54 單片機(jī)的簡(jiǎn)介 ......................... 7 167。 時(shí)鐘電路的設(shè)計(jì) ................................ 8 167。 復(fù)位電路的設(shè)計(jì) ................................ 9 167。 時(shí)鐘芯片 DS1302 模塊 .............................. 9 167。 DS1302 簡(jiǎn)介 .................................... 9 167。 DS1302 的工作原理 ............................ 10 167。 DS1302 的應(yīng)用 ................................ 10 167。 溫度采集 DS18B20 模塊 .......................