Today I have setup a NaOH generator. The water bottle on the left contains a saturated solution of sea salt. The one on the right simply contains water. The salt containing bottle has two holes for wires on the sides, and one big hole in the cap for a tube. The tube will run to the other bottle, where any chlorine that is generated will turn into HCl by reacting with the water. The lighter gases that are generated such as hydrogen and oxygen will be vented out of the apparatus by two small holes punched into the cap of the bottle labled "Hydrochloric Acid gen.".
The equation for this entire expirment is:
NaCl + H2O
Cl2 + H2 + O2 + NaOH
The electric current will split apart the salt and water. This will form hydrogen, oxygen, and chlorine gases. Sodium metal will also start to deposit at the cathode, which will almost immediately react with the water to create sodium hydroxide. If this works exactly how I want it to, I could continue using this for creating NaOH for my lab. After all, sodium chloride is much cheaper than sodium hydroxide.