Electronic parking brake system in vehicle and method of controlling the same
Disclosed are an electronic parking brake (EPB) system and a method of controlling the same. The EPB system includes a motor, a first Hall sensor configured to sense a current flowing through the motor, a second Hall sensor configured to sense a current flowing through the motor, and a controller configured to determine the motor to have a failure when a magnetic change of the first Hall sensor and a magnetic change of the second Hall sensor do not match a preset pattern during an apply operation of the motor.
1. An electronic parking brake (EPB) system comprising:
a motor;
a first Hall sensor configured to sense a current flowing through the motor;
a second Hall sensor configured to sense a current flowing through the motor; and
a controller configured to determine the motor to have a failure when a magnetic change of the first Hall sensor and a magnetic change of the second Hall sensor do not match a preset pattern during an apply operation of the motor.
2. The EPB system of claim 1 , wherein the controller senses the magnetic changes at a predetermined time interval to determine whether the magnetic changes match the preset pattern.
3. The EPB system of claim 2 , wherein the controller determines whether the second Hall sensor has a failure on the basis of the magnetic change of the first Hall sensor, or determines whether the first Hall sensor has a failure on the basis of the magnetic change of the second Hall sensor.
4. The EPB system of claim 1 , wherein the controller is configured to:
determine whether the motor has a failure when current flowing through the motor is below a preset threshold value; and
determine that a parking brake is engaged when current flowing through the motor is equal to or greater than the preset threshold value.
5. The EPB system of claim 1 , wherein the controller warns a malfunction of the EPB system when the motor is determined to has a failure.
6. The EPB system of claim 1 , wherein each of the first and second Hall sensors comprise one or more magnetic field detectors configured to detect magnetism, and the controller is configured to compare the magnetic changes of the first and second Hall sensors with the preset pattern.
7. A method of controlling an electronic parking brake (EPB) system including a motor and at least two Hall sensors for sensing a current flowing through the motor, the method comprising:
comparing a magnetic change of a first Hall sensor and a magnetic change of a second Hall sensor with a preset pattern during an apply operation of the motor; and
determining the motor to have a failure when the magnetic change of the first Hall sensor and the magnetic change of the second Hall sensor do not match the preset pattern.
8. The method of claim 7 , further comprising sensing the magnetic changes at a predetermined time interval to determine whether the magnetic changes match the preset pattern.
9. The method of claim 8 , further comprising determining whether the second Hall sensor has a failure on the basis of the magnetic change of the first Hall sensor, or determining whether the first Hall sensor has a failure on the basis of the magnetic change of the second Hall sensor.
10. The method of claim 7 , further comprising comparing the magnetic change of the first Hall sensor and the magnetic change of the second Hall sensor with the preset pattern when a current flowing through the motor is below a preset threshold value.
11. The method of claim 7 , further comprising warning a malfunction of the EPB system when the motor is determined to have a failure.
12. The method of claim 7 , further comprising detecting, by one or more magnetic field detectors included in each of the first and second Hall sensors, magnetism to compare the magnetic changes of the first and second Hall sensors with the preset pattern.