Fault detection is provided. A system for fault detection includes an earthing transformer structured to be coupled with an alternating current (AC) output of an inverter and an earthing device. The system includes a controller. The controller is configured to receive a voltage for multiple phases…