Electrical system with replaceable batteries