智能小区安防系统的设计(附程序,原理图,PCB图)(任务书,开题报告,外文翻译,中期报告,论文21000字)
摘 要
本文主要探讨了与人们日常生活联系密切的智能小区安防系统的设计问题, CAN总线的主要特性和功能。该系统由于使用方便,从而进行实时处理。
关键词:小区安防;AT89C51;传感器;信号处理;报警器;CAN总线
Abstract
This paper mostly describes how to design the guard system of uptown.The guard system provides many functions, such as guard against fire、gas leaking out and so on, realizing the automatization of the public security of updown. This security alarm system structure is composed by three parts:the scenec controls measure,the family control measure, and monitoring center. Alarm system of updown is made up of clients and warning center. Use the chip of CAN to form the alarm network of uptown, and the software to carry out communication between clients and warning center. In the PC on board management report to the police signal analysis, showed warn information, convenient for and small area security personnel in time help handle excrescent affairs, and convenient to residents uptown. This system uses the CAN network to deliver the message, and improve the reliability, with more convenient operation, and used extensively in actual engineering, So it has a good applied foreground and extend value in engineering.
This system introduces the main characteristic and principle of Singlechip AT89C51、several sensors、SJA1000、PCA82C250,价格合理,价格便宜的单片微型计算机作为居民家庭第一监视端,价格便宜的单片微型计算机AT89C51作为小区住户家庭的第一监视端,以便及时的进行处理。对于应用区域:
每个家庭可实现:家中无人时,体现了自动化的发展前景一片光明。当窃贼试图破门而入或从阳台闯入,体现了自动化的发展前景一片光明。本系统充分的将主从式微机通信运用于今天的生活,使所有的探测器都工作起来。
该智能小区安防系统运用了AT89C51单片机、四种报警传感器、模数转换ADC0809、CAN总线操控器SJA1000和CAN总线收发器PCA82C250。
目 录
引言1
1 总体设计2
1.1 设计背景2
1.2 设计思想2
1.3 系统功能3
1.4 系统设计框图4
1.5 系统实现方式4
2 系统可行性分析5
2.1 硬件模块5
2.1.1单片机操控模块5
2.1.2温度烟雾信号采集模块7
2.1.3煤气信号采集模块7
2.1.4防盗报警模块7
2.1.5光报警模块7
2.1.6数据采集模块8
2.1.7键盘显示模块11
2.1.8CAN总线协议11
2.1.9传感器模块13
2.2 软件模块14
2.2.1温度烟雾信号采集模块14
2.2.2煤气信号采集模块15
2.2.3防盗报警信号采集模块15
2.2.4光报警15
2.2.5信号采集模块15
2.2.6键盘显示模块15
2.2.7CAN总线通讯模块16
3 硬件单元电路设计17
3.1 ADC0809和三个报警传感器的接口电路17
3.2 AT89C51与ADC0809接口电路17
3.3 AT89C51与光报警接口电路18
3.4 键盘显示接口电路19
3.5 AT89C51与CAN总线借口电路19
4 软件设计21
4.1 CAN总线程序21
4.1.1CAN初始化21
4.1.2CAN数据发送23
4.1.3CAN接收数据24
4.2 温度传感器18B2025
4.3 ADC0809转换25
4.4 数字显示30
5 系统可靠性设计33
5.1 系统抗干扰性设计33
5.1.1硬件抗干扰措施33
5.1.2软件抗干扰措施33
5.2 提高元器件的可靠性34
5.3 容错技术34
6 系统调试35
6.1 整体调试分析35
6.2 硬件单元电路调试35
6.2.1最小系统板调试35
6.2.2A/D转换电路调试35
6.2.3光报警电路调试36
6.2.4键盘显示电路调试36
6.2.5传感器电路调试37
6.3 软件程序调试37
6.3.1软件系统设置37
6.3.2单片机系统软件调试37
6.3.3CAN总线软件调试38
6.3.418B20
6.4 调试过程中发现的问题及解决方式38
6.5 联机调试38
7 系统使用说明40
8 结论41
谢词42
参考文献43
附录44