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

基于AT89C51单片机的蔬菜大棚温度控制系统设计

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

目 录

摘要:

3

关键词: .......................................................... 4 引言: ............................................................ 5 1. 系统方案选择和论证 ............................................ 6

1.1 任务 ........................................... 6 1.2 任务要求 ....................................... 6 1.3 系统基本方案.................................... 6

1.3.1 各模块电路的方案选择及论证 6 1.3.2 系统各模块的最终方案

9

2. 系统硬件设计 ................................................. 10

2.1 单片机型号选择 ................................. 10 2.2 单片机最小系统电路设计 ......................... 13 2.3温度采集部分设计 ................................ 15 2.4 按键电路设计................................... 24 2.3 数码管显示电路设计 ............................. 25 2.4 温度控制电路设计 ............................... 29 2.5 报警电路设计................................... 29

2.6 电源输入部分................................... 30

3. 系统软件设计 ................................................. 32

3.1 读取DS18B20温度模块子程序 ..................... 33 3.2 数据处理子程序 ................................. 34 3.3 键盘扫描子程序 ................................. 35 3.4 主程序流程图................................... 36

致谢 ............................................................. 39 参考文献 ......................................................... 39 附录A:本设计整体电路图 .......................................... 40 附录B:程序清单.................................................. 41

摘要:

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

通过对基于单片机的相对温度控制器设计,加深对传感器技术及检测技术的了解,巩固对单片机知识的掌握,并系统的复习本专业所学过的知识。

关键词:AT89C51单片机 DS18B20温度检测芯片 温度控制

Abstract:

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.

Through to the relative temperature controller based on single chip design, deepen our understanding of the sensor technology and testing technology of understanding, consolidate the SCM grasp the knowledge and the system review this professional the learned knowledge.

Keywords: AT89C51 single-chip microcomputer temperature detection

chipDS18B20temperature control

基于AT89C51单片机的蔬菜大棚温度控制系统设计 09级 机电一体化 田志营 指导老师:马力 崔茂齐

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