摘 要:随着家用电器智能化水平的提高,消费者对风扇的智能化也提出了新的需求。为了顺应这样的消费需求,需要对电扇的控制器改造升级。本文以AT89C51为主控芯片设计一款智能温控风扇控制器。该控制器由传感器模块、数码管显示模块、按键模块、红外遥控等模块组成。用户可通过按键模块设置温度上限和下限值,通过温度传感器测量当前温度并由数码管显示,单片机以PWM调速方式来控制风扇的转速。当温度低于下限值时,电机不转;当温度介于上限和下限值之间时电机转速缓慢;当温度大于上限值时,电机全速转动。另外可通过红外遥控模块对风扇实现远距离控制。本设计具有结构简单,智能化水平高的特点,满足了消费者对风扇智能化的需求,具有一定的应用和推广价值。72581
毕业论文关键词:智能温控风扇,单片机,温度传感器,红外遥控,PWM调速
Abstract:As the intellectualization of household appliances improves,consumers propose new requirements on the intellectualization of electric fans。To meet such consumption demand,the controller of electric fans should be upgraded。In the paper, the MCU AT89C51 is adopted as the control core to design an intelligent temperature-controlled fan controller。The controller consists of sensor module, Led display module,button module and infrared remote control module。User can set upper and lower temperature limit through button module。The temperature sensor is adopted to measure the current temperature and the temperature is displayed by Led。 The speed of the fan is controlled by PWM。When the temperature is below the lower limit, the motor does not rotate;When the temperature is between the upper and lower limits,the motor rotates slowly;When the temperature is higher than the upper limit,the motor rotates at full speed。In addition,the function of remote control can be realized by the infrared remote control module 。The design has the advantages of simple structure and high intelligence level。It can meet the consumers’ demand for intelligent fan and it has certain the popularize and application value。
Keywords: intelligent temperature-controlled fan,MCU,temperature sensor,infrared remote control,PWM speed regulation
目 录
1 绪论 4
1。1 课题研究的背景和意义 4
1。2 本文主要研究内容 4
2 方案设计 4
2。1系统整体设计 4
2。2 芯片的选择 5
2。2。1 控制芯片的选择 5
2。2。2 温度传感器的选择 5
2。2。3 显示芯片的选择 6
2。2。4 调速方式的选择 6
3 硬件设计 6
3。1 AT89C51单片机最小系统 7
3。2 独立控制键盘电路 7
3。3 温度采集电路 8
3。4 风扇驱动与调速电路 9
3。5 红外遥控电路 10
3。6 数码管显示电路 11
3。7 PWM调速 12
4 软件设计 12
4。1 程序流程图 12
4。2 程序编译 15