【正文】
, AT89S52 單片機(jī),光敏電阻、繼電器 Abstract This design uses the chip AT89S52 making a remote dimmer, which can control the light intensity with realtime, accurately, and multipoint. It is not only beneficial to the light acquisition, but also more advantageous to save energy. This system is prised of the core(AT89S52),the slave(remote control circuit) and the lighting control enable the system to be used in different ways, the design uses the remote control, control and relay control knob can be arbitrary under the control of the different needs of different states of the relay switch. To make use of different ways conveniently, this design uses the remote control, knob control and realtime light control, according to different needs. This design is considered fully making cost and humanized design concept, fully embodies the contest themes and purpose. Key words: Remote dimmer, AT89S52 SCM, Photoconductive resistance ,Relay “格州杯”電子設(shè)計(jì)大賽 3 目錄 設(shè)計(jì)任務(wù) .............................................. 4 基本要求 ........................................... 4 發(fā)揮部分 ........................................... 4 方案論證與比較 ........................................ 4 主要控制芯片的選擇 ................................. 4 從機(jī)遙控部分電路 .................................. 4 總體方案 .............................................. 5 工作原理 ........................................... 5 總體設(shè)計(jì) .......................................... 5 系統(tǒng)硬件設(shè)計(jì) .......................................... 6 主機(jī)模塊 .......................................... 6 主機(jī)控制模塊 ....................................... 8 從機(jī)遙控模塊 ...................................... 10 電源部分 ......................................... 13 系統(tǒng)軟件設(shè)計(jì) ......................................... 14 總體測(cè)試與結(jié)果分析 .................................... 14 基本部分測(cè)試 ...................................... 14 測(cè)試結(jié)果分析 ...................................... 15 設(shè)計(jì)總結(jié) ............................................. 16 參考資料 ............................................. 16 “格州杯”電子設(shè)計(jì)大賽 4 附錄 : ................................................. 177 設(shè)計(jì)任務(wù) 基本要求 以高亮度 LED 為光源,以單片機(jī)為主控芯片; 系統(tǒng) 分為主機(jī)和遙控從機(jī),主機(jī)負(fù)責(zé)調(diào)光,從機(jī)負(fù)責(zé)遠(yuǎn)程控制,采用紅外遙控的方法; 遙控從機(jī)上要有四個(gè)按鍵,按鍵 1,是開(kāi)關(guān),按一下燈開(kāi),再按燈關(guān);按鍵2 是低亮度;按鍵 3,是中亮度,按鍵 4,是高亮度。 發(fā)揮部分 可以自動(dòng)調(diào)節(jié)光線的亮暗; 亮度可多達(dá) 5級(jí)調(diào)節(jié); 采用蜂鳴器發(fā)聲確認(rèn)信號(hào)成功接收。 ATMEGA16單片機(jī)屬于高性能、低功耗 的 8 位 AVR174。 AT89S52 是一種低功耗、高性能、價(jià)格便宜的微控制器,具有 8K 在系統(tǒng)可編程 Flash 存儲(chǔ)器。片上 Flash 允許程序存儲(chǔ)器在系統(tǒng)可編程,亦適于常規(guī)程器。 此次設(shè)計(jì)中,以上兩款單片機(jī)都沒(méi)夠完成設(shè)計(jì)需要。鑒于以上原因,本次設(shè)計(jì)采用AT89S52 作為核心芯片。 TX05D 是一種一體化的紅外 線 發(fā)射 、 接收器件,“格州杯”電子設(shè)計(jì)大賽 5