1、 目录目录 摘要摘要 Abstact 第第 1节节 前言前言 1 第第 2节节 系统概述系统概述 2 2.1 单片机 STC89C52 简介 2 .1.1 STC89C52 的基本组成 3 2.1.2 DIP40 封装引脚图 . 3 2.1.3 内部资源介绍 4 2.2 GSM MODEM 简介. 5 2.2.1 AT 指令 . 5 2.2.2 SMS(Short Massage Service) 6 2.3 传感器 8 2.3.1 热释电红外传感器 8 2.3.2 DS18B20 . 9 2.4 液晶显示器 12 2.5 存储器 14 2.5.1 ST24C02 . 14 2.5.2 I2C
2、 二线制协议 14 第第 3节节 系统的硬件设计系统的硬件设计 . 16 3.1 原理框图 16 3.2 电源模块 16 3.3 指示灯电路 17 3.4 蜂鸣器报警电路 18 3.5 MCU 模块 18 3.6 串口电平转换电路 19 3.7 系统局部仿真 19 3.8 系统 PCB 设计 20 3.8.1 PCB 装配图 20 3.8.2 PCB 底面图 21 3.8.3 PCB 3D 预览 21 第第 4节节 软件设计软件设计 22 4.1 主程序流程 22 4.2 外部中断 0 服务程序 23 第第 5节节 系统的安装与调试系统的安装与调试 . 24 第第 6节节 结束语结束语 25
3、答谢辞答谢辞 26 附录附录 A 系统元器件清单系统元器件清单 附录附录 B 程序清单程序清单 参考文献参考文献 摘要摘要 在21 世纪的今天,人们生活质量大大提高,物质生活日渐丰富,人们更看重 生活的质量,更懂得享受生活,智能家居就应运而生了,而家用安防系统是智能 家居领域中人们尤为关注的一块,于是各种安防系统也就有了市场。 系统主要基于单片机与 GSM 通信技术,单片机不断读取外部传感器信号量, 通过串口向 GSM Modem 发送相应的 AT 指令,控制 GSM Modem TC35i 做出相应的 动作,发送短信息向房主汇报家里实况,实现防盗、火灾报警的安防功能。为了 方便读者对本设计文
4、件的阅读,作者将从系统组成及各模块的工作原理、系统硬 件电路的设计、 系统软件的设计和系统的安装使用说明这四个方面来描述整个系 统的设计过程。 该课题的主要任务是通过各功能模块的结合,充分运用 EDA 软件设计、仿真 系统,令设计的系统具有可制造与实用性。 关键词关键词:单片机、通信、GSM Modem、传感器 Abstact In the 21st century, people will greatly improve the quality of life is abundant, the material life personal property problems will gra
5、dually be more peoples attention, and various security systems have a market. This system mainly based on SCM and GSM communication technology, the microcontroller continuously reading outside of sensor signals, through a serial port to GSM Modem send corresponding instruction, control the GSM Modem
6、 mig-at make corresponding action, sending short messages to the owner, realize report home security, fire alarm security function. In order to facilitate readers of this design documents, the author will read from each module system and the working principle, system hardware circuit design, the design of the system software and system installation instructions on how to use these four aspects to describe the whole system design process. This topic is the main task of the functional modules co