In case your voltage degrees are unstable (ie: power stays on, but the particular voltage level may differ a good deal in the 220V common), then I think that's the kind of situation in which an AVR is helpful. This reply is for rescuing newbie Java programmers through the frustration https://bydautothailand70358.bloggactivo.com/33083571/ups-uninterruptible-power-supply-can-be-fun-for-anyone