1、 1 基于单片机的温度控制系统基于单片机的温度控制系统 The Design of Temperature Control System Based on SCM 摘摘 要要 本文提出的温度采集控制系统以单片机(AD590)为核心,由控制部分、显 示部分和温度测量部分组成。 该系统大部分功能通过硬件来实现, 电路简单明了, 系统稳定性很高。 这套温度控制系统可以方便地实现温度测量、温度显示等功能,并通过与单 片机连接的键盘可以实时设定测控温度的下限,还可以连接相应的外围电路,在 收到单片机发出的指令后对环境进行检测 本文首先描述系统硬件工作原理,并附以系统结构框图加以说明,着重介绍 了本系统所
2、应用的各硬件模块的功能和它的工作过程;其次,详细阐述了程序的 各个模块及其实现过程。本系统的主要设计思想是以硬件为基础,软件和硬件相 结合,最终实现各个模块的功能。 关键字关键字:单片机;温度采集;硬件模块 2 ABSTRACT The design and implementation of temperature control system based on SCM (AD590), it makes up of control part, display part and temperature testing part. Most functions of this system a
3、re realized by hardware, the electric circuit is reliable, and the system can achieve higher stability. The system can measure and display the temperature, set the limit figure of temperature by the keyboard which connects with SCM instantly, and still can link corresponding peripheral equipment to
4、heat the environment up after received the instruction that SCM issued. Firstly, the working principle of hardware is described in this paper which adds the structural block diagram for explanation. This paper emphatically introduces the functions and working process of each applied module. Secondly
5、, this text expounds the functions of each module of program. The dominant thought of this text is that hardware is regarded as the foundation, software combining with hardware to actualize the functions. Key Words: SCM; Temperature collection; Hardware module 1 1 引引 言言 在国民经济各部门,如电力、化工、机械、冶金、农业、医学以及
6、人们的日 3 常生活中,温度检测是十分重要的。在许多模拟量控制和监视应用中,温度测控 通常是基于 -40125温度范围内的应用,如环境监测、蔬菜大棚、粮库、 热电偶冷端温度补偿、设备运行的可靠性等应用。实时采集温度信息,及时发现 潜在故障,并采取相应的处理措施,对确保设备良好运行具有重要意义。 本文介绍了一个基于单片机的温度控制系统,该系统可以方便地实现温度采 集、温度显示等功能。本系统的温度控制部分采用单片机完成。单片机有着体积 小、功耗低、功能强、性能价格比高、使用电子元件较少、内部配线少、制造调 试方便等显著优点, 将其用于温度检测和控制系统中可大大地提高控制质量和自 动化水平, 具有良好的经济效益和推广价值。 利用单片机对温度进行测控的技术, 日益得到广泛应用。 在众多的温度控制系统中, 测温元件常常选用热敏电阻、 半导体测温二极管、 三极管、 集成温度传感器等。 相比而言, 集成温度传感器具有线性好、 稳定度高、 互换性强、易处理等突出优点,故在许多场所得到了广泛应用。本系统中单片机 作为下位机,完成测温任务,并通过与单片机连接的键盘可以实时设定测