what device does but use an electromagnet

An electric motor uses an electromagnet to convert electrical energy into mechanical energy.

There are several devices that use electromagnets. Here are a few examples:

1. Electric Bell: An electric bell uses an electromagnet to create sound when the circuit is closed. When the current flows through the coil of wire wrapped around an iron core, it generates a magnetic field, attracting a metal arm that strikes a metal bell, producing the sound.

2. Electric Motor: An electric motor uses electromagnets to convert electrical energy into mechanical energy. The motor consists of a coil of wire that interacts with a permanent magnet or another electromagnet. When current flows through the coil, it creates a magnetic field that interacts with the field of the permanent magnet, causing the coil to rotate.

3. Magnetic Resonance Imaging (MRI) Scanner: An MRI scanner uses strong electromagnets to create detailed images of the body's internal structures. The patient is placed inside the scanner, which generates a strong magnetic field using superconducting electromagnets. The magnetic field interacts with the body's atomic nuclei, allowing the scanner to create detailed images.

4. Maglev (Magnetic Levitation) Trains: Maglev trains use electromagnets to levitate the train above the tracks, eliminating friction and allowing for high-speed travel. The train has electromagnetic coils mounted on the underside, and the track has a series of magnets. When the train's electromagnets are activated, they repel the magnets on the track, creating levitation.

These are just a few examples, but there are many other devices that utilize electromagnets in various ways.