更新时间:01-21 (姐妹花)提供原创文章
摘要:随着科技的快速发展,温度的需要也越来越广泛,如生活、农业、工业、科研领域等都会有温度的参与。温度记录仪是测温仪器类型的其中之一。我们可以根据测量物质的不同及测量范围的不同选用不同的温度记录仪。
本次设计整点温度记录仪是由上位机和下位机两部分组成,下位机是由AT89S52单片机完成数据采集、处理、存储和LCD显示,并通过串口与上位机进行通信。上位机(电脑)实时监控单片机采集的数据状况和整点时间所对应的温度、通过液晶显示器显示温度和当前时间,同时将数据存到电脑中的“s.TXT和s1.TXT”文件中,8位独立按键对时间进行修改及查询整点存储的温度,因而在掉电的情况下,系统同样能够记录每一时刻的数据,从而轻松地实现了温度的实时监控和报警。
该温度记录仪采用DS18B20作为本次系统的温度传感器,其测量范围-55℃~125℃,因此只要不超过该范围都可以使用,如检测所在室内的温度。该系统的抗干扰性好、设计灵活、方便,而且适合于在恶劣的条件下对温度进行采集。
关键字:温度记录仪 AT89S52 DS18B20 整点存储
ABSTRACT:With the rapid development of science and technology, the temperature are increasing used as agriculture, industry, scientific research so there will be temperature participation. Temperature logger thermometer type is one of them. Depending on the temperature and the temperature range of different substances in the different temperature loggers are written with different temperature requirements. The whole point of this design is determined by temperature logger PC and the next crew of two parts, the next crew AT89S52 MCU completion of data collection, processing, storage and LCD display, and through the serial port to communicate with the host computer. PC (computer) chip real-time monitoring data collected by state and the whole point of time corresponding to the temperature, through the LCD display shows the temperature and current time, while the data stored in the computer's ‘s.TXT and s1.TXT’ file, eight separate buttons for time to modify and query the whole point of the storage temperature, which in the case of power failure, the system can record the same data each time, making it easy to achieve a real-time temperature monitoring and alarm. The temperature logger using DS18B20 as the temperature sensor of this system, measuring range -55 ℃ to 125 ℃, so just do not exceed this range can be used, such as detecting where the indoor temperature. The system's interference, good design flexible, convenient, and suitable for use in harsh conditions for temperature acquisition.Keywords: temperature logger;AT89S52;DS18B20;the whole point storage