Analysis of ZigBee Technology Intelligent Control of Urban LED Street Light System

Publisher:sokakuLatest update time:2014-08-22 Source: 互联网Keywords:ZigBee Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  1. Introduction

  Road lighting is an important part of urban public facilities. At present, most of the domestic road lighting systems do not adopt network monitoring and management, and can only perform simple switch control of lighting equipment in units of regions. The switch control of most urban street lights is still decentralized by traditional transformers (distribution boxes), which cannot effectively monitor street lights and lack flexible and changeable operating systems. Therefore, there are a series of problems: such as complex systems and difficult unified management; wide coverage of street lights and difficult maintenance; low switch control efficiency and serious waste of electricity. In view of the current lack of control and management level of urban street lighting, the author designed a street light wireless monitoring system that can realize intelligent control of urban street lights and effectively save electricity. This system is mainly divided into three layers, namely, the street light management center with human-computer interaction interface function, the street light monitoring substation that gathers street light node information and sends street light control commands, and the street light control terminal that collects street light node information. The technical means of combining GPRS communication and ZigBee wireless communication are adopted to replace the traditional wired transmission. Among them, the communication between the street light management center and the street light monitoring substation adopts GPRS technology, which has the characteristics of wide coverage, high transmission rate, and can realize remote operation; the communication between the street light monitoring substation and the street light control terminal and between the street light control terminals adopts ZigBee technology.

  2. System structure of street light monitoring network

  This design adopts a solution combining GPRS technology and ZigBee technology, combining the advantages of both, saving costs and reducing the complexity of the system. The system adopts a three-layer model structure of "street light management center-street light monitoring substation-street light control terminal" to realize remote control operation of street lights. Among them, the communication between the street light management center and the street light monitoring substation adopts GPRS technology, and the communication between the street light monitoring substation and the street light control terminal and the street light control terminal adopts ZigBee technology. The object of the system operation is tens of thousands of street lights on urban roads. Through the management system, it is responsible for monitoring the various operating conditions of street lights, such as monitoring whether the voltage, current, power and other indicators of the current street light node meet the specifications, and can realize simple control of street light switches. The structure diagram of the entire street light monitoring system is shown in Figure 1.

  Figure 1 System structure diagram

  ZigBee network topology can be divided into three categories: mesh structure, star structure and tree structure. After analyzing the topology of ZigBee network, considering that the street lamp monitoring covers a wide range and the natural environment is easily affected by weather, obstacles and electromagnetic radiation, it is inevitable that terminal nodes will fail. Therefore, star network and tree network are not suitable for use. Therefore, this system adopts mesh ZigBee network, which has a large communication range and can realize the function of route discovery. When the network fails, it can automatically repair and heal, thereby greatly improving the stability and reliability of the entire monitoring system, and using routing function transmission. The network structure is shown in Figure 2.

  Figure 2: ZIGBEE network diagram

  In a street light wireless monitoring system, there are multiple ZigBee networks, and the street lights in the vicinity of a street form a ZigBee network. Since street lights are evenly distributed on both sides of the road, and the distance between each two lights is generally 25~30m. Therefore, this system must first select a suitable location to place the ZigBee network coordinator. In the ZigBee network, the ZigBee network coordinator is responsible for establishing the network. Usually, the ZigBee network coordinator is used to realize the function of the street light monitoring substation and is responsible for maintaining the operating status of the street light nodes on the street. After the routing node joins the network, it plays the role of the control terminal in the street light monitoring system. In actual applications, in order to facilitate management, each street light control terminal can only join one ZigBee network to realize single light control. When all router nodes have successfully joined the network, the coordinator assigns network addresses to the routing nodes according to the mesh network topology.

  3. System hardware design

  3.1 ZigBee Coordinator Module Design

  The ZigBee coordinator is mainly composed of a GPRS communication unit, a microprocessor, a communication unit and a power module. The coordinator is responsible for establishing a ZigBee network and realizing the sending and receiving of information. It needs to continuously collect various instructions sent by the monitoring center and send them to the control terminal, and at the same time feed back the terminal and line information to the monitoring center. The module structure diagram is shown in Figure 3. The processor uses an ARM7-based microprocessor module, transmits data through the serial port TTL level and the GPRS communication module, connects the communication module through the SPI serial port, and the power module converts 220V AC to 5V to power the processor, GPRS communication module and communication module. The communication module uses TI's ZigBee RF chip cc2530, and its main technical indicators include: the working frequency band is 2.4GHz; the number of channels is 16; the transmission power is 4.5dBm; and the receiving sensitivity is -97dBm.

  Figure 3 ZigBee coordinator module

  3.2  LED Street Light Control Module

  In the street light control terminal, its hardware components mainly include MCU microcontroller unit, voltage and current information monitoring unit, RF module unit, LED street light drive control unit and power module. Its hardware structure is shown in Figure 4. As the CPU of the street light control terminal equipment, it is necessary to complete the communication with the RF module, the processing and storage of data packet transmission and reception, etc. In addition to requiring the MCU microcontroller to have sufficient storage space, it must also have strong data processing capabilities. This article uses the 32-bit series microcontroller with ARM Cortex-M3 core produced by STMicroelectronics, model STM32F103RBT6, which adopts LQFP (light and thin square flat) package structure, has 64 pins, and the appearance size is only 10mmX10mm. The price is between 10 yuan and 20 yuan. The power supply voltage is 2-3.6V, generally 3.3V power supply, with 2 12-bit analog-to-digital converters, and supports 7-channel DMA controller. The module pin diagram is shown in Figure 5.

  Figure 4 Hardware structure of LED street light control module

  Figure 5 STM32F103RBT6 module pin diagram

  In Figure 5, the MCU has three serial ports, namely UART1, UART2 and UART3, which are used to realize communication with other modules. Pins 42 and 43 are used as the sending and receiving pins of the DART 1 serial port, connected to the GPRS module, so as to realize the communication between the CPU and the GPRS module. This connection method is mainly for monitoring substation equipment, while the street light control terminal equipment is not connected to the GPRS module. Pins 16 and 17 are used as the sending and receiving pins of the UART2 serial port, connected to the RF module, so as to realize the communication between the CPU and the RF module. Pins 29 and 30 are used as the receiving and sending pins of the UART3 serial port, mainly to realize RS485 communication, connected to the LED control board, so as to realize the CPU driving the LED control board. Pin 14 of the MCU is used as the RS485 enable signal, connected to the 485 conversion chip, and according to the received 485 communication protocol, the LED drive control board is processed as a transceiver conversion device. Pin 15 of the MCU outputs a PWM signal to adjust the current size, so as to realize the brightness adjustment of the LED street light. Pins 21 and 22 of the MCU are connected to the security door interface of the detection unit to realize the anti-theft alarm function.

  4. Software Design

  4.1 Overall design of system software

  This article uses MDK as the compilation environment for embedded system development, which supports the Cortex-M3 core processor of ARM7 architecture, automatically configures the startup code, integrates the Flash burning module, and has powerful simulation device simulation and performance analysis functions. The software layer of the wireless sensor network of this system is divided into three levels: hardware abstraction layer, system service layer and application layer.

  Among them, the hardware abstraction layer transplanted the COS-Ⅱ embedded real-time operating system, shielded the hardware details for the upper layer, and provided drivers for hardware units such as power modules, MCU microprocessor modules and radio frequency communication modules. The system service layer mainly implements the task scheduling function of the operating system. By modifying the OS_CPU_A.S file, the CPU on/off interrupt and task switching are implemented in assembly language, and the transmission communication protocol is supported to complete the implementation of the routing algorithm. The application layer mainly implements the design function of the host computer software according to the user's definition.

  According to the different transmission directions of data streams, this paper divides data transmission into reporting and sending. Reporting means that the street light control terminal sends data to the street light monitoring substation through the radio frequency module, and finally the street light monitoring substation transmits it to the street light management center through GPRS; the so-called sending means that the command issued by the street light management center is transmitted to the street light monitoring substation through GPRS, and then the street light monitoring substation sends it to the street light control terminal that needs to execute the operation command.

  As shown in Figure 6, the main program flow chart of the system. Once the node is powered on, the initialization operation is first completed, mainly including the initialization configuration of the general I/O port, serial port, timer and radio frequency module of the MCU control module. Then the operating system is initialized. After the operating system is executed, the system enters an infinite loop state. During initialization, in order to reduce the power loss of the node, each node enters a dormant state. When an interrupt occurs, the task to be executed is triggered. At this time, the CPU will allocate resources for the task and execute the corresponding communication service subroutine. For example, the coordinator receives a command sent from the street light management center, which means that the coordinator has received an interrupt request. The node is started from the dormant state, executes the communication service subroutine, and receives the data packet sent from the management center. After receiving the data, the data must be verified. If the verification fails, the frame is discarded; otherwise, it is necessary to continue to determine whether it is a data packet sent to itself. If not, the coordinator needs to forward the data packet. Then the coordinator node will change from the receiving state to the sending state. After the transmission is successful, an interrupt request will be generated and it will enter the dormant state again, waiting for the next node state to be started.

  Figure 6 System main program flow chart

  4.2 Street light monitoring substation processing information flow

  The streetlight monitoring substation not only needs to establish a GPRS network with the streetlight management center, but also needs to establish a ZigBee network with the streetlight control terminal. The streetlight monitoring substation node is equipped with both a GPRS communication module and a radio frequency module. After the MCU of the device is initialized, the GPRS module is initialized through the serial port, and the GPRS network is connected according to the GPRS protocol, and then the main program loop task is entered. First, the ZigBee network communication channel is scanned. When the ZigBee network communication link is successful, data transmission is performed according to the network protocol. Figure 7 shows the main program flow chart of the streetlight monitoring substation.

  Figure 7 Monitoring substation main program flow chart

  In Figure 7, after the monitoring substation is initialized, it enters the loop task of the system main program. The main function of the task loop is to monitor whether there is data reporting and sending on the MCU serial port. When the serial port UART 1 receives the monitoring command from the street light management center, the monitoring substation converts the protocol and routes it to the destination node through the RF module. The destination node executes the operation when receiving the monitoring command. When the serial port UART2 receives the node status information reported from the street light control terminal, the monitoring substation converts the protocol and sends the data to the street light management center through the GPRS network, sends the monitoring command, completes the on/off operation of the street light node, sets the brightness value, and sets the time for reporting voltage and current information. Reporting node status information can complete the overvoltage, overcurrent, undervoltage, undercurrent and anti-theft alarm operations of the street light node.

  5. Main functions and components of the street light management center

  The streetlight management center is responsible for supervising the operation status of streetlights, controlling the operation of streetlight nodes, and communicating with the streetlight monitoring substations on each street through GPRS. The monitoring substations are responsible for collecting and summarizing streetlight node information and transmitting it to the display interface of the streetlight management center. Through the display interface, control operations on each streetlight node can be performed and streetlight node operation status information can be obtained in a timely manner. If an alarm message appears, the geographical location of the fault will be immediately notified to the staff through the web page and sound prompts of the display interface so that timely response and processing can be made.

  The main functions of the street light management center include:

  (1) Realize individual control of each street light node

  Users can turn on/off any street light on the main interface of the street light management center. The on/off status will be displayed on the corresponding street light node in the system interface, and the brightness value of the street light can be adjusted according to the PWM wave output by the MCU pin, which can achieve a brightness value change from 0-100%.

  (2) Street light node status information display

  If the foreground street light nodes are in operation, the node's voltage, current, power and other information will be displayed on the main interface, and the operating status information of any street light node in any time period can be queried, and a curve chart can be drawn based on this. According to the curve chart, a scientific assessment of the stability of the node operation can be made better.

  (3) Fault and anti-theft alarm function

  If at a certain moment, the sensor module detects fault alarms such as overvoltage, overcurrent, etc. at the front desk, and anti-theft alarms such as cable cutting and control panel theft, the main interface will immediately send an alarm message to the staff of the street light management center. After the alarm occurs, a new "map" interface will pop up on the main interface, showing the geographical location of the alarm node so that the staff can handle it conveniently.

  6. Summary

  Aiming at the shortcomings of the existing street light system in the city, this paper proposes a wireless street light monitoring system solution combining GPRS+ZigBee communication technology. This system realizes the digital information management of street lights, can remotely control the on/off of street lights, and monitor the status information of street lights in real time, reflecting modern control technology and intelligent management. Compared with the traditional street light control system, it can effectively eliminate the "all night lights" and "late night lights" phenomena, thereby greatly reducing energy costs and obtaining huge economic benefits. At the same time, through real-time monitoring and management of all street lights, it can greatly reduce the investment of manpower, material resources and financial resources in the later stage, and greatly improve work efficiency.

