The invention discloses an automatic bean curd maker and an automatic soybean milk machine. The automatic bean curd maker comprises a soybean milk cup, a filter screen, a heater, a motor, a stirrer and a controller, wherein the filter screen is arranged in the soybean milk cup, and the stirrer is connected with the motor and arranged in the filter screen and the automatic bean curd maker further comprises a discharging valve and a bean curd box, wherein the discharging valve is arranged on the soybean milk cup, the bean curd box is used for holding the soybean milk flowing out from the discharging valve, and the controller is used for controlling a heater to heat water contained in the soybean milk cup to a set temperature and then controlling the motor to drive the stirrer to rotate and the discharging valve comprises a valve motor, a hose, a press lever, a check block, a spring and a spring retaining wall, wherein the press lever and the check block are arranged on two sides of the hose, one side of the press lever is connected with the valve motor through a transmission lever, the opposite other side of the press lever is connected with one end of the spring, the other end of the spring is connected with the spring retaining wall, and the valve motor is use for driving the press lever to act.