Research on Remote Electrical Parameter Measurement Technology Based on ARM and Ethernet

Publisher:知识智慧Latest update time:2014-09-12 Source: ednchinaKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
In view of the inconvenience of electricity consumption and fee management in various places, this paper studies the remote electrical parameter measurement technology based on ARM and Ethernet. This technology is mainly used for the collection and storage of electrical parameters. The main controller uses the 32-bit ARM microprocessor STM32F103V, and the interface hardware design cooperates with the host computer to display the electrical parameters. The host computer uses LabVIEW's DataSocket technology to realize the display function. Through the combination of the upper and lower computers, the measurement of electric energy is completed, which facilitates fee management.

As people's electricity management methods are gradually improving towards being more intelligent, efficient and networked. In this paper, the high-performance Ethernet control chip W5100 is used in combination with network technology, and the dedicated power metering chip CS5460A is used to study the remote transmission of electrical parameters. By embedding W5100 into Ethernet, remote data transmission can be achieved, and the current, voltage and power values ​​collected by CS5460A can be effectively transmitted to the PC, thus completing the power metering and charging management well.

1 System overall design

The design uses Cirrus Logic's dedicated energy metering chip CS5460A, WIZnet's Ethernet controller W5100, ST's STM32F103V as CPU, LCD display, network transformer 911105A, RJ45 interface, etc. The system block diagram is shown in Figure 1.

Figure 1 System Block Diagram
Figure 1 System Block Diagram

2 System Hardware Design

2.1 W5100 and CS5460A

W5100 is a multifunctional single-chip network interface chip with an integrated 10/100 Ethernet controller. It is mainly used in highly integrated, highly stable, low-cost embedded systems, and can achieve Internet connection without an operating system. W5100 integrates a full hardware TCP/IP protocol stack that has been verified by many years of practice, and also integrates 16 kB of memory for data transmission.

CS5460A is a highly integrated △∑ analog-to-digital converter (ADC) that includes two △∑ analog-to-digital converters (ADC), power calculation function, energy to frequency converter, high-speed energy calculation function and a serial interface. It can accurately measure instantaneous voltage, current and calculate active energy, reactive power, instantaneous power, IRMS, VRMS, and is used to develop single-phase, 2-wire and 3-wire meters . To facilitate signal transmission with external controllers, CS5460A integrates a simple three-wire pass-through interface, which is compatible with SPITM.

2.2 Front-end conditioning circuit design

The conditioning circuit composed of a mutual inductor and a precision resistor network is used to convert the voltage and current into small voltage and current signals that the chip can accept. This solution is simple in design and high in precision. It also isolates the chip from the power grid, ensuring the safety of the chip. The hardware circuit is shown in Figure 2.

Figure 2 Front-end conditioning circuit
Figure 2 Front-end conditioning circuit

2.3 Data measurement and collection

2.3.1 Current and voltage measurement

The CS5460A can measure voltage using a voltage transformer or a relatively large voltage-dividing resistor, and measure current using a relatively low-cost current transformer or shunt.

CS5460A has a power calculation engine and a dual-channel ADC for energy-to-pulse conversion. The voltage channel input pin VIN± has a voltage signal wave input at both ends, which is amplified by a 10-fold gain amplifier and then digitized by 2nd△∑ modulation. At the same time, a voltage signal wave is input at both ends of the current channel input pin IIN±. To adapt to different levels of input voltage, the current channel integrates a gain programmable amplifier (PGA) so that the input level range can be selected as ±250 m VRMS or ±50 m VRMS. It is digitized by a 4th△∑ modulator. The sampling rate of the two modulators is MCLK/8.

Both channels offer a selectable high pass filter added to the signal path to remove DC content from the current and voltage signals prior to VRMS/IRMS active power.

The digital filter input word is based on DC offset adjustment and gain calibration. The instantaneous voltage and current measured after calibration are valid. The RMS value is calculated using the most recent N grid instantaneous voltage/current sampling values, which can be read from the IRMS and VRMS registers.

