资源描述:
《电热恒温箱的单片微机控制电路设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、目录摘要I关键词IAbstractIIKeywordsII1前言12设计方案22.2.1温度传感器的选择32.2.2CPU的选择42.2.3加热方案和功率电路的选择42.2.4 输出控制53.硬件设计及工作原理53.1电热恒温箱的系统结构设计53.2 系统硬件设计83.2.1DS18B20测温电路83.2.2 DS18B20的特点介绍93.3功率控制电路113.4单片机控制部分133.4.2 键盘管理部分154软件设计及程序流程图174.1 软件描述174.1.1 控制模块174.1.2PWM波的产生184.1.3主系统程序流程图195.
2、结论或讨论205.1硬件调试20225.1.1 脱机检查205.1.2 仿真调试215.2软件调试215.2.1用C语言程序215.2.2用汇编语言215.3系统仿真216设计总结22参考文献23致谢24附录:2522电热恒温箱的单片微机控制电路设计摘要在日常生活、工业生产和实验室中电热恒温箱的应用随处可以见到。在生活中我们保存食物用到恒温箱,工业生产中一些生产原料的保存用到恒温箱,实验室里,特别是生物的培育实验室,恒温箱的应用更是普遍。在本设计中,我们针对培养箱而设计的一个恒温系统,在系统里,通过对恒温箱温度的检测与变送传到单片机,与给
3、定值进行比较,单片机对数据进行处理,本设计是基于AT89S52单片机的恒温箱控制系统,系统分为硬件和软件两部分,其中硬件包括:温度传感器、显示、控制和报警的设计;软件包括:显示程序设计、控制程序设计和温度报警程序设计。编写程序结合硬件进行调试,能够实现设置和调节初始温度值,进行LCD数码显示,当加热到设定值后立刻报警。另外,本系统通过软件实现对按键误差、加热过冲的调整,以提高系统的安全性、可靠性和稳定性。本设计从实际应用出发选取了体积小、精度相对高的数字式温度传感元件DS18B20作为温度采集器,单片机AT89S52作为主控芯片,LCD1
4、602作为显示输出,实现了对温度的实时测量与恒定控制。关键词单片机;温度传感器;恒温;控制;报警22TheDesignofElectricityHeatingIncubatorControlSystemBasedontheMCUAbstractIndailylife,industrialproductionandlaboratoryintheelectricalthermostaticboxapplicationscanbeseeneverywhere.Inlifewepreservefoodusethermostaticbox,indu
5、strialproductioninthepreservationoftherawmaterialsusedsomelaboratory,constanttemperaturebox,cultivatelaboratory,especiallybiologicalapplicationsofconstanttemperatureboxiscommon.Inthisdesign,wefocusedonincubatoranddesignofaconstanttemperaturesystem,inthesystem,theconstantt
6、emperatureboxbyinspectionandanalogtomicrocontroller,comparedwithagivenvalueofasinglechipcomputerdataprocessing,thisdesignisbasedontheconstanttemperatureboxAT89S52SCMcontrolsystem,hardwareandsoftwaresystemisdividedintotwoparts,includinghardwareincluding:temperaturesensors,
7、display,controlandalarmdesign;Thesoftwareincludes:showprogramdesign,controlprogramdesignandtemperaturealarmprogramming.Writeaprogramcombininghardwaredebugging,canrealizeSettingsandadjustingtheinitialtemperature,forLCDdigitaldisplay,whenheatedtoimmediatelyaftersettingthepo
8、lice.Inaddition,thesystemthroughthesoftwarerealizationofkeyerror,heatingovershootadjustmentstoen