基于单片机的智能台灯设计(任务书,开题报告,外文翻译,论文15000字)
摘要
随着环境问题的恶化和能源的减少,节能型绿色环保台灯逐渐进入人们的生活。以前的灯用于单一目的,但现在人们需要一个多功能智能台灯。因此,利用所学知识设计一个多功能的绿色环保台灯是一个不错的主意。
本文介绍基于PWM调光的智能台灯设计。在不改变PWM方波周期的前提下,单片机用于控制PWM占空比,从而改变电压大小以实现光亮度的调整。
当台灯检测到人体在附近并且环境光线较弱时,灯会自动亮起,并且随着环境光线的变化自动调节灯的亮度。一旦人离开台灯范围,即红外热释传感器检测不到有人时,1分钟后自动熄灯。当人体距离桌面过近时,蜂鸣器还会发出警告,提醒坐姿。本设计通过亮度的自动调节和人体检测控制台灯开关来达到绿色节能的效果。同时为了提高本设计的适用范围,还加入了防近视距离检测和手动控制模式,在手动控制模式下,台灯亮度由按键调节,这样使得该台灯在一些特殊情况下也能适用。
关键词:单片机;台灯;PWM;人体检测
ABSTRACT
With the deterioration of environmental issues and the reduction of energy, energy-saving green environmental protection lamps have gradually entered people's lives. The previous lamp was used for a single purpose, but now people need a multifunctional smart desk lamp. Therefore, it is a good idea to design a multifunctional green table lamp using what you have learned.
This article describes a smart desk lamp design based on PWM dimming. Under the premise of not changing the PWM square wave cycle, the one-chip computer is used for controlling the PWM duty cycle, thus changing the voltage magnitude to realize the adjustment of the luminance.
When the desk lamp detects that the human body is in the vicinity and the ambient light is weak, the lamp will automatically light up, and the brightness of the lamp will be automatically adjusted as the ambient light changes. When the person leaves the scope of the lamp, that is, the infrared pyroelectric sensor does not detect anyone, it automatically turns off after 1 minute. When the human body is too close to the desktop, the buzzer will also issue a warning to remind sitting posture. The design achieves the effect of green energy saving through the automatic adjustment of the brightness and the human body detection console light switch. At the same time, in order to improve the scope of application of this design, an anti-myopia distance detection and manual control mode has been added. In the manual control mode, the brightness of the desk lamp is adjusted by the buttons, so that the desk lamp can be applied in some special cases.
KEYWORDS: Single chip microcomputer;Table lamp;PWM;Human body detection
目 录
摘要 I
ABSTRACT II
第1章 绪论 1
1.1 课题背景和意义 1
1.2 发展现状 1
第2章 智能台灯硬件选型与设计 3
2.1 元件选型 3
2.1.1 单片机的选型 3
2.1.2 显示选型 3
2.2 整体方案设计 4
2.2.1 系统概述 4
2.2.2 最小系统模块 4
2.2.3 LED照明电路 8
2.2.4 光照强度采集电路 8
2.2.5 人体红外检测模块 9
2.2.6 距离检测模块 11
2.2.7 蜂鸣器模块 11
2.2.8 按键输入模块 12
第3章 智能台灯软件设计与实现 13
3.1 软件设计 13
3.1.1程序语言及开发环境 13
3.1.2 程序流程设计 13
3.2 仿真实现 16
第4章 智能台灯组装与测试 17
4.1 元器件的选择与测量 17
4.2 元件的焊接与组装 17
4.3 电路的调试 17
4.4 实物功能测试 18
4.4.1智能台灯实物图 18
4.4.2测试方式及结果 19
第5章 结论 20
致 谢 21
参考文献 22
附录A 元件清单 23
附录B 原理图 24
附录C 单片机程序 25
|