A new solar-electrolysis system uses a copper-doped catalyst to turn farm waste into hydrogen and valuable formate.