欢迎来到天天文库
浏览记录
ID:883410
大小:1.09 MB
页数:68页
时间:2017-09-23
《基于单片机的模拟空调控制系统_学士学位论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、淮北师范大学2013届学士学位论文基于单片机的模拟空调控制系统学院、专业物理与电子信息学院电子信息工程研究方向单板微型计算机学生姓名纪宏源学号指导教师姓名指导教师职称副教授2013年4月25日淮北师范大学2013届学士毕业论文基于单片机的模拟空调控制系统基于单片机的空调模拟控制系统纪宏源淮北师范大学物理与电子信息学院235000摘要本文设计了一种以STC89C52为核心的空调控制系统,并详细分析了其在硬件和软件上的实现过程。本系统硬件电路大致上可以分成控制模块、电机模块、键盘模块、电源模块、温度模块和显
2、示模块。控制模块选用STC89C52芯片并采用24MHz晶振获得稳定的频率,可以用来准确地控制整体电路以及存储和计算数据。按键模块完成空调的工作方式、风速、温度等状态信息的设定。电源模块采用12V锂电池经过7805转换成5V电压向单片机及电机供电,并且用L298N驱动电机使电机速度达到可控。温度模块则是用DS18B20实时采集温度并传输到液晶上显示。显示模块采用无字库LCD12864液晶,实时显示温度数据及空调状态信息。系统软件程序采用C语言编写,占用资源少、程序执行效率高,有利于实现较复杂的算法和程序
3、结构化设计。经测试,本系统满足设计要求,可以实现控制系统的基本功能。关键词空调;单片机;温度;控制系统62淮北师范大学2013届学士毕业论文基于单片机的模拟空调控制系统BaseOnSingle-ChipComputerAirConditionerSimulationControlSystemJiHongYuanSchoolofPhysicsandElectronicInformation,HuaibeiNormalUniversity,235000Abstract:Adesignofacontrolsy
4、stemofair-conditionwhichusedSTC89C52asthecoreisdescribedinthispaper.Adetailedanalysisofthedesignprocessinbothhardwareandsoftwareisalsomentioned.Thehardwarecircuitofthissystemcanberoughlyseparateintocontrolmodule,motormodule,keyboardmodule,powermodule,tem
5、peraturemoduleanddisplaymodule.Inthecontrolmodule,whichcancontrolthewholeelectriccircuitaccurate,aSTC89C52chipused24MHzcrystaloscillatortogetthestablefrequencyisused.Italsocansaveandcalculatedata.Thekeyboardmodulesetthestateinformationsuchasworkingmode,w
6、indspeed,temperatureandetc.Inthepowermodule,a12Vlithiumbatteryconvertedto5Vthrough7805isused,whichsupplythepowerusedinsingle-chipcomputerandmotor.AL298Ndrivemotorisalsousedtocontrolthemotorspeed.Intemperaturemodule,DS18B20whichrecordtemperatureandsendtoL
7、CDisused.Inthedisplaymodule,aLCD12864withoutfontisusedtodisplaythetemperaturedataandthestateinformationofACinreal-time.TheClanguageisusedtoprogramthesystemsoftware.Itispropitioustoprogramthecomplicatedalgorithmandstructuredesignofsoftwareduetothesmallres
8、ourceusingandeffectiveness.Bytesting,thesystemsatisfiedthedesignrequirementandachievethebasicfunctionofcontrolsystem.Keywords:Air-Condition;Single-chipcomputer;Temperature;Controlsystem62淮北师范大学2013届学士毕业论文基于单片机的模拟空调控制系统目录1绪
此文档下载收益归作者所有