Patent ID: 7339369

Claim:
A magnetic encoder comprising: a magnetic medium extending in a direction and having first magnetized regions and second magnetized regions, which are disposed successively and alternately with each other on the medium and magnetized oppositely to one another along the medium extending, and a magnetic sensor movable relatively to the medium along the medium extending, wherein the first and the second magnetized regions are different in length from one another, of which a length of longer ones is denoted as λl, and a length of shorter ones is denoted as λs, wherein the magnetic sensor is composed of a first sensor and a second sensor, each of which is composed of SVGMR elements of the equal number N of three or more, which have a rectangular surface extending perpendicularly to the medium extending and facing the medium with a predetermined gap and are electrically connected in series, wherein each of the SVGMR elements in each of the first and the second sensors is apart by p defined by (λl+λs)/N from another SVGMR element along the medium extending, wherein one of the SVGMR elements in the first sensor is at a distance of p(½+n) from one of the SVGMR elements in the second sensor along the medium extending, wherein n is 0 or a positive integer, wherein each of the SVGMR elements is a lamination of a pinned magnetization layer, a non-magnetic conductive layer and a free magnetization layer in their order, the pinned magnetization layers in all of the SVGMR elements have magnetizations in the same direction along the medium extending, and the SVGMR elements show a minimum electric resistance, when an external magnetic field is applied to the SVGMR elements in the same direction as the magnetizations of the pinned magnetization layers of the SVGMR elements, and a maximum electric resistance, when an external magnetic field is applied to the SVGMR elements in the direction opposite to the magnetizations of the pinned magnetization layers of the SVGMR elements, and wherein an electric terminal of the first sensor is electrically connected to an electric terminal of the second sensor, and a signal output is taken out from the connected electric terminals between the first sensor and the second sensor, during a measurement voltage is applied between the other electric terminal of the first sensor and the other electric terminal of the second sensor.