收藏 分销(赏)

Application-of-Burglar-Alarm-System-inUptown-Based-on-AT89C2051.doc

上传人:胜**** 文档编号:3033836 上传时间:2024-06-13 格式:DOC 页数:17 大小:743KB
下载 相关 举报
Application-of-Burglar-Alarm-System-inUptown-Based-on-AT89C2051.doc_第1页
第1页 / 共17页
Application-of-Burglar-Alarm-System-inUptown-Based-on-AT89C2051.doc_第2页
第2页 / 共17页
Application-of-Burglar-Alarm-System-inUptown-Based-on-AT89C2051.doc_第3页
第3页 / 共17页
Application-of-Burglar-Alarm-System-inUptown-Based-on-AT89C2051.doc_第4页
第4页 / 共17页
Application-of-Burglar-Alarm-System-inUptown-Based-on-AT89C2051.doc_第5页
第5页 / 共17页
点击查看更多>>
资源描述

1、毕业设计 课程设计 毕业论文 详细资料联系QQ号;1620812008毕 业 设 计(论 文)外 文 参 考 资 料 及 译 文译文题目: Application of Burglar Alarm System in Uptown Based on AT89C2051学生姓名: 学 号: 专 业: 电子信息工程 所在学院: 信息技术学院 指导教师: 职 称: 2010年12月25日Application of Burglar Alarm System in Uptown Based on AT89C2051Abstract : AT89C2051 is powerful programmed

2、microship,the hardware principle and software realization of gyard against theft and alarm system based on AT89C2051 are introduce.Key words : Microchip Guard against theft and alarm syetem AT89C2051IPREFACEMany person have a habit that when going to study, working for a long time They will be home

3、anti-theft lock insurance, prevent thieves entanglements room,but even the ordinary anti-theft entanglements will be sure for skiing, the theft have rich experience of habitual is also very easy to come in, they take a little time to burst in. So somebody puts forward on the door with a concealed lo

4、ck control switch,it can work after the owner leave out . If the master will closed concealed system in three minutes, then system should stop work. But when there are thieves breaking to steal, and couldnt find this secluded alarm system to close it,the system will automatically alarm in three minu

5、tes.IIThe way to realizated system2.1 design priniplesSuch as figure 1 showes, using a microcontroller AT89C2051 as a CPU, it will realize intelligent alarm.The system is established by an defend switch k1, the door switch k2(often shut), microcontroller AT89C2051, an 5 v Super-mini relays (SSR), 78

6、05 voltage regulations, an alarm.In addition can report to alarm, it will enter semaphore to keep long range to link, and carry out long range supervision.2.2Guard against theft the hardware of systemThe AT89C2051 is a programmable EPROM Microchip of high performance by 53 bytes knot, Compatible wit

7、h industry standards MCS51 instruction group and pins, the Atmel company produces of the AT89C2051 is a kind of microcontroller with strong function, it provided a vivid altitude useful solution to a lot of embedded control applications.It has the following racteristics:the 2 K bytes EPROM, 128 byte

8、s knot RAM and 15 I/0 wire, two 16-bit timing/counters, five interruption structure with second class vector and a whole pair to of string line orifice, an accurate emulation compare machine, Piece inside oscillator and clock circuit.AT89C2051 designses include Confidential bits and Confidential bit

9、s 1 drives after weaving a distance, Program memory can not be programming againunless do once erased, after Confidential bits 5 being programmed, Program cannot be read. This is an important guarantee for the safety of Program and carried out procedure encryption.7805 Integrated manostat provide a

10、stable 5 v working voltage, and have a small volume,the higher accuracy , use convenience, multi-function protection, Output current extensible and other characteristics.there are overcurrent, overheating and regulator tube safety in the inside work zone protection, in order to prevent overburden bu

11、t damage.Solid - state relay, It uses solid-state device assembly and become a novel non-contact switch device, have Reliable work, fast switching speed, high working frequency, life long, low noise and other characteristics.The alarm adopted a language chip SR8803A the highest voltage of 5V, So mak

12、ing voltage appropriately reduced to string into D1, D2.The K2 directly connects in the door, Door is open state, So K2 is open position. Otherwiseis it is the opposite. In addition added an indicator as a reminder, If the door is closed, as the K2 connects, then lamp anti bright, otherwise the lamp

