In 1820, he discovered that a compass needle deflects from magnetic north when an electric current is switched on or off in a nearby wire. The writings are taken from scientific papers, Orsted's correspondence, and reports of the Royal Danish Academy of Sciences and Letters.