Reversing Polarity

Hi everybody!

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.

Thank You!

Don’t understand what the components are doing, but to reverse a power supply every 10 minutes use a DPDT relay.

Similar to this:

You also can use a H-bridge (DC motor driver) for reversing and cutting off the power.