13、 indication becomes bright.The meaning the door still has not closed completely.2.3Guard against theft the software of systemThe system adopts KeiuVersion 2 Programming language.The KEILC51 scompiler provides C language environment for the software development of 8051 microcontrollers, at the same t

14、ime reserved to Assembly code efficiency,fast and others characteristics.The C51 is completely hasing already been integrated into uVision2 integration development environments, this integrated development environment contains compiler, s The assembler, real-time operating system, the project manage

15、r, debugger.And also is an application development the software under WINDOWS, the interface amity, it is suitable to the developers use. The Color syntax imaging and Documents achiered function are optimized C source code . It can be editor in debugging, and can provide a kind of natural environmen

16、t of adjusting to try and make you work more quickly and modify procedure.Any control I/0 is the all the most basic, and most of applied procedures also need I/0, the 89C2051 only have two I/0 port ,are respective is P1 port and P3 port, they all can use as Single input or output port, When it used

17、as the output ,So everyone pin external circuit can drive by high level 1 or low level 2 . Indicator shows is used when the 2051s I/0 ports as output , when the pins connecting LED is the low level 0 , LED conducting and lighting . Due to 2051 has the situation that its output current is greater tha

18、n the input current ,So let current flow into the chip. When programming by C language , it should set the I/0 first .Such as,In the system switches has just two states , open and closed . In a circuit set, when press the ortification switch , System is in working condition . The 2051s 19th pin is 0

19、 level , Otherwise it is the opposite . And when the door is to keep close state , the 2051s 17th pin is low level 0 , Otherwise it is the opposite . In the system , because of the reason as switch is the mechanical structure , the contacts elasticity and voltage axon jump and other causes , when th

20、e contacts closed or disconnect ,it will appear voltage shaking . In order to eliminate shaking , to ensure switch recognition accuracy ,using the software method to remove shaking, in the program use the way of make time delayed 0.01 s . when start the program ,it will on Initialization Settings.su

21、ch as,The Subroutines to identify fortification switches and door switch as follows,Taking advantage of the program to cycle as the short delay.In the procedure the delay in brief time often complete with Delay0 and Wait0 sub- procedure. In brief clear, make use of 2 F for circularly and an empty de

22、scription to complete the eyes j condition type in the variable of delay j120 is by test to come out, revise by different according to the CPU clock frequency, because of adoptive CPU in this system is crystal to flap clock frequency to 12 Mhzs.When press the Fortification switch K1 dot, the door ma

23、y be is open status or closed status, then link in the switch K2 of door be an in the procedure likely to be high level1, be an also likely to be low level0.But system is judged by K2 whethe give an alarm, so it should to made hypothesis these two kinds of circumstances, then carry on a verification

24、, this is the first logic point in issue.Second logic crux be, if robber is after coming in, if close the door, so does the system still rise an action L so have to consider M to is to close the door or open no matter like this in the procedure, as long as dont lock to establish to defend the switch

25、 K1 in the 3 mins after coming in, that is after K2 opened.The system will automatically report to the police after 180 ses.So joined a numbering indicator Open Time in the procedure, solution the first problem needed to establish different Open a Time value, the beginning starts a status to 1, such

26、 as door pass status, then Open Time be placed to 0, after can get into to circulate scaling.Flag is a door switch to mark.Lord procedure is as follows:IIIEnd languageAfter repeated experiments , the system completely meets the design requirements.It has been used in residential property , Now we co

27、mpleted the installation debugging , the system is according with the requirement of owner. The next is linking each scattered alarms as the next place machine to the control center of upper machine , to realize the remote monitorin , Shooting the room corridor happened theft of past personnel is wi

28、th convenient to solve. Application of Burglar Alarm System in Uptown Based on AT89C2051 (AT89C2051在小区防盗报警系统中的应用)摘要:AT89C2051单片机是功能强大的可编程微控器,文中提出了以AT89C2051设计的住宅小区防盗报警系统的硬件原理和软件实现。关键词: 微控制器 防盗报警系统AT89C2051一: 引言许多人都有个习惯,当长时间外出学习、工作时会将家里的防盗铁门反锁保险,防止窃贼入室,但是普通的防盗铁门即使上了保险,对于橇窃经验丰富的惯犯来说也是小菜一碟,用不了多少时间就能破门而

