51单片机的车载设备温度控制系统设计+硬件设计+源程序 摘 要:随着科技的发展和人们生活水平的提高,单片机的应用越来越广泛,并带动了相关检测和控制技术的进步。本文设计了一个基于单片机的温度控制系统,它以AT89C51单片机作为控制核心,以智能温度传感器DS18B20为控制对象,用LM016L液晶显示采集到的温度。本系统的设计包括硬件和软件两部分,在硬件方面,本文主要完成了单片机最小系统、DS18B20的温度采集电路以及液晶显示电路的设计;在软件方面,本文采用C语言实现了温度采集模块和液晶显示模块的编程。本文的硬件电路使用Proteus仿真,程序在Keil中编译,然后进行软硬件的交互仿真,实现了系统的功能。本系统可实现对远程环境的温度测量与监控,适用于电力工业、农业、煤矿、火灾、高层建筑等场所,还可以用于环境恶劣的工业控制现场。
关键词:AT89C51单片机;温度传感器;液晶显示器
On-board temperature control system based on microcontroller unit
Abstract:With the development of science and technology and the improvement of people’s living standard, more and more extensive application of Microcontroller Unit, and the correlative detection and control technology. This paper introduces the design of a temperature control system based on Microcontroller Unit, it takes AT89C51 microcontroller as control core, the intelligent temperature transducer DS18B20 is the object of control, display the collected temperature using LM016L liquid crystal. The design of this system includes two parts of hardware and software, in the aspect of hardware, this paper completed the temperature acquisition circuit, DS18B20 minimum system of the Microcontroller Unit and LCD display circuit design; in software, this paper realized the temperature acquisition module and liquid crystal display module using C programming language. In this paper, the hardware circuit using Proteus simulation, the program compiled in Keil, interactive simulation, then the software and hardware, realize the function of the system. The system can realize the temperature measurement and monitoring of the remote environment, suitable for electric power industry, agriculture, mining, fire, high-rise buildings and other places, can also be used in industrial control field environment.
Keywords:Microcontroller Unit AT89C51; temperature transducer; Liquid Crystal Display
目录
1绪论 1
1.1课题的背景及其意义 1
1.2 国内外研究现状 1
1.3 本文的主要工作及内容安排 2
2系统硬件设计 3
2.1系统的总设计 3
2.1.1整体框图 3
2.1.2功能模块 3
2.1.3元器件的选型 3
2.2系统硬件电路设计 5
2.2.1 单片机控制单元 5
2.2.2 数字温度传感器DS18B20 7
2.2.3液晶显示屏 10
2.3硬件电路图 14
3系统软件设计 17
3.1主程序 17
3.2温度采集子程序 18
3.3数据处理子程序 21
3.4显示子程序 21
4程序编译和仿真结果 23
4.1 Keil C51 的使用 23
4.2 Proteus 的仿真 25
5总结与展望 28
致谢 29
参考文献 30
附录:程序清单 31,3563
[1] [2] [3] [4] [5] [6] [7] [8] 下一页