The potentiometer is used to accurately measure potential differences, currents, and resistances. It consists of a long uniform wire stretched parallel on a board, with terminals at both ends connected to copper strips. A battery maintains a current through the wire, forming the primary circuit. A cell's terminals connect to points on the wire in a secondary circuit including a galvanometer. The balancing length where no current flows through the galvanometer is directly proportional to the cell's electromotive force. A potentiometer can also compare emf values of two cells and determine a cell's internal resistance by varying an external resistor connected across it.