29、入了。于是提出在门上加装了一个隐蔽的锁控开关,能够使门开后动开始工作,如果是主人就会在三分钟内关闭隐蔽系统,则系统停止工作,如果有盗贼破门行窃,而没找到这个隐蔽的报警系统并关闭它就会在三分钟后自动报警。二:系统实现2.1设计原理如图1所示,用单片机AT89C2051作为cpu.实现智能报警。系统由一个设防开关k1,房门开关k2(常闭),单片机AT89C2051,5v超小型继电器(SSR),7805稳压器,报警器等组成。此外可以将报警器进行并联,将进信号直远程联接,实现远程监控。2.2 防盗系统的硬件AT89C2051是一个有53字节可编程EPROM 的高性能的微控制器(Microchip),与

30、工业标准的MCS51的指令组和引脚兼容,Atmel公司生产的AT89C2051是一种功能强大的微控制器,它对很多嵌入式控制应用提供了一个高度灵活的有效的解决方案。它有以下特点:2K字EPROM、128字节RAM、15根I/0线、2个16位定时/计数器、5个向量二级的中断结构、一个全双向的串行口、一个精密的模拟比较器、片内振荡器和时钟电路。AT89C2051设计有2个程序保密位,保密位1被编程之后,程序存储器不能再被编程除非做一次擦除,保密位5被编程之后,程序不能被读出。这就对程序的安全性作了一个重要保证,实现程序加密。7805集成稳压电源提供稳定的5v工作电压,且具有体积小、精度高、使用方便、

31、多功能保护、输出电流可扩展等特点,内部有过流、过热和调整管安全工作区保护,以防过载而损坏。固态继电器(Solid State Relay,简称SSR),采用固态元件组装而成的一种新颖的无触点开关器件,具有工作可靠、开关速度快、工作频率高、寿命长、噪声低等特点。报警器所采用的语言芯片SR8803A的最高电压为5V,所以要串入D1、D2后可使电源电压适当降低。K2直接接到门上,门是开状态,则K2为开状态。否则相反。另外加了一个指示灯作为提示,如果门关好,即K2接通,则灯不亮,否则灯指示发亮。表示门未关好。2.3 防盗系统的软件系统采用KeiuVersion 2语言编程。KEILC51标准C编译器为

32、8051微控制器的软件开发提供了C语言环境,同时保留了汇编代码高效,快速的特点。C51已被完全集成到uVision2的集成开发环境中,这个集成开发环境包含:编译器,汇编器,实时操作系统,项目管理器,调试器。而且也是WINDOWS下的应用开发软件,界面友好,很适合广大开发人员使用。彩色语法显像和文件辩识都对C源代码进行优化。可以在编辑器内调试程序,它能提供一种自然的调试环境,使你更快速地检查和修改程序。任何控制I/0都是最基本的,而且大部分的应用程序也都需要到I/0,89C2051只有两个I/0口,分别为P1和P3口,这2个接口都可作为单独的输入或输出使用,即每一支I/0脚位都可以作为输入用,也

33、可以做为输出使用。当作为输出时,则每一支脚的外部电路可以高电平1驱动或低电平0驱动。指示灯的显示是由2051的I/0口作为输出时用,当接LED发光二极管的引脚为低电平0时,LED导通,发灯,由于2051存在输入电流大于输出电流,所以选择让电流流入芯片。在用C编程时,先对I/0设置,如,在本系统中开关只有两种状态,即开和关,在电路中设定,按下设防开关时,即系统在工作状态, 2051的19脚为0电平,否则相反。而门保持关状态,则2051的17脚为低电平0,否则相反。在系统中,由于开关是机械结构,触点的弹性及电压突跳等原因,在触点闭合或断开的瞬间会出现电压抖动。为了去抖动,保证开关识别的准确性,利用

34、软件方法去抖动,在程序中采用时间延迟0.01s。在程序开始时要初始化设置,如,识别设防开关和门开关的子程序如下,利用程序循环来作为短暂延迟。程序中短暂时间的延迟,常以Delay()、Wait()子程序来完成,简单明了,利用二层for循环和一个空叙述来完成延迟的目j变量里的条件式j120是试验出来的,要依据CPU的时钟频率不同而修正,由于本系统中采用的CPU晶振时钟频率为12MHz。当按下设防开关K1时,房门可能是开状态,也可能是闭状态,即连接在房门的开关K2在程序中可能是高电平“1”,也可能是低电平“0”。而系统是靠K2来判断是不是该提示报警,所以就得先进行对这两种情况作出假设,然后进行验证,

