Ohm did his work on resistance in the years 1825 and 1826, and published his results in 1827 as the book "Die galvanische Kette, mathematisch bearbeitet" ("The galvanic circuit investigated mathematically"). He drew considerable inspiration from Fourier's work on heat conduction in the theoretical explanation of his work. For experiments, he initially used voltaic piles, but later used a thermocouple as this provided a more stable voltage source in terms of internal resistance and constant voltage. He used a galvanometer to measure current, and knew that the voltage between the thermocouple terminals was proportional to the junction temperature. He then added test wires of varying length, diameter, and material to complete the circuit. He found that his data could be modeled through the equation