A current sensor configured to measure a current value of a current flowing through each of a first conductor, a second conductor, and a third conductor, the current sensor comprising:
- a first magnetic detection unit provided with a detection surface orthogonal to a magnetic force line of a magnetic field generated by the current flowing through the first conductor that detects a magnetic flux density on a first conductor side of the second conductor and the third conductor, the first magnetic detection unit configured to output a first detection result;
- a second magnetic detection unit provided with a detection surface orthogonal to a magnetic force line of a magnetic field generated by the current flowing through the second conductor that detects a magnetic flux density on a second conductor side of the first conductor and the third conductor, the second magnetic detection unit configured to output a second detection result;
- a third magnetic detection unit provided with a detection surface orthogonal to a magnetic force line of a magnetic field generated by the current flowing through the third conductor that detects a magnetic flux density on a third conductor side of the first conductor and the second conductor, the third magnetic detection unit configured to output a third detection result;
- a first amplification factor correction unit configured to correct a first amplification factor based on an ambient temperature;
- a second amplification factor correction unit configured to correct a second amplification factor based on the ambient temperature;
- a third amplification factor correction unit configured to correct a third amplification factor based on the ambient temperature;
- a first amplifier configured to amplify the first detection result based on a corrected first amplification factor and output an amplified first detection result as a first amplified signal;
- a second amplifier configured to amplify the second detection result based on a corrected second amplification factor and output an amplified second detection result as a second amplified signal;
- a third amplifier configured to amplify the third detection result based on a corrected third amplification factor and output an amplified third detection result as a third amplified signal;
- a first influence degree correction unit indicating an influence degree of the magnetic field generated by the current flowing through each of the second conductor and the third conductor with respect to the first detection result and configured to correct a first influence degree;
- a second influence degree correction unit indicating an influence degree of the magnetic field generated by the current flowing through each of the first conductor and the third conductor with respect to the second detection result and configured to correct a second influence degree;
- a third influence degree correction unit indicating an influence degree of the magnetic field generated by the current flowing through each of the first conductor and the second conductor with respect to the third detection result and configured to correct a third influence degree;
- a first correction unit configured to correct the first amplified signal based on a corrected first influence degree, the second amplified signal, and the third amplified signal;
- a second correction unit configured to correct the second amplified signal based on a corrected second influence degree, the first amplified signal, and the third amplified signal;
- and
- a third correction unit configured to correct the third amplified signal based on a corrected third influence degree, the first amplified signal, and the second amplified signal.