基于AVR单片机的电力谐波分析系统
设计
摘要
随着国民经济的发展,电网中各种非线性负荷及用户不断增长;各种复杂的、精密的,对电能质量敏感的用电设备越来越多。上述两方面的矛盾越来越突出,在这样的环境下,探讨电能质量的分析方法,可以为分析我国电能质量管理和控制的发展趋势提供必要的依据,具有很强的现实意义。
本设计采用ATMEL公司的ATmega32L单片机完成一个电能质量检测系统。电压信号经过变压器隔离降压,幅值较低的交流信号再通过运算放大器构成的加法器变成可供A/D转换电路转换的直流信号。单片机使用内部的定时器每1/3200秒对电压信号采样一次,用片内自带的10位精度A/D转换器对每周波的电压信号采样64个点后,进行FFT运算,FFT的运算过程采取查表法进一步提高运算速度,分析出小于21次的各次谐波的含量,并计算出电压信号的有效值(RMS),将谐波分析结果通过RS-232串行接口上传到上位机并显示存储。通过对硬件软件的调整,使输出的结果达到相应的要求,然后对实际谐波信号分析,对结果进行进一步数据处理,以提高结果的准确性。最后本文简单介绍了一下提高谐波检测精度的硬件和软件措施。
关键词: 电能质量,谐波,单片机,FFT
A Harmonic analysis system design based
AVR MCU
ABSTRACT
Along with the development of national economy, and the highly automatization of the production process, so in the electrical network, all kinds of non-linear loads and users continuously growing; there are more and more kinds of electro-equipments which are complicated, precise, and sensitive to the electrical energy quality. Contradictions of these two aspects become more and more prominent, under such environment, exploring the analyzing methods which discussed electrical energy quality, may provides the necessary basis for analyzing the tendency of China’s electrical energy quality management and control. It obviously has significance to the realism.
This design uses the ATmega32L Microcontroller of ATMEL Corporation to complete an electrical energy quality examination system. The voltage signal steps down after the transformer isolation, the lower breadth Alternating signal re-passes the summing circuit, which constituted by operational amplifier, become the direct current signal, which may supply the A/D switching circuit transforms. MCU uses interior timer sample voltage signal every 1/3,200 second,