The linear sensor comprises a ferromagnetic layer, an antiferromagnetic layer and a heavy
metal layer, the ferromagnetic layer is arranged on the upper surface of the antiferromagnetic layer, and the heavy
metal layer is arranged on the upper surface of the ferromagnetic layer as a protective layer; during working, a
Wheatstone bridge structure is adopted, the included angle between the
magnetization pinning direction on each bridge arm and the
long axis direction is 45 degrees, and the magnetic resistance response trends of the magnetic resistance on the adjacent bridge arms to the same external
magnetic field are opposite; one-way current pulses with set amplitudes are introduced into the two ends of the magnetic
resistor to complete the induction of
exchange bias. According to the invention, through the selection of each layer of material of the sensor film, the design of the growth sequence and the design of the rear-end
Wheatstone bridge, the regulation and control of the Wheatstone full-bridge structure sensor can be realized in a non-magnetic environment only through one-time
current pulse. The growth efficiency of the magnetic sensor is greatly improved, the regulation and control steps are reduced, and the regulation and control procedure of the sensor is simplified.