Abstract: A device and method of controlling an electrode and electrolytic cell are provided, which independently utilizes clean energy with large power fluctuation range as an electrolysis power source for hydrogen and oxygen production. The basic number of electrodes is set by the minimum cut-in voltage value of fluctuating power sources such as wind or solar power. According to fluctuating power sources such as wind or solar power, the ratio of the minimum cut-in current and the reference current corresponding to the lowest cut-in voltage value sets the effective size of the electrodes to be connected in or cut out.