基于单片机的温度智能风扇摘 要在电气高度集成化的今日,电扇被广泛应用于家庭、办公室、公共场所等地方。主要原因有:风扇跟其他电器相比如空调,它具有成本低廉、体积小巧、易操作等特点。然而人们的要求越来越苛刻,普通的风扇很难再满足大众的需求。本论文设计的是一种温度智能风扇,此风扇由四大部分组成:温度采集模块、处理器、LCD 显示模块、电机驱动模块。温度采集采纳 DS18B20,该温测器件是数字化的传输方式把信号以高低电平方式采样给处理器 AT89S52,这样给处理器提供的相当稳定的信号输送。而设计的处理中心是单片机 AT89S52,AT89S52 是市场上应用较多的单片机,它是高度集成的处理器。电机驱动模块用的是L298,该芯片是全四驱驱动,内部有 2 组电路可同时控制两个电机,体积小,价格低廉,性价比极高。当单片机接收到 DS18B20 的信号后,就做出响应给电机,电机驱动后把 PWM 脉宽值和温度值都输送到液晶屏上。最后的显示模块则是 LCD1602,这款液晶屏的优点在于几乎没有闪耀,拥有高刷新率使得使用者观察时不会出现视觉模糊。拥有这样四个模块的温度风扇从而体现出了实时检测、功能齐全、物美价廉的特点。关键词: 温度智能风扇;DS18B20;L298The intelligent temperature fan based onMicrocomputerAbstractIn the electrical integration today, fans are widely used in home, office, public places. The main reasons are: compared with other appliances such as air-conditioning fan, it has the characteristics of low cost, small volume, easy operation etc.. However, people are becoming more demanding, ordinary fans are very difficult to satisfy the needs of the masses. So this design decision to design a kind of intelligent temperature fan, the fan is composed of four parts: the temperature acquisition module, processor, LCD display driver module, motor. Temperature acquisition using DS18B20, the temperature measuring device is the transmission mode of digital signal with high level sampling to the processor AT89S52, which is provided to the processor signal is quite stable conveying. The processing center is ...