目 录
毕业论文(设计)任务书 Ⅰ
毕业论文(设计)开题报告 Ⅱ
指导教师审查意见 Ⅲ
评阅教师评语 Ⅳ
答辩会议记录 Ⅴ
中文摘要 Ⅵ
外文摘要 Ⅶ
1前言 1
2选题背景 3
2.1 题目来源 3
2.2 研究目的和意义 3
2.3 国内外现状和发展趋势与研究的主攻方向 3
2.4 主要研究内容、需重点研究的关键问题及解决思路 3
2.4.1 主要研究内容 3
2.4.2需重点研究的关键问题 3
2.4.3解决思路 4
3方案论证 5
3.1 CPU选型: 5
3.2温度传感器选型: 5
3.3电机选型: 6
3.4最终方案的确立 6
4系统硬件设计 8
4.1 电源模块 8
4.2 DS18B20测温模块 9
4.3 显示模块 12
4.4 按键模块 14
4.5 报警模块 14
4.6 电机模块 15
4.7 MAX232通信模块 16
5系统软件设计 17
5.1Keil C51开发环境简介 17
5.2模块子程序 20
5.2.1 MAX232通信模块子程序 20
5.2.2按键模块子程序 21
5.2.3 DS18B20测温模块子程序 22
5.2.4 显示模块程序子程序 25
5.2.5 报警模块子程序 28
5.2.6 电机模块子程序 28
6 系统测试 30
6.1测试方法 30
6.2测试结果图 30
6.2.1 系统温度显示界面 30
6.2.3 系统修改温度界面 30
6.2.3 系统修改温值界面 31
7 总结 32
参考文献 33
致 谢 34
附录1 原理图 35
附录2 主要程序源代码 36
工厂车间温度采集及控制
【摘要】随着社会的发展,温度的测量及控制变得越来越重要,温度是生产过程和科学实验中普遍而且重要的物理参数。本文利用单片机结合传感器技术而开发设计了这一温度监控系统。该系统由AT89C51单片机最小系统、DS18B20温度模块、显示模块、电机模块和串口通信模块五部分组成。
AT89C51单片机最小系统主要完成三个任务:一是将温度信息通过串口模块发送到上位机;二是对温度信息进行处理;三是接收来自上位机的指令信息,并进行相应处理。本文详细地讲述了基于单片机AT89S51和温度传感器DS18B20的温度控制系统的设计方案与软硬件实现方案。系统采用数字温度传感器DS18B20采集温度数据,LCD同步显示温度设定值和当前测量值,可通过按键以1℃的步进改变温度设定值,系统复位后默认设定温度值为45℃。当温度低于设定值时,单片机控制继电器启动加热器加热,同时点亮红色发光二极管,当温度高于设定值时,加热器停止加热,从而实现了测量和控制温度的目的。系统具有控制方便、组态简单和灵活性大等优点,经过反复测试,系统能够稳定运行。
[关键词]:AT89C51,DS18B20,LCD,串口通讯
[Abstract ] Along with the social development, diagraph and control of temperature become more and more important, The temperature is universal and important in the physical parameter, in production line and science that test. This text makes use of a list slice clip combined to spread a feeling machine technique but development to design this temperature supervision system. The system from the AT89C51 Single-chip 's minimum system,the mold piece, show a mold piece, electrical engineering mold piece and string corresponds by letter mold piece five parts constitute in the DS18B20.
The minimum system of the AT89S51 Single-chip mainly completes three tasks: One is pass a string of mold piece to send temperature information to the place of honor machine; second is carry on a processing to the temperature information; Third is receives instruction information come from the place of honor machine, and carry on corresponding a processing. This text in detail related the machine AT89C51 to spread design project and soft hardware of the temperature control system of the feeling machine DS18 B20 to carry out a project with temperature according to Single-chip. This text related to the machine AT89C51 to spread design project and soft hardware of the temperature control system of the feeling machine DS18B20 to carry out a project with temperature according to the list slice in detail. The system adopts numeral temperature to spread the feeling machine DS18B20 to collect a temperature data, LCD synchronously shows temperature initial value and current measured value. Can pass a key with 1°c walking to change temperature initial value, The system recognizes tacitly to set temperature to be worth to 45 ℃ after resetting. When the temperature is lower than initial value, Single-chip control after electric appliances start the heating apparatus heat and order bright red to give out light diode at the same time, when the temperature is higher than initial value the heating apparatus stops heating and carried out the purpose of diagraph and control temperature thus. The system has a control
convenience and set Tai in brief with vivid greatly etc. advantage, process again and again test, the system can stabilize movement.
[Keyword]: AT89S51 DS18B20 LCD Serial Communication