项目编号:mcuclub-dz-252
设计简介:
项目名:风扇
项目编号:mcuclub-dz-252
单片机类型:STC89C52
具体功能:
1、通过DS18B20测量当前温度值,当温度大于设置最小值且小于最大值和最小值的中间值,则启动风扇以一档的速度转动;当温度大于最大值和最小值的中间值且小于最大值,则启动风扇以二档的速度转动;当温度大于设置最大值,则启动风扇以三档的速度转动
2、通过MX1508结合PWM调节风扇转速
3、通过人体红外检测是否有人,没人自动关闭风扇
4、通过超声波检测人离风扇的距离,如果距离小于设置最小值,则自动关闭风扇
5、通过按键设置各阈值、手动控制风速、切换模式
6、通过LCD1602显示屏显示测量值
总字数:14795
摘 要
传统风扇存在的功能单一、智能化程度低等问题,为了弥补传统风扇的缺点,基于相关技术设计一款智能调温风扇是大势所趋。
该系统采用了模块化设计思路,采用STC89C52单片机作为主控芯片对风扇进行控制,通过单片机与外围电路连接,实现温度、红外光电、距离等信号采集,并将采集到的数据发送至主控制器进行处理分析,实现了风扇自动开启与关闭等功能,并根据实际情况进行不同档次的运转。还增加手动控制功能,使其可在任意时间内随意打开或关闭风扇,同时也可根据需要对相关模块进行修改以满足不同用户需求。
测试结果表明,该风扇控制系统能够根据环境温度和人体红外信号实现风扇的自动启停和调速,具有一定的应用价值。
关键词: 风扇;数据监测;单片机;传感器;显示屏
Abstract
With the improvement of the national economy, the number of taxis is increasing, and the meter provides a basis for the regular maintenance, maintenance and scrapping of vehicles. Aiming at the problems of lack of conditions, interference factors and low reliability, this paper develops an intelligent taxi meter by using single chip microcomputer technology, and achieves intelligent pricing function under the premise of reducing cost.
This design uses STC89C52 single chip microcomputer as the main control chip to design a more intelligent taxi meter, which effectively solves the problem that night and day charges are not the same, the design has two modes, day and night, the starting price of 8 yuan during the day, more than 2.5 kilometers for 1.7 yuan/kilometer, when the customer arrives, When the driver presses pause, the fare stops, can be cleared after the customer gets off, and then restarted when the next customer gets on. At night, the starting price is 9 yuan and 1.7 yuan per kilometer after 2.5 kilometers. Through the combination of software and hardware, the design can finally solve the problem of the current taxi charging, and the taxi driver can view the current time, speed, total kilometers, unit price, total amount through the display screen, and the design stability is also strong, the cost of equipment is low, and the reliability is also strong.
Keywords Taxi, meter, MCU, night mode, day mode
目 录
摘 要
Abstract
第一章 设计概述
第二章 系统设计方案
第三章 硬件设计
第四章 系统程序设计
第五章 仿真测试
第六章 实物测试
总结
参考文献
附录