2018.21
设计与研发
34
0 引言
温度是表征物体冷热程度的物理量,是工农业生产过程
中一个普遍应用的参数。因此,温度控制是提高生产效率和
产品质量的重要保证。温度控制的发展引入单片机后,可以
降低对某些硬件电路的要求,实现对温度的精确控制。本文
设计的温度控制系统主要目标是实现温度的设定值显示、实
际值实时测量及显示,通过单片机连接的温度调节装置由软
件与硬件电路配合来实现温度实时控制 ;显示可由软件控制
在 LCD1602 中实现 ;比较采集温度与设定阈值的大小,然后
进行循环控制调控,做出降温或升温处理 ;同时也可根据判
断发出警报,用以提高系统的安全性
[1-5]
。
图 1 系统总体框图
1 系统总体设计
本设计以 STM32F103RTC6 单片机为核心对温度进行控
制,使被控对象的温度应稳定在指定数值上,允许有 1℃的误
差,按键输入设定温度值,LCD1602 显示实际温度值和设定
温度值。
2 系统硬件设计
图 2 系统硬件电路图
基于 STM32 单片机的智能温度控制系统的设计
刘绍丽,王献合
(湖北文理学院理工学院,湖北襄阳,441000)
摘要 :由于传统温度控制设备精密度和稳定度较差,且易受周围环境温度的影响,本文设计了一种以 STM32F103 单片机
为核心的温度控制系统。该设计主要包括 STM32 单片机控制器、DS18B20 温度传感器、LCD1602 显示、PTC 加热器以及
半导体制冷器,实现了在自制模拟小型恒温箱的硬件设备上进行温度控制。经实验证明,本设计具有操作方便、控温精
确、智能化等特点。
关键词 :温度控制 ;STM32 单片机 ;智能化
Design of Intelligent Temperature Control System Based on
STM32 Microcontroller
Liu Shaoli,Wang Xianhe
(Science and Technology College of Hubei University of Arts and Science, Xiangyang Hubei,441000)
Abstract:
Because the precision and stability of the traditional temperature control equipment are
poor, and easily affected by the ambient temperature, a temperature control system based on STM32F103
is designed� This design mainly includes the STM32 MCU controller, DS18B20 temperature sensor, LCD1602
display , PTC heater and semiconductor cooler, and realizes the temperature control on the hardware
equipment of the self-made analog small constant temperature box� Experimental results show that the
design has the advantages of convenient operation, accurate temperature control and intelligence�
Keywords:
Temperature control ; STM32;Intelligent
基金项目 :湖北省教育厅科学技术研究项目(B2018448)。