The accidental discovery of a magnetic field around a current-carrying wire left the Danish Physicist, Oersted startled. It so happened one day that while he was experimenting in front of his students to show the process of the wire getting heated up when an electric current flows through it, he was spellbound to notice the magnetic needle of the compass located next to the wire rotate.
The wire carries a current creating a magnetic field around itself. When the compass is brought near the wire or in the loop, it causes the compass needle to move leading to the fact that the wire itself acts as a magnet.
The reason behind such happenings is the current inducing a magnetic field based on the right-hand rule. Making a thumbs-up sign with the right hand, the thumb will be in the direction of the current, that is, flowing from the negative terminal of the battery to the positive one and the fingers curve around in the direction of the magnetic field. The current creates the magnetic field which interferes with the magnetic field that the compass goes through when it is brought close enough.
Being a worker for his own father who was the owner of a local pharmacy, Hans Christian Oersted (1777-1851) was highly interested in science. In 1820 he discovered the direct relationship between electricity and magnetism through the deflection of a compass needle from magnetic north by the flow of an electric current.
Oersted discovered the following when a straight wire carries a steady direct current (DC)-
Oersted’s law is limited to the steady currents which don’t change with time. So, it is applicable only for DC electric circuits without any capacitors or inductors. It is noticed that it fails for time varying currents.
This verification can be done through experiments in which the current in the circuit creates some magnetic field but any closed curve within circles the conductor can be spanned by a surface which passes between the capacitor plates through which no current flows. This leads to the equation giving zero magnetic field.
Oersted thought of an electric current struggling through a wire. Because it flowed, this conflict gave rise to heat and light which seemed to radiate away from the wire. Connecting a voltaic pile to a platinum wire, he showed that it became hot and glowed.
The unit of the Oersted is Oersted itself given in the honour of the Danish Physicist, Hans Christian Oersted who discovered the connection between magnetism and electric current. The symbol Oe is the coherent derived unit of the helping magnetic field H in the centimetre-gram-second System of units or CGS which is equivalent to one dyne per maxwell.
In the SI system, the unit ampere per metre (A/m) is equivalent to Newton per weber used for the magnetic field.
As the electric current passes through the wire from South to north direction and the wire is positioned over the compass needle, the compass gets deflected towards the west direction.
The compass needle gets deflected in the opposite direction when the direction of the current in the wire is reversed.
There is no deflection in the compass needle when the current is switched off.