Refrigerator and method for controlling same
A refrigerator is configured to enable a user to open doors of the refrigerator easily. The refrigerator performs a method for controlling the doors to prevent from opening due to a malfunction.
1. A method for controlling a refrigerator, the method comprising:
performing a sensing-on to determine whether a distance from the refrigerator to a user is less than a sensing distance through a sensor;
performing primary determination to primarily determine, based on a duration of the sensing-on being greater than or equal to a preset time (T 1 ), that the user intends to open at least one of a left door or a right door of the refrigerator;
determining whether the user is out of the sensing distance through the sensor after the primary determination;
performing secondary determination to select one of a plurality of door opening modes according to a time spent till a sensing-off after the primary determination; and
performing door opening by driving a door opening device to open at least one of the left door or the right door, according to the selected mode.
2. The method of claim 1 , wherein the plurality of door opening modes comprise a first mode configured to open one of the left and right doors.
3. The method of claim 2 , wherein the plurality of door opening modes comprise a second mode configured to open all of the left and right doors.
4. The method of claim 1 , wherein, after the primary determination, notification is performed to notify that the door opening device is scheduled to be driven to the user.
5. The method of claim 4 , wherein, in the notification, the notification is performed in different manners according to the plurality of door opening modes.
6. The method of claim 1 , wherein performing the secondary determination comprises:
based on a time spent for the sensing-off being less than a preset time (T 2 ) after the primary determination, selecting a first driving mode among the plurality of driving modes.
7. The method of claim 6 , wherein performing the secondary determination further comprises:
based on the time spent for the sensing-off being less than a preset time (T 3 ) that is greater than the preset time (T 2 ), selecting a second driving mode among the plurality of driving modes.
8. The method of claim 7 , further comprising:
based on an elapse of the preset time (T 3 ) to perform the sensing-off, returning to perform the sensing-on.