基于单片机的智能照明控制系统设计

上传人:枫** 文档编号:543611883 上传时间:2023-06-27 格式:DOC 页数:61 大小:1.62MB
返回 下载 相关 举报
基于单片机的智能照明控制系统设计_第1页
第1页 / 共61页
基于单片机的智能照明控制系统设计_第2页
第2页 / 共61页
基于单片机的智能照明控制系统设计_第3页
第3页 / 共61页
基于单片机的智能照明控制系统设计_第4页
第4页 / 共61页
基于单片机的智能照明控制系统设计_第5页
第5页 / 共61页
点击查看更多>>
资源描述

《基于单片机的智能照明控制系统设计》由会员分享,可在线阅读,更多相关《基于单片机的智能照明控制系统设计(61页珍藏版)》请在金锄头文库上搜索。

1、毕业设计论文基于单片机的智能照明控制系统设计系 别自动化工程系专 业机械工程与自动化班 级5071815姓 名厉国重指导教师慢20XX 6 月 15日 / 基于单片机的智能照明控制系统设计摘要随着电子技术的飞速发展,基于单片机的控制系统已广泛应用于工业、农业、电力、电子、智能楼宇等行业,微型计算机作为嵌入式控制系统的主体与核心,代替了传统的控制系统的常规电子线路。楼宇智能化的发展与成熟,也为基于单片机的照明控制系统的普及与应用奠定了坚实的基础。本文介绍了基于单片机AT89C51的室灯光控制系统及其原理,提出了有效的节能控制方法。该系统采用了当今比较成熟的传感技术和计算机控制技术,利用多参数来实

2、现对学校教室室照明的控制。系统设计包括硬件设计和软件设计两部分。该照明控制系统的主控制器、分控制器分别是以AT89C51和AT89C2051单片机为基础,实现了通信、信号采集、控制与显示等功能。使用光电子镇流器,使光源具备自动调节功能。文中详细地描述了控制电路的设计过程,包括:光信号取样电路、人体信号采集电路、键盘与LED显示电路、RS485通信电路、照明灯控制电路、看门狗电路以及信号处理电路等。对于软件设计主要有主控制器、分控制器的有线通信程序设计以及灯光控制、定时控制、键盘扫描与LED显示等程序设计。工作时,光信号取样电路采集光照强弱、人体信号采集电路采集室是否有人、是否为工作时间等信息并

3、将信号送到单片机,单片机根据这些信息通过控制电路对照明设备进行开关操作,从而实现照明控制,以达到节能的目的。关键词:智能控制,主控制器,分控制器,单片机,定时控制The Control System forIntelligent Lighting Based on Singlechip MicrocomputerAuthor: Li GuozhongTutor: Sun ManAbstractWith the rapid development of electronic technology, the system of control based on Single-chip Microc

4、omputer is widely applied in industry, agriculture, electric power, electron, intelligent building and so on. Microcomputer, as the subject and core of the embedded system of control, replaces the traditional systemelectronic circuit. At the same time, the development and maturation of the intellige

5、nt building have established the substantial foundation for the popularization and application of the control system for lighting based on single-chip microcomputer。In this paper,the Indoor Lighting Control System Based on AT89C51 and its principle are introduced. Some effective and energy saving co

6、ntrol strategys of lighting system are brought forward. The current system uses a relatively mature sensor technology and computer control technology ,using multi-parameter to achieve the school classroom indoor lighting control. The system includes hardware and software design in two parts. The hos

7、t controller of the control system for lighting is based on AT89C51 single-chip microcomputer, and the auxiliary ones are based on AT89c2051. The system can do many jobs, such as wired communication, Signal Acquisition,wireless data transmitting, controlling and display.Use of electonic ballasts;the

8、light sourcewith automatic adjustment function .The paper describes the designing process of the circuit at length, including: Optical signalsampling circuit, the bodysignal acquisitioncircuit, keyboard and LED display circuit, RS485 communication circuit, wireless transmitting circuit, control circ

