Abstract: This paper is to study a Distributed Static Compensator (D-STATCOM) for voltage sag mitigation using a low-cost microcontroller in hardware in the loop (HIL) application. A framework of ...