The "6-18V DC" socket of the DFRobot UPS HAT 5A 4x18650 battery board can be used to charge the batteries as well as to power the Raspberry Pi directly. It can accept an external power source such as a 12V car battery to power the Raspberry Pi while simultaneously charging the batteries.