主权项 |
1. A sensor system carried by an electronic device and configured to detect an external magnetic field emitted by a magnetic source embedded in a cover that is external to the electronic device, the electronic device having a top portion and a bottom portion opposite the top portion, the sensor system comprising:
a single substrate formed of non-magnetic material and having a first surface and a second surface and displaced from the first surface; a first magnetic sensor at the first surface, the first magnetic sensor detecting the external magnetic field at the top portion; a second magnetic sensor at the second surface, the second magnetic sensor detecting the external magnetic field at the bottom portion, wherein the first magnetic sensor and the second magnetic sensor concurrently (i) detect the external magnetic field and (ii) provide a first detection signal and a second detection signal, respectively, corresponding to a first magnetic field strength and a second detection signal corresponding to a second magnetic field strength, respectively; and a processing circuit coupled to the first magnetic sensor and the second magnetic sensor, the processing circuit using a difference between the first detection signal and the second detection signal to provide a direction of the external magnetic field and determine whether the cover is disposed on the top portion or the bottom portion, the processing circuit generating operation instructions that cause the electronic device to operate in accordance with a current position of the cover. |