Redox conditions inside electrochemical cells can be controlled using off-the-shelf power supplies which are controlled using the provided algorithm. The algorithm is a proportional controller that can be used with various types of hardware and is fully scalable.