基于单片机的智能家居安防系统 下载本文

基于单片机的智能家居

安防系统

作者姓名:XXX 专业班级:XXXXXXXX指导教师:易诗

摘要

随着经济的发展,城市居民住宅小区的大量崛起和人们生活水平的不断提

高,人们在家庭住宅的观念上逐步发生变化。人们不仅需要宽敞、豪华的住宅,同时也希有一个安全、放心的生活空间。安全,就是有一个快速、有效、连动的防火、防盗、防爆的安防体系;同时要求家庭人员、社区管理中心及其有关单位部门都能及时获得相关信息并采取相应措施。这些都要求家庭不再是一个孤立场所,而是一个能与外界进行信息交流的单元。

自此,本文研究出一套基于51单片机的智能家居安防系统。本系统具有采集现场信息,并将信息分析处理,结果通过短信的方式传递到预设的电话号码上。本系统还能显示险情种类信息的功能,并且能够在现场对火灾进行铃声报警的功能。智能家居安防系统是以家庭住宅为平台,融合了计算机技术,网络通信技术和自动控制等技术,将与家庭生活相关的各种应用子系统有机的结合在一起,为人们提供更加舒适、高效、便捷、安全的现代居住环境。新的智能型家庭安防报警系统在感应端主要通过磁红外、温度、煤气、玻璃破碎等探测器来感应异常的变化,当感应器感应到异常情况时,自动地把警情发送至相关部门和人员,以便得到及时的处理,减少人员伤亡和财产损失。

关键词:AT89C51;温度传感器;烟雾传感器;红外传感器;GPRS模块;

智能安防

Intelligent security system design and implementation based on 51-MCU

Abstract:With the development of economy, urban residential district of rise and the people living standard unceasing enhancement, people gradually changing ideas on family homes.People not only need spacious and luxurious houses, as well as mothballed a safe, rest assured of living space. Security, that is, there is a rapid, effective, the gearing of fire prevention, guard against theft, explosion-proof security system; Also asking family members, community management center and its related units can timely access to relevant information and take corresponding measures. These require family is no longer an isolated place, but a unit capable of carrying out information exchange with the outside world.

Since then, this paper studies a set of intelligent household security system based on 51 single chip microcomputer. This system has the collection site information, and analysis the information processing, the results by text message is passed on to the preset phone number. This system can also display danger species information function, and can carry on the ring at the scene of fire alarm function. Smart home security system is a family home as a platform, combined with computer technology, network communication technology and automatic control technology, will and household life of all kinds of application subsystems organic unifies in together,

provide people with more comfortable, efficient, convenient and safe environment of modern living. New intelligent home security alarm system in magnetic induction end mainly through infrared detector such as, temperature, gas, glass broken to induction abnormal changes, when the sensor sensing abnormalities, automatically send alert to relevant departments and personnel, in order to get timely treatment, reduce casualties and property losses.

Key words: AT89C51. Temperature sensor; Smoke sensor; Infrared sensor; GPRS module;Intelligent security

目 录

第1章 绪论 ......................................................... 1

1.1选题依据及其意义 ......................................................................................... 1 1.2国内外研究现状 ............................................................................................. 2 1.3本系统特点 ..................................................................................................... 3 第2章 基本原理 ..................................................... 4

2.1单片机技术及AT89c51系列的简介 .............................................................. 4 2.2 GPRS模块基本原理 ....................................................................................... 6 2.3传感器原理 ...................................................................................................... 7 2.3.1红外传感器 ................................................................................................... 7 2.3.2烟雾气体传感器 ........................................................................................... 7 2.4本系统基本框架 .............................................................................................. 8 第3章 系统设计 ..................................................... 9

3.1方案选择论证 ................................................................................................. 9 3.2系统硬件总体设计 ......................................................................................... 9 3.3系统软件总体设计 ....................................................................................... 10 第4章 系统的实现 ................................................ 12

4.1 系统硬件平台介绍 ...................................................................................... 12 4.1.1 YT-16D实验箱 ......................................................................................... 12 4.1.2 GPRD模块 ................................................................................................. 12 4.2 红外报警器模块的实现 .............................................................................. 13 4.3. 温度报警模块的实现 .............................................................................. 15 4.3.1 概述 .......................................................................................................... 15 4.3.2 A/D转换器 ............................................................................................... 15 4.4 液晶显示模块 .............................................................................................. 18 4.4.1 概述 .......................................................................................................... 18 4.4.2 液晶显示原理 .......................................................................................... 18 4.4.3TFT的基本特点 ......................................................................................... 19 4.3.1 TFT的连接原理图 ................................................................................... 19 4.4.5 TFT的程序 ............................................................................................... 20 第5章 系统的测试 ............................................... 26

5.1 系统初始及显示 .......................................................................................... 26 5.2气体泄漏时系统显示及短信内容 ............................................................... 26

5.3 温度超标时系统显示及短信内容 .............................................................. 27 5.4 有人闯入时系统显示及短信内容 .............................................................. 28 5.5 测试总结 ...................................................................................................... 28 总结 ............................................................... 29 致谢 ............................................................... 30 参考文献 ........................................................... 31