This document describes a new adaptive PI and fuzzy control method for controlling a STATCOM (static synchronous compensator) to regulate voltage in a power system. A STATCOM is a device that can provide fast reactive power support to maintain power system voltage stability. Previous STATCOM control methods often use PI (proportional-integral) controllers but require extensive tuning to determine optimal control parameters. The new adaptive fuzzy and PI control proposed in this document can self-adjust the PI control gains dynamically in response to disturbances, providing consistent performance under different operating conditions without needing retuning. This gives the STATCOM "plug-and-play" capability. The control method is described and its performance advantages over conventional STATCOM control with fixed PI gains are discussed.