The invention discloses a washing
machine. The washing
machine comprises a cylinder main body, and a storing chamber which is formed in the outer wall of the cylinder body and used for storing a detergent; a
pressure sensor is arranged at the bottom part of the cylinder main body; a
light sensing device is arranged on the sidewall of the cylinder main body; the
pressure sensor and the
light sensing device are connected to a
microprocessor; a detergent residual content detecting device is arranged on the inner sidewall of the storing chamber; a
control switch is arranged, in a manner that the inner wall of the cylinder main body is communicated with the bottom end of the storing chamber, and is connected with the detergent residual content detecting device; the
microprocessor is connected with the detergent residual content detecting device; the
mass of fed clothes can be detected through the
pressure sensor; the size of the fed clothes can be detected through the
light sensing device; the quantity of the detergent to be fed can be calculated by the
microprocessor according to the
mass and the size; the detergent can be fed by the detergent residual content detecting device and the
control switch controlled by the
microcontroller according to the amount of the detergent to be fed. With the adoption of the washing
machine, the problem of low use experience of the washing machine in the prior art can be solved, and the user experience can be increased.