A hundred years ago, the February 1918 issue of Popular Science showed this simple method for code practice without the need for a battery. A short length of wire was wrapped around the light circuit (the article noted that it wouldn’t work with a DC light circuit), through the key and headphones, and grounded. The result would be a convenient source of a 60-cycle tone.