文档详情

基于单片机的温度监控系统的设计毕业设计.doc

发布:2018-04-27约3.34万字共49页下载文档
文本预览下载声明
目录第一章 引言 3 第二章 设计方案 4 2.1 方案设计 4 2.2 温度传感器的选择 4 2.3 显示模块选择 4 2.4 微控制器的选择 6 第三章 硬件设计 7 3.1 硬件设计思路及总体设计框图 7 3.2 DS18B20应用电路 7 3.3 按键电路 8 3.4 显示电路 9 3.5 报警电路 10 3.6 总体电路 10 第四章 软件设计 12 4.1 测温模块程序设计 12 4.2 显示模块程序设计 14 4.3 按键模块程序设计 17 4.4 报警模块程序设计 18 4.5 主函数流程图和主程序 19 4.6 模拟看门狗程序设计 20 第五章 仿真 22 第六章 结束语 24 参考文献 25 附录A 26 附录B 30 附录C 40 致谢 48 摘要: 本设计的控制器选择AT89C51,AT89C51比较经典且应用很广泛。温度的测量所用的温度传感器选择DS18B20,利用多片DS18B20进行多点测温,选择LCD12864液晶屏作为显示模块。输入模块选择一个矩阵键盘,报警温度上限可以人工设置。当某个测温点的温度超出了报警温度范围,就通过报警器报警,直到人为关闭报警器。DS18B20的精度比较高,测量温度范围不是很广,但是平时生活中应用已经足够了。单片机AT89C51一款应用很广泛的微控制器,它结构简单,应用方便,编程简单,在很多控制系统中有着广泛的应用。本设计没有做实际的硬件,用 Proteus来进行仿真。仿真软件Proteus包含一个元件库,在这个库中有很多仿真的元器件,从这个库中可以查找所需要的器件,然后就可以搭建一个基于软件的硬件系统,然后和软件一起可以进行仿真。采用软件仿真有很多优点,比如软件仿真很灵活,可以低降成本,可以加快设计进度等。 关键词: Proteus仿真;温度监控; DS18B20; AT89C51 ABSTRACT:AT89C51 device of the main controller. It is more classic and used widely. DS18B20 as the temperature sensor was selected to measure temperature, and can be used to measure multi-point temperature. As the LCD screen, LCD12864 was used to the display module. According to the need, the alarm temperature limit can be set by choosing a matrix keyboard input module. When one of point temperature exceeds the alarm limit, the alarm apparatus will work until shut down alarm manually. DS18B20 is higher, the precision of the measuring temperature range is not very wide, but used in peacetime life is sufficient. Single-chip computer AT89C51 is an application of a wide range of micro controller, it’s structure is simple, fast and convenient to use and programming of the single, so it is popular in many areas. This design was not doing the actual hardware, software simulation with Proteus. It contains a component library, many simulation components exist in the library, it is able to obtain what it want from the library, and then it can build a hardware system based on software, then can work out the simulation. Using the simulation software has a lot of merit, such as simulati
显示全部
相似文档