The invention discloses a temperature rise control method adopting a microswitch to replace a
water flow sensor. The temperature rise control method comprises the following steps that the microswitch detects that
water flow passes through, heating is conducted for a period of time with the initial power P0, the temperature is made to rise from T0 to T1, the pre-judged
water flow q0 in a pipeline is calculated according to a formula, and then the first
heating power P1 is calculated according to the set temperature T and the water flow q0; the
water body is heated at the first
heating power P1, the power is finely adjusted through a PID
algorithm, after the time
delta t, the
water temperature constantly reaches T < set >, at the moment, the second power P < constant > is recorded, the temperature
rise rate v is calculated, and then the temperature
rise rate v is compared with the standard temperature
rise rate v < standard >; if the deviation between the temperature rise rate and the standard rate is within + / -10% and the output power is Pconstant, the PID
algorithm is used for fine adjustment to control the
heating power, so that the
water temperature is constant to be Tconstant, the temperature rise rate is calculated and compared with the standard rate every time interval t1, and the previous step is returned to judge whether the deviation between the temperature rise rate and the standard rate is within + / -10%; if the temperature rise rate and the standard rate are not within the deviation range of + / -10%, constant heating is conducted for a period of time with P, the temperature rise
delta T3 is calculated, qA is calculated, PA and output power PA are calculated according to qA, and the heating power is finely adjusted and controlled through a PID
algorithm. The accuracy of water flow detection is not affected by incrustation, temperature rise is regulated and controlled according to the measured water flow, the constant temperature speed is high, better use experience is provided for a user, and the service life of a product is also prolonged.