How to use energy storage batteries and power supplies