基于单片机的声光控制开关的设计
摘
要
在我们的生活中无时无刻在使用着灯,而在许多公共场所长明灯现象十分普遍,这造成了能源的极大浪费。因此要设计一种既节约又很方便实用的照明灯。本文阐述了简单的声光控制的照明灯的电路设计。通过AT89C51单片机结合LED显示技术、声音检测技术、光信号检测技术、延时技术、按键扫描等技术来实现对照明灯的控制。
首先通过光敏电阻对光照强度进行检测,当白天光线强时,不管有多大的声音,照明灯都不会点亮。而在夜晚光线暗时,声音检测电路只要检测到有足够的声响时,就会自动点亮照明灯,过数十秒后又自动熄灭。这样就使人们的生活更加方便,同时,也达到了节电和节能的目的,延长了灯的使用寿命。
关键词
单片机,
声控,光控,
照明控制
ABSTRACT
In our lives, no at all times when in use with the light, and the eternal fire is very common in many public places, which resulted in tremendous waste of energy. So I want to design a practical lighting is saving and very convenient. This article explains a simple sound and light control circuit design of lighting. By AT89C51 monolithic integration of LED display technology and sound detection technology, optical signal detection, delay, keypad scanning technology to control light control.
First photosensitive resistor on measurement of light intensity, when the day when a strong light, no matter how much noise, lights are not lit. And when the night light, sound detection circuit for as long as enough when sound is detected, it will automatically point bright lights, automatically after few seconds off. This makes people's lives more convenient, meanwhile, reached a power-saving and energy-saving purposes, extend the life of the lamp.
Key
words
:Single-chip Microcomputer
,Acoustic control
,Light-operated
,Lighting control
目录