Abstract: Toothpaste and liquid enter a foam pump from a liquid inlet of the foam pump, and then a piston is driven by a telescopic motor to fully mix the toothpaste and the liquid in the foam pump. A bottom of the foam pump is connected to a top of the telescopic motor, a bottom of a connecting shaft is connected to a top of the foam pump, and a driving motor is sleeved on the connecting shaft via a first through hole. The mixed liquid may be used after flowing to a toothbrush head from a second through hole of the connecting shaft.