Automatic voltage regulator (AVR) is an important device used to maintain the voltage of a generator at a given level.