基于单片机的智能台灯.docx
文本预览下载声明
PAGE 17
基于单片机的智能台灯
摘 要
为了解决智能台灯功能不全并且没有相应设备来纠正学生坐姿和学习时间的问题,本文设计了一套可用于进行自动调光可对学生坐姿以及学习时间进行提醒的方案。本套设计方案采用51单片机作为主控芯片STC89C52,搭配LED数码管、人体红外检测模块HC-SR501、距离红外检测模块GP2Y0E03、按键、LED灯以及其它外围I/O设备,通过方案论证,最终确定了本文方案。在对设计出的硬件系统进行测试时。通过对各个模块单独测试,然后进行系统联调,结果均显示本文所设计的系统符合设计要求。
关键词:智能台灯 51单片机 自适应光亮 距离提醒
Intelligent desk lamp based on single chip microcomputer
Abstract
In order to solve the problem of the incomplete function of the intelligent desk lamp and the lack of corresponding equipment to correct the students sitting posture and learning time, this paper designs a set of programs that can be used for automatic dimming to remind students of the sitting posture and learning time. This set of design scheme uses 51 single-chip microcomputer as the main control chip STC89C52, with LED digital tube, human infrared detection module HC-SR501, distance infrared detection module GP2Y0E03, buttons, LED lights and other peripheral I/O devices. It is finally determined through the demonstration of the scheme. The scheme of this article. When testing the designed hardware system. Through the individual testing of each module, and then the system joint debugging, the results show that the system designed in this article meets the design requirements.
?
Key Words: Intelligent desk lamp 51 single chip microcomputer adaptive light distance reminder
目 录
TOC \o 1-3 \h \z \u 1 绪论 1
1.1 课题研究背景及意义 1
1.2 国内外研究现状 1
1.2.1 国外智能照明设备研究现状 1
1.2.2 国内智能照明设备研究现状 2
1.3 本文主要研究内容及章节安排 2
2 系统方案论证 3
2.1 系统设计方案 3
2.2 主控模块选型 3
2.3 红外人体感应模块选型 4
2.4 显示模块选型 5
2.5 距离检测模块 6
3 硬件电路的设计 7
3.1 单片机 7
3.1.1 单片机的应用 7
3.1.2 单片机最小系统 8
3.1.3 系统时钟电路 8
3.1.4 系统复位电路 9
3.1.5 系统中断 10
3.2 红外人体感应模块电路 10
3.3 显示模块电路 11
3.4 红外距离检测模块电路 11
3.5 按键电路 12
4 系统软件设计 13
4.1 系统设计软件 13
4.1.1 Altium Designer 13
4.1.2 Keil C51 13
4.2 软件设计流程图 13
4.2.1 主函数流程图 13
4.2.2 传感器模块流程图 14
4.2.3 显示模块流程图 14
4.2.4 按键模块流程图 15
5 系统测试 17
6 总结 19
参考文献 20
显示全部