Research On The Measure And Control System Of The Temperature And Humidity
摘要:单片机在检测和控制系统中得到广泛的应用,温、湿度则是系统常需要测量、控制和保持的量。文中介绍了一种基于ATA9C51的单片机的温度和湿度检测与控制的方案,针对被测对象的温度与湿度在不同变化范围需要不同的PID参数的特点,根据检测温度和湿度自动选择合适的一组PID参数进行控制的方案,整个设计简明、清晰。
关键词:单片机AT89C51; DS18B20温度传感器; 检测与控制; PID; 看门狗
Abstract: The singlechip microcomputer is required extensively in measurement and control systems and the temperature and humidity need to be surveyed, controlled and maintained by a system frequently. The schemes of the measure and control of the temperature and humidity based on single chip microcomputer AT89C51 is introduced in this paper. In view of the characteristics of the different PID parameters with the different temperature and humidity, selects appropriate PID parameters to control on the basis of the measured temperature and humidity, and the whole design is very clear and concise.
Key words: single chip microcomputerAT89C51; DS18B20 temperature sensor; measure and control; PID; watchdog
引言
温、湿度是工业生产中常见的被控参数,温度和湿度己不再是相互独立的量,而应在系统集成中综合考虑。利用单片机对温、湿度控制,具有控温、湿精度高、功能强、体积小、价格低,简单灵活等优点,很好的满足了工艺要求。本文介绍了利用AT89C51单片机进行温度和湿度的检测及其控制的智能化方法。
1系统的硬件结构及工作原理
工业中很多装置温度和湿度需要保持在一个既定的温度和湿度值上,本文针对实际需要,设计了一套温度、湿度闭环检测与控制系统,系统整个硬件结构如图1: