Note however that electrolysis works better if the water has some impurities in it,.
Pure distilled water requires a more powerful source of electricity..
The presence of small amounts of metals and other ions assist the conduction of electricity through the fluid,.
A lot of water soluble substances are useable.
The resulting higher current helps to dissociate the Hydrogen from the Oxygen.