Electromagnetic induction
Moving the magnet around the inductor will change the inductor's magnetic field, which will cause the current to flow through the inductor. This phenomenon is called electromagnetic induction. The current flowing in the inductor is called the induced current. The induced current flows when the magnet moves and the magnetic field changes. When the magnet stops, the magnetic field does not flow. The intensity of the induced current is proportional to the amount of change in the magnetic field.
What is the direction of the induced current?
Inside the coil, a magnetic field is induced that prevents the movement of the magnet. Therefore, when the magnet approaches or moves away, the direction of the induced current is reversed.