1、 第 1 页 共 42 页 摘 要 在人们的日常生活中, 电风扇非常受到人们的喜爱。 相对于空调, 电风扇不仅价格便宜, 使用方便安全,而且耗电量小。然而,人们在熟睡时,外界随着温度变化而降低,这时候人 们会容易感冒,尤其是中老年人和小孩更加容易生病。但随着社会的发展,使用智能控制风 扇渐渐起来。本文就采用 ZigBee 无线温控风扇的转速,主要是用两块 ZigBee 核心板,分别 当做发送模块和接收模块, 发送模块接上 DS18b20 温度传感器和电源, 接收模块主要外接电 机,温度传感器采集外界温度,对发送模块上的程序解析编译后通过天线传输给接收模块, 最后对其的程序进行解析编译,通过电机
2、驱动控制风扇,在此,可以设定上下限,让风扇的 转速随外界温度变化而改变。这样的话,不仅更加的节能,而且有利于人们的健康。 关键词: Zigbee 智能风扇 DS18b20 第 2 页 共 42 页 Abstract In Peoples Daily lives, the electric fan is very popular with people. Relative to the air conditioning, electric fan is not only cheap, easy to use security, and power consumption is small. Pe
3、ople, however, when sleeping, the outside world as the temperature changes, and the people will be easy to catch a cold, Especially middle-aged and old people and children are more likely to get sick.But with the development of the society, the use of intelligent control fan up gradually. In this pa
4、per, using ZigBee wireless temperature control fan speed, Mainly is to use two pieces of ZigBee core board, respectively, as sending and receiving module, Sending module DS18b20 temperature sensor and the power is connected, receiving module is mainly external motor, temperature sensor to collect th
5、e outside temperature, the transmission module programs on parsing the compiled by antenna transmit to the receiving module, and finally the compiled program parsing, driven by motor control fan, the lower limit can be set up, let the speed of the fan varies with temperature change and change. In th
6、is way, more energy saving not only, and is conducive to peoples health. Keywords: Zigbee intelligent fan DS18b20 第 3 页 共 42 页 目录 1 绪论 . 5 1.1智能风扇的发展背景 5 1.1.1 智能风扇现阶段的应用 5 1.1.2 智能风扇的发展趋势. 5 1.1.3 智能风扇的设计内容 5 2 系统总体设计 7 2.1 基于单片机温控风扇和 ZigBee 温控风扇的两种方案的比较 7 2.2 系统总体框架 7 2.3 ZigBee 的简介. 8 2.3.1 ZigBee 的介绍 8 2.3.2 ZigBee 的应用 8 2.3.3 ZigBee 的主要特性 8 2.3.4 ZigBee 的协议架构 8 2.4 cc2530 片上系统简介 . 9 2.4.1 cc2530 系统的介绍 9 2.4.2 cc2530 的功能 . 9 2.4.3 cc2530 模块及外设说明 10 2.5 DS18b20 温度传感器 10 2.5.1 DS18b20 温度