文档介绍:题目名称:智能电风扇的设计
摘要: 本设计以MSP430F149单片机为核心控制模块,采用HS0038光电传感器和DS18B20温度传感器来测量电风扇的转速和检测时刻环境温度,通过主从单片机之间的串行通信来完成电风扇转速数据处理、模式控制和转速控制等,采用PWM脉冲调制技术来控制风扇的转速,用键盘和HB12864液晶显示来实现人机交互,用红外发射和接受装置来完成遥感控制功能。该系统有电风扇的无级调速,并可以对电风扇的转速进行设置和转速的实时测试与显示、具有睡眠风、自然风等多种工作模式可以选择、能显示日期、时间、温度、风扇转速、运行模式等等信息和实现定时自动开、关机等功能,系统结构简单,步进小、精度高等优点。
关键词: 单片机红外遥控智能控制风扇
Abstract: This design to MSP430F149 microcontroller as the core control module, the HS0038 photoelectric sensor and DS18B20 temperature sensor to measure the speed of the electric fan and testing time, through the master-slave SCM environment temperature of munication between plete the electric fan speed data processing, pattern control and speed control and so on, USES the PWM pulse modulation technology to control the speed of the fans, use the keyboard and HB12864 liquid crystal display to realize human-machine interaction, with infrared emission and accept device plete remote sensing control function. The system has the fan stepless speed regulation, and to the electric fan speed setting and speed of the real-time testing and display, with the wind, such as natural sleep DuoZhong work models to choose, can show the date, time, temperature, fan speed, the mode of operation and so on information and realize the automatic shutdown open, such as timing function, system structure is simple, step into small, high precision of advantages.
Keyword: temperature sensor;infrared remote control;intelligent control;fan
目录
1方案设计与论证 3
整体方案比较和选择 3
电源方案比较选择 3
2 系统设计 5
总体设计; 5
各单元模块功能介绍及电路设计; 5
遥控发射和接收电路模块 5
电风扇驱动隔离电路 6
键盘模块 7
定时电路 8
温度探测电路 8
电源模块 8
特殊器件的介绍; 9
单片机STC12C5A60S2 9
时钟芯片DS12C887 10
红外接收管HS0038 10
通用光电耦合器PC817 11
3 软件设计 11
设计思路 11
扫描键盘模块 11
红外接收模块 11
软件流程图 11
4 系统测试 12
测试方法 12
测试结果 12
结果分析 12
5 结论 13
参考文献 13
附录: 14
附1:主要元器件明细表: 14
附2:仪器设备清单 14
附3:电路图图纸 14
附4:程序清单 16
1方案设计与论证
整体方案比较和选择
根据