Simulation AC Electric with the sag problem base on STM32F4