文档详情

基于DS18B20的温度采集系统(1602显示)的设计_课程设计.docx

发布:2018-03-30约8.02千字共25页下载文档
文本预览下载声明
目录摘要2一.设计内容及要求41.1 设计工艺要求41.2 设计任务41.3 要求4二.芯片资料52.1 DS18B2052.1.1 DS18B20的工作原理52.1.2 DS18B20的使用方法72.2 AT89C51112.2.1 AT89C51简介112.2 .2 AT89C51功能112.2.3 AT89C51引脚11三.系统流程143.1读DS18B20的子程序143.2 读转换温度子程序153.写DS18B20的子程序15四.程序与电路设计174.1 程序设计174.1.1 main程序(部分)174.1.2 DS18B20初始化程序184.1.3 DS18B20全处理184.2 电路图194.2.1 最小系统设计图194.2.2 DS18B20模块电路图194.2.3 1602LCD显示模块设计图204.2.4 整机原理图21五.系统调试与分析22六.设计体会23参考文献24教师评语25摘要随着人们生活水平的不断提高,单片机技术已经普及到我们生活,工作,科研等各个领域。单片机控制无疑是人们追求的目标之一,它所给人带来的方便是不可否定的,其中数字温度计就是一个典型的例子,但人们对它的要求越来越高,要为现代人工作、科研、生活提供更好的更方便的设施就需要从数单片机技术入手,一切向着数字化控制,智能化控制方向发展。本文利用单片机结合传感器技术开发设计,把传感器理论与单片机实际应用有机结合,详细地讲述了利用温度传感器DS18B20测量环境温度,设置上下报警温度,当温度不在设置范围内是,可以报警。同时51单片机在现代电子产品中广泛应用以及其技术已经非常成熟,DS18B20可以直接读出被测温度值,而且采用一线制与单片机相连,减少了外部的硬件电路,具有低成本和易使用的特点。关键词:DS18B20;单片机控制;温度检测;温度传感器;温度报警AbstractWith the continuous improvement of living standard, single chip technology has spread to our lives, work, research and other fields.SCM is undoubtedly one of the goals people pursue, the convenience it brings is not negative, in which digital thermometer is a typical example, but it requires more and more people to work for the modern man, research, provide a better life, more convenient facilities need to start from a few microcontroller technology, all toward the digital control, intelligent control direction.In this paper, combined with sensor technology development and design of single chip, the sensor application of theory and practical combination of SCM in detail about the use of temperature sensors measure the ambient temperature DS18B20, set the upper and lower alarm temperature range when the temperature is not set is for the police. 51 Micro also widely used in modern electronic products and its technology is well established. DS18B20 can directly read the measured temperature, and the use of front-line system is connected with the microcontroller, reducing the external hardware circuit, the characteristics of low cost and ease of use.Keywards: DS18B20;MCU Control ;tem
显示全部
相似文档