第一范文网 - 专业文章范例文档资料分享平台

基于单片机的温度采集系统设计 - 毕业设计

来源:用户分享 时间:2025/8/18 0:06:03 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

安徽工程大学毕业设计(论文)

基于单片机的蔬菜大棚温度采集系统设计

摘 要

随着现代信息技术的飞速发展,温度测量控制系统在工业、农业及人们的日常生活中扮演着一个越来越重要的角色,它对人们的生活具有很大的影响,所以温度采集控制系统的设计与研究有十分重要的意义。

本设计以AT89C51单片机为核心的温度采集系统的工作原理和设计方法。温度信号由温度芯片DS18B20采集,并以数字信号的方式传送给单片机。文中介绍了该控制系统的硬件部分,包括:温度检测电路、温度显示电路。单片机通过对信号进行相应处理,从而实现温度显示的目的。文中还着重介绍了软件设计部分,在这里采用模块化结构,主要模块有:数码管显示程序、温度信号处理程序、超温报警程序。

温室大棚是如今植物栽培生产中必不可少的设施之一,不同种类蔬菜对温度及湿度等生长所需条件的要求也不尽相同,为它们提供一个更适宜其生长的封闭的、良好的生存环境,以提早或延迟花期,最终将会给我们带来巨大的经济效益。

关键词:温度采集;AT89C51;DS18B20;

曾瑜:基于单片机的蔬菜大棚温度采集系统设计

Design of the Temperature Acquisition System Based on the SCM

in the Greenhouse

Abstract

With the rapid development of modern information technology, temperature acquisition system in industry, agriculture and people's daily life plays a more and more important role; it to people's life has a great influence, so the temperature gathering the design of control system and research have very important significance.

This design as the core of the AT89C51 temperature control system of the working principle and design method. Temperature signal chipDS18B20collection by the temperature, and the way to digital signal transfer to the microcontroller. The paper introduces the hardware part of the control system, including: temperature detection circuit, temperature control circuit, temperature display circuit. SCM through to signal processed, so as to achieve the purpose of temperature control. This paper has mainly introduced the software design part, here the modularized structure, main module has: digital tube show program, keyboard scanning and key processing program, temperature signal processing program, relay control procedures, super temperature alarming program.

Greenhouse canopy is now planting plant production of one of the indispensable facilities, different kinds of vegetables such as temperature and humidity conditions needed for growth of demand is endless also and same, provide them with a more suitable for the growth of the closed, good living environment, and to delay or early flowering, will eventually bring the huge economic benefits.

Keywords: temperature acquisition ;AT89C51; DS18B20;

II

安徽工程大学毕业设计(论文)

目录

引 言 ........................................................................................................................................ 1 第1章 绪论 .............................................................................................................................. 2 1.1 课题研究背景 ..................................................................................................................... 2 1.2 国内外研究现状 ................................................................................................................. 2 1.3 该课题研究的主要内容 ..................................................................................................... 3 第二章 总体设计方案 .............................................................................................................. 4 2.1 系统方案选择 ..................................................................................................................... 4 2.1.1 温度测量的选择 ........................................................................................................ 5 2.1.2 显示电路的选择 ........................................................................................................ 5 2.1.3 系统各模块的最终方案 ............................................................................................ 5 2.2 方案的总体设计电路图 ..................................................................................................... 5 第三章 硬件设计 ...................................................................................................................... 7 3.1 单片机AT89C51 ................................................................................................................. 7 3.1.1 简介 ............................................................................................................................ 7 3.1.2 单片机最小系统 ...................................................................................................... 10 3.2 温度传感器DS18B20 ...................................................................................................... 11 3.2.1 简介 .......................................................................................................................... 11 3.2.2 DS18B20温度传感器与单片机的接口电路 .......................................................... 14 3.3 LED数码显示模块设计 ................................................................................................... 14 3.3.1 LED简介 .................................................................................................................. 14 3.3.2 LED与单片机接口电路 .......................................................................................... 15 3.4 报警器的设计 ................................................................................................................... 16 3.5 与上位机通信的接口电路 ............................................................................................... 17 3.5.1 RS232接口介绍 ....................................................................................................... 18 3.5.2 MAX232资料简介 ................................................................................................... 18 第四章 系统软件设计 ............................................................................................................ 20 4.1 Keil软件概述 .................................................................................................................... 20 4.2 主程序 ............................................................................................................................... 21 4.3 读出温度子程序 ............................................................................................................... 21 4.4 温度转换命令子程序 ....................................................................................................... 22 4.5 计算温度子程 ................................................................................................................... 23 4.6 显示数据刷新子程序 ....................................................................................................... 24 第5章 调试与仿真 ................................................................................................................ 25 5.1 Proteus 简介 ...................................................................................................................... 25 5.2 调试与仿真 ....................................................................................................................... 25 第6章 结论与展望 ................................................................................................................ 28 致谢 .......................................................................................................................................... 29 参考文献 .................................................................................................................................. 30 附录A :电路原理图绘制 ........................................................................................................ 31 附录B:一篇引用的英文文献及翻译 .................................................................................. 32

III

曾瑜:基于单片机的蔬菜大棚温度采集系统设计

附录C:主要参考文献的题录及摘要 .................................................................................. 40 附录D:程序 ............................................................................................................................. 42

IV

基于单片机的温度采集系统设计 - 毕业设计.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c5ftar8t5n74n25q6ny0j2r4yi9c8hj003su_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top