河北水利电力学院学报 ›› 2019, Vol. 29 ›› Issue (2): 40-44.DOI: 10.16046/j.cnki.issn2096-5680.2019.02.008

• 技术理论与应用 • 上一篇    下一篇

基于FFT的相位差测量及其在STM32中的实现

陈 哲1,冯 敏2   

  1. 1.国网泊头供电公司,泊头市西环路 062150;
    2.石家庄邮电职业技术学院,河北省石家庄市体育南大街318号 050021

  • 收稿日期:2019-01-04 修回日期:2019-03-30 出版日期:2019-06-30 发布日期:2019-07-31
  • 作者简介:陈哲(1991-),男,河北沧州人,硕士研究生,助理工程师,研究方向为电力系统及其自动化。E-mail:wcxycz@163.com

Measurement of Phase Difference Based on FFT and Its Implementation in STM32

CHEN Zhe1,FENG Min2   

  1. 1.State Grid Botou Power Supply Company,062150,Botou,Hebei,China;
    2.Shijiazhuang Posts and Telecommunications Technical College,050021,Shijiazhuang,Hebei,China

  • Received:2019-01-04 Revised:2019-03-30 Online:2019-06-30 Published:2019-07-31

摘要: 针对传统相位测量方法中存在误差较大的问题,文中提出了一种基于FFT谱分析的数字式相位差测量方法,并采用ARM公司的Cortex-M3内核处理器STM32F103搭建相位差测量系统。通过对一个周期内采样的64个点做FFT变换,提取出基波的参数,求取被测信号的相位差,并在LCD上显示出测量结果。该数字式相位测量系统结构简单,硬件成本低,处理速度快。通过测试得出,该测量系统有效分辨精度为1°。

关键词: 相位差, FFT, 谱分析, STM32

Abstract: According to the problem of large error in the traditional measuring method for phase difference,this paper presents a digital measuring method for phase difference based on FFT spectral analysis,and builds a measuring system for phase difference by using the ARM's processor Cortex-M3core STM32F103.Through the FFT transformation of 64sampling points in a period and withdrawal of the fundamental wave parameter,the phase difference of measured signal is obtained and shown on the LCD.The structure of this system is simple,the cost of hardware is low,and the processing speed is fast.Through the test,this digital measuring system has an effective resolution accuracy of 1degree.

Key words: phase difference, FFT, spectrum analysis, STM32

中图分类号: