设计简介:
项目名:温控风扇(实物)
项目编号:mcuclub-dz-110
单片机类型:STC12C5A60S2
具体功能:
1、通过DS1302同步时间,并可修正时间,同时可设定风扇开关时间
2、通过DS18B20检测温度,当温度大于设置最小值,才开启风扇,在最小值和最大值之间,低速转动,大于最大值,高速转动
3、通过HC-SR04超声波检测前方是否有人,如果有人,才开启风扇
4、通过按键可设置各阈值
5、通过LCD12864显示各测量数据
6、通过红外遥控器可远程控制风扇开启和转速、切换模式、设置各阈值
总字数:17654
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
摘 要
此次设计一个能够自动控制风扇速度和开关状态的系统,以保持环境温度在设定范围内,并根据人体活动情况智能地控制风扇开启。该项目使用STC12C5A60S2型号的单片机,并集成了多种传感器和显示设备,以实现以下具体功能:通过DS1302实时时钟模块同步时间,并提供修正时间的功能。同时,用户可以设定风扇的开关时间,从而在特定时间段内控制风扇的运行。利用DS18B20温度传感器监测环境温度,系统会根据用户设定的最小值来判断是否开启风扇。当温度在最小值和最大值之间时,风扇将以低速运行,而当温度超过最大值时,风扇将以高速运行。使用HC-SR04超声波传感器检测风扇前方是否有人。只有当检测到有人存在时,风扇才会被开启,从而节省能源并提高智能化程度。通过按键操作,用户可以设置不同的温度阈值和超声波传感器的灵敏度,以适应不同的环境需求。使用LCD12864液晶显示屏展示各种测量数据,包括当前时间、环境温度、风扇状态等信息,使用户可以方便地监控系统运行状态。引入红外遥控技术,用户可以通过红外遥控器远程控制风扇的开启、速度调节、模式切换以及各种阈值的设置,提高了系统的便捷性和交互性。本论文详细介绍了硬件电路设计、软件程序设计以及系统测试与优化过程。实验结果表明,“温控风扇”项目能够稳定可靠地实现温度自动控制,满足了智能化环境温度控制的要求。该系统在实际应用中具有较好的应用前景,可广泛用于办公室、家庭和其他需要温度控制的场所,为节能减排、提升生活品质等方面带来积极的影响。
关键词:单片机;温控风扇;DS18B20;HC-SR04;LCD12864;红外遥控器
ABSTRACT
This design aims to create a system capable of automatically controlling the fan’s speed and on/off state to maintain the environment’s temperature within the specified range and intelligently regulate the fan’s activation based on human activity. The project utilizes the STC12C5A60S2 microcontroller and integrates various sensors and display devices to achieve the following specific functions:Synchronize time using the DS1302 real-time clock module and provide time correction functionality. Users can set the fan’s on/off time, enabling control of the fan’s operation during specific time periods.Utilize the DS18B20 temperature sensor to monitor the ambient temperature. The system determines whether to activate the fan based on the user-set minimum value. When the temperature is within the minimum and maximum range, the fan operates at a low speed. If the temperature exceeds the maximum value, the fan runs at a high speed.Employ the HC-SR04 ultrasonic sensor to detect the presence of individuals in front of the fan. The fan is activated only when someone is detected, thereby saving energy and enhancing the system’s intelligence.Through button operations, users can set different temperature thresholds and adjust the sensitivity of the ultrasonic sensor to accommodate various environmental requirements.Display various measurement data, including current time, ambient temperature, and fan status, on the LCD12864 liquid crystal display screen, enabling users to conveniently monitor the system’s operating status.Introduce infrared remote control technology, allowing users to remotely control fan activation, speed adjustment, mode switching, and threshold settings using an infrared remote controller, enhancing the system’s convenience and interactivity.This thesis provides a detailed account of hardware circuit design, software programming, system testing, and optimization processes. Experimental results demonstrate that the “Temperature-Controlled Fan” project achieves stable and reliable temperature automation, meeting the requirements of intelligent environmental temperature control. The system exhibits promising application prospects in offices, homes, and other places requiring temperature control, contributing positively to energy conservation, emissions reduction, and improved quality of life.
Keywords: Microcontroller, Temperature-Controlled Fan, DS18B20, HC-SR04, LCD12864, Infrared Remote Control..
目 录
摘 要
ABSTRACT
1 绪论
2 系统设计方案
3 硬件设计
4 系统程序设计
5 实物制作与调试过程
总结与展望
致谢
参考文献
附录