Batteries use direct current for electrolysis, with an ammeter or bulb indicating current flow. The anode connects to the positive terminal and cathode to the negative, while a rheostat controls current through the electrolyte, with electrolysis decomposing the electrolyte through anions moving to the anode and cations to the cathode, converting electrical to chemical energy.