35、这是第一个逻辑问题点。第二个逻辑难点就是,如果盗贼进门后,如果把房门关上,那么系统还起作用吗L所以在程序中必须这样考虑M不管是把门关上还是开着,只要进门后,即K2开了之后,不在3min内关闭设防开关K1。系统就会在180s后自动报警。所以在程序中加入了一个记数器Open Time,解决第一个问题只需设置不同Open Time值,初始状态为1,如房门关状态,则Open Time被置为0,之后就可以进入循环计数。Flag作为房门开关标志。主程序如下:三: 结束语经多次试验,完全满足设计要求,已经用于物业小区,现已安装调试完成,符合业主的要求。下一步就是将各分散的防盗器作为下位机与控制中心的上位机相

36、联,实现远程监控,对所发生盗窃的房间楼道的过往人员进行摄像,便于破案。1. 基于C8051F单片机直流电动机反馈控制系统的设计与研究2. 基于单片机的嵌入式Web服务器的研究 3. MOTOROLA单片机MC68HC(8)05PV8/A内嵌EEPROM的工艺和制程方法及对良率的影响研究 4. 基于模糊控制的电阻钎焊单片机温度控制系统的研制 5. 基于MCS-51系列单片机的通用控制模块的研究 6. 基于单片机实现的供暖系统最佳启停自校正(STR)调节器7. 单片机控制的二级倒立摆系统的研究8. 基于增强型51系列单片机的TCP/IP协议栈的实现 9. 基于单片机的蓄电池自动监测系统 10. 基

37、于32位嵌入式单片机系统的图像采集与处理技术的研究11. 基于单片机的作物营养诊断专家系统的研究 12. 基于单片机的交流伺服电机运动控制系统研究与开发 13. 基于单片机的泵管内壁硬度测试仪的研制 14. 基于单片机的自动找平控制系统研究 15. 基于C8051F040单片机的嵌入式系统开发 16. 基于单片机的液压动力系统状态监测仪开发 17. 模糊Smith智能控制方法的研究及其单片机实现 18. 一种基于单片机的轴快流CO,2激光器的手持控制面板的研制 19. 基于双单片机冲床数控系统的研究 20. 基于CYGNAL单片机的在线间歇式浊度仪的研制 21. 基于单片机的喷油泵试验台控制器

38、的研制 22. 基于单片机的软起动器的研究和设计 23. 基于单片机控制的高速快走丝电火花线切割机床短循环走丝方式研究 24. 基于单片机的机电产品控制系统开发 25. 基于PIC单片机的智能手机充电器 26. 基于单片机的实时内核设计及其应用研究 27. 基于单片机的远程抄表系统的设计与研究 28. 基于单片机的烟气二氧化硫浓度检测仪的研制 29. 基于微型光谱仪的单片机系统 30. 单片机系统软件构件开发的技术研究 31. 基于单片机的液体点滴速度自动检测仪的研制32. 基于单片机系统的多功能温度测量仪的研制 33. 基于PIC单片机的电能采集终端的设计和应用 34. 基于单片机的光纤光栅

39、解调仪的研制 35. 气压式线性摩擦焊机单片机控制系统的研制 36. 基于单片机的数字磁通门传感器 37. 基于单片机的旋转变压器-数字转换器的研究 38. 基于单片机的光纤Bragg光栅解调系统的研究 39. 单片机控制的便携式多功能乳腺治疗仪的研制 40. 基于C8051F020单片机的多生理信号检测仪 41. 基于单片机的电机运动控制系统设计 42. Pico专用单片机核的可测性设计研究 43. 基于MCS-51单片机的热量计 44. 基于双单片机的智能遥测微型气象站 45. MCS-51单片机构建机器人的实践研究 46. 基于单片机的轮轨力检测 47. 基于单片机的GPS定位仪的研究与

40、实现 48. 基于单片机的电液伺服控制系统 49. 用于单片机系统的MMC卡文件系统研制 50. 基于单片机的时控和计数系统性能优化的研究 51. 基于单片机和CPLD的粗光栅位移测量系统研究 52. 单片机控制的后备式方波UPS 53. 提升高职学生单片机应用能力的探究 54. 基于单片机控制的自动低频减载装置研究 55. 基于单片机控制的水下焊接电源的研究 56. 基于单片机的多通道数据采集系统 57. 基于uPSD3234单片机的氚表面污染测量仪的研制 58. 基于单片机的红外测油仪的研究 59. 96系列单片机仿真器研究与设计 60. 基于单片机的单晶金刚石刀具刃磨设备的数控改造 61

