基于51单片机的温度采集系统设计
2020-11-30吴迎春曾利霞
吴迎春 曾利霞



【摘 要】论文利用AT89C51单片机和DS18B20温度传感器设计了一款能够实现对环境温度进行实时采集并当环境温度超过设定值时进行自动报警的温度采集系统。论文使用Proteus对电路进行仿真,得到温度采集系统的仿真电路图,按照电路图焊接完成硬件电路,并对硬件电路进行调试。调试结果表明:该系统能实时显示环境温度,温度采集范围为-55~+120℃,温度测量精度可以达到0.1℃;可以根据用户需求设定温度上下限,当环境温度超出设定值时,系统能进行声光报警。该温度采集系统性能可靠、成本低廉、使用便捷。
【Abstract】This paper uses AT89C51 single chip microcomputer and DS18B20 temperature sensor to design a temperature acquisition system which can realize real-time acquisition of environmental temperature and alarm automatically when the environmental temperature exceeds the set value. The paper uses Proteus to simulate the circuit, obtains the simulation circuit diagram of the temperature acquisition system, welds and completes the hardware circuit according to the circuit diagram and debugs the hardware circuit. The debugging results show that: the system can display the environmental temperature in real-time, its temperature acquisition range is from -55℃ to +120℃, its temperature measurement accuracy can reach 0.1℃. The system can set the upper and lower limits of temperature according to the user's needs. When the environmental temperature exceeds the set value, the system can give sound and light alarm. The temperature acquisition system has reliable performance, low cost and convenient use.
【关键词】AT89C51单片机;温度传感器;温度采集
【Keywords】AT89C51 single chip microcomputer; temperature sensor; temperature acquisition
【中图分类号】TP274+.2 【文献标志码】A 【文章编号】1673-1069(2020)10-0186-03
1 引言
温度与人们的生产生活密切相关,传统的温度采集方法不但费时费力,而且精度差,可靠性也得不到保证,早已满足不了现在各行各业对温度测量的要求[1]。单片机和温度传感器的出现和运用使得人们对温度的采集和处理方式得到了极大的革新,选取和应用合适的单片机和温度传感器能够提高温度的测量精度和可靠性。本文基于AT89C51单片机设计的温度采集系统可实时采集环境温度,性能稳定可靠,成本低廉,使用便捷。
2 温度采集系统的硬件设计
本文设计的温度采集系统利用AT89C51单片机作为数据处理和控制单元,整个电路由温度采集系统模块、单片机控制模块、报警警告模块、温度显示模块和键盘输入模块组成。首先,温度传感器DS18B20[2]将采集到的温度通……
