基于单片机的声光控制开关的设计 下载本文

内容发布更新时间 : 2024/12/25 0:15:05星期一 下面是文章的全部内容请认真阅读。

西北民族大学学士学位论文

——————————————————————————————————————————————

摘 要 在我们的生活中无时无刻在使用着灯,而在许多公共场所长明灯现象十分普遍,这造成了能源的极大浪费。因此要设计一种既节约又很方便实用的照明灯。本文阐述了简单的声光控制的照明灯的电路设计。通过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,

1

西北民族大学学士学位论文

——————————————————————————————————————————————

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

目录

1.绪论 .................................................. 1

1.1课题研究的背景和意义........................... 1

2

西北民族大学学士学位论文

——————————————————————————————————————————————

1.2国内外概况 .................................... 1

2.系统硬件设计 ......................................... 2

2.1单片机控制部分 ................................... 2

2.1.1芯片AT89C51的介绍 ............................ 3 2.1.2外形及引脚排列 ................................ 3

2.2单片机最小系统 ................................... 5

2.2.1时钟电路...................................... 6 2.2.2复位电路...................................... 6

2.3光信号检测电路 ................................... 7

2.3.1光敏电阻介绍 .................................. 7 2.3.2光控部分原理 .................................. 8

2.4声音信号检测电路 ................................. 9

2.4.1 驻极体话筒的介绍 ............................. 9 2.4.2 AD0832的介绍 ................................. 9 2.4.3 声控部分原理 ................................ 10

2.5延时时间显示电路 ................................ 11

2.5.1数码管结构和分类 ............................. 11 2.5.2数码管驱动方式 ............................... 12 2.5.3定时/计数部分 ................................ 13 2.5.4显示电路分析 ................................. 13

2.6总原理图 ......................................... 15

3.系统软件设计 ........................................ 15

3