Battery directly connected to power supply