当前位置>主页 > 期刊在线 > 电子工程 >

电子工程2018年9期

基于STC89S52 单片机的教室照明智能控制系统设计
郭宗富,彭晖,朱婷婷
(安顺学院,贵州 安顺 561000)

摘  要:本系统针对如何智能控制教室照明,避免用电大量浪费等问题进行研究,并且对实现教室照明智能控制的原理、方式及方法等问题进行了探究,提出了基于单片机的教室照明智能控制系统的设计方案,并在此基础上开发出了智能照明控制系统。系统的核心部件是STC89S52 单片机,它通过红外对管检测并统计进出教室的人数;使用光敏三极管来检测环境光的强度;以判断教室是否符合开、关灯的条件,从而实现了对教室照明的智能控制。软件部分使用的是C 语言,在MDK 编译器中进行编写,为了使代码便于改进和扩充,软件部分采用模块化结构设计。该系统还具有针对性强、可靠性高、控制方便、性价比高、体积小等特点,很大程度实现了节能的目的,满足了各种教室照明控制的要求。


关键词:智能控制;教室照明;单片机



中图分类号:TP273.5;TP368.1         文献标识码:A         文章编号:2096-4706(2018)09-0022-07


Design of Classroom Lighting Intelligent Control System Based onSTC89S52 Microcontroller
GUO Zongfu,PENG Hui,ZHU Tingting
(Anshun University,Anshun 561000,China)

Abstract:This system is aimed at the research on how to control the lighting in the classroom intelligently,avoid the problemof wasting electricity and so on. The principle,the way and the method of realizing the intelligent control of the classroom lighting areexplored,and the design scheme of the intelligent control system of the classroom lighting based on the single chip microcomputeris put forward,and the intelligent control system is developed on this basis. The core component of the system is the STC89S52microcontroller,which detects and counts the number of people in and out of the classroom through the infrared tube. A phototransistor isused to detect the intensity of ambient light,and to judge whether the classroom meets the conditions of turning on and off the lights,thusrealizing the intelligent control of classroom lighting. The software part uses C language and is written in MDK compiler. In order to makethe code easy to improve and expand,the software part uses modular structure design. The system also has the characteristics of strongpertinence,high reliability,convenient control,high cost performance,small volume and so on. It realizes the purpose of energy savingto a great extent,and meets the requirements of lighting control in various classrooms.

Keywords:intelligent control;classroom lighting;singlechip


参考文献:

[1] 靳达. 单片机应用系统开发实例导航 [M]. 北京:人民邮电出版社,2003.

[2] 孟立凡,蓝金辉. 传感器原理及应用 [M]. 北京:电子工业出版社,2007.

[3] 华成英,童诗白. 模拟电子技术基础 [M]. 北京:高等教育出版社,2001.

[4] 谭浩强.C 程序设计 [M]. 北京:清华大学出版社,1999.

[5] 潘新民,王燕芳. 微型计算机控制技术 [M]. 北京:高等教育出版社,2001.

[6] 张达敏. 教室照明智能控制器 [J]. 贵州工业大学学报:自然科学版,2003,32(1):76-78.

[7] 李念强,魏长智,潘建军,等. 数据采集技术与系统设计 [M]. 北京:机械出版社,2009.

[8] 李朝青,刘艳玲. 单片机原理及接口技术 [M]. 北京:北京航空航天大学出版社,2003.

[9] 周毛学. 新编C 语言程序设计教程 [M]. 西安:西安电子科技大学出版社,2000.

[10] 李瀚荪. 电路分析基础 [M]. 第三版 北京:高等教育出版社,1999.

[11] 梁宗善. 电子技术基础设计 [M]. 武汉:华中科技大学出版社,2009.

[12] 彭介华. 电子技术课程设计指导 [M]. 北京:高等教育出版社,2008.

[13] 马建明,周长城. 数据采集与处理技术 [M]. 西安:西安交通大学出版社,1998.

[14] Harvey M.Deitel,Paul James Deitel 著.C++ 大学教程 [M]. 邱仲潘,等,译. 北京:电子工业出版社,2001.

[15] 邓焱,王磊. 测试技术与仪器应用 [M]. 北京:机械工业出版社,2004.


作者简介:

郭宗富(1966.03-),男,汉族,贵州安顺人,高级实验师,硕士,研究方向:电子技术。

彭晖,男,电子工程学院15 级电子信息专业学生;

朱婷婷,女,电子工程学院14 级电子信息专业学生。