基于单片机的温度控制器的设计摘要温度的检测与控制是工业生产过程中必不可少的程序之一,随着传感器在生产和生活中的更加广泛的应用,利用新型单总线式数字温度传感器实现对温度的测试与控制得到更快的开发势在必行,本文设计了一种基于 AT89C51 的温度检测及报警系统。该系统将温度传感器 DS18B20。通过模拟放大电路接在模数转化器 ADC0809 的输入端,然后将 ADC0809 的输出端接在控制器的一个端口上,就可以对传感器温度进行采集将采集到的温度值与设定值进行比较,并适当调节其温度。本文从硬件电路的设计、软件设计两方面介绍了 51 单片机温度控制系统的设计思路,对硬件原理图和程序框图作了简单的描述,对设计的实现过程和调试过程也做了相应的说明.经实验测试表明,该系统测量精度高、抗干扰能力强、报警及时准确,具有一定的参考价值。本课题主要对实现了双通道的温度自动控制系统的说明,并且系统设计和布线简单,结构紧凑,体积小,重量轻,抗干扰能力强,性价比高,扩展方便,实现一个主机对多个系统进行控制,解决了单个的主机对各个温控的对象进行控制显得资源浪费现象,有利于节约资源,在大型仓库,工厂,智能化建筑等领域的多点温度检测中有宽阔的应用前景。关键词:ADC0809;AT89C51; DS18B20; 温度控制Design of temperature controller based on MCUAbstract Temperature detection and control is one of the indispensable in the process of industrial production process, as the sensor is more widely used in the production and life, using new type single bus digital temperature sensor for temperature test and control, it is imperative to get faster development, this paper designs a temperature detection and alarm system based on AT89C51. The system will be the temperature sensor DS18B20. Through analog amplifying circuit in the input end of the AD converter ADC0809, then to connect the output of the ADC0809 on one port of the controller, temperature sensor for acquisition, will be collected temperature comparing with set point, when less than set the upper limit of temperature, by opening the heating circuit to keep the...