智能化温度传感器的测温报警器的设计(硬件,软件设计)
摘 要
本次论文设计的内容是基于智能化温度传感器的测温报警器的设计。设计分为两个部分,第一部分为硬件设计部分,主要讲述了硬件接口和驱动电路,电路主要分为四个部分:温度传感器电路、显示电路、单片机控制电路、报警电路。温度传感器选择DALLAS公司智能化一线传感器DS18B20作为核心温度传感器。控制器选用STC89C52系列单片机,其价格便宜、功能齐全、易于扩展。在显示方面,采用普通的LED,显示方式用动态扫描显示方式。报警装置采用三极管驱动蜂鸣器发声报警,此电路连接方便,简单耐用。第二部分是软件设计部分,这部分重点讲解各模块的功能的软件实现,用程序流程图简洁的表达了程序的思路和实现过程。该设计测量误差小、反应灵敏、显示方便,适合粮仓、家具城、酒店、智能化大厦等温度测量需求较大的场合。
关键词 温度传感器; 单片机; 温度报警
ABSTACT
This paper is temperature alarm design based on intelligent temperature sensor. In this paper the design theme is divided into two parts ,the first part is the hardware design , describing the hardware component of the interface and driver circuit , circuit consists of four parts : data acquisition module , display module , auxiliary circuit , alarm circuit . Temperature sensor choice the Intelligent Sensor of DALLAS Co as a core temperature sensor. Controllers Based on the selection of the 52 kernel STC89C52microcontroller . It is cheap , multifunctional and easy to expand on display , ordinary LED can be designed to meet the requirements of display mode for dynamic scanning formats . Alarm device driver used triode audible alarm buzzer , the circuit connecting convenient and simple durability . The second part will be part of software design , which focuses on the function of each module of the software , simple flow chart with the expression of ideas and procedures to achieve process. The temperature measurement have little measurement error , shows convenient and it is suitable for silos furniture city , hotels , intelligent buildings , and so on greater demand for temperature measurement occasions [资料来源:http://www.doc163.com]
KEYWORDS Digital temperature ; STC89C52 microcontroller ; Temperature Alarm
[资料来源:https://www.doc163.com]
[资料来源:http://Doc163.com]
目 录 27000字
第1章 引言.1
1.1 国内外现状1
1.2温度传感器1
1.3 单片机3
1.3.1单片机的应用.4
1.3.2单片机的发展方向.5
1.4设计要求6
第二章 系统硬件设计8
2.1系统方框图及原理图8
2.1.1 系统方框图8
2.2中央控制芯片8
2.2.1 STC89C52简介.8
2.2.2 单片机的主要特性11
2.3单片机的时钟电路和复位电路12
2.4显示电路13
2.5温度传感器模块15
2.5.1DS18B20温度传感器16
2.6 报警电路及其接口电路21
2.6AT24C64存储电路23
第3章 软件部分.24
3.1 C51 语言的优缺点24
3.2 程序设计25
3.2.1 主程序流程图25
3.2.2 读出温度子程序27
3.2.3 计算温度子程序28
总结29
参考文献30
附录一31
附录二32
附录三33
附录四59
致 谢86