"Hydrogen (H2) and Oxygen (O2) gases are placed either side of a membrane that's designed to only allow single, positively charged hydrogen protons to pass through. A platinum catalyst on the hydrogen side splits each H2 molecule into two H+ protons and two electrons. The protons move through the membrane to the oxygen side, and the electrons meet them there after flowing through an electrical circuit, creating current. The electrons, protons and oxygen then combine on the other side to create water."
Read article