当前位置:文档之家› 基于单片机的智能LED小夜灯设计

基于单片机的智能LED小夜灯设计

2017年第3期科技广场总第184期

基于单片机的智能LED小夜灯设计

夏于琴

(四川仪表工业学校,重庆北碚400700)

摘要:目前社会上很多地方使用长明灯照明,既不节能,又不环保。虽然有了微波感应开关和声光控开关,但由

于自身的缺点(微波式感应开关在抗干扰性能上尚不理想,声光控开关的声控灵敏度低),这些开关仍不完美。

红外光控智能感应开关较好的解决了以上两种开关的弊端。本文以红外光控智能感应开关为载体,设计了红外

光控智能小夜灯控制系统。本系统可以控制路灯、楼梯、库房以及抽屉等较小范围的灯光智能照明。即在有光时

灯始终不亮,无光无人时灯也不亮,无光有人时灯亮并且会延时一定的时间,从而达到节能节电的效果。

关键词:小夜灯;单片机;LED;智能

中图分类号:TP273 文献标识码:A 文章编号:1671-4792(2017)3-0062-03

Design of Intelligent Led Night Light Based on MCU

Xia Yuqin

(Sichuan Instrument Industry School,Chongqing BeiBei 400700)

Abstract:Our era sees the omnipresence of nightlight lamps which is neither energy efficient nor environment friend-

ly. Even if there are microwave induced switch and acoustooptic switch, these switches are still not perfect due to its

own shortcomings ( the microwave induction switch is not ideal for the anti-jamming performance and the acous-

to-optic controlled switch has low sensitivity). The infrared light control intelligent induction switch solves the disad-

vantages of the above two kinds of switches better. In this paper, the infrared light control intelligent night light con-

trol system is designed based on the infrared light intelligent sensor switch. This system can control the light intelli-

gent lighting of lamp, stair, storehouse and drawer etc. That is, the light is always light when there is light time light,

light is not light when no light, no light when people light and time delay, so as to achieve the effect of energy saving

and energy saving.

Keywords: Small Night-light; Single Chip Microcomputer; LED; Intelligence

o引言

当你在漆黑的夜晚开门的时候,在背包里找钥 匙的时候,又或者午夜起来上厕所时,是否在为找不 到灯开关而烦恼不已呢?是的,在日常生活中我们可 以发现很多时候我们需要灯却没有或者不能实现智 能控制等,而智能双控开关小夜灯特别符合人们的 要求,可以有效的解决人们的小烦恼。

1设计思路

智能双控小夜灯主要是依据光控原理和红外线 控原理来设计的。利用光控电路可以根据光线的亮 暗条件控制灯的使用。光控电路是由光敏电阻和

一 62 —LM393比较器组成的。红外电路是为完善光控路灯 而添加的。在不同时段、不同的地点使用灯的情况也 不同,红外线控制可进一步控制时间,节约能源。整 个电路系统由电源端子、红外控制电路(即人体感应 模块)、光控电路、单片机控制电路和LED照明电路 等部分组成。电源由干电池提供。光控电路对外界光 亮程度进行检测,输出与光亮程度相对应的电压信 号,通过比较器进行比较,同时利用人体感应模块感 应红外线,进而给出不同的电平信号,再通过程序控 制单片机口的电平高低,从而实现白天灯泡不亮,晚 上有人时,灯泡自动点亮。人体感应模块主要将红外

相关主题
文本预览
相关文档 最新文档