Hans Christian Ã rsted ( August 14 , 1777 â `` March 9 , 1851 ) was a Danish physicist and chemist . Hans Christian Ã rsted ( often rendered Oersted in English ; 14 August 1777 9 March 1851 ) was a Danish physicist and chemist who discovered that electric currents create magnetic fields , an important aspect of electromagnetism .