1、 毕 业 论 文(设 计) 论 文 ( 设 计 ) 题 目 : 智能家用门窗报警器设计 所属系别 专业班级 姓 名 学 号 指导教师 撰写日期 年 月 I 摘摘 要要 本文介绍了基于 51 系列单片机的无线报警器, 发射端将信息发送出去后, 信息经过 编码解码,接收端将信息传送给单片机,并控制报警。设计有两个模块组成:无线发射 模块、单片机监控下的无线接收报警模块。发射模块中四个按键控制数据信息的发送, 编码芯片 PT2262 对信息进行编码,然后送给发射头,经过发射头将信息发送出去;接 收模块接收到信息后送给解码芯片 PT2272,PT2272 进行解码,然后将解码信息传送给 单片机 AT8
2、9C51,最后引起警铃报警。除此报警功能之外,此系统还添加了设防功能和 撤防功能,用以应对断电时无线报警失灵的的情况。 本文详细分析了上述实现原理,给出了主要程序部分,并通过了测试,有较强的实 用价值。 关键词关键词:51 系列单片机,PT2262, PT2272,设防,撤防 II Abstract Wireless alarm based on the 51 series single chip is introduced in this paper, the transmitting terminal will send out information, which is through
3、coding and decoding. The receiver gets the information, which will be transmitted to Single-chip microcomputer to control the alarm. The design has two modules: wireless transmitting module and wireless receiving alarm module monitored by the single-chip microcomputer .Four buttons in the transmitti
4、ng module control data information send , the encoding chip PT2262 code information, and then sent to it to launch head first, finally launch head send out information; Receiving module receive information, which is sent to decoding chips PT2272 to be decoded, then which will transfer information to
5、 the single chip- microcomputer AT89C51 , finally causing alarm bell ringing. Besides, this system also add the fortification function and removal function that deal with wireless alarm failure of power cuts. The operation principle is analyzed in the paper. The main part of the program is given, an
6、d pass the test. This device has a strong practical value. Key Words:51 series MCU, PT2262, PT2272, fortification, disarm 目目 录录 1 绪论 . 1 1.1 防盗报警器的设计背景 1 1.2 无线防盗报警器的国内外发展现状 1 1.3 本文主要工作 2 2 系统分析 . 3 2.1 系统设计要求: 3 2.2 无线防盗报警器的工作流程框图 3 3 硬件设计 4 3.1 系统框图 4 3.2 功能模块详细设计 5 3.2.1 无线转发防盗报警发送电路 . 5 3.2.2 接收报警电路 . 6 3.2.3 接收电路电源部分 . 6 3.2.4 无线接收部分 7 3.2.5 单片机控制部分 . 8 3.3 主要芯片选择 8 3.3.1 单片机选择芯片选择 . 8 3.3.2 实现方法简介 . 9 3.3.3 编码解码