西安科技大学高新学院
毕 业 设 计(论 文)
题 目 室内灯光控制系统的设计
院(系、部) 机电信息学院
专业及班级 计算机科学与技术1102
姓 名 孙磊
指 导 教 师 王琪
摘要
本课题主要研究的是针对室内灯光的自动控制展开研究,提出了室内灯光控制的具体原理以及它的具体设计思路,提出了基于室内灯光控制系统的详细设计详细内容,在研究该课题的途中努力学习了智能室内灯光控制系统的硬件设备以及相应的软件。本研究以STC89C52单片机为主要操作核心,本研究采用了光敏三极管做为对外界自然光线的强度来进行详细检测,采用热红外人体传感器检测教室有没人进出;再根据本控制系统对外界自然光信号与人体存在的红外信号采取的智能判断,以及对室内需要合理打开灯的条件,以完成对室内照明回路智能控制,从而以达到合理节约利用电能的目的。此外,采用了LCD液晶显示器以用来显示室人数。本研究主要采用的结构为模块化设计,具有简单,体积小等很多优点,以用来满足本研究达到室内灯光控制系统的要求。
[关键词] :STC89C52;热红外人体传感器;光敏三极管;自动控制;
Abstract
The design analyzes the principle and realization method of the classroom light automatic control, and puts forward the classroom lighting design idea of automatic control system, and on this basis to develop the intelligent control system hardware and corresponding software through researching on automatic control method for classroom lighting. This study adopted the light activated triode as to outside natural light intensity to a detailed inspection; According to the control system’s intelligent judgment of the environmental light signal and the human existence signal, as well as to the classroom reasonable conditions, opening the lamp to complete automatic control of the classroom lighting circuit, so as to achieve the purpose of saving electricity,to meet the requirements of this study to the indoor lighting control system.
Key words: STC89C52; pyroelectric infrared sensor; automatic control; light activated triode目 录
第1章 绪论1
1.1课题研究的背景及意义1
1.2课题研究的内容2
第2章 系统总体分析4
2.1系统整体分析4
2.2设计中遇到的问题4
第3章 系统硬件设计6
3.1系统硬件核心6
3.2系统主要电路7
3.2.1系统主控电路7
3.2.2自然光采集电路8
3.2.3热红外人体传感器电路9
3.2.4系统时钟电路10
3.2.5灯控模拟电路12
3.2.6 LCD1显示电路12
第4章 系统软件设计13
4.1系统主程序设计13
4.2系统子程序设计14
4.2.1红外人体传感器模块14
4.2.2自然光采集模块15
4.2.3时钟模块16
4.2.4LCD显示模块17
第5章 系统调试与仿真18
5.1仿真软件18
5.2仿真注意事项与方法20
5.3仿真结果20
总结24
参考文献26
附录27
附录一 系统硬件仿真电路及原理图如下27
附录二 源程序如下28
致谢35
第1章