Designing Software for User-Friendly Class-S Power Quality Analyzer based on Raspberry Pi

More Info


This thesis describes the design of a low-cost class-S power quality analyzer based on a Raspberry Pi 4. Capable of detecting power frequency, magnitude, voltage dips and swells, harmonics, and total harmonic distortion, the project consists of four main components: the communication protocol, the interface, the algorithms for power quality parameters, and the database. Each with its subdivisions. The communication module, which uses the I2C protocol, is chosen for its high sampling rates and built-in acknowledgement system, ensuring robust and fast operation. The interface module features a secure login process with two-step verification, a graphical user interface for real-time monitoring, and integration with algorithms for power quality parameter calculation. The algorithm module includes Fast Fourier Transform for harmonic detection, zero crossing method for power factor and frequency, and peak detection for voltage dips and swells. The database, powered by MariaDB on Raspberry Pi 4, securely manages the received data with restricted access for increased security, allowing remote access only from specified IP addresses.