摘要:本课题针对学校照明用电严重浪费的问题,尤其是教室灯光严重浪费的现状,设计了基于单片机的教室灯光能控系统。本设计以AT89C52为控制芯片,利用光照检测和红外探测相结合的探测方式,根据光敏电阻对光强的敏感性,对人体存在和环境光照强度进行检测,将传感器所得信号反馈给单片机,由单片机发出相应的光照指令对灯光进行控制,实现教室照明节能智能控制系统。通过软件与硬件的结合,实现教室无人时自动关灯,光照充足时自动关灯,有人到来光照不足时自动开灯的功能,避免了教室用电的大量浪费。单片机软件采用C语言编译,采用模块化的设计,条理清晰,有助于改进和扩充,通用性较好,成本较低,可靠性强,很大程度达到节能的目的。70682
毕业论文关键词:单片机,红外检测,光照检测,节能
Abstract:This topic according to school lighting serious waste of electricity, especially the status of serious waste of classroom lighting, the design of MCU classroom lighting control system based on. The design of AT89C52 as the control chip, detection and infrared detection combined detection method based on light, root according to the sensitivity of photosensitive resistance to light intensity, on human and environmental light intensity were detected signals acquired by the sensor feedback to the micro controller, is composed of a single chip microcomputer a corresponding light according to instructions of the light control, the realization of classroom lighting energy-saving intelligent control system. Through a combination of hardware and software to achieve the classroom no automatically turn off the lights, light illumination is sufficient when self Turn off the lights, there are people coming light according to the function of automatically turn on the lights in the low to avoid the classroom with a large number of waste of electricity. SCM software using C language compiler, using modular design, clarity, contribute to improvement and expansion, general better, low cost, strong reliability, greatly saving objective.
Keyword: SCM,infrared detection,light detection,energy conservation
目 录
1 引言 4
1.1 课题的研究背景 4
1.2 课题研究的目的与意义 4
1.3 课题的研究内容 5
2 智能灯光控制器的总体方案设计 5
2.1 系统的功能要求 5
2.2 系统的技术要求 6
2.3 系统的组成及方案设计 6
3 系统的硬件电路设计 7
3.1 总体电路及原理 7
3.2 主控电路 7
3.3 电源电路 8
3.4 复位电路 9
3.5 时钟电路 9
3.6 光照检测电路的设计 11
3.7 人体红外检测电路的设计 12
3.8 液晶显示电路的设计 12
4 系统的软件设计 14
4.1 软件介绍 14
4.2 系统程序流程图