![]()
Cybergrid Gaurdian - Numerical Relay
The CyberGrid Guardian project aims to enhance the implementation and simulation of distance protection algorithms using Java, addressing the limitations of assembly language currently employed in this domain. Java provides several advantages, including smoother and more efficient processes, reduced time consumption, and quicker fault detection, ultimately leading to better equipment protection. This project contributes valuable research by exploring Java-based distance protection algorithms and their practical application.
Software Features π
CyberGrid Guardian is a comprehensive numerical relay system designed for real-time fault detection in power transmission systems. Key features include:
- Real-time Fault Detection: π¨ The software supports sophisticated fault detection techniques like the Mann-Morrison and Three Sample methods, allowing users to switch techniques based on system conditions.
- Graphical User Interface (GUI): π» An interactive and user-friendly interface facilitates easy navigation and control, enabling users to select fault detection techniques and customize the system.
- Relay Selection: β‘ Users can choose between Overvoltage and Overcurrent Relays, ensuring adaptability to diverse network requirements.
- Graphical Data Visualization: π The software provides graphical representations of relay data for quick performance interpretation and anomaly detection.
- CSV Data Analysis: π Supports data analysis through CSV file uploads, enhancing data management and usability.
- SQL Database Integration: ποΈ Stores comprehensive data, including real-time voltage and current measurements, fault detection results, and fault cause and timing.
- Real-Time Data Processing: β±οΈ Operates on real-time data from microcontroller-based hardware, ensuring prompt fault detection and system protection.
Interface π»

Hardware Implementation βοΈ

The project also involves implementing the distance protection algorithms on hardware. The hardware setup includes:
- Arduino Uno: π οΈ A versatile microcontroller board used for interfacing with sensors, motors, and other components.
- Atmega 32a Microcontroller: πΏ A high-performance microcontroller with features suitable for complex algorithm implementation.
- Potential Transformers: β‘ Used to measure high alternating voltage in power systems.
- Current Transformers: π Measure current and maintain an accurate ratio between primary and secondary circuits.
- Signal Conditioning Unit: π‘ Modifies raw analog signals from sensors for compatibility with monitoring and control devices.
- Load: π‘ Ensures circuit functionality by providing a necessary component for electricity utilization.
The Arduino IDE is used for real-time data accumulation, with data streamed via a serial cable and processed using Java. The Mann Morrison Algorithm is applied, and the simulation outputs values for resistance (R), capacitance (X), inductance (L), and impedance (Z). The algorithm, initially simulated for a single phase, can be extended to three phases by processing the voltage and current values of all three phases.
Data Collection and Integration with Google Sheets
To enhance real-time monitoring and data analysis, the ESP32 microcontroller is programmed to read sensor data periodically and format it into CSV. The steps for Google Sheets integration include:
- Google Developer Console: π Create a project and enable the Google Sheets API.
- OAuth 2.0 Authentication: π Set up authentication to allow ESP32 access to the Google Sheets API.
- Spreadsheet Access: π Share the target Google Spreadsheet with the Google Service Account email.
The ESP32 sends POST requests to Google Sheets using the API key and OAuth 2.0 authentication, appending formatted data to the spreadsheet at predefined intervals.
Applications
- Real-Time Monitoring: π‘ Provides constant monitoring and immediate data access, crucial for various applications.
- Remote Data Collection: π Uses ESP32βs Wi-Fi capabilities to collect data from remote locations and transmit it centrally.
- Data Analysis: π Google Sheetsβ tools enable easy analysis, visualization, and sharing of collected data, useful for environmental monitoring, industrial automation, and more.
CyberGrid Guardian offers a robust solution for real-time fault detection and system protection in power transmission. By leveraging Java for algorithm implementation and integrating hardware and cloud-based data management, this project significantly enhances the efficiency and accuracy of distance protection algorithms.