41、. 基于单片机的温度智能控制系统的设计与实现 62. 基于MSP430单片机的电梯门机控制器的研制 63. 基于单片机的气体测漏仪的研究 64. 基于三菱M16C/6N系列单片机的CAN/USB协议转换器 65. 基于单片机和DSP的变压器油色谱在线监测技术研究 66. 基于单片机的膛壁温度报警系统设计 67. 基于AVR单片机的低压无功补偿控制器的设计 68. 基于单片机船舶电力推进电机监测系统 69. 基于单片机网络的振动信号的采集系统 70. 基于单片机的大容量数据存储技术的应用研究 71. 基于单片机的叠图机研究与教学方法实践 72. 基于单片机嵌入式Web服务器技术的研究及实现 73

42、. 基于AT89S52单片机的通用数据采集系统 74. 基于单片机的多道脉冲幅度分析仪研究 75. 机器人旋转电弧传感角焊缝跟踪单片机控制系统 76. 基于单片机的控制系统在PLC虚拟教学实验中的应用研究77. 基于单片机系统的网络通信研究与应用 78. 基于PIC16F877单片机的莫尔斯码自动译码系统设计与研究79. 基于单片机的模糊控制器在工业电阻炉上的应用研究 80. 基于双单片机冲床数控系统的研究与开发 81. 基于Cygnal单片机的C/OS-的研究82. 基于单片机的一体化智能差示扫描量热仪系统研究 83. 基于TCP/IP协议的单片机与Internet互联的研究与实现 84.

43、变频调速液压电梯单片机控制器的研究 85. 基于单片机-免疫计数器自动换样功能的研究与实现 86. 基于单片机的倒立摆控制系统设计与实现 87. 单片机嵌入式以太网防盗报警系统 88. 基于51单片机的嵌入式Internet系统的设计与实现 89. 单片机监测系统在挤压机上的应用 90. MSP430单片机在智能水表系统上的研究与应用 91. 基于单片机的嵌入式系统中TCP/IP协议栈的实现与应用92. 单片机在高楼恒压供水系统中的应用 93. 基于ATmega16单片机的流量控制器的开发 94. 基于MSP430单片机的远程抄表系统及智能网络水表的设计95. 基于MSP430单片机具有数据存

44、储与回放功能的嵌入式电子血压计的设计 96. 基于单片机的氨分解率检测系统的研究与开发 97. 锅炉的单片机控制系统 98. 基于单片机控制的电磁振动式播种控制系统的设计 99. 基于单片机技术的WDR-01型聚氨酯导热系数测试仪的研制 100. 一种RISC结构8位单片机的设计与实现 101. 基于单片机的公寓用电智能管理系统设计 102. 基于单片机的温度测控系统在温室大棚中的设计与实现103. 基于MSP430单片机的数字化超声电源的研制 104. 基于ADC841单片机的防爆软起动综合控制器的研究105. 基于单片机控制的井下低爆综合保护系统的设计 106. 基于单片机的空调器故障诊断

45、系统的设计研究 107. 单片机实现的寻呼机编码器 108. 单片机实现的鲁棒MRACS及其在液压系统中的应用研究 109. 自适应控制的单片机实现方法及基上隅角瓦斯积聚处理中的应用研究110. 基于单片机的锅炉智能控制器的设计与研究 111. 超精密机床床身隔振的单片机主动控制 112. PIC单片机在空调中的应用 113. 单片机控制力矩加载控制系统的研究 项目论证,项目可行性研究报告,可行性研究报告,项目推广,项目研究报告,项目设计,项目建议书,项目可研报告,本文档支持完整下载,支持任意编辑!选择我们,选择成功!项目论证,项目可行性研究报告,可行性研究报告,项目推广,项目研究报告,项目设计,项目建议书,项目可研报告,本文档支持完整下载,支持任意编辑!选择我们,选择成功!单片机论文,毕业设计,毕业论文,单片机设计,硕士论文,研究生论文,单片机研究论文,单片机设计论文,优秀毕业论文,毕业论文设计,毕业过关论文,毕业设计,毕业设计说明,毕业论文,单片机论文,基于单片机论文,毕业论文终稿,毕业论文初稿,本文档支持完整下载,支持任意编辑!本文档全网独一无二,放心使用,下载这篇文档,定会成功!17

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服