Patent attributes
A sensor is disclosed for detecting an orientation of a magnet, the sensor comprising: a first sensor array including a first plurality of sensor elements that are arranged along a first line; a second sensor array including a second plurality of sensor elements that are arranged along a second line; and a processing circuitry configured to: detect a magnetic field produced by the magnet by using the first sensor array, and identify a first point on the first line where at least one component of the magnetic field has a predetermined value; detect the magnetic field by using the second sensor array, and identify a second point on the second line where at least one component of the magnetic field has the predetermined value; detect an orientation of the magnet relative to the sensor based on the first point and the second point; and output an indication of the orientation of the magnet based on the first point and the second point.