Patent attributes
The present disclosure provides a host electronic device, a stylus and a method for determining the location of a stylus with respect to a host electronic device. A magnetic field generator of the stylus is energized and a first magnetic field is sensed at two or more magnetometers of the host electronic device. The location of the stylus with respect to the host electronic device is determined dependent upon the first magnetic field. A second magnetic field may be sensed, while the magnetic field generator is either deactivated or energized with an opposite polarity, to correct for the presence of a background magnetic field. The magnetometers may be directional magnetometers and may be arranged in an array.