| CPC G06F 1/1677 (2013.01) [G01R 33/072 (2013.01); H02J 50/10 (2016.02)] | 20 Claims |

|
1. A device, comprising:
a magnetic sensor configured to have a first output and a second output, wherein the first output and the second output of the magnetic sensor are based on a first magnetic field having a first polarity;
a first magnet;
a second magnet, the second magnet being positioned at an adjustable distance from the first magnet; and
a third magnet, the third magnet being positioned at an adjustable distance from the magnetic sensor;
wherein:
one or more of a strength of the first magnet, a shape of the first magnet, a facing direction of the first magnet, or a distance between the first magnet and the magnetic sensor is such that, when the second magnet is not within a predetermined distance from the first magnet, the first magnetic field produced by one or both of the first and second magnets is incident on the magnetic sensor and causes the first output to have a first value and the second output to have a second value; and
when the second magnet is within the predetermined distance from the first magnet, a second magnetic field having a second polarity produced by the third magnet and one or both of the first and second magnets causes the first output to have a third value and the second output to have a fourth value.
|