基于单片机的模拟空调控制系统学士学位.doc
《基于单片机的模拟空调控制系统学士学位.doc》由会员分享,可在线阅读,更多相关《基于单片机的模拟空调控制系统学士学位.doc(68页珍藏版)》请在启牛文库网上搜索。
1、淮北师范大学 2013届学士学位论文 基于单片机的模拟空调控制系统学院、专业 物理与电子信息学院 电子信息工程 研 究 方 向 单板微型计算机 学 生 姓 名 纪 宏 源 学 号 指导教师姓名 指导教师职称 副教授 2013 年 4月 25 日淮北师范大学2013届学士毕业论文 基于单片机的模拟空调控制系统基于单片机的空调模拟控制系统纪宏源淮北师范大学物理与电子信息学院 235000 摘要 本文设计了一种以STC89C52为核心的空调控制系统,并详细分析了其在硬件和软件上的实现过程。本系统硬件电路大致上可以分成控制模块、电机模块、键盘模块、电源模块、温度模块和显示模块。控制模块选用STC89C
2、52芯片并采用24MHz晶振获得稳定的频率,可以用来准确地控制整体电路以及存储和计算数据。按键模块完成空调的工作方式、风速、温度等状态信息的设定。电源模块采用12V锂电池经过7805转换成5V电压向单片机及电机供电,并且用L298N驱动电机使电机速度达到可控。温度模块则是用DS18B20实时采集温度并传输到液晶上显示。显示模块采用无字库LCD12864液晶,实时显示温度数据及空调状态信息。系统软件程序采用C语言编写,占用资源少、程序执行效率高,有利于实现较复杂的算法和程序结构化设计。经测试,本系统满足设计要求,可以实现控制系统的基本功能。关键词 空调;单片机;温度;控制系统Base On Si
3、ngle-Chip Computer Air Conditioner SimulationControl SystemJi Hong YuanSchool of Physics and Electronic Information, Huaibei Normal University, 235000Abstract: A design of a control system of air-condition which used STC89C52 as the core is described in this paper. A detailed analysis of the design
4、process in both hardware and software is also mentioned. The hardware circuit of this system can be roughly separate into control module, motor module, keyboard module, power module, temperature module and display module. In the control module, which can control the whole electric circuit accurate,
5、a STC89C52 chip used 24MHz crystal oscillator to get the stable frequency is used. It also can save and calculate data. The keyboard module set the state information such as working mode, wind speed, temperature and etc. In the power module, a 12V lithium battery converted to 5V through 7805 is used
6、, which supply the power used in single-chip computer and motor. A L298N drive motor is also used to control the motor speed. In temperature module, DS18B20 which record temperature and send to LCD is used. In the display module, a LCD12864 without font is used to display the temperature data and th
7、e state information of AC in real-time. The C language is used to program the system software. It is propitious to program the complicated algorithm and structure design of software due to the small resource using and effectiveness. By testing, the system satisfied the design requirement and achieve
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 模拟 空调 控制系统 学士学位