Arduino UPS

Something like this?