文档介绍:摘要
本设计主要基于单片机来实现室内防火照明智能控制,单片机采用STC89C52。本系统主要实现三大功能,分别是智能照明、防火报警、烟气泄漏检测报警。根据功能的实现,分为红外检测模块、光照采集设置电路、降压斩波调压电路、温度采集设置模块、模数转换模块、烟雾检测模块、显示电路、报警电路。通过软件程序对各部分逻辑时序的安排和子程序的调用以使整个系统完整、有序、稳定地运行。
本文介绍用STC89C52单片机作为核心微处理器、以C语言指令通过Keil对各个模块和电路实现软件上的时序安排和控制。本系统具有设计成本低、功能强大、灵敏度较高、体积较小、性能稳定、易于操控和检修等优点。
关键词:单片机,智能照明,防火报警,煤气泄漏,Keil
ABSTRACT
This design is mainly based on the microcontroller to indoor firelighting intelligent control, microcontroller using system is designed to achieve three main functions, namely, intelligent lighting, fire alarm, flue gas leak detection alarm. Based on the realization of the function is divided into the infrared detection module, the light collection set circuit, step-down chopper circuit, the temperature acquisition setup module, analog to digital converter module, smoke detection module, the display circuit, the alarm circuit. Various parts of the arrangement of the logic timing and subroutine calls through the software program to make the entire plete, orderly, and stable operation.
This article describes the use STC89C52 microcontroller as the core microprocessor, by Keil C language instructions on the software implementation of each module and circuit schedul ingand control. The system is designed low-cost, powerful, high sensitivity,small size, stable performance, easy handling and maintenance, etc..
KEY WORDS: microcontroller, smart lighting, fire alarm, gas leak, Keil
目录
第1章概述 3
课题背景及选题意义 3
设计实现功能 3
第2章设计方案 3
硬件设计简介 3
软件设计方案 3
第3章软件设计 3
程序功能划分 3
主程序设计 3
ADC模数转换子程序设计 3
智能照明子程序设计 3
防火、漏气检测子程序设计 3
温度采集子程序设计 3
数据处理显示子程序设计 3
报警子程序设计 3
第4章程序调试 3
模数转换子程序调试 3
智能照明子程序调试 3
防火、漏气检测子程序调试 3
主程序调试 3
调试心得 3
第5章总结与展望 3
设计体会 3
设计前景展望 3
致谢 3
附录 3
参考文献 3
第1章概述
本章主要讲述了室内防火照明控制系统设计的课题背景以及本系统可以实现的功能。
课题背景及选题意义
随着智能化时代的到来,全球家居市场迎来了各项智能技术的浪潮。无论是国外还是国内,智能家居已经成为无法抗拒的趋势。同时,在经济迅速发展的当下,人们对于生活质量的要求愈来愈高,伴随着经济条件的提高,自然催生了对智能家居的需求,从而使