Similar to other effects; electric current also produces magnetic effect. The magnetic effect of electric current is known as electromagnetic effect.
It is observed that when a compass is brought near a current carrying conductor the needle of compass gets deflected because of flow of electricity. This shows that electric current produces a magnetic effect.
Magnetic field Due to a Current Carrying Conductor: Magnetic field due to current through a straight conductor:A current carrying straight conductor has magnetic field in the form of concentric circles; around it. Magnetic field of current carrying straight conductor can be shown by magnetic field lines.
The direction of magnetic field through a current carrying conductor depends upon the direction of flow of electric current. The direction of magnetic field gets reversed in case of a change in the direction of electric current.
Let a current carrying conductor be suspended vertically and the electric current is flowing from south to north. In this case, the direction of magnetic field will be anticlockwise. If the current is flowing from north to south, the direction of magnetic field will be clockwise.