1 Introduction
The measurement and monitoring of electrical parameters is an important part of the power system. Starting from the engineering practice of the test system, this paper completes the measurement and real-time monitoring of the voltage , current , frequency, power factor, active power and other parameters of the medium frequency power supply system , and better realizes the functions and engineering requirements of the medium frequency power supply test system.
AVR MCU Compared with the traditional 51 series MCU, it has higher integration and stronger functions, and has good compatibility with C language. The RISC instruction architecture enables its running speed to reach 1MIPS/MHZ. With its more and more extensive application, it will definitely replace the 51 series and become the mainstream of MCU. Its main functions include watchdog, FLASH program memory, E2PROM, A/D converter, timer, counter, USART interface and other functions, which makes the hardware implementation of this test system simple and reliable.
2 Hardware Structure Design and Implementation
The medium frequency power supply test system mentioned in this article tests a three-phase four-wire medium frequency power supply with a rated output voltage of 115V, a frequency of 400Hz, and a maximum power of 14KW. The power parameters that need to be accurately measured and monitored are mainly voltage (V), current (A), frequency (Hz), active power (KW) and power factor. The system is required to have a good real-time response capability to the changes in power parameters caused by load changes, and be able to display the current power parameters in real time and give sound and light alarms for faults such as overvoltage, undervoltage, overcurrent, and wrong phase sequence.
According to the functional requirements, the system hardware structure is shown in the figure below, which consists of AVR microcontroller (ATMEGA8535), signal conversion, AC sampling, digital tube display, LCD display, key selection and alarm function modules. 2.1 Signal conversion and data acquisition The output voltage of the intermediate frequency power supply under test is filtered out of high-frequency harmonics after passing through the transformer and sent to CD4052 for collection. The output current is filtered out of interference signals after passing through the mutual inductor, and then converted into voltage signals through precision sampling resistors and sent to CD4052 for collection. The three-phase voltage signal and current signal are sent to two sample-and-hold devices LF398 after passing through CD4052. The dual-channel selection structure of the CD4052 integrated chip can ensure the output of the same-phase voltage signal and current signal, and its channel address is given by PORTA.0 and PORTA.1. The logic control signals of the two sample-and-hold devices LF398 are given by PORTD.2 at the same time to ensure that the voltage signal and current signal can be collected at the same time. The output signal of LF398 is input into the microcontroller through PORTA.6 and PORTD.7, and data collection is completed by the acquisition program.
The frequency measurement is achieved by converting the single-phase voltage signal output by CD4052 into a square wave signal through the voltage comparator LM339, tracking the frequency through the phase-locked circuit 74HC4046, dividing the signal with the divider 74HC4020 and inputting it into PORTD.6 of the microcontroller, and measuring the frequency using the input capture function of the microcontroller.
2.2 Display interface, key interface and alarm function
The data display part consists of two parts: digital tube and LCD display. The buttons are mainly used for display switching and system reset. Its interface and drive circuit are shown in the figure below:
In the LCD interface, PB0, PB1, PB2, PB3, PB6, and PB7 correspond to the LCD's /WR, /RD, RS, BUSY, /CS, and /RES pins respectively, and PD0 to PD7 are used as 8-bit data ports. The digital tube driver uses two CD4514s to generate bit selection signals, and PD0 to PD7 outputs font codes to 74LS245 to drive 4×5-bit digital tubes. Three ULN2803s are used for current absorption. The display mode is set by the key program.
When the data processing result is overvoltage, undervoltage or low frequency, PORTD.5 is high level, the fault light is on, PORTD.6 is low level, the transistor is turned on, the buzzer sounds, and an audible and visual alarm is given to prompt the staff to handle the fault. 3 Software module design and implementation In the software design of the system, a modular design method is adopted to make the program structure clear and facilitate the further expansion of the system functions in the future. The system software consists of the following modules: main program, keyboard scanning processing subroutine, data acquisition subroutine, digital filtering subroutine, data processing subroutine, display subroutine, etc.
During the operation of the power supply system, high-frequency harmonic interference will be generated when the load is turned on and off. If hardware filtering is used, there will be many disadvantages such as complex hardware circuits, reduced reliability, and increased comprehensive costs. Therefore, this test system uses digital filtering to eliminate interference when obtaining power parameters, and replaces the hardware circuit with software processing to achieve a good filtering effect. In addition, the system also uses anti-interference measures such as command redundancy and software traps to make the system have good reliability.
3.1 AC Sampling Algorithm
(1) In one cycle, the voltage and current of a certain phase are continuously sampled at equal time intervals, and the effective values of voltage U and current I are calculated for the N sampled data:
3.2 Software Process
The main process and key detection subroutine flow are shown in the figure above. Key detection is mainly used for display switching. PORTC.0~PORTC.4 correspond to the display setting of U phase, V phase, W phase or average value. The data acquisition and filtering subroutine flow is shown in the figure above. The method is to collect 16 times at equal time intervals each time, and store them in the acquisition result unit in sequence after digital filtering.
The data processing and display control subroutine flow is shown in the figure above. The data processing subroutine mainly converts the collected data into BCD data for display and stores it in the display unit, and makes judgments on over-voltage, under-voltage, over-current, low frequency, etc. The display subroutine includes two modules: digital tube dynamic display and LCD display, and its display mode is controlled by the key processing subroutine.
Due to the length of this article, we will not introduce them one by one in detail. The program written by the above process works well in actual operation and runs stably and reliably. Please use it as a reference for readers.
4 Conclusion
The medium frequency power supply test system described in this article has been proven in practice to be able to quickly and accurately collect various power parameters. It has the characteristics of simple hardware structure, reliable software operation, flexible display mode, etc., and has certain practical reference value in engineering practice.
Previous article:Medium frequency power supply test system based on AVR microcontroller
Next article:Medium frequency power supply test system based on AVR microcontroller
- Popular Resources
- Popular amplifiers
- 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
- [Sipeed LicheeRV 86 Panel Review] - 7 Waft-based Home Control Applications
- [NXP Rapid IoT Review] + Simulate door lock process and mobile phone control door opening
- Achieving 5G performance requires Qorvo GaN FEM and waveguide antenna technology
- Electric vehicle charging port communication protocol
- 【AT32WB415 Review】Bluetooth Communication and Test 1
- STM32MP157A-DK1 Review + Unboxing and SDK Installation (1)
- Happy Lantern Festival to everyone~~
- Comparison and selection of various embedded memory technologies
- The basic structure and characteristics of DSP
- Problems in debugging C6747 project