1、 1 摘要 随着科技的不断进步,在工业生产中温度是常用的被控参数,而采用单片机 来对这些被控参数进行控制已成为当今的主流。 本设计主要介绍以 AT89S51 单片机为核心的温度控制系统的工作原理和设 计方法。 温度信号由温度芯片 DS18B20 采集, 并以数字信号的方式传送给单片机。 文中介绍了该控制系统的硬件部分,包括:温度传感电路、温度控制电路、PC 机与单片机串口通讯电路和一些接口电路 。 单片机通过对信号进行相应处理, 从而实现温度控制的目的。 通过测试表明, 本设计对温度的控制有方便、 简单的特点, 从而大幅提高了被控温度的技术指标。 关键词:AT89S51 单片机 DS18B20
2、 温度芯片 温度控制 串口通讯 1 AbstractAbstract As the technology advances in industrial production in the temperature is charged with common parameters, and the use of those charged with SCM to the parameters of control has become the mainstream. This design take at89S51 monolithic integrated circuit as core te
3、mperature control systems principle of work and design method. The temperature signal by the temperature chip DS18B20 gathering, and transmits by digital signals way for the monolithic integrated circuit. In the article introduced this control systems hardware part, including: Temperature examinatio
4、n electric circuit, temperature-control circuit, PC machine and monolithic integrated circuit serial port communication channel and some interface circuit. The monolithic integrated circuit through carries on corresponding processing to the signal, thus realizes the temperature control goal. Passed
5、the tests show that the design of the temperature control is convenient and simple characteristics, thus greatly raising the temperature was charged with the technical indicators. KeyKeywordswords :AT89S51 Monolithic Integrated Circuit ; DS18B20 Temperature Chip;Temperature Control;Serial Port Commu
6、nication 目录目录 引言 . 1 第一章 绪论 2 一、恒温控制器的研究目的 2 二、恒温控制器的设计背景和发展现状 2 三、单片机的发展现状以及未来趋势 3 第二章 系统设计任务及要求 4 一、系统设计任务 4 二、系统设计的基本要求 4 第三章 系统的硬件设计 5 一、电路的总体工作原理 5 二、参数采集模块设计 6 1.温度传感器 DS18B20 芯片介绍与运用 6 2.DS18B20 的测温原理 7 三、主控制模块设计 9 四、温度控制电路的设计 . 10 五、键盘电路的设计 . 11 六、显示电路的设计 . 12 第四章 系统的软件设计 . 14 一、系统的主程序设计 . 14 二、程序代码(详见附录 程序清单) 15 第五章 系统的控制 16 一、 温控电路及报警电路的控制 16 二、 LCD 显示电路的控制 17 三、使用说明 . 17 第六章 电路问题分析 . 18 第七章 全文总结 19 一、经济效益分析 . 19 二、社会效益分析 . 19 致谢 20 参考文献 21 附录 错误错误! !未定义书签。未定义书签。 1 1 引言 温度控制