How does an electromagnet work? I am building one, and it works, but I don't know how. Can somebody explain how the magnetic field is formed?
When the electromagnet is constructed, an electrical current flows and forms a magnetic field around it. When the field is formed, circles are made around it, causing magnetism to pick up the metal like they do in junkyards.