I am currently working on a water filtration system with capacitive deionization. I am connecting a battery source to my reactor, but I want to control the power input to make it alternate between 10 V and -10V every 10 minutes. How can I reverse the polarity of my power source? I was thinking of using a TP2104 transistor and just creating a loop that will turn on and off my pins to alternate between voltages. Would this work? Or are there any other suggestions.