基于單片機控制的新型智能臺燈 - 圖文 - 下載本文

买足球彩票技巧 www.lbmkq.icu

哈 爾 濱 理 工 大 學

畢 業 設 計

題 目:院、 系:姓 名:指導教師:系 主 任: LED新型智能臺燈

應用科學學院電子科學與技術系 彭張京 賀訓軍 宋明歆

2013 年 6 月 00 日

哈爾濱理工大學學士學位論文 LED新型智能臺燈

摘要

隨著時代發展,節能環保、健康與人們的日常生活變得密不可分,科技的進步,也使家電更加智能化和人性化。臺燈作為家電中基礎的,也是必不可少的,所以,提出LED新型智能臺燈設計。

該設計是以STC89C52RC單片機為控制核心的集多種功能于一體的智能LED臺燈。該臺燈實現了自動檢測屋內是否有人并自動開啟/關閉功能;臺燈光亮度具有手動、自動兩種調節方式;具有時間、日期顯示功能,休息提醒和坐姿糾正等多個功能。硬件設計部分分為單片機控制???、按鍵???、照明???、光敏???、坐姿糾正???、視力?;つ??、時鐘???、顯示???,紅外傳感??櫚榷喔霾糠?。單片機主控制芯片選用STC89C52RC,顯示??檠∮肔CD1602,通過按鍵??槔吹髡奔?、日期、LED的亮度,時鐘芯片選用DS1302,照明??檠∮?6顆高亮度白光LED,休息提示用蜂鳴器發出鬧鈴提示音,檢測用戶選用BIS0001紅外熱釋傳感器。通過單片機C語言編程進行軟件設計,綜合實現了全部控制功能。

關鍵詞 單片機;LED;智能;時間。

- I -

哈爾濱理工大學學士學位論文 New intelligent LED lamp

Abstract

With the development of the times, energy saving and environmental protection, health and people's daily life has become inseparable. Advances in technology, but also makes home appliances more intelligent and humane. Stands as the foundation of home appliances, is also essential, therefore, propose the design of new intelligent LED lamp.

This design is based on STC89C52RC microcontroller, which is the core of controlling and sets a lot of functions in one smart LED lamp. The design achieves the function of automatic detection of whether someone in the house and automatically turning on / off; The light levels with manual and automatic adjustment mode; Has the time, date display function, resting posture corrective reminders and many other functions. Hardware design part is divided into single-chip control module, the key module, lighting modules, photosensitive module, sitting correction module, eye protection module, clock module, display module, infrared sensor module and many other parts. The main control chip microcontroller selects STC89C52RC, display module selects LCD1602, through key module to adjust the time, date, LED's brightness, clock chip selects DS1302, lighting modules uses 16 high-brightness white LED, buzzer alarm with the rest prompt tips tone, detect user selects BIS0001 infrared pyroelectric sensors. By Microcontroller C programming language to finish software design, integrated to achieve full control.

Keywords Microcontroller, LED, intelligence, time

- II -

哈爾濱理工大學學士學位論文

目錄

摘要 ...................................................................................................................... I Abstract ............................................................................................................... II 第1章 緒論 ........................................................................................................ 1 1.1 課題研究背景 ........................................................................................... 1 1.2 系統方案的提出 ....................................................................................... 1 1.2.1 LED優勢 ............................................................................................ 2 1.2.2 方案簡述 ............................................................................................ 2 1.3 可實現功能 ............................................................................................... 3 第2章 系統方案的選擇 .................................................................................... 3 2.1 控制芯片的選擇方案 ............................................................................... 4 2.1.1 STC89C52RC...................................................................................... 4 2.1.2 AVR單片機 ........................................................................................ 4 2.1.3 FPGA ................................................................................................... 5 2.1.4 主控制芯片的確定 ............................................................................ 5 2.2 人體感應??櫚難≡穹槳?....................................................................... 6 2.2.1 超聲波探測檢測 ................................................................................ 6 2.2.2 人體紅外線感應??镚H-718C ....................................................... 6 2.2.3 傳感器的確定 .................................................................................... 6 2.3 顯示??櫚難≡?....................................................................................... 7 2.3.1 數碼管顯示 ........................................................................................ 7 2.3.2 顯示???602 ................................................................................... 7 2.3.3 顯示???2864 ................................................................................. 7 2.3.4 顯示??櫚娜范?................................................................................ 8 2.4 照明??櫚難≡?....................................................................................... 8 2.4.1 三極管驅動 ........................................................................................ 8 2.4.2 PWM波形控制 .................................................................................. 9 2.4.3 照明方案的確定 .............................................................................. 10 第3章 系統硬件電路設計 .............................................................................. 11 3.1 主控制芯片及外圍電路設計 ................................................................. 11 3.1.1 STC89C52RC.................................................................................... 11 3.1.2 復位電路 .......................................................................................... 14 3.2 人體感應??橛布暗緶飛杓?............................................................. 15 3.2.1 BIS0001 ............................................................................................. 15 3.2.2 人體紅外感應??櫚緶飛杓?.......................................................... 16

- III -

哈爾濱理工大學學士學位論文

3.3 顯示??櫚緶飛杓?................................................................................. 17 3.4 照明電路設計 ......................................................................................... 18 3.5 時鐘電路設計 ......................................................................................... 18 3.5.1 DS1302 .............................................................................................. 18 3.5.2 時鐘電路圖設計 .............................................................................. 19 3.6 感光電路設計 ......................................................................................... 20 3.7 聲音提醒電路設計 ................................................................................. 22 3.8 坐姿糾正電路設計 ................................................................................. 22 3.9 電源??櫚緶飛杓?................................................................................. 23 3.10 按鍵電路設計 ....................................................................................... 24 第4章 軟件設計及系統測試 .......................................................................... 25 4.1 軟件設計 ................................................................................................. 25 4.2 系統測試 ................................................................................................. 26 4.2.1 電源??椴饈?.................................................................................. 26 4.2.2 人體感應??椴饈?.......................................................................... 26 4.2.3 光敏??椴饈?.................................................................................. 26 4.2.4 顯示??椴饈?.................................................................................. 27 結論 .................................................................................................................... 28 致謝 .................................................................................................................... 29 參考文獻 ............................................................................................................ 30 附錄A ................................................................................................................ 32 附錄B ................................................................................................................ 33 附錄C ................................................................................................................ 46

- IV -





ag电子查询注单号 重庆时时在线预测 抢庄牌九网站 ag电子游戏怎么下载 新疆时时走势图开奖及时更新 pk10三码必中冠军计划 北京pk10挂机投注软件 七乐彩历史号码大全 教你几招快三大小单双稳赚 幸运28有规律吗 11选5任必中方法 pk10赛车计划软件手机苹果 浙江快乐彩怎么买稳赚 中国福彩手机客户端 幸运飞艇防连挂计划软件 鱼丸游戏 奔驰宝马