Currently on the market has a variety of intelligent household lighting solutions, including using ZigBee technology to network with MCU control solution because of its low cost, low power consumption and easy to realize the advantages of widely used. This paper proposes a using ZigBee technology to set up a wireless network with MCU ARM9 core, using TCP/IP protocol to communicate, can family centered to control each LED lamp, brightness control and scene conversion of intelligent control system.
1 ZigBee wireless network ZigBee is a new kind of short distance, low rate of wireless network technology, it is a kind of technology between wireless markup technology and bluetooth technology, mainly used for close range wireless connection, has its own wireless standard, in thousands of tiny coordinate each other to realize communication between sensors. These sensors only need very little energy to relay the way the data by radio waves from a sensor to another sensor, therefore the communication efficiency is very high ( 1 - 2] 。
ZigBee network is realized by using ad-hoc network mode, the architecture is called wireless infrastructure wireless local area network (LAN), and internal unrestricted number of devices to the network, and set up a wireless communication link may at any time. Coordinator has been in a state of *, the newly added RFD could be found in time [ 3] 。
2 system planning the overall network structure of tree cluster type, namely to 1 unit of each room, the room of each lamp as a terminal device, each room to set a router to communicate with the coordinator and data transmitted to each terminal equipment in the rooms [ 4] 。 The overall structure layout and network mode is shown in figure 1.
in aspects of function, because of the different rooms with different functions, so for every room of the functions of terminal equipment to set up respectively. Overall, the requirements in the room all the terminal equipment to switch control and the LED brightness control. Adjusted for convenience and fast, on the remote control panel also joined the scene and brightness Settings, including the degree of brightness set to dark, bright degree and super bright degree. Scene mode can set a variety of colors. Can also have the following functions:
( 1) Smart move light: turn on the light, the light brightness by dark lights gradually; Turn off the light when the light intensity gradually by the dark. Help protect eyesight and prolong lamp life.
( 2) Delay function: when presses the button after a delay, all the lights will be closed. After a certain time
( 3) A key to achieve full open close: control of all the lights switch function.
3 working process system of the overall software flow chart is shown in figure 2. The flow chart of broadly from the function of the circuit shows that the system can realize the function of, namely send instructions by sending module, receiving module after received instructions on the decoding, to control the situation of the LED light and brightness changes.