A kind of liquid-detecting
Technical field
The utility model relates to a kind of detection device, specifically a kind of liquid-detecting, main application is about dish-washing machine
Or on other watering equipments.
Background technique
Detection liquid level generallys use pressure sensor, electrode catheter etc. to detect liquid level at present;Wherein, pressure sensor valence
Lattice are expensive, and driving testing circuit is complicated, and temperature drift is big;Electrode control needle then needs to protrude into electrode in liquid, and safety is poor, and electrode
Electrochemical reaction is easy to happen after energization in a liquid, shortens electrode life.The device of the utility model liquid measure, does not need
Liquid is directly contacted, a kind of cheap and durable and safe device are provided.
Chinese patent CN107202622A discloses a kind of liquid metering device and the circuit for liquid meter detection,
Disclosed technology can measure liquid to a certain extent, but there are following two obvious shortcomings:
1, there are performance differences for the optoelectronic switch in the circuit of the patent disclosure, when the electric current of optoelectronic switch transmitting terminal is fixed
When, a part of transmitting tube in optoelectronic switch works in magnifying state, and a part of transmitting tube then works in saturation conduction state;When
Reception pipe works in saturation conduction state, and when liquid-transparent in measurement pipe and pipe is good, though there is a small amount of light to reflect,
But it remains to that optoelectronic switch work is made to be saturated logical state, thus can not detect in measurement pipe whether there is liquid;
2, the patent disclosure " center of circle of the measurement pipe is located at upper end and the light receiving element of the light emitting devices
On the line of upper end ", this structure will lead to light vertical irradiation in measurement pipe and pass perpendicularly through the water column in measurement pipe, then according to
To the receiving end of optoelectronic switch, such light is nearly free from refraction, to can't detect whether measurement pipe has water.
Therefore, it is necessary to be further improved in view of the foregoing drawbacks to the prior art.
Utility model content
The purpose of the utility model is to overcome above-mentioned the shortcomings of the prior art, and provide that a kind of design is simple, knot
Structure is reasonable, at low cost, reliable performance, liquid-detecting durable, safety coefficient is high.
Purpose of the utility model is realized as follows:
A kind of liquid-detecting, including detection circuit board;It is used for it is characterized by: being provided in the detection circuit board
Output detection pwm signal and the control processing circuit of storage verification PWM duty cycle parameter, the PWM product for controlling PWM duty cycle
Parallel circuit, the piezoelectric type constant-current source circuit for exporting suitable current and the photoelectric detective circuit for measuring liquid;The control
Processing circuit, PWM integrating circuit, piezoelectric type constant-current source circuit and photoelectric detective circuit processed are sequentially connected;The liquid detecting dress
Setting further includes measurement pipe for leading to liquid, and photoelectric detective circuit includes optoelectronic switch, and measurement pipe is located at the transmitting of optoelectronic switch
Between end and receiving end.
The control processing circuit includes verifying the memory cell of PWM duty cycle parameter and for exporting detection for storing
The MCU of pwm signal, memory cell and MCU are connected with each other.
The PWM integrating circuit includes resistance R, resistance R and capacitor C, and the one end resistance R connects the output end of MCU, resistance R
One end and the one end capacitor C are separately connected the resistance R other end, and the resistance R other end and the capacitor C other end are grounded respectively.
The piezoelectric type constant-current source circuit includes resistance R, resistance R, triode Q and Integrated circuit IC;Integrated circuit IC
Positive terminal connects the end V in PWM integrating circuit, and the negative pole end of Integrated circuit IC connects the one end resistance R, the output of Integrated circuit IC
The one end resistance R, resistance R other end ground connection are held, the end B of triode Q connects the resistance R other end, and the end E of triode Q connects resistance R
One end.
The photoelectric detective circuit further includes resistance R;The transmitting terminal of the C-terminal connection optoelectronic switch of the triode Q, photoelectricity
The receiving end of switch connects the one end resistance R, resistance R other end ground connection, the test side of the end the V connection MCU of photoelectric detective circuit.
There is detection ray between the transmitting terminal and receiving end, the center of circle of measurement pipe is not on detection ray.
The measurement pipe is the hard round tube of matter, outer diameter >=5mm, internal diameter >=3mm, light transmittance >=30%.
This liquid-detecting further includes detection mounting box, and detection circuit board is set to detection mounting box inner cavity, measurement pipe
On be provided with mounting base, measurement pipe is by mounting base fixing assembling on detection mounting box.
The beneficial effects of the utility model are as follows:
The utility model is provided with by control processing circuit, PWM integrating circuit, piezoelectric type constant-current source circuit and Photoelectric Detection
The detection circuit of circuit composition, when work, first pass through control processing circuit verification, control the MCU in processing circuit to Photoelectric Detection
Each optoelectronic switch sets suitable and constant operating current in circuit, guarantees that each optoelectronic switch all works in magnifying state, has
Effect improves detection performance, guarantees that testing result is precisely reliable.The center of circle of measurement pipe is not in the inspection of optoelectronic switch in the utility model
It surveys on ray, i.e. detection ray and measurement pipe surface forms an angle, is advantageous for the refraction of light in this way, increases measurement
Reliability.
Detailed description of the invention
Fig. 1 is the exploded view of an embodiment of the present invention.
Fig. 2 is the assembling top view of an embodiment of the present invention.
Fig. 3 is the cross-sectional view of an embodiment of the present invention.
Fig. 4 is the detection circuit figure of an embodiment of the present invention.
Specific embodiment
The utility model is further described with reference to the accompanying drawings and embodiments.
Referring to figures 1-4, this liquid-detecting, including detection circuit board 1 are provided with for defeated in detection circuit board 1
The control processing circuit 4 of pwm signal and storage verification PWM duty cycle parameter, the PWM product for controlling PWM duty cycle are detected out
Parallel circuit 5, the piezoelectric type constant-current source circuit 6 for exporting suitable current and the photoelectric detective circuit 7 for measuring liquid;Control
Processing circuit 4, PWM integrating circuit 5, piezoelectric type constant-current source circuit 6 and photoelectric detective circuit 7 are sequentially connected, and form a control
And measurement closed loop circuit;Liquid-detecting further includes the measurement pipe 2 for leading to liquid, and photoelectric detective circuit 7 is opened including photoelectricity
8 are closed, measurement pipe 2 is located between the transmitting terminal 801 and receiving end 802 of optoelectronic switch 8.The utility model is provided with and is handled by control
The detection circuit that circuit 4, PWM integrating circuit 5, piezoelectric type constant-current source circuit 6 and photoelectric detective circuit 7 form, when work, pass through
It controls processing circuit 4 to verify, the MCU controlled in processing circuit 4 is set properly to optoelectronic switch 8 each in photoelectric detective circuit 7
And constant operating current, guarantee that each optoelectronic switch 8 all works in magnifying state, effectively improve detection performance, guarantees detection knot
Fruit is precisely reliable.
Further, control processing circuit 4 includes for storing the memory cell for verifying obtained PWM duty cycle parameter
The 401 and MCU 402 for exporting detection pwm signal, memory cell 401 and MCU 402 are connected with each other.
Further, PWM integrating circuit 5 includes resistance R1, resistance R2 and capacitor C1, and the one end resistance R1 connects MCU 402
Output end, the one end resistance R2 and the one end capacitor C1 be separately connected the resistance R1 other end, and the resistance R2 other end and capacitor C1 are another
End is grounded respectively.The I1 that PWM integrating circuit 5 exports electric current is directly proportional to the V1 of input voltage.
Further, piezoelectric type constant-current source circuit 6 includes resistance R3, resistance R4, triode Q1 and Integrated circuit IC 1;Collection
At the end V1 in the positive terminal connection PWM integrating circuit 5 of IC circuit 1, the negative pole end of Integrated circuit IC 1 connects the one end resistance R3,
The end B of one end output end resistance R4 of Integrated circuit IC 1, resistance R3 other end ground connection, triode Q1 connects the resistance R4 other end,
The end E of triode Q1 connects the one end resistance R3.
Further, photoelectric detective circuit 7 further includes resistance R5;The transmitting terminal of the C-terminal connection optoelectronic switch 8 of triode Q1
801, the receiving end 802 of optoelectronic switch 8 connects the one end resistance R5, and the end V2 of resistance R5 other end ground connection, photoelectric detective circuit 7 connects
Connect the test side of MCU 402.
Further, detection ray a, the center of circle b of measurement pipe 2 do not penetrate in detection between transmitting terminal 801 and receiving end 802
On line a, makes to detect ray b and 2 surface shape of measurement pipe in an angle, be advantageous for the refraction of light in this way, increase measurement
Reliability.
Further, measurement pipe 2 is the hard round tube of matter, outer diameter >=5mm, internal diameter >=3mm, light transmittance >=30%.
It further, further include detection mounting box 3, detection circuit board 1, which is set to, detects 3 inner cavity of mounting box, in measurement pipe 2
It is provided with mounting base 9, measurement pipe 2 is by 9 fixing assembling of mounting base on detection mounting box 3.
The detection method of this liquid-detecting includes circuit checks and liquid detecting:
Circuit checks,
1) MCU 402 sets a kind of verifying work mode, when no liquid in measurement pipe 2, MCU 402 is artificially allowed to enter school
Test mode;
2) MCU 402 exports the pwm signal of suitable duty ratio, and piezoelectric type constant-current source circuit 5 is made to export suitable electric current
I1, this electric current I1 make the receiving end 802 of optoelectronic switch 8 work in magnifying state;
3) MCU 402 detects that the work of optoelectronic switch 8 is write after magnifying state, then by the duty cycle parameters of this pwm signal
Enter to control in the memory cell 401 in processing circuit 4.
Liquid detecting,
A) after entering operating mode, MCU 402 reads PWM duty cycle signal and output pwm signal from memory cell 401;
B) when having liquid in measurement pipe 2, the detection ray a issued from the transmitting terminal 801 of optoelectronic switch 8 is by measurement
Liquid refracting in pipe 2;
If c) most of light can not be mapped to the receiving end 802 of optoelectronic switch 8, electric current I2 reduces, voltage V2 reduces,
To detect in measurement pipe 2 there is liquid.
The above-mentioned preferred embodiment for the utility model, has been shown and described the basic principles and main features of the utility model
And the advantages of the utility model.Those skilled in the art should be recognized that the present utility model is not limited to the above embodiments, on
It states and only illustrates the principles of the present invention described in embodiment and specification, do not departing from the spirit and scope of the utility model
Under the premise of the utility model also has various changes and improvements, these changes and improvements both fall within claimed it is practical new
Within the scope of type.The utility model requires protection scope is defined by appended claims and its equivalent.