•This paper explored the application of hydropower via hydroelectric generator to generate self-bias voltage.
•ZnO and TiO2 photoanodes were prepared by magnetron sputtering and atomic layer deposition, respectively.
•PEC performance can be effectively facilitated when connected with self-biased voltage from hydroelectric generator.
•This paper suggests a promising route toward full green design for hydrogen production without external bias potential.