Traditional power monitoring systems mostly use wired connections. When there are many monitoring nodes, there are problems such as difficult installation, cumbersome wiring and inconvenient maintenance. Using a wireless sensor network based on ZigBee technology to build such a power monitoring system can solve the above problems. This article introduces the working principle of ZigBee technology and the design of a real-time monitoring system.
The ZigBee protocol stack structure consists of the physical layer, MAC layer, network layer and application layer. The ZigBee standard stipulates that all ZigBee network nodes are divided into three types: Coordinator, Route, and End Device. Regardless of the topology adopted by the ZigBee network, the network will automatically select a better routing path as a data transmission channel according to the ZigBee protocol algorithm to improve communication efficiency.
1 Monitoring system design
1.1 System structure design
The block diagram of the power supply voltage monitoring system based on ZigBee wireless network is shown in Figure 1.
Figure 1 System structure frame
The terminal node collects the 0~30 V voltage data of the power supply equipment through the acquisition/protection module, and sends it to the coordinator node through the router node. At the same time, it also receives the control command of the coordinator and processes it accordingly; the main task of the router node in the system is data transfer, ensuring the correct data exchange between the coordinator node and the terminal node, and increasing the coverage of the ZigBee network; on the one hand, the coordinator node receives the power supply voltage data collected by the terminal node and sends the data to the host computer through the serial port, and on the other hand, receives the command information from the host computer and then sends it to the corresponding terminal node; the host computer manages the status information of the monitoring equipment, including system configuration, real-time status display, node control, data processing and data query, etc.
1.2 Network topology selection
ZigBee network has three topological forms: star topology, tree topology, and mesh topology. The monitoring system designed in this paper chooses mesh topology as the system topology.
2 Hardware Design of ZigBee Monitoring System
The monitoring system is mainly composed of router nodes and terminal nodes.
The hardware structure diagram of the terminal node is shown in Figure 2.
The terminal node module consists of two parts: acquisition and control. The power supply adopts DH1718G-4 DC regulated power supply. The power supply voltage 0~30 V is converted into 0~3 V voltage for CC2430 on-chip AD acquisition using 1/10 resistor divider; the protection module includes two parts: relay and buzzer circuit. The relay is used to cut off or restore the connection between the power supply and the load device, which plays the role of overvoltage protection. The buzzer sounds when the power supply is overvoltage, which acts as an alarm. Among them, a diode is added to the relay drive circuit to release the large reverse electromotive force generated by the relay coil at the moment of power failure of the relay, which plays the role of protecting the transistor.
Figure 2 Hardware structure of the terminal node
3 Software Design of ZigBee Monitoring System
3.1 Z-Stack Software Architecture and Customization
The software development platform of ZigBee wireless network node adopts IAR Embedded Workbench V7.30B for 8051 (IAR EW) integrated development environment. The software system protocol stack of ZigBee wireless module is constructed with the idea of operating system and adopts "event polling" mechanism. After each layer is initialized, the system enters low power mode. When an event occurs, wake up the system, start interrupt processing event, and continue to enter low power mode after the end. If several events occur at the same time, judge the priority and process the events one by one. The main workflow of the whole Z-Stack is roughly divided into: system startup, driver initialization, OSAL initialization and startup, and enter event polling stage.
3.2 Software Design of Coordinator Node
The role of the coordinator in the system is to establish and manage the ZigBee network, automatically allow other nodes to join the network, collect voltage data from the terminal nodes, and send the data to the host computer through the serial port. At the same time, it receives control commands from the host computer and sends the commands to the terminal nodes to control them to take corresponding processing measures. The program flow of the coordinator to establish a network and process node requests is shown in Figure 3.
Figure 3 Coordinator network establishment process
3.3 Router Node Software Design
The role of router nodes in the system is routing and data forwarding. ZigBee devices have two types of addresses. One is the 64-bit IEEE address (also called MAC address or extended address); the other is the 16-bit network address (also called logical address or short address).
ZigBee uses a distributed addressing scheme to allocate network addresses. This scheme ensures that all allocated network addresses are unique in the entire network. The procedure flow of the router establishing a network is shown in Figure 4.
Figure 4 Router network establishment process
3.4 Terminal Node Software Design
The role of the terminal node in the system is to collect power supply voltage data and send the voltage data to the coordinator by establishing a "binding" with the coordinator. At the same time, it receives control commands from the coordinator to control the relays and buzzers in the acquisition/protection module to perform corresponding operations. After the terminal node is started as a terminal and joins the network, it begins to establish a binding with the coordinator. Once a binding is created, the terminal node can send data without knowing the clear destination address. The complete program flow of establishing a binding with the coordinator and transmitting voltage data is shown in Figure 5.
Figure 5 Binding establishment and voltage data transmission process
4. Software Design of Host Computer
4.1 Overall interface design
The host computer software of this system uses the LabWindows/CVI software launched by NI for the measurement and control field as the development platform.
Its main functions include: receiving the voltage data of the monitored power supply from the ZigBee wireless network through the serial port, and displaying the data in real time in the form of text and waveform; setting voltage warning values and control methods, etc., to achieve automatic or manual control of the power supply voltage wireless monitoring system; and storing the voltage and alarm information in the database by connecting to the background database, which is convenient for querying the alarm records on the host computer interface and managing the monitoring data information in the future [8].
The overall design of the interface is shown in Figure 6.
Figure 6 Overall effect of the host computer interface
4.2 Design of interface database functions
This system adds database function to the host computer software. Here, Microsoft Access database is used as the background database to record and manage the monitoring data. LabWindows/CVI provides a database toolkit LabWindows/CVI SQL Toolkit. The toolkit contains a set of advanced functions for completing general database tasks.
5 System operation test
After connecting each module and placing them 10 m apart, first turn on the power supply equipment, then the terminal node starts to collect power supply voltage data and sends the data to the host computer software via the ZigBee network every 1 s. When the voltage is lower than 10 V, the interface is shown in Figure 7.
At this point, the monitoring data has been stored in the background database in real time. When you need to query previously saved alarm records, click the "Database Record Query" tab on the interface, enter the date you want to query the data below, and click OK. The query results will be displayed in a table.
Figure 7 Interface display when voltage is in safe state
6 Conclusion
This paper presents a software and hardware design of ZigBee wireless sensor network for power monitoring system, which solves many problems of wired network such as wiring, maintenance and scalability. The system uses ZigBee wireless module with CC2430 chip as the core as the node, which has the advantages of simple protocol, low cost, low power consumption and easy networking.
The test proves that the system can well complete the tasks of power supply data collection, transmission, processing and recording, and complete the power failure protection work, and has high application value.
Previous article:A theoretical review of intrinsically safe power supply circuits 2012-04-18 IPM for high-power industrial applications - up to 3600 A
Next article:Buffered Flyback Converter
Recommended ReadingLatest update time:2024-11-16 21:44
- Popular Resources
- Popular amplifiers
- Virtualization Technology Practice Guide - High-efficiency and low-cost solutions for small and medium-sized enterprises (Wang Chunhai)
- FOUNDRY PROCESS QUALIFICATION GUIDELINES – TECHNOLOGY QUALIFICATION VEHICLE TESTING JEP001-3B
- A review of deep learning applications in traffic safety analysis
- Real-time driver monitoring system via modal and viewpoint analysis
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Award-winning live broadcast: Beneng International launches millimeter-wave radar module based on Infineon technology, perfectly solving the pain points of PIR market
- [RISC-V MCU CH32V103 Evaluation] 3. USB HID routine operation
- 01_Basic principles of static timing analysis and timing analysis model
- Coding Standards - IAR Settings
- 12V700MA power supply solution
- Award-winning live broadcast: ON Semiconductor's advanced packaging and drive technology helps silicon carbide energy applications. Registration is now open~
- MSP430 MCU Example 15 - Watchdog Timer Timing Application
- [IoT development based on Raspberry Pi educational kit] openCV environment construction and testing
- Is there any AHD to USB automatic resolution recognition?
- DSP generates bin file method