摘 要:随着时代的进步和发展,单片机技术已经发展成一种较为成熟的技术,以单片机为核心的温度采集与控制系统的研发与应用在很大程度上提高了生产生活中对温度的控制水平。本设计主要介绍了一个基于STC89C51单片机的纯净水自动恒温控制系统,由数字温度传感器DS18B20采集温度信号输入到STC89C51单片机,通过与设定温度进行比较,进而控制继电器的通断来控制加热或制冷以达到恒温控制的目的,通过LED数码管实现温度显示,且两位整数加一位小数的显示方法具有更高的显示精度。实验结果表明,该系统通过硬件系统和软件系统能够实现对水温进行实时监测、实时控制、实时显示及越限报警等功能,证明了本设计具有可行性。79020
毕业论文关键词:STC89C51 DS18B20 恒温控制
Abstract:With The Times progress and development, microcontroller technology has developed into a relatively mature technology。 With the single chip processor as the core temperature acquisition and control system, it rewarded a great extent improve in the development and application of temperature control in production and living level。 This design mainly introduces a STC89C51 microcontroller which is based on water automatic constant temperature control system。 It collected temperature signal from the digital temperature sensor DS18B20 to the STC89C51 microcontroller, then comparing with set temperature。 We could control the relays on and off to control the heating or cooling to achieve the purpose of temperature control。 Temperature could be showed by the LED digital tube display, and it could show two integers add a decimal display method as higher precision。 The experimental results show that the system through hardware system and software system can realize the real-time monitoring, real-time temperature control, real-time display and the limit alarm functions, and other functions, which proved this design is feasible。
Keywords:STC89C51 DS18B20 constant temperature control
目 录
1 绪论 4
1。1 课题背景 4
1。3 课题内容及意义 5
2 系统总体方案设计 6
2。1 系统总框图 6
2。2 系统基本方案选择与论证 7
3 系统硬件电路设计 9
3。1 单片机主控模块 10
3。2 温度采集模块 13
3。3 按键输入模块 15
3。4 继电器控制模块 16
3。5 显示模块 17
3。6 越限报警模块 19
4 系统软件程序的设计 19
4。1 按键模块设计 20
4。2 温度采集模块设计 21
4。3 驱动控制模块设计 22
4。4 显示模块设计 23
5 系统调试与实验 23
5。1 系统调试 24
5。2 系统实验