The invention provides an
optical fiber sensor and a preparation method thereof and an
optical fiber magnetic field sensing device.The
optical fiber sensor comprises an optical
fiber, a fixing part and a plurality of magnetic parts, the optical
fiber is provided with a
macro-bending section formed by bending, and the optical
fiber is fixed through the fixing part so that the
macro-bending section can be kept in a bending state; the plurality of magnetic members are respectively connected to the
macro-bending section at intervals along the macro-bending section. When the optical
fiber sensor is arranged in a
magnetic field, the magnetic part is subjected to the action of the
magnetic field, so that the macro-bending section is further bent and deformed, the macro-bending
diameter and the
effective refractive index difference correspondingly change, and spectrum drift is caused. The magnetic
field intensity and the direction can be measured by representing the
wavelength drift distance and the drift direction in the spectrum. The optical
fiber sensor has the advantages of simple structure, flexible and adjustable performance, low cost, high stability and the like, and can realize accurate measurement of magnetic
field intensity and direction in a complex environment.