Summary of the invention
Aiming at the above defects or improvement requirements of the prior art, the present invention provides one kind is under different conditions at three kinds
Black phenanthrene pot does not have liquid, partly fills detection device under state and hydraulically full.
The technical scheme is that
A kind of reflective biliquid level detecting apparatus for black luxuriant and rich with fragrance pot, including the luxuriant and rich with fragrance pot of an ink, two sensors, conversion electricity
Road, control circuit;Sensor is made of a RF transmitter, infrared absorber and two light pipes;RF transmitter,
Infrared absorber is respectively placed in the light pipe of the two sides on black luxuriant and rich with fragrance pot same level face;
Sensor one is set to the top of black luxuriant and rich with fragrance pot, and sensor two is set to the lower part of black luxuriant and rich with fragrance pot,
Light pipe on RF transmitter is by ink luxuriant and rich with fragrance pot one end to having a reflector one;
Light pipe on infrared absorber is equipped with a reflector two by ink luxuriant and rich with fragrance pot one end upwards;
It is same level position on reflector one and infrared absorber;
It is same level position on reflector two and RF transmitter;
The input terminal and output end of sensor are respectively equipped with conversion circuit;
The sensor one and sensor two in the mutually perpendicular two pairs of sensors of same level respectively by constituting;
Sensor exports two voltages Ve1, Ve2 in endpoint e after conversion circuit, after the converted circuit of sensor two
Endpoint e exports two voltages Ve3, Ve4;
Control circuit is including an A/D conversion circuit and for controlling tetra- input signal numerical value of Ve1, Ve2, Ve3, Ve4
Comparison and state judgement controller.
Further, above controller is embedded controller,
When normal infusion, aforementioned four signal meets following relationship simultaneously:
a)-0.2<(Ve1-Ve2)/Ve2<0.2;
b)-0.2<(Ve3-Ve4)/Ve4<0.2;
C) -0.7>(Ve1-Ve3)/Ve3 or 0.7<(Ve1-Ve3)/Ve3;
Other situations are abnormal condition, illustrate that following failure or mistake occurs:
A) sensor degradation;
B) infusion has been completed.
Further, above-mentioned RF transmitter, infrared absorber are respectively a LED light emitting diode D1 and a light
Quick triode D2.
Further, the output end of the sensor and output end are respectively equipped with conversion circuit, conversion circuit include power supply,
LED current-limiting resistance R1 and a resistance (R2) and capacitor (C1) parallel circuit.
A kind of warning device including above-mentioned any reflective biliquid level detecting apparatus for the luxuriant and rich with fragrance pot of ink, liquid level detection device
Further include an execution circuit, when normal infusion, does not need to alarm, at this time Vout > 0, buzzer does not work;
When breaking down or being wrong, Vout≤0, buzzer is started to work.
Further, above-mentioned execution circuit is two resistance and two triodes, the base stage b connection resistance R7 of triode D5
One end, the base stage b, D5 of the collector C connection D6 of D5 emitter e ground connection, the hair of collector c connection the power supply VCC, D6 of D6
One end of emitter-base bandgap grading e connection buzzer, the both ends of resistance R8 are separately connected the collector C of the power supply VCC and D5.
In general, through the invention it is contemplated above technical scheme is compared with the prior art, technical side of the invention
Case is easy to operate, accuracy is higher;Reflector facilitates circuit and more accurately judges state, reduces circuit required precision, favorably
Cost is reduced in circuit.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below
Not constituting a conflict with each other can be combined with each other.
Referring to Fig. 1, a kind of reflective biliquid level detecting apparatus of the luxuriant and rich with fragrance pot of ink, by the luxuriant and rich with fragrance pot 1 of an ink, two sensors 2 are constituted;
Wherein one group of sensor (sensor one) is placed in the lower part of black luxuriant and rich with fragrance pot 1, another (sensor two) is placed in the lower part of black luxuriant and rich with fragrance pot 1.
The structure of sensor one and sensor two is illustrated in fig. 1 shown below, and each pair of sensor includes a LED light emitting diode
D1, a phototriode D2, two light pipes 23;Light pipe 23 is opaque tubular structure, can be using such as opaque modeling
The materials such as expects pipe.
The structure of phototriode and common triode is similar;Be a difference in that phototriode must have one to light
Sensitive PN junction generally uses collector junction as light knot, therefore, phototriode is substantially that one kind is equivalent to as photosurface
The common triode of photodiode is connected between base stage and collector.Phototriode and general semiconductor triode one
Sample is using the transistor made of semiconductor fabrication process with NPN or positive-negative-positive structure.It in structure with semiconductor three
Pole pipe is similar, its extraction electrode usually only two, also there are three.For the requirement for adapting to photoelectric conversion, its base area face
Product is made larger, and emitter region area is made smaller, and incident light is mainly absorbed by base area.As photodiode, the core of pipe
Piece is installed in in glass lens Can, and when light irradiation, rays pass through lens cover is on chip.When having
When the PN junction of light sensitive characteristic is by light radiation, photoelectric current is formed, resulting photogenerated current enters emitter by base stage, thus
It obtains one in collector loop and is exaggerated to be equivalent to β times of signal code.
LED light emitting diode is placed in light pipe, and the effect of this light pipe is the light for converging LED light emitting diode and issuing
Line;Phototriode D2 receives the light of D1, and generates output electric current corresponding with light intensity, the effect of light pipe be by
The light in other directions shelters from, and so that D2 is only received the light of D1 sending, to reduce the interference of ambient light.
Whether the effect of sensor is in measurement propagation path of light comprising liquid.The attenuation rate that light is propagated in water is greater than
The attenuation rate that light is propagated in air, when light is infrared ray, the comparison (or differentiation) of this attenuation effect is become apparent from.
When sensor one is same or similar with the output electric current of sensor two, illustrate that there are two kinds of feelings for the luxuriant and rich with fragrance pot of the ink of perfusion tube
Condition, one is being all air in black luxuriant and rich with fragrance pot, this illustrates that infusion has been completed, and needs to export alarm signal, notifies medical staff;Separately
It is entirely liquid that a kind of situation, which is in black luxuriant and rich with fragrance pot, illustrates that failure occurs in infusion, is equally also required to notify medical staff.
When sensor one and the significantly different output electric current of sensor two, there are two kinds of situations.The first is sensor one
Output electric current be significantly less than the output electric current of sensor two, illustrate that sensor breaks down, need to export alarm signal, carry out
Maintenance;Second situation is that the output electric current of sensor one is significantly greater than the output electric current of sensor two, illustrates to deposit in black luxuriant and rich with fragrance pot
In medical fluid, and that full of the luxuriant and rich with fragrance pot of ink, such situation does not belong to normal infusion state, output alarm signal is not needed.
In conclusion when output electric current (output voltage) > sensor two output electric current (voltage) of only sensor one,
It does not need to alarm, other situations are required to alarm.
The effect of reflector: light neutralizes in air the ratio of the decaying of the light after repeatedly refraction at water (medical fluid) respectively
Value, it is identical as the ratio that single is propagated, but the attenuation value that repeatedly attenuation value of light can be propagated than single after refraction subtracts
It is few very much, the absolute value variation of the difference of the attenuation value of the light after repeatedly refraction is neutralized in air at water (medical fluid) respectively
It is bigger, facilitate circuit and more accurately judge state, reduces circuit required precision, being conducive to circuit reduces cost.
For example: assuming that light intensity when LED is projected is 100
Numerical value after 5 refractions of numerical value decaying after single propagation light intensity decaying
Air 99 95
Water 90 50
Obviously, the quantity difference between 99 and 90, hence it is evident that greater than the quantity difference between 95 and 50.
Referring to fig. 2, be black luxuriant and rich with fragrance pot the same section of liquid level detection device two sensor schematic top plan views;Namely exist
The liquid level detection device of black phenanthrene pot shares 2 groups, i.e., each one group upper and lower, is above sensor one, is below sensor two.
Every group of structure in the mutually perpendicular two pairs of sensors of same level is as shown in Figure 2, and each pair of sensor includes
One LED light emitting diode D1, a phototriode D2, two light pipes;Light pipe is opaque tubular structure, can be adopted
With the materials such as such as opaque plastics pipe.
Referring to Fig. 3, conversion circuit:
Since infusion is a gradual process, and the output voltage of sensor and electric current are a transients, may be by outer
The interference on boundary and false alarm needs to be converted to the transient of sensor using conversion circuit to reduce and eliminate false alarm
One stationary value.
Simple conversion circuit includes power supply, LED current-limiting resistance R1 and a resistance R2 and capacitor (C1) parallel circuit, electricity
The capacitance of appearance is generally bigger, such as tens microfarads, and specific value is determined by test.The output of conversion circuit is endpoint e.Then pass
Sensor exports two voltages Ve1, Ve2 in endpoint e after conversion circuit, then defeated in endpoint e after the converted circuit of sensor two
Two voltages Ve3, Ve4 out.
Referring to fig. 4, control circuit:
Control circuit includes A/D conversion circuit, embedded controller.Input signal is Ve1, Ve2, Ve3, Ve4, output letter
Number be execution circuit driving signal.
The type of A/D conversion chip is very more, and the standard of selection is mainly cost, conversion time, simulation input port
Quantity etc..This patent without limitation, is only arranged in physical circuit and is cited an actual example in right item, a kind of A/D circuit of selection
Using chip ADC0809.Its major parameter is as follows:
Simulation input port quantity: 8
Conversion time: 128us
Output data: 8
The type of embedded controller is also very more, and the chip that can choose includes C51, Z80, ARM, FPGA, X86 etc..
This patent without limitation, is only arranged in physical circuit and is cited an actual example, using AT89C51 single-chip microcontroller in right item.
The physical circuit figure of control circuit is as follows, and main pin and connecting wire, power supply, clock are only listed in circuit diagram
Crystal oscillator, reset etc. assist pin and wiring unlisted.
ADC0809 chip, which illustrates, sees annex
Ve1 and Ve2 are mutually backups, and Ve3 and Ve4 are mutually backups, four input signal numerical value such as Ve1, Ve2, Ve3, Ve4
Comparison and state judgement are as follows.
1, when normal infusion, aforementioned four signal meets following relationship simultaneously:
d)-0.2<(Ve1-Ve2)/Ve2<0.2;
e)-0.2<(Ve3-Ve4)/Ve4<0.2;
F) -0.7>(Ve1-Ve3)/Ve3 or 0.7<(Ve1-Ve3)/Ve3;
Illustrate: above-mentioned -0.7, the numerical value such as -0.2,0.2,0.7 are citing, and specific value is determined according to test.
2, other situations are abnormal condition, illustrate that following failure or mistake occurs, need to alarm:
A) sensor degradation;
B) infusion has been completed.
Referring to Fig. 5, execution circuit:
Execution circuit can take various forms, and main purpose is to issue various signals, such as light, sound, remind and suffer from
Person and family members or medical staff.
In figure, resistance R7 limits the base current of D5 within the allowable range, reduces power consumption, during resistance R8 limits D5 conducting
Triode electric current within the allowable range, reduce power consumption.
When output electric current (output voltage) > sensor two output electric current (voltage) of sensor one, do not need to alarm,
Vout > 0 at this time, triode D5 conducting, the base voltage of triode D6 are that zero, D6 is disconnected, and buzzer does not work;
When output electric current (output voltage)≤sensor two output electric current (voltage) of sensor one, Vout≤0,
D5 is disconnected, and D6 conducting, buzzer is started to work, and realizes the purpose of alarm.
Supplementary explanation:
VCC in all circuits is the same power supply;Ground connection in all circuits is the same ground connection.
Referring to Fig. 6, flow chart:
Overall system design figure is as follows.Including the functions mould such as sensor, conversion circuit, comparison circuit, execution circuit
Block.
Sensor one and sensor two measure different location, and export electric current;Current output sensor passes through conversion circuit
Be converted to the positive voltage or no-voltage of logic circuit;The positive voltage or no-voltage of conversion circuit output are input in comparison circuit,
The logic circuit of comparison circuit completes corresponding movement by calculating output control model, control execution circuit.
Referring to Fig. 7, ADC0809 pin configuration function declaration figure:
1~5,26~28, the IN0~road IN7:8 analog input end.
14~15,8,17~21, D0~D7:8 bit digital quantity output end.
23~25, ADDA, ADDB, ADDC:3 bit address input line, for gating in 8 tunnel simulation inputs all the way
22, ALE: address latch allows signal, and input, high level is effective, and edge is jumped on corresponding A LE, and A, B, C address state are sent
Enter in address latch.
6, START:A/D conversion starting signals, input high level is effective, when START rising edge, resets ADC0809;
Bootrom when START failing edge starts to carry out A/D conversion;In the A/D transition period, START should keep low level.This signal
Sometimes it is abbreviated as ST.
7, EOC:A/D conversion end signals, output, when A/D conversion end, this end exports a high level (transition period
Between always be low level).
9, OE: data output allows signal, inputs, and high level is effective.When A/D conversion end, this end inputs a height
Level could open output tri-state gate, export digital quantity, be converted to for controlling ternary output latch to single-chip microcontroller output
Data.OE=0, output data line are in high resistant;OE=1 exports the data being converted to.
10, CLK: clock pulse input terminal.It is required that clock frequency is not higher than 640KHZ, EOC=0, converted;
EOC=1, conversion end.The status signal can be used as the Status Flag of inquiry in use, make but also as interrupt request singal
With.
12,16, REF (+), REF (-): reference voltage.
11, Vcc: power supply, single+5V.
13, GND: ground.
Specifically, sensor one and sensor two measure different location, and export electric current;Current output sensor is by turning
Change the positive voltage or no-voltage that circuit conversion is logic circuit;It is electric that the positive voltage or no-voltage of conversion circuit output are input to comparison
Lu Zhong, the logic circuit of comparison circuit complete alarm or do not alarm corresponding by calculating output control model, control execution circuit
Movement.