Configurable UPS for the Raspberry Pi and other embedded systems