1、 1 摘摘 要要 为小范围空间内的温度进行测量和控制, 本文设计了一种利用红外温度计显 示及控制电路, 在论文中主要采用了红外温度传感器对控制器部分的温度进行采 集 ,将非电量信号转换为电信号,转换后的电信号再进入 A/D 转换器换成数字 量,传输给 AT89C51 单片机处理,以达到对控制对象的温度控制,由 LED 显示器 来显示温度。当温度超出温度控制的范围报警系统会发出报警信号,提醒工作人 员进行操作。设计出来的红外温度测量仪对在温室大棚、客厅温度调节、温度快 速检测等各方面有重大意义。 关键词:单片机 转换器 显示器 2 ABSTRACT We designed a kind of u
2、sing infrared thermometer display and control circuit for small area within the space of temperature measurement and control. In this thesis, we mainly used infrared temperature sensor to gather the section temperature controller. It will convert the signals to electricity signal, and be converted t
3、o the digital signals by A/D converter. At last, it will transmit to the AT89C51 microcontroller to get processing. Reach for the temperature control of the object, and to display temperature by the LED display. When the temperature exceeds the scope of temperature control the system will alarm issu
4、ed a warning signal, remind staffs. The successfully developed of the infrared temperature measuring instrument will have the great significance to greenhouse temperature adjustment, awning, sitting room temperature rapid detection. KEYWORDSKEYWORDS:singlechip Converter Monitor 3 目录目录 摘 要 . 1 ABSTRA
5、CT . 2 目录. 3 1. 绪论. 5 1.1 概述. 5 1.2 温度控制的总体设计和思路 . 6 1.3 系统设计 7 2.温度控制电路的设计 9 2.1 温度传感器的选择 9 2.1.1 红外传感器的工作原理 . 9 2.1.2 P7187 热释电红外传感器工作原理 . 9 2.2 传感器放大电路及补偿电路的设计 . 10 2.3 A/D 转换器的选择 12 2.3.1 TLC549 参数介绍 12 2.3.2 TLC549 工作原理 13 2.4 单片机 A T89C51 的结构和原理 14 2.4.1 单片机型号的选择 . 14 2.4.2 AT89C51 的主要性能包括 . 1
6、4 2.4.3 A T89C51 单片机主要特性 . 15 2.5 显示系统及接口电路设计 18 2.5.1 数字显示器的选择 18 2.5.2 LED 工作原理及选型 18 2.5.3 74LS147 译码器的选择 . 19 3.5.4 LED 显示电路 . 20 2.6 报警电路 21 2.7 MOC3061 控制电路 22 2.7.1 控制通道的器件选择 22 2.7.2 MOC3061 的功能与结构 . 22 2.7.3 MOC3061 控制电路 23 2.8 键盘和时钟、复位电路 . 24 2.8.1 键盘输入 24 2.8.2 键盘和时钟、复位电路 . 25 3.9 MAX232 通信电路 27 3.9.1 单片机与 PC 通信的意义 . 27 3.9.2 MAX232 芯片实现单片机与 PC 通信 . 27 3.9.3 MAX232 通信电路 27 3.10 电源电路. 28 3.软件流程图的设计 29 4 3.1 概述 . 29 3.1.1 软件功能分析 . 29 3.1.2 系统时钟周期的设定 29 3.2 主程序功能 . 30 3.3 T0 中断服务程序 30 3.