如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
提供全套毕业论文图纸,欢迎咨询摘要随着中国社会经济的发展,人们生活水平的提高,人们对生活环境的舒适度也越来越重视,比如室内的温度情况。所以基于以单片机为核心的温度采集和控制的系统出现满足了人们的这一要求,本论文以STC89C52RC单片机为主控器件,以数字温度传感器DS18B20进行当前温度值的采集,并将当前温度值通过LCD12864来显示出来;当温度高于或低于期望值时,通过L298N来控制电机对温度进行实时调控,使温度达到期望值。本系统的硬件设计包括单片机最小系统,温度检测电路,LCD显示电路,按键控制电路和电机控制电路。软件设计包括主程序,温度检测子程序,按键检测子程序,LCD液晶显示子程序,电机控制子程序等。关键词:单片机;DS18B20;LCD液晶显示;电机控制TheDesignofControlSystemBaseonMicrocontrolleratRoomTemperatureAbstractWiththedevelopmentofChina'ssocialeconomy,peoplelivingstandardrise,peoplealsopaymoreandmoreattentiontothelivingenvironmentofthecomfort,suchasindoorandoutdoortemperatureconditions.Sobasedonsinglechipmicrocomputerasthecoretemperaturegatheringandcontrolsystemtomeetthepeopleoftherequirements,thisthesiswithSTC89C52RCMCUasthemasterdevice,withdigitaltemperaturesensorDS18B20thetemperaturevalueofthecollection,andthecurrenttemperaturevaluedisplayedbyLCD12864;Whenthetemperaturehigherorlowerthanexpected,tocontrolthemotorbyL298Ntoreal-timecontroloftemperature,thetemperaturereachedexpectations.Thehardwaredesignofthissystemincludethesinglechipmicrocomputerminimumsystem,temperaturedetectioncircuit,LCDdisplaycircuit,keycontrolcircuitandthemotorcontrolcircuit.Softwaredesignincludesthemainprogram,temperaturedetectionsubroutine,buttondetectionsubroutine,LCDliquidcrystaldisplaysubroutine,motorcontrolsubroutine.KeyWords:microcontroller;DS18B20;LCDliquidcrystaldisplay;motorcontrol目录TOC\o"1-3"\h\z\uHYPERLINK\l"_Toc381998813"摘要PAGEREF_Toc381998813\hIIHYPERLINK\l"_Toc381998814"AbstractPAGEREF_Toc381998814\hIIIHYPERLINK\l"_Toc381998815"引言PAGEREF_Toc381998815\h1HYPERLINK\l"_Toc381998816"1概述PAGEREF_Toc381998816\h2HYPERLINK\l"_Toc381998817"1.1设计背景和意义PAGEREF_Toc381998817\h2HYPERLINK\l"_Toc381998818"1.2设计思想PAGEREF_Toc381998818\h2HYPERLINK\l"_Toc381998819"1.3系统的总体设计PAGEREF_Toc381998819\h2HYPERLINK\l"_Toc381998820"1.3.1方案比较PAGEREF_Toc381998820\h2HYPERLINK\l"_Toc381998821"1.3.2系统框图