Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding function

Microcontroller-based methods for zero-crossing detection (ZCD) presented in the literature employ external integrated circuits (ICs) to sense electrical signals, and their algorithms are sophisticated. Therefore, this paper proposes a simple open-loop sensorless microcontroller-based algorithm for...

Full description

Bibliographic Details
Main Authors: Ahmed Ali, Mohd Khairunaz Mat Desa, Chia Ai Ooi, Samir A. Al-Gailani, Muhammad Hafeez, Mohamad Nazir Abdullah, Mohammed Zaid
Format: Article
Language:English
Published: Elsevier 2024-02-01
Series:Ain Shams Engineering Journal
Subjects:
Online Access:http://www.sciencedirect.com/science/article/pii/S2090447923002642
_version_ 1797299689342631936
author Ahmed Ali
Mohd Khairunaz Mat Desa
Chia Ai Ooi
Samir A. Al-Gailani
Muhammad Hafeez
Mohamad Nazir Abdullah
Mohammed Zaid
author_facet Ahmed Ali
Mohd Khairunaz Mat Desa
Chia Ai Ooi
Samir A. Al-Gailani
Muhammad Hafeez
Mohamad Nazir Abdullah
Mohammed Zaid
author_sort Ahmed Ali
collection DOAJ
description Microcontroller-based methods for zero-crossing detection (ZCD) presented in the literature employ external integrated circuits (ICs) to sense electrical signals, and their algorithms are sophisticated. Therefore, this paper proposes a simple open-loop sensorless microcontroller-based algorithm for determining zero-crossing (ZC) instants of sinusoidal signals that can be used for phase detection (PD) in phase-locked loops (PLLs). The proposed algorithm employs a built-in rounding function in the Arduino software environment. The developed system was simulated using MATLAB Simulink® to demonstrate its prominent features in recognizing zero-crossing points in two cases: a pure sine signal at a grid frequency of 50 Hz, and distorted signals with total harmonic distortions (THDs) of 10 %, 20 %, 30 %, and 40 %. In the simulation, the proposed system exhibited outstanding results in terms of simplicity, accuracy, and robustness. However, in practice, accuracy and robustness are relative terms, because they depend on the specifications of the microcontroller board. In this study, a low-cost microcontroller board, Arduino Uno, was used. The Uno is an 8-bit board with a 16-MHz clock speed. Therefore, an error in terms of the phase shift emerged in the output signal, which was measured to be 0.0314 rad at 50 Hz. Moreover, the proposed system detected the ZC points of distorted signals with a THD of up to 30 % without using filters and failed at a THD of 40 %. Finally, the ZC points were identified in a three-phase system, and the validity of applying the proposed method to polyphase systems was demonstrated.
first_indexed 2024-03-07T22:55:21Z
format Article
id doaj.art-6c0fa58fa2074131badb7ccdd3d963ee
institution Directory Open Access Journal
issn 2090-4479
language English
last_indexed 2024-03-07T22:55:21Z
publishDate 2024-02-01
publisher Elsevier
record_format Article
series Ain Shams Engineering Journal
spelling doaj.art-6c0fa58fa2074131badb7ccdd3d963ee2024-02-23T04:59:29ZengElsevierAin Shams Engineering Journal2090-44792024-02-01152102375Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding functionAhmed Ali0Mohd Khairunaz Mat Desa1Chia Ai Ooi2Samir A. Al-Gailani3Muhammad Hafeez4Mohamad Nazir Abdullah5Mohammed Zaid6School of Electrical and Electronics Engineering, Universiti Sains Malaysia Engineering Campus, Penang, MalaysiaSchool of Electrical and Electronics Engineering, Universiti Sains Malaysia Engineering Campus, Penang, Malaysia; Corresponding author at: School of Electrical and Electronics Engineering, Universiti Sains Malaysia Engineering Campus, Penang, Malaysia.School of Electrical and Electronics Engineering, Universiti Sains Malaysia Engineering Campus, Penang, MalaysiaFaculty of Engineering and Computer Technology, AIMST University, Bedong, Kedah, MalaysiaSchool of Electrical and Electronics Engineering, Universiti Sains Malaysia Engineering Campus, Penang, MalaysiaSchool of Electrical and Electronics Engineering, Universiti Sains Malaysia Engineering Campus, Penang, MalaysiaDepartment of Electrical Engineering, Faculty of Engineering, University of Aden, YemenMicrocontroller-based methods for zero-crossing detection (ZCD) presented in the literature employ external integrated circuits (ICs) to sense electrical signals, and their algorithms are sophisticated. Therefore, this paper proposes a simple open-loop sensorless microcontroller-based algorithm for determining zero-crossing (ZC) instants of sinusoidal signals that can be used for phase detection (PD) in phase-locked loops (PLLs). The proposed algorithm employs a built-in rounding function in the Arduino software environment. The developed system was simulated using MATLAB Simulink® to demonstrate its prominent features in recognizing zero-crossing points in two cases: a pure sine signal at a grid frequency of 50 Hz, and distorted signals with total harmonic distortions (THDs) of 10 %, 20 %, 30 %, and 40 %. In the simulation, the proposed system exhibited outstanding results in terms of simplicity, accuracy, and robustness. However, in practice, accuracy and robustness are relative terms, because they depend on the specifications of the microcontroller board. In this study, a low-cost microcontroller board, Arduino Uno, was used. The Uno is an 8-bit board with a 16-MHz clock speed. Therefore, an error in terms of the phase shift emerged in the output signal, which was measured to be 0.0314 rad at 50 Hz. Moreover, the proposed system detected the ZC points of distorted signals with a THD of up to 30 % without using filters and failed at a THD of 40 %. Finally, the ZC points were identified in a three-phase system, and the validity of applying the proposed method to polyphase systems was demonstrated.http://www.sciencedirect.com/science/article/pii/S2090447923002642Arduino UnoCeiling functionPhase locked loop (PLL)SynchronizationZero-crossing detectorMicrocontroller
spellingShingle Ahmed Ali
Mohd Khairunaz Mat Desa
Chia Ai Ooi
Samir A. Al-Gailani
Muhammad Hafeez
Mohamad Nazir Abdullah
Mohammed Zaid
Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding function
Ain Shams Engineering Journal
Arduino Uno
Ceiling function
Phase locked loop (PLL)
Synchronization
Zero-crossing detector
Microcontroller
title Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding function
title_full Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding function
title_fullStr Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding function
title_full_unstemmed Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding function
title_short Sensorless microcontroller-based zero-crossing detection system for AC signals using a rounding function
title_sort sensorless microcontroller based zero crossing detection system for ac signals using a rounding function
topic Arduino Uno
Ceiling function
Phase locked loop (PLL)
Synchronization
Zero-crossing detector
Microcontroller
url http://www.sciencedirect.com/science/article/pii/S2090447923002642
work_keys_str_mv AT ahmedali sensorlessmicrocontrollerbasedzerocrossingdetectionsystemforacsignalsusingaroundingfunction
AT mohdkhairunazmatdesa sensorlessmicrocontrollerbasedzerocrossingdetectionsystemforacsignalsusingaroundingfunction
AT chiaaiooi sensorlessmicrocontrollerbasedzerocrossingdetectionsystemforacsignalsusingaroundingfunction
AT samiraalgailani sensorlessmicrocontrollerbasedzerocrossingdetectionsystemforacsignalsusingaroundingfunction
AT muhammadhafeez sensorlessmicrocontrollerbasedzerocrossingdetectionsystemforacsignalsusingaroundingfunction
AT mohamadnazirabdullah sensorlessmicrocontrollerbasedzerocrossingdetectionsystemforacsignalsusingaroundingfunction
AT mohammedzaid sensorlessmicrocontrollerbasedzerocrossingdetectionsystemforacsignalsusingaroundingfunction