Refrigerator and method of controlling the same
A refrigerator including a refrigerator compartment, a dairy product maker inside the refrigerator compartment, a control panel configured to receive a control command, and a controller configured to control the dairy product maker based on the control command, the dairy product maker includes a container to store milk or a dairy product, a heater configured to heat the milk stored in the container, a fan configured to supply cool air inside the refrigerator compartment to the container, and a temperature sensor configured to measure a temperature inside of the dairy product maker, and the controller operates the heater for a preset fermentation period in response to the control command, turns off the heater and turns on the fan to cool down inside of the container after a lapse of the preset fermentation period, and turns off the fan in response to completing of the cooling down inside of the container.
1 . A refrigerator comprising:
a refrigerator compartment;
a dairy product maker provided inside the refrigerator compartment and to produce a dairy product;
a control panel configured to receive a control command for the dairy product maker and display a state of the dairy product maker; and
a controller configured to control the dairy product maker based on the received control command,
wherein the dairy product maker comprises:
a container to store milk to produce the dairy product or to store the produced dairy product;
a heater configured to heat the milk stored in the container;
a fan configured to supply cool air inside the refrigerator compartment to the container; and
a temperature sensor configured to measure a temperature inside of the dairy product maker, and
wherein the controller operates the heater to turn on for a preset fermentation period to produce the dairy product in response to receiving the control command, to turn off the heater and to turn on the fan to cool down the inside of the container to a preset cooling temperature after the preset fermentation period has elapsed, and to control the fan to cool the inside of the container at a preset refrigeration temperature to keep the produced dairy product refrigerated in response to completing of the cooling down inside of the container, and
wherein the preset refrigeration temperature is lower than the preset cooling temperature.
2 . The refrigerator according to claim 1 , wherein the control command includes a control command for a first fermentation mode or a control command for a second fermentation mode, and wherein a fermentation period corresponding to the first fermentation mode is shorter than a fermentation period corresponding to the second fermentation mode.
3 . The refrigerator according to claim 2 , wherein the controller operates the heater for the fermentation period corresponding to the first fermentation mode in response to receiving the control command for the first fermentation mode, and extends an operation period of the heater to operate the heater for the fermentation period corresponding to the second fermentation mode in response to receiving the control command for the second fermentation mode while the first fermentation mode is in progress.
4 . The refrigerator according to claim 2 , wherein the controller operates the heater for the fermentation period corresponding to the second fermentation mode in response to receiving the control command for the second fermentation mode, and compares a fermentation period progressed according to the second fermentation mode with the fermentation period corresponding to the first fermentation mode in response to receiving the control command for the first fermentation mode while the second fermentation mode is in progress.
5 . The refrigerator according to claim 4 , wherein the controller operates the heater during the fermentation period corresponding to the first fermentation mode in response to the fermentation period progressed according to the second fermentation mode being shorter than the fermentation period corresponding to the first fermentation mode, and the controller turns off the heater in response to the fermentation period progressed according to the second fermentation mode being longer than the fermentation period corresponding to the first fermentation mode.
6 . The refrigerator according to claim 2 , wherein the controller turns off the heater and turns on the fan in response to receiving a control command for a cooling mode while the heater operates, and
turns off the fan and turns on the heater in response to receiving a control command for the first fermentation mode or a control command for the second fermentation mode while the fan operates.
7 . The refrigerator according to claim 1 , wherein the controller counts a progression of the preset fermentation period in response to the temperature of the dairy product maker being higher than a preset fermentation start temperature, and
turns on the heater to increase the temperature of the dairy product maker to the preset fermentation start temperature in response to the temperature of the dairy product maker being below the preset fermentation start temperature, and counts the progression of the preset fermentation period from a time point at which the temperature of the dairy product maker reaches the fermentation start temperature.
8 . The refrigerator according to claim 1 , wherein the controller determines whether an error occurs in the temperature sensor while operating during the preset fermentation period in response to receiving the control command for the dairy product maker, and
in response to determining that there is an error in the temperature sensor, the controller turns off the heater after the heater is turned on for a preset first period from a time point at which the heater is turned on, and operates the fan for a preset second period to produce the dairy product after the heater is turned off.
9 . The refrigerator according to claim 8 , wherein the controller controls the control panel to display an error state in response to determining that an error occurs in one or more of the heater, the fan, and the temperature sensor.
10 . The refrigerator according to claim 8 , wherein the controller controls the control panel to display a production completion state after a preset third period has elapsed after the heater is turned off.
11 . The refrigerator of claim 10 , wherein the preset third period is shorter than the preset second period.
12 . The refrigerator according to claim 8 , wherein the controller determines an error of the temperature sensor in response to the controller receiving an output of the temperature sensor is 0V or an input voltage of the temperature sensor is 0V.
13 . The refrigerator according to claim 8 , wherein the controller determines an error of the temperature sensor in response to the temperature sensor outputting a temperature lower than or equal to a preset first reference temperature for a preset reference period or longer.
14 . The refrigerator according to claim 8 , wherein the controller determines an error of the temperature sensor in response to the temperature sensor outputting a temperature above a preset second reference temperature for a preset reference period or longer.