基于单片机控制的新型智能台灯 - 图文

2019-01-07 18:39

哈 尔 滨 理 工 大 学

毕 业 设 计

题 目:院、 系:姓 名:指导教师:系 主 任: LED新型智能台灯

应用科学学院电子科学与技术系 彭张京 贺训军 宋明歆

2013 年 6 月 00 日

哈尔滨理工大学学士学位论文 LED新型智能台灯

摘要

随着时代发展,节能环保、健康与人们的日常生活变得密不可分,科技的进步,也使家电更加智能化和人性化。台灯作为家电中基础的,也是必不可少的,所以,提出LED新型智能台灯设计。

该设计是以STC89C52RC单片机为控制核心的集多种功能于一体的智能LED台灯。该台灯实现了自动检测屋内是否有人并自动开启/关闭功能;台灯光亮度具有手动、自动两种调节方式;具有时间、日期显示功能,休息提醒和坐姿纠正等多个功能。硬件设计部分分为单片机控制模块、按键模块、照明模块、光敏模块、坐姿纠正模块、视力保护模块、时钟模块、显示模块,红外传感模块等多个部分。单片机主控制芯片选用STC89C52RC,显示模块选用LCD1602,通过按键模块来调整时间、日期、LED的亮度,时钟芯片选用DS1302,照明模块选用16颗高亮度白光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 人体红外线感应模块GH-718C ....................................................... 6 2.2.3 传感器的确定 .................................................................................... 6 2.3 显示模块的选择 ....................................................................................... 7 2.3.1 数码管显示 ........................................................................................ 7 2.3.2 显示模块1602 ................................................................................... 7 2.3.3 显示模块12864 ................................................................................. 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 -


基于单片机控制的新型智能台灯 - 图文.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:幼儿教师师德师风学习心得体会

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: