The electromagnet is a magnet with an enameled wire (coil) wrapped in a nail or iron core and has a magnetic property only during the current flow in the coil. The change in the direction of current flow in the coil also changes poles and allows you to adjust the intensity as desired. The thicker the coil and the more you wind, the stronger the coil‟s intensity