CPC G01R 15/207 (2013.01) [G01R 15/205 (2013.01); G01R 31/364 (2019.01)] | 18 Claims |
1. A magnetic sensor device comprising:
a first detection circuit that includes a magnetic detection element configured to detect an applied magnetic field, and generates a first detection signal having a correspondence with a strength of the applied magnetic field;
a feedback coil through which a feedback current is passed to generate a cancellation magnetic field for cancelling at least part of a target magnetic field that is a magnetic field to be detected; and
a second detection circuit configured to generate a second detection signal having a correspondence with a value of the feedback current, wherein
the feedback current is controlled so that the first detection signal has a constant value in a first case where a strength of the target magnetic field is greater than a first value and less than a second value, and the feedback current is controlled to be maintained at a constant value in a second case where the strength of the target magnetic field is less than or equal to the first value or greater than or equal to the second value, and
in the first case, a detected value generated based on the second detection signal has a correspondence with the strength of the target magnetic field, and in the second case, a detected value generated based on the first detection signal has a correspondence with the strength of the target magnetic field.
|