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