GridSense
Smart Detection. Smart Isolation. Smart Grid
Created on 25th January 2026
•
GridSense
Smart Detection. Smart Isolation. Smart Grid
The problem GridSense solves
The GridSense system continuously monitors voltage, current, and temperature of all three phases in real time. Under normal operating conditions, the relays remain in a closed state, allowing power flow, and the corresponding LED indicators glow, providing instant visual confirmation of healthy phases.
When a fault is detected in any phase:
- The affected phase relay is automatically opened (isolated)
The corresponding LED turns OFF, indicating a fault condition
- The faulty phase is safely disconnected from the system
At the same time, the system implements an intelligent load transfer mechanism with phase priority (Phase A → Phase B → Phase C). If the currently active phase becomes faulty, the load is automatically transferred to the next healthy phase, ensuring continuous power supply without manual intervention.
Once the fault condition is removed, the system continuously monitors the phase and, after a 5-second stability delay, automatically restores the relay to the closed state and turns the LED ON again, confirming that the phase has returned to a healthy condition.
This approach prevents:
- total power failure
- protects electrical equipment
- improves system reliability
- enhances safety by isolating only the faulty phase instead of shutting down the entire system.
Challenges we ran into
- Challenges I Ran Into :
1.Handling Multiple Fault Conditions :-
Managing voltage, current, and temperature faults across three phases simultaneously was challenging. Initial logic caused incorrect isolation when multiple faults occurred together. This was solved by implementing phase-wise fault flags and independent decision logic
2.Safe Relay Switching and Load Transfer :-
Instant switching between phases caused unstable relay behavior and unsafe transitions. A short safety delay was added between relay OFF and ON operations to ensure proper isolation before load transfer.
3.Reliable Auto-Recovery Mechanism :-
Immediate reconnection after fault clearance led to relay chattering. This was resolved by adding a time-based recovery delay so a phase reconnects only after remaining stable for a fixed duration.
4.Clear System Status Indication :-
Displaying real-time phase health and relay status clearly was difficult during rapid changes. Synchronizing LEDs, LCD messages, and serial output provided clear and reliable system feedback.
5.Dashboard Integration with Simulation :-
Direct data access from the Wokwi simulator was not available. This was overcome by sending real-time data to a cloud IoT platform using standard HTTP communication, similar to real ESP32 deployments.
- How We Got Over These Challenges :
We addressed these challenges by breaking the system into phase-wise independent logic, allowing each phase to be monitored, isolated, and recovered without affecting the others. Safety delays and time-based recovery mechanisms were added to ensure stable relay operation and prevent false switching.
To improve clarity and debugging, we synchronized relay states with LEDs, LCD output, and serial monitoring. For dashboard integration, we adopted a cloud-based IoT communication approach, making the system scalable, reliable, and close to real-world smart grid implementations.
Technologies used
