A kind of method and system based on water ionizer detection water channel drain
Technical field
The present invention relates to purification water tanks to drain detection technique field, more particularly to a kind of based on water ionizer detection water
The method and system of slot draining.
Background technique
Purification water tank becomes common housed device in life, is generally used to carry out cleaning dishes and chopsticks or purify fruits and vegetables etc.,
However drain valve of wash tank blocks, then will lead in sink to work in anhydrous conditions, and asking for water is but also left in sink
Topic, and be easy to appear, sink is after the completion of cleaning, due to impeded drainage, causes sink to impregnate in water for a long time, is easy to lead
The problem of causing purification water tank damage and secondary pollution sink, it is therefore desirable to which whether real-time detection purification water tank is arranged at work
Water.
Have in the prior art and draining detector is separately provided in a device, but it is at high cost, and precision is not high, realizes
Come more complicated.
It is simple to need to design a kind of structure in summary, detection drains the higher method of precision to solve the above problems.
Summary of the invention
To solve the above-mentioned problems, it can be detected sink using water ionizer and timer the present invention provides a kind of
The method and system based on water ionizer detection water channel drain whether drained.
In order to achieve the above object, the invention adopts the following technical scheme:
A method of water channel drain is detected based on water ionizer, comprising steps of
S1: drain valve is opened, and starts timing;
S2: default water discharge time is determined according to current level, and judges whether to reach default water discharge time;If so, judgement
Whether water ionizer detects TDS value, if water ionizer detects TDS value, confirms that draining is abnormal, calls default
Drain abnormality processing process;If TDS value is not detected in water ionizer, confirm that draining is normal.
Further, step S2 includes:
S21: judging whether current level is preset water level, if so, judging whether water discharge time reaches preset water level row
The water time;
S22: if water discharge time reaches preset water level water discharge time, judging whether water ionizer detects TDS value, if
Water ionizer detects TDS value, then confirms that draining is abnormal, calls default draining abnormality processing process;If water ion occurs
TDS value is not detected in device, then confirms that draining is normal;
S23: if water discharge time does not reach preset water level water discharge time, step S1 is executed.
Further, step S22 includes:
S221: judge whether to reach the first preset water level water discharge time;If so, judging whether water ionizer detects
TDS value;
S222: if TDS value is not detected in water ionizer, continuing to drain, and judges whether to reach the second preset water level row
The water time;If so, judging whether water ionizer detects TDS value;
S223: if water ionizer detects TDS value, confirming that draining is abnormal, calls default draining abnormality processing stream
Journey carries out draining abnormal alarm according to preset alarm mode;If TDS value is not detected in water ionizer, draining is being confirmed just
Often.
A kind of system based on water ionizer detection water channel drain, comprising:
Timing module carries out timing for the draining to drain valve;
Ion generator detects TDS value for judging whether;
Confirmation module is drained, for judging whether water ionizer detects TDS value when reaching default water discharge time,
And when water ionizer detects TDS value, confirmation draining is abnormal, when TDS value is not detected in water ionizer, confirmation
Draining is normal.
Further, draining confirmation module includes:
Water unit is judged, for judging whether current level is pre- according to the water level sensor of inboard wall of cistern predeterminated position
If water level;
Time quantum is judged, for being reduced to default discharge level according to water channel drain amount when water level is preset water level
Time difference be the preset condition time, carry out timing after system valve opening, and judge whether the time reaches the preset condition time;
TDS unit is judged, for judging whether water ionizer detects when water discharge time reaches the preset condition time
To TDS value;
Confirmation unit is drained, for detecting TDS value when ion generator, confirmation draining is abnormal, and water ionizer is not
Detect TDS value, confirmation draining is normal.
Further, judge time quantum:
Judge first time unit, reaches the first default water discharge level water discharge time for judging whether;
The second time quantum is judged, for the simultaneously water ionizer inspection when reaching the first default discharge level water discharge time
TDS value is measured, continues to drain, judges whether to reach the second default discharge level water discharge time.
Further, judge that TDS unit includes:
First judges TDS unit, for judging water ionizer when reaching the first default discharge level water discharge time
Whether TDS value is detected;
Second judges TDS unit, for judging that water ionizer is when reaching the second default discharge level water discharge time
It is no to detect TDS value.
Further, draining confirmation unit includes:
First draining confirmation unit, for when water discharge time reaches the preset condition time, water ionizer not to be detected
To TDS value, confirmation draining is normally;When water discharge time reaches the preset condition time, water ionizer detects TDS value, really
It is abnormal to recognize draining;
Alarm unit is drained, for carrying out draining abnormal alarm according to preset alarm mode when draining abnormal.
The invention has the benefit that
(1): whether being detected when reaching water ionizer water level by time timer and water ionizer judgement
To TDS value, to confirm whether sink drains normally, structure is simple, reduces cost, simple and safe.
(2) it can repeatedly confirm whether sink drains, avoid erroneous judgement, improve the accuracy of draining detection, improve
User experience.
Detailed description of the invention
Fig. 1 is the method flow diagram one for detecting water channel drain in the present invention based on water ionizer;
Fig. 2 is the method flow diagram two for detecting water channel drain in the present invention based on water ionizer;
Fig. 3 is the system structure diagram one for detecting water channel drain in the present invention based on water ionizer;
Fig. 4 is the system structure diagram two for detecting water channel drain in the present invention based on water ionizer.
Fig. 5 is the structure chart for detecting water channel drain in the present invention based on water ionizer.
In figure: 1, water ionizer;2, sink;3, top cover;4, cathode sheets;5, insulation spacer;6, anode strip;7, bottom
Seat.
Specific embodiment
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Embodiment one
A kind of method based on water ionizer detection water channel drain is present embodiments provided, as shown in Figure 1 to Figure 2,
This method comprising steps of
A method of water channel drain is detected based on water ionizer, comprising steps of
S1: drain valve is opened, and starts timing;
S2: default water discharge time is determined according to current level, and judges whether to reach default water discharge time;If so, judgement
Whether water ionizer detects TDS value, if water ionizer detects TDS value, confirms that draining is abnormal, calls default
Drain abnormality processing process;If TDS value is not detected in water ionizer, confirm that draining is normal.
Drain valve is wherein opened, water discharge time timing is carried out by time timer, then judges whether to reach default
Water discharge time;If so, judging whether water ionizer detects TDS value, if water ionizer detects TDS value, really
It is abnormal to recognize draining, if TDS value is not detected in water ionizer, confirms that draining is normal.
Specifically, after exactly opening drain valve, the water in sink starts to be discharged, and drains when reaching preset water level
When the time, judge whether current water ionizer detects TDS value, that is, in preset water level water discharge time, if draining is normal,
Then water level will be lower than the position of water ionizer, and water ionizer should be unable to detect TDS value at this time, if draining is not
Freely, then after reaching preset water level water discharge time, water level still can be more than the position of water ionizer, and water ionizer will
TDS value is detected after extended meeting, thus may determine that current sink, impeded drainage.
Further, step S2 includes:
S21: judging whether current level is preset water level, if so, judging whether water discharge time reaches preset water level row
The water time;
S22: if water discharge time reaches preset water level water discharge time, judging whether water ionizer detects TDS value, if
Water ionizer detects TDS value, then confirms that draining is abnormal, calls default draining abnormality processing process;If water ion occurs
TDS value is not detected in device, then confirms that draining is normal;
It is further preferred that the preset water level provided in the present embodiment includes preset low water level and preset high water level, into
One step, are as follows:
Judge whether current level is preset low water level;
If current level is preset low water level, judge whether to reach the first preset low water level water discharge time;If so, judgement
Whether water ionizer detects TDS value, if water ionizer detects TDS value, confirms that draining is abnormal, if water ion
TDS value is not detected in generator, then confirms that draining is normal;If it is not, continuing draining and timing;
If current level is not preset low water level, judge whether to reach the first preset high water level water discharge time;If so, sentencing
Whether ion generator of cutting off the water supply detects TDS value, if water ionizer detects TDS value, confirms that draining is abnormal, if water from
TDS value is not detected in electronic generator, then confirms that draining is normal;;If it is not, continuing draining and timing.
Corresponding water discharge time can be called to be judged according to different water levels, judge whether draining is normal, more accurately.
Further, step S22 includes:
S221: judge whether to reach the first preset water level water discharge time;If so, judging whether water ionizer detects
TDS value;
S222: if TDS value is not detected in water ionizer, continuing to drain, and judges whether to reach the second preset water level row
The water time;If so, judging whether water ionizer detects TDS value;
S223: if water ionizer detects TDS value, confirming that draining is abnormal, calls default draining abnormality processing stream
Journey carries out draining abnormal alarm according to preset alarm mode;If TDS value is not detected in water ionizer, draining is being confirmed just
Often.
Wherein in drainage procedure, error is inevitably had, the step S22 in the present embodiment is further, according to reserved
The second preset water level water discharge time carry out water level and water ionizer and detect TDS value, to carry out judging whether sink drains
Normally, wherein having corresponding testing process, specific real time steps for preset low water level and preset high water level are as follows:
Judge whether to reach the first preset low water level water discharge time;If so, judging whether water ionizer detects TDS
Value;
If water ionizer detects TDS value, continue to drain, when judging whether to reach the draining of the second preset low water level
Between;If so, judging whether water ionizer detects TDS value;
If water ionizer detects TDS value, confirm that draining is abnormal, it is abnormal to carry out draining according to preset alarm mode
Alarm;If TDS value is not detected in water ionizer, confirm that draining is normal.
Judge whether to reach the first preset high water level water discharge time;If so, judging whether water ionizer detects TDS
Value;
If water ionizer detects TDS value, continue to drain, when judging whether to reach the draining of the second preset high water level
Between;If so, judging whether water ionizer detects TDS value;
If water ionizer detects TDS value, confirm that draining is abnormal, it is abnormal to carry out draining according to preset alarm mode
Alarm;If TDS value is not detected in water ionizer, confirm that draining is normal.
This method can confirm whether water channel drain is normal by time timer and water ionizer, structure letter
It is single, safe ready, and the method for the water ionizer detection water channel drain provided in the present embodiment can be arranged repeatedly
Water confirmation, testing result is accurate, reduces erroneous judgement, improves user experience.
A kind of method based on water ionizer detection water channel drain provided in this embodiment, can pass through time timing
Whether device and water ionizer judgement detect TDS value when reaching water ionizer water level, to confirm whether sink drains,
Structure is simple, reduces cost, simple and safe.It can repeatedly confirm whether sink drains, avoid erroneous judgement, improve draining detection
Accuracy, improve user experience.
Embodiment two
A kind of system based on water ionizer detection water channel drain is present embodiments provided, as shown in Figure 3-Figure 5, this
System includes:
Timing module carries out timing for the draining to drain valve;
Ion generator detects TDS value for judging whether;
Confirmation module is drained, for judging whether water ionizer detects TDS value when reaching default water discharge time,
And when water ionizer detects TDS value, confirmation draining is abnormal, when TDS value is not detected in water ionizer, confirmation
Draining is normal.
After wherein opening drain valve, water discharge time timing is carried out by timing module, then judges whether to reach default
Water discharge time;Then judge whether water ionizer detects TDS value by draining confirmation module, if water ionizer is examined
TDS value is measured, then confirms that draining is abnormal, if TDS value is not detected in water ionizer, confirms that draining is normal.
Specifically, after exactly opening drain valve, the water in sink starts to be discharged, and drains when reaching preset water level
When the time, judge whether current water ionizer detects TDS value, that is, in preset water level water discharge time, if draining is normal,
Then water level will be lower than the position of water ionizer, and water ionizer should be unable to detect TDS value at this time, if draining is not
Freely, then after reaching preset water level water discharge time, water level still can be more than the position of water ionizer, and water ionizer will
TDS value is detected after extended meeting, thus may determine that current sink, impeded drainage.
Further, draining confirmation module includes:
Water unit is judged, for judging whether current level is pre- according to the water level sensor of inboard wall of cistern predeterminated position
If water level;
Time quantum is judged, for being reduced to default discharge level according to water channel drain amount when water level is preset water level
Time difference be the preset condition time, carry out timing after system valve opening, and judge whether the time reaches the preset condition time;
Wherein water level includes preset low water level and preset high water level, and preset low water level corresponds to preset low water level water discharge time,
Whether preset high water level corresponds to preset high water level water discharge time, respectively corresponds setting, the water channel drain of detection can be made normal more
Add accurate.
TDS unit is judged, for judging whether water ionizer detects when water discharge time reaches the preset condition time
To TDS value;
Confirmation unit is drained, for detecting TDS value when ion generator, confirmation draining is abnormal, and water ionizer is not
Detect TDS value, confirmation draining is normal.
Further, judge time quantum:
Judge first time unit, reaches the first default water discharge level water discharge time for judging whether;
The second time quantum is judged, for the simultaneously water ionizer inspection when reaching the first default discharge level water discharge time
TDS value is measured, continues to drain, judges whether to reach the second default discharge level water discharge time.
When the water in sink is in carrying out discharge process, possible sink pressure and other reasons lead to have a little error,
Therefore the judgement time quantum provided in the present embodiment includes judge first time unit and judging the second time quantum, into
One step confirms whether water channel drain normal within the scope of error time so that water channel drain be confirmed whether it is normal more accurate.
Further, judge that TDS unit includes:
First judges TDS unit, for judging water ionizer when reaching the first default discharge level water discharge time
Whether TDS value is detected;
Second judges TDS unit, for judging that water ionizer is when reaching the second default discharge level water discharge time
It is no to detect TDS value.
Wherein the corresponding judgement TDS unit of each step has corresponding judgement TDS unit, and logic is clearer, as a result more
Add accurate.
Further, draining confirmation unit includes:
First draining confirmation unit, for when water discharge time reaches the preset condition time, water ionizer not to be detected
To TDS value, confirmation draining is normally;When water discharge time reaches the preset condition time, water ionizer detects TDS value, really
It is abnormal to recognize draining;
Alarm unit is drained, for carrying out draining abnormal alarm according to preset alarm mode when draining abnormal.
When draining abnormal, the draining alarm unit in draining confirmation module provided in this embodiment can be according to preset alarm
Mode carries out draining abnormal alarm, such as flashing preset alarm lamp or buzzing preset alarm audio or the corresponding draining of display
Abnormal text notifies user's drainage jam, carries out corresponding inspection on sink control display board.
A kind of system based on water ionizer detection water channel drain provided in this embodiment, can pass through time timing
Whether device and water ionizer judgement detect TDS value when reaching water ionizer water level, to confirm whether sink drains
Normally, structure is simple, reduces cost, simple and safe.It can repeatedly confirm whether sink drains, avoid erroneous judgement, the row of improving
The accuracy of water detection, improves user experience.And when confirmation draining is abnormal, moreover it is possible to carry out corresponding preset alarm mode
Draining abnormal alarm is carried out, it is more convenient.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.