Could this be achieved simply with a solid state, zero crossing relay and a microcontroller to switch it on for a few cycles at regular intervals? Rectified mains voltage straight into the battery? (UK,240v,50Hz)