How a metal detector works
Underground metal detectors use the principle of electromagnetic induction to generate rapidly changing magnetic fields by using coils through which alternating current is passed. This magnetic field can induce eddy currents inside the metal object. Eddy currents generate a magnetic field, which in turn affects the original magnetic field, causing the detector to chime.
