Design and Implementation of Voltage Peak Detection Based on Fourier Analysis

Hangyu Guo, Shiyao Cui, Xingxing Xu2019 · DOI

Abstract

In order to measure the peak value of the sinusoidal wave more conveniently, we did a full-wave rectification to the sinusoidal wave, then analyzed its frequency spectrum by using Fourier analysis. By researching the relationship between the DC component in the spectrum and the peak voltage, this paper provided a voltage peak value detect circuit based on the Fourier analysis. The detect circuit includes a precision full-wave rectifier circuit, a second-order RC filter circuit, and an ADC converter. Additionally, this paper presents a technique based on regression analysis to reduce errors due to nonlinear characteristics and manufacturing tolerances between components. By performing regression analysis of the raw data using MATLAB, the circuit achieves a measurement error within 2%.

Introduction

Detecting the peak value of a waveform is a fundamental requirement in electrical engineering and signal processing. Traditionally, this is achieved using "peak-holding" circuits, which utilize capacitors and switches to capture and maintain the maximum voltage level. However, these analog circuits are often plagued by sensitivity to noise, design complexities at high frequencies, and errors caused by capacitor discharge.

This research proposes a simplified alternative by shifting the detection process from the time domain to the frequency domain. By leveraging Fourier analysis, the peak value can be derived from the average characteristics of a rectified signal, allowing for a robust implementation using standard analog components like operational amplifiers and filters.

System Architecture and Methodology

The proposed detection system operates through a structured five-step pipeline designed to transform a raw sinusoidal input into a precise digital peak value reading.

Block diagram of the proposed voltage peak detection system.
  1. Signal Input: The system accepts a standard sinusoidal wave as the primary input.
  2. Precision Full-Wave Rectification: To maintain accuracy for small signals, a precision rectifier circuit is employed. Unlike standard diode rectifiers that suffer from a ~0.7V voltage drop, this circuit uses high-speed operational amplifiers (with a Gain Bandwidth > 27MHz) to ensure linear rectification.
  3. Low-Pass Filtering: The rectified signal, which contains a DC component and even harmonics, is passed through a second-order passive RC filter. This filter suppresses the AC harmonics, isolating the DC average ($A_0$).
  4. Voltage Transformation & ADC: The resulting DC voltage is scaled appropriately and converted into a digital format using an Analog-to-Digital Converter (ADC).
  5. Mathematical Reconstruction: According to Fourier expansion, the DC component ($A_0$) of a full-wave rectified sine wave is mathematically related to the peak voltage ($U_M$) by the ratio $2/\pi$. Thus, the peak voltage can be calculated as $U_M = (A_0 \cdot \pi) / 2$.

Calibration via Regression Analysis

Real-world hardware components are rarely ideal. Non-linearities in operational amplifiers and tolerances in resistors and capacitors can introduce systematic errors. To mitigate these, the researchers implemented a software-based calibration layer using MATLAB. By applying quadratic polynomial regression to the raw experimental data, the system can "learn" the specific non-linear characteristics of the hardware and correct the output accordingly.

Experimental Results

The system was rigorously tested using sinusoidal signals at 100kHz with peak voltages ranging from 100mV to 900mV. The experimental results demonstrated high linearity and a broad operational frequency range from 20Hz to 500kHz.

Regression analysis showing the high correlation between tested and real voltage values.

Before applying the regression model, measurement errors were observed as high as 2.53%. However, after the MATLAB-based calibration, the maximum error was reduced to 1.58%, with the majority of measurements falling within a 1% error margin. This confirms that the Fourier-based approach, combined with software post-processing, is a highly effective method for peak detection.

Conclusion and Future Work

This paper demonstrates that Fourier analysis provides a reliable "shortcut" for peak voltage detection, bypassing the need for complex peak-holding hardware. While highly effective for sinusoidal waves, the current model is specific to that waveform's $2/\pi$ ratio. Future work could involve expanding the system to support triangular or rectangular waves by dynamically adjusting the proportional coefficients based on the input waveform type. Additionally, improving filter design could help reduce low-frequency ripple, further enhancing accuracy at the lower end of the spectrum.

Summary updated

Abstract

In order to measure the peak value of the sinusoidal wave more conveniently, we did a full-wave rectification to the sinusoidal wave, then analyzed its frequency spectrum by using Fourier analysis. By researching the relationship between the DC component in the spectrum and the peak voltage, this paper provided a voltage peak value detect circuit based on the Fourier analysis. The detect circuit is including precision full wave rectifier circuit, second-order RC filter circuit and an ADC converter. Also this paper gives a technique based on the regression analysis in order to reduce the error due to the nonlinear characteristics and the manufacture errors between the real components. By doing the regression analysis of the raw data, which using MATLAB, the circuit will allow measuring error within 2%.
BibTeX
@misc{guo2019design,
  author = {Hangyu Guo and Shiyao Cui and Xingxing Xu},
  title = {{Design and Implementation of Voltage Peak Detection Based on Fourier Analysis}},
  year = {2019},
  doi = {10.2991/acsr.k.191223.022},
}
Figure