2.3.2 Power Measurement

From the basic definition of electric power, we know that electric power is equal to the product of voltage and current.

P=I×U (2)

In the formula, P is electric power; I is current; U is voltage.

At present, there are two methods for measuring electric power: pointer-type power meter measurement method and analog multiplier measurement method.

Pointer measurement method is simple to measure, has low frequency response, low accuracy, and the price of power meter with low power factor is high. Analog multiplier measurement method: It uses a dedicated integrated chip for measurement, which has high accuracy but the price of the whole meter is high. From the definition of electric power, we can know that the power consumed by the circuit represented by analog quantity is

In the formula, u and i are instantaneous values ​​respectively; T is the accumulation time. In order for the voltage and current signals to be received by the STM32 system, they must be sampled. The expression of electric power expressed as a discrete quantity is:

Among them, △t is the sampling interval; N is the total number of sampling times; uk and ik are the sampling values ​​of a certain instantaneous voltage and current. The sampled value must be quantized, that is, converted into a digital signal before it can be received by the computer. The process of sampling and quantization is the process of A/D conversion.

In addition, the instantaneous voltage/current sampling data is multiplied to obtain the instantaneous power. The N instantaneous powers are averaged to calculate the active power value to drive the electric energy pulse output. [page]

inspecting power

S=VRMS×IRMS (5)

After measuring and calculating the data, the obtained IRMS, VRMS, instantaneous values ​​of current, voltage or electric energy are written into different data registers respectively, waiting to be read by the main controller STM32.

3. Software Design of Communication Interface

The software design of the host computer is written using LabVIEW's DataSocket technology. DataSocket can easily realize data exchange between test interrupts and field instruments, while meeting the requirements of time execution and security. The system software flow chart is shown in Figure 3.

Figure 3 System software flow chart
Figure 3 System software flow chart

3.1 The client receives data sent by the server

The client receives the data sent by the server, namely DataSocket, and the application flowchart of reading the data stored in the internal register of W5100 is shown in Figure 4.

Figure 4 Design of receiving data loop
Figure 4 Design of receiving data loop

The data is uploaded by the server W5100, read by the DataSocket Read control and then sent to the remote control panel. The data type is first described on the DataSocket Read side, or the data type is converted by the variant value data conversion node Variant ToData, and displayed on the PC. The displayed value is consistent with the collected data sent by the server, achieving the purpose of the remote monitoring test system. At the same time, a write measurement file (Write LabVIEWMeasurement File Express VI) is used to save the data for easy access and viewing. In the block diagram, the "connection in" input is the URL saved by W5100, and the value display control displays the measured electrical parameters. The flowchart of the program for displaying and saving historical data is shown in Figure 5.

Figure 5 Reading data program flowchart
Figure 5 Reading data program flowchart

3.2 The client transmits data to the server

The core of the write module is DataSocket Write.vi, which needs to specify the URL address before working. Each time the VI receives data from the previous step, it forms a data packet and sends it to the destination address. The historical data read and saved through DataSocket Read can be written to the server through DataSocket Write, and the server reads the remote control signal from the server through DataSocket Read, and then implements different control functions according to the control signal function, displays and saves it. The program flowchart is shown in Figure 6.

Figure 6 Design of the data transmission loop
Figure 6 Design of the data transmission loop

4 Implementation process and design results

The specific implementation process is as follows: the front-end circuit conditioning module converts the input large voltage signal into a small voltage signal that CS5460A can accept, and inputs it in the form of differential mode voltage or current. CS5460A transmits the instantaneous voltage, instantaneous current and instantaneous power input by the sampling circuit to the main controller STM32F103 through the SPI serial port. The voltage or current signal is input through the rich peripheral interface of STM32F103 or through the external DataBus, and then the STM32 processor is used to pre-process the transmitted current or voltage data, and then the data is passed to the W5100 chip through the SPI interface to complete the network protocol processing, and finally the signal is transmitted to the PC through the network connection port, thereby realizing remote human-computer interaction.