Keywords:ZigBee Reference address:Analysis of ZigBee Technology Intelligent Control of Urban LED Street Light System

Previous article:What are the categories of lighting design?
Next article:Analysis of the full polarization design technology of LED tunnel light lens

Recommended ReadingLatest update time:2024-11-16 17:48

Smart home system design plan based on zigbee and linux
  Zigbee wireless communication and Linux embedded operating system are often contacted by electronic people. Here we have designed a CMU controller based on the ARM chip S3C2440 as the hardware platform and based on the Linux embedded operating system. The CMU is connected to various home appliance wireless nodes and
[Microcontroller]
Smart home system design plan based on zigbee and linux
Zigbee device selection in the design process of a successful smart security case
Compared with Wi-Fi and Bluetooth, which are mature technologies and have more products to choose from, Zigbee technology has become the new favorite of wireless applications in recent years due to its low power consumption for data transmission, low technical cost, simple structure and large capacity. The battery li
[Security Electronics]
Zigbee device selection in the design process of a successful smart security case
Smart home wireless network system based on ZigBee technology
In smart home systems, the application of wireless network technology to home networks has become an unstoppable trend. This is not only because wireless networks can provide greater flexibility and mobility, saving the cost and effort spent on integrated wiring, but also because it conforms to the communication charac
[Microcontroller]
Smart home wireless network system based on ZigBee technology
Design of wireless sensor network positioning system based on ZigBee
  Wireless sensor networks WSNs (Wireless Sensor Networks) are widely used in environmental detection, weather forecasting, security, monitoring, distributed computing, and target area imaging. Their applications in military, medical, and civilian fields have far-reaching significance. In sensor networks, location in
[Microcontroller]
Design of wireless sensor network positioning system based on ZigBee
Research on intelligent home security monitoring system based on ZigBee
0 Introduction Smart home, also known as intelligent residence, is developing towards the direction of having functions such as wireless remote control, multimedia control, and high-speed data transmission. Its key technologies are highly compatible home controllers and home networks that meet the needs of informatio
[Microcontroller]
Research on intelligent home security monitoring system based on ZigBee
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号