- 5
- 0
- 约8.32千字
- 约 22页
- 2020-02-19 发布于江西
- 举报
教室人数监视及照明控制系统
摘 要:为响应国家节能减排的号召,我们设计制作了教室人数监视及照明控制系统。 本系统以 AT89S52 单片机为基础,利用 220V 交流电供电,主要可实现以下功能:
感应光线强弱并判断是否需要开灯。利用光敏电阻,通过 A/D 转换,根据需要设定修改光 线设定值,当光线达到设定值时灯亮,光线低于设定值时灯不亮。
根据人数的多少控制 LED 灯点亮的数目。利用两组对射式光电开关,根据产生高低电平的 顺序区分人的进出,单片机对人数进行加减计数,当人数在 5 人之内亮一盏灯,5-10 人亮两盏 灯,10-15 人亮三盏灯。
根据实际需要的不同,利用按键对亮灯人数的限定值进行修改。
液晶 1602 实时显示当前室内人数。
单片机和上位机进行 RS-232 通信,利用计算机实时监控室内当前人数的变化。
关键词:单片机
220V 供电
光敏电阻
AD 转换 光电开关
液晶
RS-232 通信
Abstract:In response to the call of the national energy-saving emission reduction, we designed a number of classroom monitoring and lighting control systems. The system is based on a single chip AT89S52, using 220V AC power supply, to achieve the following main functions:
The light sensor to determine whether strong or weak and need to turn on the lights. The use of light resistance, through the AD conversion, according to the need to modify configuration settings of light, when the light reached when the lights settings, set the value lower than the light does not shine lights.
according to the number of how much control the number of lit LED lights. The use of two photoelectric switch to radio, according to the order of high to distinguish between low-level entry and exit of people, the number of single- chip to carry out addition and subtraction of the count, when the number of people in 5 bright lights a bright 5-10 2 lights, 10-15-liang 3 lights.
According to the actual needs of the different buttons on the light use of the limited value of the number of modifications.
LCD displays the current indoor 1602 the number of real-time.
single-chip microcomputer and PC to RS-232 communications, the use of the computer the number of real-time monitoring of changes in the current room.
Key words: single-chip power supply 220V Photosensitive resistor conversion AD Photoelectric switch LCD RS-232 communication
1
电源供电模块LED
电源供
电模块
LED 照
明模块
对射式
光电开
关
按键
控制
模块
控制模块
显示
模块
1 总体设计思路和方案
目前高校室内照明大多是依靠人工区分光线强弱和人数来控制灯的亮灭和灯点亮的数目, 这样不仅非常麻烦,而且对能源产生了很大浪费。为了节约用电,我们设计制作了教室人
您可能关注的文档
最近下载
- 工程项目管理课件教学配套课件蔺石柱闫文周第十一章风险管理.pdf VIP
- (五个对照)2025年度组织生活会个人对照检查材料四篇.docx VIP
- 2025年度组织生活会个人对照检查(五个对照)四篇.docx VIP
- 杂技演出合同.docx VIP
- “先人后己”“为人民服务”对重积分学习的帮助-来源:教育教学论坛(第2020031期)-河北教育出版社、花山文艺出版社.pdf VIP
- SCGZ2024065-消防灭火系统安装与调试-样题-第1套 .pdf VIP
- T_CASAS 046-2024 碳化硅金属氧化物半导体场效应晶体管(SiC MOSFET)动态反偏(DRB)试验方法.docx VIP
- (推荐!)ISO 56007-2023创新管理 管理机会和想法的工具和方法 指南(2024).docx VIP
- 三篇:2025年度组织生活会个人“五个带头”对照检查材料范文.docx VIP
- 炉内检修平台安装使用维护标准.doc VIP
原创力文档

文档评论(0)