Data Acquisition Based on ARM9 Power Quality Monitor

Publisher:量子心跳Latest update time:2011-06-15 Keywords:MAX1324  ARM9 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
In order to ensure the safe, reliable and efficient operation of the power system, high-quality power supply is an important task. To this end, a portable power quality monitor is used to accurately measure the power quality parameters of the power grid. ARM9 has a high main frequency, fast speed, and easy memory expansion. It can run an embedded Linux operating system, providing convenient conditions for the design of application programs. The processor used in its development board is ARM9-S3C2410. The overall structural block diagram of the power quality monitor based on ARM9-S3C2410 is shown in Figure 1.

As shown in Figure 1, the hardware of the system includes not only the ARM9-S3C2410A core board with expanded memory, but also peripheral signal conditioning, keyboard and display circuits. The A/D and signal conditioning circuit composed of MAX1324 is an important part of the data acquisition. This article mainly introduces the hardware and related software design of this part.

1 Hardware design of data acquisition
The development board ST2410 has rich hardware resources and provides a 40-pin external expansion interface, through which peripheral circuits such as signal acquisition can be easily expanded. The specific structure of the signal conditioning circuit is shown in Figure 2.


1.1 Signal conditioning circuit
The analog signal input front-end circuit uses voltage transformer (PT) and current transformer (CT) to isolate and level-convert the sampled voltage and current. The primary transformer first converts the high voltage and high current of the power grid into the standard AC 100 V and 5 A, and the secondary transformer converts it into the -10 to +10 V level required by the A/D chip MAX1324 input, thereby obtaining all the original data of the common connection point of the power system. [page]

The function of the anti-aliasing filter is to filter out the high-frequency components in the input signal to prevent the high-frequency interference of the measured signal from aliasing with the useful low-frequency signal, which affects the measurement accuracy. The anti-aliasing filter uses a voltage-controlled voltage source second-order low-pass filter, as shown in Figure 3. Considering that this device needs to monitor 1st to 50th harmonics, the amplitude-frequency characteristic curve in the frequency range of 50 to 50×50 Hz is required to be as flat as possible.


1.2 A/D conversion
Because the voltage and current of the neutral line are used when measuring the three-phase unbalanced parameters of the power grid, although theoretically, the voltage and current values ​​of the neutral line can be calculated through the phase voltage and phase current, the measured value should be closer to physical reality. Therefore, it is best to measure the three-phase voltage, three-phase current and the voltage and current of the neutral line at the user's common connection point in the power grid at the same time, totaling 8 analog input signals. The synchronous sampling of multiple signals can effectively overcome the phase difference problem caused by channel conversion, so the A/D should use an 8-channel synchronous sampling chip. Maxim's MAX1320 and MAX1324 are both dedicated chips suitable for the above design requirements. The analog input voltage range of MAX1324 is ±10 V, which is wider than the input voltage range of the MAX1320 chip. Under the same interference and noise conditions, the relative accuracy of A/D conversion will be higher, so MAX1324 is used. It integrates 8 independent sample-and-hold devices and 8-channel multi-way switches, which can easily realize the instantaneous acquisition of 8 analog quantities, and its conversion results are output in sequence in the form of complement code.
For an ADC with a given number of conversion bits, it is certain about the level value of the discrete data bit of the signal. The 14-bit MAX125 provides 214 discrete levels of 2×10 V/214≈1.22 mV, and the relative resolution can reach ±0.025%. In the national harmonic measurement standard, the current measurement accuracy requirements for the specified distortion rate are relatively high. Considering various situations, practice has also proved that the use of a 14-bit ADC can fully meet the design requirements of harmonic measurement.
The ARM processor chip S3C2410A of the power quality monitor also has an 8-channel 10-bit A/Dc. According to the above analysis, it is difficult for a 10-bit A/D to meet the data acquisition requirements of the harmonic monitor, and the A/D does not have a synchronous sampling function. However, when measuring the frequency of the fundamental wave of the power grid, the national standard requires that the measurement accuracy of the power frequency is 50±0.01 Hz, which means that in one cycle, more than 50÷0.01=5,000 points must be collected, so the A/D conversion time is less than 20 ms/5,000=4μs. Frequency measurement does not require high amplitude accuracy, as long as the positive and negative values ​​can be judged normally. The conversion speed of the 10-bit A/D in the ARM chip can reach up to 500 ksps (2μs), so it is just right for measuring the fundamental frequency of the power grid. In this way, the A/DC in the MAX1324 and ARM can be used for harmonic and frequency measurement respectively.
1.3 Hardware interface between MAX1324 and processor S3C2410
The interface between MAX11324 and processor S3C2410 is shown in Figure 4. The analog supply voltage of MAX1324 is 5 V, while the digital supply voltage range allowed by MAX1324 is 2.7 to 5.25 V, which is 3.3 V in the figure. In this way, it can be directly connected to the digital I/O interface of S3C2410 without level conversion.


