[摘 要]
温度是一种最基本的环境参数,温度的测量方法和装置对现在的生活、生产具有重要的意义。本文介绍一个温度传感显示系统,该系统采用DS18b20一线数字式温度传感器,以AT89S51单片机为控制器,使用OCM2X16A型LCD显示测量数据。文中介绍了DS18b20和OCM2X16A的内部结构以及与单片机的通讯指令。整个系统结构简单,器件工艺成熟,经济实用。有一定的推广价值。
关键词 :温度传感,DS18b20,单显数据传输,液晶显示器
[Abstract]
The temperature is one kind of most basic environment parameter, the temperature measuring technique and the equipment to the present life and production have the vital significance. This article introduced a temperature sensing display system, this system uses DS18b20 the 1-wire digital thermometer, take AT89S51 microcontroller as the controller, uses OCM2X16A LCD to demonstrate the survey data. In the article introduced DS18b20 and the OCM2X16A internal structure as well as with the microcontroller communication instruction. The system structure is simple, the component processing is mature, the cheap and practical. Has certain promoted value.
Keyword:the temperature sensing, DS18b20,1-wire data transmission, the liquid-crystal display
目 录
第一章 引言 1
第二章 设计方案 2
2.1 温度传感器的选取 2
2.2 显示器的选取 2
第三章 设计原理 3
3.1 DS18B20简介 3
3.1.1概述 3
3.2.2 详细说明 5
3.2 OCM2X16A简介 19
3.2.1 概述 19
3.2.2 外观引脚 19
3.2.3 时序与时序图 20
3.2.4 内部结构 22
3.2.5 指令说明 23
第四章 系统设计 29
4.1 系统组成 29
4.2 硬件设计 29
4.2.1 温度测量传感部分 29
4.2.2 控制部分 30
4.2.3 显示部分 30
4.2.4 电源部分 30
4.3 软件设计 31
4.3.1 流程图 31
4.3.2 程序代码 32
4.4 实际电路焊接 40
4.5 电路测试 41
第五章 结论 43
参考文献 44
致 谢 45
附 录 46
附1、DS18B20特性 46
附2、7805简介 48
第一章 引言
温度是一种最基本的环境参数,人民的生活与环境的温度息息相关,在工业生产过程中需要实时测量温度,在农业生产中也离不开温度的测量,因此研究温度的测量方法和装置具有重要的意义。
测量温度的关键是温度传感器,温度传感器的发展经历了三个发展阶段:①传统的分立式温度传感器,②模拟集成温度传感器,③智能集成温度传感器。目前,国际上新型温度传感器正从模拟式向数字式,从集成化向智能化、网络化的方向飞速发展。
本文介绍智能集成温度传感器DS18B20的结构特征;以AT89S51单片机为控制器,以OCM2X16A型LCD为显示器的温度测量装置的工作原理;单片机对温度传感器的控制程序,温度的读取,16进制到BCD码转换以及LCD显示程序。

您当前的位置:
