A protocol is described for the characterization of the key electrochemical parameters of a boron doped diamond (BDD) electrode and subsequent application for in situ pH generation experiments.