When performing data acquisition, the operation process is divided into the following three steps: (1) First, set the working mode of MAX1324 to instantaneous sampling of 8 channels, connect the pin ALLON to a high level, pull it low, and write all "1" to the data lines D0~D7, so that all 8 channels can be selected to realize synchronous ADC; (2) Pull down the GPA12 terminal of ARM to make the CONVST pin a low level. After the input signal reaches a stable level in the sample and hold, the A/D is started by the rising edge of CONVST. The multi-channel conversion here is performed in the order of channel numbers from low to high. When the conversion of the last channel is completed, the conversion end signals of all channels jump to a low level, and the conversion results are first stored. Stored in the corresponding 14-bit × 8 SRAM on the chip; (3) Read the analog-to-digital conversion result data. There are two ways: one is the query method. The pin of MAX1324 is connected to an I/0 pin of S3C2410. After S3C2410 starts A/D conversion, it continuously queries whether this I/0 pin is at a low level to determine whether the conversion is completed, and then reads the converted digital signal in turn; the other is the interrupt method. The pin of MAX1324 is directly connected to an external interrupt pin of S3C2410. Once the conversion is completed, an interrupt is requested to S3C2410. S3C2410 will enter the interrupt service program and read the converted data of MAX1324 in turn. In order to improve the efficiency of CPU use, the interrupt method is adopted. In Figure 4, the pin of MAX1324 is connected to the external interrupt EINT3 pin of S3C2410. When the A/D data conversion is completed, a low level will be sent to the EINT3 of S3C2410. When the EINT3 pin is at a low level, 8 read pulses will be sent to the pins of MAX1324 in succession, controlling the strobe pin to read the ADC data of the 8 channels converted by MAX1324 in a time-sharing manner. [page]

2 Interface
Drivers The tasks of the device driver include automatic configuration and initialization subroutines, which are responsible for detecting whether the hardware device to be driven can work properly. If the device is normal, the software state required by the device and its related device driver is initialized.
The device driver under Linux is organized as a set of functions with completely different tasks. Writing an A/D driver mainly completes the operations of open0, close0, read0, write0, etc. on the control registers and data registers of the A/D device, and registers them in file_operations.
static struct file_operations adcmax1324_fops = {
open: ademaxl324_open,
ioctl: adcmaxl324_ioctl,
read: adcmaxl324_read,
write: ademaxl324_write,
release: adcmaxl324_release,
}
Here are some important functions:
(1) adcmaxl324_write function: Call this function to write data OxOOFF to MAX1324 through the bidirectional data lines DATAO~DATA7, and set MAX1324 to the 8-channel simultaneous conversion mode; (2) ademax1324_ioctl function: Ioctl function tracks the signal and starts A/D conversion; (3) adcmax1324_read function: read function sends the data read in the interrupt processing function to the user program.
Finally, the initialization work is completed in init(). Including registering the device driver and applying for system resources. When writing a driver, it is usually written in the form of a module. The initialization function module_init() is called when the module is loaded, and the unloading module function module_exit() is called when it is unloaded.

3 Conclusion



This paper implements the design of data acquisition for power quality monitor based on ARM9. The hardware circuit and its related software are introduced. After experimental testing, the above data acquisition circuit based on MAX1324ECM can achieve an actual measurement accuracy of ±0.5%. The experimental results are shown in Table 1. Therefore, MAX1324ECM is fully suitable for data acquisition in power quality monitoring.

Keywords:MAX1324  ARM9 Reference address:Data Acquisition Based on ARM9 Power Quality Monitor

Previous article:Design of electromagnetic nondestructive detection circuit for steel material crack based on ARM
Next article:Development of Remote Intelligent House Control Device Based on ARM7

Recommended ReadingLatest update time:2024-11-17 00:41

SPI of ARM9
Notes before experiment: Principle of SPI: Note: CLK transmission clock MISO Master Input Slave Output MOSI master output slave input CS chip select signal. Since the SPI controller can be connected to multiple SPI devices, this is used to select the SPI device. The operation flow of SPI is roughly shown in the figu
[Microcontroller]
SPI of ARM9
Design and implementation of wireless data terminal based on ARM9
0. Introduction With the gradual maturity of GPRS/CDMA network technology, wireless data-related applications have become the current hot application, especially for the power, telecommunications, petroleum, water conservancy, geology, and transportation industries in the application of the location is not fixe
[Microcontroller]
Design and implementation of wireless data terminal based on ARM9
ARM9 interrupt debugging (1)
/***************************************************  *Description:ARM9 interrupt debugging (1)     *******************************************************/        Generally, in ARM9 debugging programs are downloaded to RAM for execution. Of course, as long as no interrupt occurs, the program seems to be able to execu
[Microcontroller]
Design of wireless multi-bed ECG monitor based on ARM9
1 Introduction With the accelerated pace of social life and the gradual aging of the population, cardiovascular disease has become one of the most important diseases threatening human life. Such diseases are often characterized by suddenness, short-term and dangerous. If they are not discovered and treated in t
[Microcontroller]
Design of wireless multi-bed ECG monitor based on ARM9
Design of ZigBee Industrial Ethernet Gateway Based on ARM9 Processor
introduction At present, there are more and more applications where multiple standards and protocols coexist, and the gateway, which acts as a bridge for protocol conversion, plays a key role. The two most popular local wireless technologies are undoubtedly Wi-Fi and Bluetooth. However, for low-power, low-bandw
[Power Management]
Design of ZigBee Industrial Ethernet Gateway Based on ARM9 Processor
Implementation of SD Card File System Based on ARM9 and μC/OS-II
    With the continuous development of embedded technology, ARM processors have been widely used due to their high performance, low cost and low energy consumption. This paper mainly focuses on the demand for access to a large amount of real-time load data in the dynamic weighing system of trucks. Based on the ARM9 em
[Microcontroller]
Implementation of SD Card File System Based on ARM9 and μC/OS-II
Linux code transplantation based on ARM9
Introduction: This paper introduces the method and process of embedded Linux transplantation, and gives the implementation scheme of bootloader and Linux kernel transplantation based on hardware platform ARM9 in embedded development environment. This scheme can provide operating system level support for application re
[Microcontroller]
Linux code transplantation based on ARM9
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号