9、uit of lighting, watchdog circuit, etc. The designing of software mainly includes the several programming, such as wired communication, lamplight controlling, timed controlling, keyboard scanning ,LED displaying and signalprocessing circuit. The wired communication programming function is that throu

10、gh Master-slave communication method based on RS485 the host controller sends orders to the all auxiliary controllers or each one, including: turning on lighting, turning off lighting, regulating brightness of lighting, controlling timed lighting, etc. Work,the optical signal sampling circuit collec

11、ting lighting intensity,indoor collecting of human signal acquisition circuit if anyone,whether for work time and other information and signal to the microcontroller,MCUcontrol circuiti based on these information through the switching operation of lighting equipment in order to achieve lightingcontr

12、ols to sava energy.Key Words: Intelligent control,Host controller, Auxiliary controller, Single-chip microcomputer, Timed controlling目 录1 绪论11.1 课题研究背景11.2 智能照明控制系统的发展与现状11.2.1 智能控制技术的研究现状11.2.2 国外智能照明发展概况11.2.3 智能照明控制系统的优点21.2.4 智能照明控制系统的组成21.2.5 现有智能照明控制系统的分析21.3 系统设计31.3.1 系统设计要点31.3.2 系统设计思路32 硬

13、件电路设计与实现72.1 系统硬件总述72.2 CPU性能介绍72.3 主控制器电路设计72.3.1 键盘的接口设计82.3.2 LED数码显示的接口设计92.3.3 看门狗监控电路的设计92.4 分控制器的电路设计92.5 RS485通信电路的设计102.6 光信号取样电路122.6.1 Microwire串行总线性能介绍132.6.2 TLC1549的接口设计142.6.3 TCL1549的数据采集程序设计152.7 人体信号采集电路162.7.1 人体红外探头162.7.2 信号处理电路192.7.3 比较电路202.8 DS12887时钟芯片接口电路设计212.8.1 DS12887的

14、原理及管脚说明222.8.2 地址分配表及时间、日历和闹钟的数据格式232.8.3 DS12887状态控制寄存器232.8.4 DS12887初始化程序252.9 输出驱动电路设计272.10 延时时间选择电路282.11 零点检测与可控硅控制电路的设计292.12 数字可调光电子镇流器303 系统软件设计及实现313.1 人机交互程序设计323.1.1 键盘扫描程序设计323.1.2 LED数码显示程序设计333.2 照明启停控制程序设计343.2.1 全部启停控制程序设计353.2.2 单独启停控制程序设计373.3 照明控制程序设计393.3.1 全部定时控制程序设计403.3.2单独定

15、时控制程序设计413.4 RS485通信程序设计423.4.1 主机部分通信程序设计443.4.2 从机部分通信程序设计454 系统可靠性设计484.1 干扰产生的后果484.2 单片机应用系统的硬件抗干扰设计494.3 软件抗干扰技术524.3.1 数据采集误差的软件对策524.3.2 程序运行失控的软件对策52总结54致55参考文献56附录571 绪论1.1 课题研究背景随着国民经济的快速发展和社会进步,教育在全社会愈加被关注和重视,校园规模也随着受教育者的数量增加而不断扩大。但由于学校开放型的管理模式,高校的教室在白天室照度很高的情况下,仍然普遍存在开灯作业;即使室无人或人数很少的情况下,也是全部开启室照明,绝不会有师生因为只有少数人而仅开几盏灯。长明灯比比皆是,人走不熄灯的现象到处存在。这种有形和无形的浪费,给校方的水电支出带来了沉重的负担。学校的水电支出约占全校经费支出的1415,电费支出占据较重比例。能源短缺是21世纪国际面临的新课题。在寻找新的能源之外,节约能源,提高效益也就成为了我们研究的课题。所以学校如何来节省电力能源也成为了

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 医学/心理学 > 基础医学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号