基于单片机的远程智能报警的设计(附电路原理图,主程序代码)
基于单片机的远程智能报警的设计(附电路原理图,主程序代码)(任务书,开题报告,外文翻译,论文15000字)
摘要
在科学技术飞速发展的今天,各种智能科技层出不穷,特别是电子信息网络技术发展之迅速,各种电子智能产品更新换代之快,让人们应接不暇。而且人们的道德法律意识在不断增强,对于财产安全的保护更喜欢采用快速便捷的方式。在以前人们如果想保护自己的人身安全和财产安全必须得靠人们自己或者是一些动物去监督提醒,不过现在可以让科学技术来实现这一功能。简单的智能报警系统我们可以通过单片机、通信模块和传感器来构成。
本文介绍了一个基于单片机和短信通信的小型的家庭远程智能报警系统的设计实现方案,其中主要对各模块,如51单片机系列的STC89C52单片机的主控模块、GSM短信通信模块、人体和烟雾传感器模块以及各接口电路的原理及应用进行了详细的分析,并通过C语言编写主控制程序和报警、显示、信号采集子程序控制硬件电路实现系统的报警功能。文中设计实现的家庭智能报警系统具有检测贼人入室盗窃,检测火灾和防煤气泄漏的作用,并且一旦有情况就会立刻进行声光和短信报警。该系统硬件结构实现简单,价格也较低廉,而且系统设计中程序结构模块化,想要扩展其它的功能也很便利。实物测试结果表明本文给出的基于单片机和GSM通信的远程智能报警系统,实现了防盗、防火灾、防煤气泄漏的功能,达到了能够时事的检测人身财产安全的目标,为人们的生活带来更多的便利。
关键词:智能家居;远程监控;STC89C52单片机;GSM;短信息
Design and implementation of remote intelligent alarm based on single chip microcomputer
Abstract
With the rapid development of science and technology today, a variety of intelligent technology emerge in an endless stream .especially the development of electronic information, network technology rapidly, various electronic intelligent products update quickly, make people too busy to attend to all.Moreover, people's moral and legal awareness is constantly increasing, and the protection of property security is more like a fast and convenient way. In the past, if people wanted to protect their personal safety and property security, they had to rely on people or animals to supervise and remind them. But now we can achieve this function for science and technology. This technology can be become "remote intelligent alarm". The most simple intelligent alarm system we can through the microcontroller, the communication module and the sensor. [资料来源:Doc163.com]
This article describes the design and implementation of SCM and SMS communication small home security system based on a, mainly for each module, such as the main control chip 51 Series MCU STC89C52 module, GSM short message communication module, the human body and the smoke sensor module and the interface circuit principle and application are analyzed to understand the details. And through the C language, the main control program and alarm, display, signal acquisition subroutine, control hardware circuit, realize the alarm function of the system. Home security system designed in this paper have detected the thief burglary, fire detection and anti gas leak, and once the situation will immediately sound and alarm message. The system is a simple security system, so the hardware structure is simple, and the price is relatively low. And the program structure of modules in system design, to expand other functions are also very convenient. In a word this alarm remote intelligent system based on SCM and GSM communication, to achieve the anti-theft, fire, gas leakage prevention function, can detect people to current personal and property safety goals, bring more convenience for the life of people.
Keywords :Intelligenthome ; Monitoring and controlling by longdistance ; STC89C52 single-chip microcomputer; GSM; Short message
[资料来源:http://Doc163.com]
目录
摘要 I
Abstract II
第一章 绪 论 1
1.1 前言 1
1.2 报警系统的发展背景及趋势 1
1.3 设计任务与要求 2
1.4 论文结构 2
第二章 系统方案设计 3
2.1 系统总体设计思路 3
2.2 系统方案设计 3
2.3 传感器简介 4
2.3.1 热释电红外传感器简介 5 [资料来源:http://www.doc163.com]
2.3.2 MQ-2烟雾传感器简介 5
2.4 STC89C52RC单片机简介 6
2.4.1 STC89C52单片机主要特性 6
2.4.2STC89C52单片机引脚及功能 7
2.5 TC35短信模块简介 9
2.5.1 常用AT指令 9
2.5.2 PDU编码规则 10
2.6 RS-232C接口 11
2.7 LCD液晶显示 12
2.8 拨号存储器24C02 13
第三章 硬件设计 15
3.1 STC89C52单片机控制接口 16
3.2 单片机最小系统 16
3.3 红外探测信号输入电路 17
3.4 MQ-2烟雾传感器信号输入电路 17
3.5 LCD1602的硬件连接图 18
3.6 键盘电路设计 19
3.7 24C02的硬件连接电路 19
3.8 声音报警电路设计 20
第四章 软件设计 20
4.1 主程序工作流程图 21 [资料来源:Doc163.com]
4.2 中断服务程序工作流程图 21
4.3 报警电路流程图 22
4.4 信号采集电路流程图 24
4.5 液晶显示流程图 24
4.6键盘扫描程序流程图 25
第五章 实物制作和测试 25
5.1 程序生成及系统仿真 26
5.1.1 软件测试过程 26
5.1.2 软件测试小结 27
5.2 系统制作及测试 28
5.2.1 硬件测试 28
5.2.2 硬件测试小结 30
结论与展望 31
致 谢 32
参考文献 33
附录A 主要源程序代码 35
附件B 电路总体原理图 39
[资料来源:www.doc163.com]