-基于单片机温度控制系统本科论文.docVIP

  • 1
  • 0
  • 约1.7万字
  • 约 35页
  • 2017-06-15 发布于辽宁
  • 举报
-基于单片机温度控制系统本科论文

提供全套毕业论文图纸,欢迎咨询 摘要 随着中国社会经济的发展,人们生活水平的提高,人们对生活环境的舒适度也越来越重视,比如室内的温度情况。所以基于以单片机为核心的温度采集和控制的系统出现满足了人们的这一要求,本论文以STC89C52RC单片机为主控器件,以数字温度传感器DS18B20进行当前温度值的采集,并将当前温度值通过LCD12864来显示出来;当温度高于或低于期望值时,通过L298N来控制电机对温度进行实时调控,使温度达到期望值。本系统的硬件设计包括单片机最小系统,温度检测电路,LCD显示电路,按键控制电路和电机控制电路。软件设计包括主程序,温度检测子程序,按键检测子程序,LCD液晶显示子程序,电机控制子程序等。 关键词:单片机;DS18B20;LCDMicrocontroller at Room Temperature Abstract With the development of Chinas social economy, people living standard rise, people also pay more and more attention to the living environment of the comfort, such as indoor and outdoor temperature conditions. So based on single chip microcomputer as the core temperature gathering and control system to meet the people of the requirements, this thesis with STC89C52RC MCU as the master device, with digital temperature sensor DS18B20 the temperature value of the collection, and the current temperature value displayed by LCD12864; When the temperature higher or lower than expected, to control the motor by L298N to real-time control of temperature, the temperature reached expectations. The hardware design of this system include the single chip microcomputer minimum system, temperature detection circuit, LCD display circuit, key control circuit and the motor control circuit. Software design includes the main program, temperature detection subroutine, button detection subroutine, LCD liquid crystal display subroutine, motor control subroutine. Key Words:microcontrollerDS18B20;LCD liquid crystal display; motor control 目录 摘要 II Abstract III 引言 1 1 概述 2 1.1 设计背景和意义 2 1.2 设计思想 2 1.3 系统的总体设计 2 1.3.1 方案比较 2 1.3.2 系统框图 3 1.4 设计重点与难点 3 2 硬件电路设计 4 2.1 STC89C52RC单片机简介 4 2.2 STC89C52RC单片机管脚图 4 2.3 单片机最小系统电路图 5 2.4 LCD12864液晶简介 5 2.4.1 LCD12864的接口原理图 6 2.5 按键工作原理 6 2.5.1 按键原理图 6 2.6 L298N简介 7 2.6.1 L298N原理图 7 2.7 DS18B20温度传感器简介 8 2.7.1 DS18B20原理图 8 2.8 直流电机工作原理简介 8 2.9 系统总电路原理图 9 3 软件设计 10 3.1 软件整体设计 10 3.2 主程序流程图 10 3.3 温度采集子程序 11 3.4 液晶显示子程序 12 3.5 电机控制处理程序 13 3.6 按键处理程序 14 3.6.1 按键软件消抖 14 3.6.2 按键检测流程图 15 4

文档评论(0)

1亿VIP精品文档

相关文档