A position detector includes a magnet, a pair of Hall effect devices, and
a processing circuit for detecting relative positions of the magnet and
the pair of Hall effect devices. The processing circuit detects a
difference in magnitude between output values of the Hall effect devices,
as position outputs, with an input value to each of the Hall effect
devices being controlled such that a sum of magnitudes of respective
output values of the Hall effect devices is constant.