| Lighting is an indispensable requirement for human.With the improvement of living situation,the demand of lighting is also increasing.In addition to the provision of brightness,lighting also should consider the following demands: energy saving,control,scene effects,non-visual effects and other requirements.The lighting system mainly includes two parts: light source and control system.LED light source,because of its many advantages,has become a new generation of light source and has been faced with wide range of applications and market prospect.The integration of automatic control technology,wireless sensor network technology,Internet technology and lighting technology makes intelligent lighting possible.Therefore,the research about the LED intelligent lighting is going on in the world.This thesis research and design an intelligent LED lighting systems with wireless sensor network technology.Firstly,this thesis analyzes the functional requirements of LED intelligent lighting system,and puts forward the overall framework of the system.The system mainly includes wireless module,gateway module,management system and database server.Then,hardware and software of wireless module and gateway module in the system are researched and designed.The ZigBee protocol is selected as a wireless communication protocol.TI’s CC2530 modules are used,which are fully compatible with the Z-Stack protocol stack,to build a wireless network and connect LED drivers for LED dimming.The system uses Arduino development board as the gateway module in which ATmega328 chip is the main chip to perform data reception and forwarding tasks,ENC28J60 chip is the conversion chip to achieve the conversion between serial data and Ethernet data.Environmental data are collected by using color sensors,temperature and humidity sensors,illuminance sensors and human infrared sensors.RGB three-color LEDs are selected as a light source,the terminal node controls LED driver to dim LED color and color temperature by the outputing PWM signal.The system designs the task flow of each module and the interface communication between modules according to the three aspects of data acquisition,data transmission and data processing.The software design of the ZigBee wireless module using the OSAL operating system in the Z-Stack protocol stack for event polling,defines the data frame format and event priority between the coordinator and the terminal,and programs event processing functions,packet resolution functions,and sensor acquisition function.Gateway module software design using Arduino development board rich library,calls the library related API functions to achieve serial Ethernet data conversion and equipment networking.Finally,the network establishment process and the data transmission process are analyzed by means of protocol analysis software and serial assistant.The LED dimming function of the system is verified.In summary,this thesis builds the LED intelligent lighting system through Arduino gateway and ZigBee network,and realizes the LED basic dimming function.The work has a certain reference value for design and application of LED intelligent system. |