5 Conclusion

The main controller is the microprocessor STM32F103VET6 based on ARM Cortex-M3. The power measurement chip CS5460A is used to accurately measure the power. The Ethernet technology is used to monitor the power, thus realizing the remote transmission of electrical parameters. Remote electrical parameter measurement technology is one of the development directions in the field of measurement and control. The emergence of various new technologies, new devices, new theories and the rapid development of computer networks will promote the development and application of remote electrical parameter measurement technology.

Keywords:ARM Reference address:Research on Remote Electrical Parameter Measurement Technology Based on ARM and Ethernet

Previous article:Design of home security alarm system based on wireless sensor network
Next article:Design and Simulation Analysis of ARM Parallel Bus Based on FPGA

Recommended ReadingLatest update time:2024-11-16 22:46

Design of campus LED bulletin board system based on ARM
  In recent years, LED  electronic display screens have attracted increasing attention as a high-tech product. They can display text, graphics and image information in real time or in a loop. They have many advantages, such as rich display modes, strong viewing, convenient display content modification, high brightne
[Power Management]
Design of campus LED bulletin board system based on ARM
Alibaba Cloud IoT completes in-depth integration of Arm architecture intelligent vision platform, significantly shortening the development cycle
Recently, Alibaba Cloud IoT has launched in-depth cooperation with Arm in the field of intelligent vision: Alibaba Cloud IoT Link Visual cloud-core integrated intelligent vision solution is deeply integrated with the Arm architecture edge intelligence platform of the Arm Project Cassini ecological project, significant
[Internet of Things]
ARM Learning Notes---Interrupts
Interrupt priority from high to low 51 single-chip microcomputer: INT0 (P3.2), TIMER0, INT1 (P3.3), TIMER1, serial port interrupt (P3.0, P3.1) 52 single chip microcomputer:TIMER2 External interrupt falling edge trigger Internal timer: TMOD register (M1M0) M1 M0 method 0 0 0 13 bits 0 1 1 16 bits 1 0 2 8 auto 1 1 3 Two
[Microcontroller]
ARM Learning Notes---Interrupts
How to coexist Keil C51 and ARM
Many friends are wondering how to make Keil C51 and ARM coexist. Friends with installation experience know that if you install ARM after installing C51, C51 will not work properly; if you install C51 after installing ARM, ARM will not work properly. There are some solutions on the Internet, but they are not very good,
[Microcontroller]
Design of Embedded Static Measurement System Based on ARM920T
This paper introduces a CAN bus distributed measurement and control system based on the single-chip microcomputer AT89C52. It mainly describes the overall design of the system, as well as the software and hardware design of the control module and the acquisition module. The focus is on the design of the CAN bus i
[Microcontroller]
Arm mini2440 video remote monitoring based on v4l2 ffmpeg x264
The mini2440-based camera surveillance that is popular on the Internet is generally based on MJPEG-Streamer. This method uses the underlying driver of V4L2, and then cooperates with the streaming transmission of the mjpeg format, and then browses the video and controls it through the browser. The following is a so
[Microcontroller]
Use McBSP of DM6437 to configure SPI to communicate with ARM_S2440
McBSP is a multi-channel buffered serial port. DM6437 provides two serial ports, McBSP0 & McBSP1. Each serial port has 7 pins and can support multi-channel serial data communication. Internal block diagram of MCBSP:   These two ports also support clock stop mode. The internal FSR and FSX, CLKX and CLKR are connect
[Microcontroller]
Zhu's ARM bare metal learning notes (II): S5PV210 memory map
S5PV210 Introduction S5PV210 is a microprocessor based on ARM Crotex-A8 architecture 32-bit CPU.  It has 32 address lines and 32-bit data lines. The 32 address lines determine that the CPU address space is 4G at most. How to allocate this 4G memory space is called memory mapping. S5PV210 Memory Map The S5PV210 datash
[Microcontroller]
Zhu's ARM bare metal learning notes (II): S5PV210 memory map
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号