大连海事大学毕业论文二○一四年六月1┊┊┊┊┊┊┊装┊┊┊┊┊┊┊订┊┊┊┊┊┊┊线┊┊┊┊┊┊┊基于单片机的仓库温度监测系统设计与制作专业班级:电子信息科学与技术1班姓名:王振华指导教师:金国华信息科学技术学院摘要本设计是基于AT89C51单片机的多路仓库温度监测系统的设计与制作。利用三个DS18B20分别采集三路温度,由LCD1602液晶显示屏实时显示路数和该路的温度,实现对仓库温度的实时监测。本设计主要包括温度传感器DS18B20、单片机AT89C51和LCD1602等器件,硬件电路包括温度检测电路、温度控制电路和一些接口电路等辅助电路,软件设计主要包括液晶显示程序、温度检测程序、温度转换命令子程序、计算温度子程序和显示数据刷新子程序几个模块。设计电路工作原理为:首先,由三路DS18B20温度传感器芯片测量各路当前的温度,并将结果分别送入单片机。然后,通过AT89C51单片机芯片对送来的测量温度读数进行计算和转换,井将此结果分别送入液晶显示模块,如果测量温度超过预定值,单片机同时也会把信号传递给报警电路单元。最后,LCD1602芯片将送来的值依次循环显示于显示屏上。借助仿真工具Proteus和单片机编程软件Keil实现系统软、硬件的交互仿真,并进行了电路的焊接和调试,实现了课题设计目的。关键词:AT89C51单片机;温度传感器;DS18B20;LCD1602IABSTRACTThisdesignisbasedonAT89C51multiplexwarehousetemperaturemonitoringsystemdesignandproduction.UsingthreeDS18B20temperaturesensocollectedthreeroad,respectivelybytheLCD1602LCDreal-timedisplaytheimletandthetemperatureofthechain,realizethereal-timemonitoringoftemperatureinthewarehouse.ThedesignincludestemperaturesensorDS18B20,MCUT89C51A,LCD1602andotherdevices.Hardwarecircuitincludesthetemperaturesensingcircuit,thetemperaturecontrolcircuit,anumberofinterfacecircuitsandotherauxiliarycircuits,SoftwaredesignmainlyincludestheLCDdisplayprogram,temperaturedetection,temperatureconversioncommandsubroutineanddisplaysubroutine,calculationtemperaturedatarefreshsubroutinemodules.Thecircuredesignworksasfollows:BythefourroadchipDS18B20temperaturesensormeasurementofvariouscurrenttemperature,andtheresultintothisLCDmodulethroughtheAT89C51,ifthemeasuredtemperatureexceedsapredeterminedvalue,themicrocontrollerwillalsosendsignalstothealarmcircuitmodule.LCD1602sendsthevalueofthechipswhichwillbeinturnshownonthescreen.ThesysteminteractionsimulationofhardwareandsoftwarehasbeenrailizedwithsimulationtoolsProteusandSCMprogrammingsoftwareKeil.Theauthorperformsthecirtcuitconnectionanddebuggingcombinedwithimplementingthedesigngoaloftheproject.Keywords:AT89C51Microcontroller;Temperaturesensor;DS18B20;LCD1602IIIII目录第1章绪论..........................................................................................................11.1课题研究的背景及意义..........................................................................11.2温度传感器国内外现状及水平..............................................................11.3课题设计任务与目的..............................................................................21.4设计思路..................................................................................................2第2章系统设计...................................................................................................32.1方案设计..................................................................................................32.1.1设计方案一....................................................................................32.1.2设计方案二.......................................................................................