There are several relationships between electricity and magnetism. We will explore them one by one. The first relationship we will discuss is how current flowing through a wire creates a magnetic field. A steady current creates a steady magnetic field like that created by a magnet.
We can create an electro-magnet by wrapping many turns of wire on a core, then causing an electrical current to flow through this coil of wire. With such a device we can create a magnetic field that can be controlled; we can turn it on and off by controlling the current. In fact, by controlling the current gradually, instead of just on and off as shown here, we could make the magnetic field gradually become stronger or weaker.
In the animation, we are controlling the current by connecting and disconnecting the battery. When the battery is not connected, there is no current flow, and therefore no magnetic field. When the battery is connected, current flows through the coil, and a magnetic field is created, as shown by the red lines.
In the above animation, the magnetic field curves around from one end of the coil to the other. The field is strongest at the ends of the coil, and gets weaker as we get farther away. The two ends of the coil is called as the “poles”. In magnet, one end is “North” pole and the other end is “South” pole.
The strength of the field is proportional to the amount of current flowing and to the number of turns on the coil. Each turn of wire on the coil contributes to the strength of the magnetic field. If we double the number of turns, we can make an electro-magnet twice as strong. But, this exact ratio is only true if the current flow is the same for both coils.