👉 Electromagnets are devices that use magnetic fields to produce electrical or mechanical energy. They consist of a permanent magnet and a coil, which is connected to an electric source such as a battery or generator. When current flows through the coil, it produces a magnetic field that interacts with the permanent magnet, causing it to move around in a circuit. This motion generates electricity, which can be used for various purposes, including powering electronic devices or generating power from wind or solar energy. Electromagnets