Among the industrial and domestic electrical loads, resistive and inductive loads account for a large proportion. Asynchronous motors, transformers, fluorescent lamps, etc. are typical resistive and inductive loads. The reactive power consumed by asynchronous motors and transformers accounts for a high proportion of the reactive power provided by the power system. Reactors and overhead lines in the power system also consume some reactive power. Resistive and inductive loads must absorb reactive power to work properly, which is determined by their own working nature. The most reasonable method is to connect capacitor banks in parallel near these inductive devices and at appropriate locations on the line for reactive compensation. In the power system, the use of reactive compensation methods to improve power factor and reduce reactive loss is one of the important means to improve power supply quality and equipment utilization.
1 Introduction to reactive power compensator based on ATT7022A
The premise of reactive power compensation is to accurately measure the operation status of the power grid, mainly active power, reactive power, power factor, harmonic status, etc. ATT7022A is a high-precision three-phase power metering chip suitable for three-phase three-wire and three-phase four-wire applications.
It can measure active power, reactive power, apparent power, active energy and reactive energy of each phase and combined phase, and can also measure parameters such as current, voltage RMS, phase angle, frequency, etc. of each phase, fully meeting the needs of power data collection. It also provides an SPI interface to facilitate the transmission of metering parameters with an external MCU, and all metering parameters can be read out through the SPI interface. It can accurately collect these parameters with high precision and simple software design. The internal block diagram is shown in Figure 1.
Figure 1 ATT7022A internal block diagram
The reactive power compensation controller introduced in this paper is realized based on the three-phase electric energy dedicated metering chip ATT7022A. The control chip is the AVR single-chip microcomputer ATmega128 produced by atmel. Compared with ATme ga16, it is the highest configuration single-chip microcomputer of the AVR8-bit series of single-chip microcomputers, and has 53 programmable IO ports, which is convenient in designing LCD display and drive circuits. The controller can analyze and determine whether to perform reactive power compensation based on the active power, reactive power and power factor provided by ATT7022A, automatically switch capacitors, realize automatic reactive power compensation of distribution network, and improve transmission efficiency.
2 Hardware Circuit Design
The hardware circuit design of the controller mainly consists of voltage and current detection circuit, power supply circuit, drive circuit, communication circuit and LCD display module. With Atmega128 as the control chip, these control functions can be easily completed. Its hardware structure block diagram is shown in the figure below. After the grid voltage and current pass through the transformer, the voltage and current signals are sent to ATT7022A.
ATT7022A provides an SPI interface, through which all metering parameters can be read. The microcontroller determines the power factor based on these parameters, decides whether to perform reactive power compensation, and transmits the signal to the capacitor switching module.
Figure 2 Controller hardware structure circuit
The detection circuit is shown in the figure. This module mainly collects the voltage and current signals of the power grid. The voltage input is UA UB UC UN, and the range is 0~220V. The current input is IA1 IA2 IB1 IB2 IC1 IC2, and the range is 0~5 A. The sampling value of the ATT7022A chip voltage input pin is recommended to be 0.2~0.5 V, and the sampling voltage of the chip current input pin is 0.1 V. Therefore, the 5 A current signal is converted into 2.5 mA current through the 5 A/2.5 mA current transformer. After passing through a 40 Ω resistor, the input voltage is 0.1 V. The 220 V voltage signal passes through a 120 K resistor, and then passes through a 2 mA/2 mA current type voltage transformer. The output current is about 2 mA, and then passes through a 250 Ω resistor. Converted into a voltage of 0.5 V. ATT7022 integrates 7-channel 16-bit ADC, reference voltage circuit and digital signal processing circuits for all power, energy, effective value, power factor and frequency measurement. The measured values are stored in the corresponding storage space respectively, and data is exchanged with the microcontroller through SPI. There is no need to program in the system software to obtain reactive power, which not only saves CPU space but also improves calculation efficiency.
Figure 3 Schematic diagram of voltage and current input channels
The power supply circuit design is shown in Figure 4. It uses a 24V switching power supply, which is a type of high-frequency inverter switching power supply. The switching power supply input is 200~240VAC, and the output is a positive 24V voltage for the driver chip MCl413. Then use the MC34063DC/DC converter to realize a boost or buck power converter, converting the 24 V voltage into a 5 V voltage. The voltage required by Atmega128, ATT7022, and the LCD module LCD is +5 V. Digital circuits and analog circuits are generally separated, and the last point is brought together. At this time, they can be connected with a 0 ohm resistor. The functions are: 1) The current path directly connected may be very large, and a 0 ohm resistor can be used to obtain a very narrow current path, which can effectively limit the loop current and suppress noise. 2) When wiring, it is very troublesome to distinguish between digital ground and analog ground. Using a 0 ohm resistor to separate them can clearly distinguish between digital ground and analog ground.
Figure 4 Voltage conversion circuit
Capacitor switching unit. By analyzing the reactive power or power factor measured by ATT7022A, it is decided whether to perform reactive compensation, that is, switch the capacitor. This controller uses thyristors to control the capacitor for switching. Since the voltage across the capacitor cannot change suddenly, when the difference between the grid voltage and the capacitor voltage is large, triggering the thyristor will produce a large current impact. In order to prevent inrush current when switching the capacitor, the thyristor is switched on when the voltage across the thyristor is zero and removed when the current is zero, so as to compensate the reactive power dynamically in real time.
The driver chip is MC1413 produced by Motorola, which is a high-current Darlington array reverse driver with high working voltage, sinking current up to 500mA, and can withstand 50 V voltage in the off state. As shown in the figure, when the input of MC1413 is 1, the output is 0, so that the transistor forms a voltage drop between the emitter, base and collector under the voltage division of the resistor, connects the emitter and collector, and outputs a voltage of +24 V. Through a pulse transformer, it can drive the thyristor to open, otherwise it will be closed.
Figure 5 Power supply circuit
Thyristor controlled capacitors, one capacitor is connected to every two thyristors. The figure shows one thyristor output, G1 and K1 are connected to the gate and cathode of the thyristor respectively. The controller uses two MC1413 chips, which can control 12 thyristors in 6 groups, and can control the switching of 6 groups of capacitors.
Figure 6 Driving circuit schematic
Communication module. Its circuit uses a single power supply level conversion chip max232, which is used to communicate with the host computer. It is mainly used to transmit data of power grid operation parameters and system operation status, calibrate system time, and accept switching and other operation commands issued by the host computer.
3 Software Process Design
Using the ATT7022A metering chip, the microcontroller does not need to perform any complex calculations, the measurement data is provided directly, and it can provide four-quadrant power measurement parameters, and can accurately measure more than 21 harmonics. The CPU does not involve the processing of A/D sampling data, which greatly reduces the CPU's calculation amount and greatly simplifies the software program design, making the system operation more reliable.
During power transmission, the power factor of the power system is generally greater than 0.95. If the power factor is less than 0.95, compensation must be performed. The power factor is the basis for switching. If the power factor is lower than 0.95, the capacitor is switched on. If it is greater than 1.0, the capacitor is switched off. The control strategy of the controller is to analyze whether the power factor of the power grid is lower than 0.95, whether the power grid is overvoltage or undervoltage, etc., based on the active power, reactive power and other parameters provided by the metering chip. By comparing with the set value, it is determined whether the capacitor is switched in phase or switched in three phases at the same time. When switching the capacitor, the principle of "first switch on, first switch on, first switch on" is adopted to prevent frequent switching of a group of capacitors, ensure the safety of the capacitors, and realize the normal operation of the power grid.
Figure 7 System software flow chart
4. How the controller measures high current and high voltage
The voltage input range of the controller is 0~220 V, and the current input range is 0~5 A, so voltage-current conversion is required when measuring large current and voltage. For example, when measuring a load of 0.4 kV, 500 KVA, the rated current is about 700 A, so a current transformer of LMZJ1000/5 can be selected with a transformation ratio of 200. The current, active power, reactive power, and apparent power read in the program are multiplied by the transformation ratio of 200, which is the measured electrical parameter.
Previous article:Design of solar photovoltaic DC controller using AVR microcontroller control
Next article:Design of portable instrument by using AVR microcontroller ATXmega128A1
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- msp430f5529 interrupt notes
- Detailed explanation of multi-layer PCB stacking structure
- Looking for part-time engineers to cooperate
- Modern Communication Technology (4th Edition)
- Are there other ways to reduce heat and power consumption of MOS besides parallel connection? The current cannot be changed. Although the internal resistance can be...
- TI will broadcast [CAN SIC (Signal Improvement Function)] live at 10 am today. Learn the technology and win gifts!
- Can lemons generate electricity?
- Free review | Anxinke Bluetooth development board PB-02-Kit
- Qinheng third generation USB to dual serial port chip CH342
- FPGA_100 Days Journey_Matrix Keyboard Design