CN212903442U - Water tank state detection circuit based on microcontroller - Google Patents

Water tank state detection circuit based on microcontroller Download PDF

Info

Publication number
CN212903442U
CN212903442U CN202021359020.5U CN202021359020U CN212903442U CN 212903442 U CN212903442 U CN 212903442U CN 202021359020 U CN202021359020 U CN 202021359020U CN 212903442 U CN212903442 U CN 212903442U
Authority
CN
China
Prior art keywords
microcontroller
water tank
electrode
pin
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202021359020.5U
Other languages
Chinese (zh)
Inventor
雷杰
李嘉龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Sunstrong Electric Machinery Co ltd
Original Assignee
Dongguan Sunstrong Electric Machinery Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Sunstrong Electric Machinery Co ltd filed Critical Dongguan Sunstrong Electric Machinery Co ltd
Priority to CN202021359020.5U priority Critical patent/CN212903442U/en
Application granted granted Critical
Publication of CN212903442U publication Critical patent/CN212903442U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The utility model discloses a water tank state detection circuitry based on microcontroller, it includes microcontroller, the unit of charging and discharging that is connected with this microcontroller, the water tank voltage detection unit who is connected with this microcontroller, be connected with this unit of charging and discharging and water tank voltage detection unit and be used for inserting the Lo electrode in the water tank, insert the Hi electrode in this water tank, a pin ground connection in this microcontroller, and this Hi electrode one end ground connection, this Lo electrode and Hi electrode still are connected with first resistance, a pin connects the VCC power in this microcontroller. The utility model discloses a microcontroller cooperation is charged and discharge unit, water tank voltage detection unit and be used for inserting the Lo electrode and the Hi electrode of water tank can realize clear water, the full state purpose that detects of sewage, can also realize the full state purpose that detects of quick undulant water, can also realize that the water tank removes and the purpose that detects of inserted state, and it is very convenient to use.

Description

Water tank state detection circuit based on microcontroller
The technical field is as follows:
the utility model relates to a full detection technical field of water refers in particular to a water tank state detection circuitry based on microcontroller.
Background art:
in the existing full water detection circuit, the following two methods are adopted for detection:
the first mode is as follows: the floater is used for detection, and the installation is difficult in a narrow space; difficult to determine for water tank removal and insertion; for rapidly fluctuating water, it is difficult to achieve rapid detection of water fullness.
The second mode is as follows: the resistance is difficult to measure for electrolytic substances such as sewage and difficult to determine for water tank removal and insertion by means of testing the resistance using electrodes.
In view of the above, the present inventors propose the following.
The utility model has the following contents:
an object of the utility model is to overcome prior art not enough, provide a water tank state detection circuit based on microcontroller.
In order to solve the technical problem, the utility model discloses a following technical scheme: this water tank state detection circuitry based on microcontroller includes microcontroller, the unit of charging and discharging that is connected with this microcontroller, the water tank voltage detection unit who is connected with this microcontroller, be connected with this unit of charging and discharging and water tank voltage detection unit and be used for inserting the Lo electrode in the water tank, insert the Hi electrode in this water tank, a pin ground connection in this microcontroller, and this Hi electrode one end ground connection, this Lo electrode and Hi electrode still are connected with first resistance, a pin connects the VCC power in this microcontroller.
Further, in the above technical solution, the model of the microcontroller is MC96F 8208S.
Further, in the above technical solution, an ON/OFF pin of the microcontroller is connected to the charging and discharging unit, and a VCC pin of the microcontroller is connected to the VCC power supply; the ADCO pin of the microcontroller is connected with the water tank voltage detection unit.
Further, in the above technical solution, the charging and discharging unit includes a resistor R1, one end of the resistor R1 is connected to an ON/OFF pin of the microcontroller, and the other end is connected to the Lo electrode.
Furthermore, in the above technical solution, the water tank voltage detection unit includes an operational amplifier, a + pin of the operational amplifier is connected to the Lo electrode, a-pin of the operational amplifier is connected to an out pin, the out pin is further connected to a resistor R2 and then connected to an ADCO pin of the microcontroller, and the resistor R2 is further connected to a filter capacitor C1 and then grounded.
Further, in the above technical solution, the model of the operational amplifier is MCP 6002.
Further, in the above technical solution, the microcontroller is further connected with an indicator light unit, and the indicator light unit includes a resistor R4 and an indicator light connected to an LED pin of the microcontroller.
After the technical scheme is adopted, compared with the prior art, the utility model has following beneficial effect: the utility model discloses a microcontroller cooperation is charged and discharge unit, water tank voltage detection unit and be used for inserting the Lo electrode and the Hi electrode of water tank can realize clear water, the full state purpose that detects of sewage, can also realize the full state purpose that detects of quick undulant water, can also realize that the water tank removes and the purpose that detects of inserted state, and it is very convenient to use.
Description of the drawings:
fig. 1 is a circuit diagram of the present invention.
The specific implementation mode is as follows:
the present invention will be further described with reference to the following specific embodiments and accompanying drawings.
As shown in fig. 1, the circuit for detecting the state of a water tank based on a microcontroller includes a microcontroller 1, a charging and discharging unit 2 connected to the microcontroller 1, a water tank voltage detecting unit 3 connected to the microcontroller 1, a Lo electrode 5 connected to the charging and discharging unit 2 and the water tank voltage detecting unit 3 and used for being inserted into the water tank 4, and a Hi electrode 6 inserted into the water tank 4, wherein a pin of the microcontroller 1 is grounded, one end of the Hi electrode 6 is grounded, the Lo electrode 5 and the Hi electrode 6 are further connected to a first resistor 7, a pin of the microcontroller 1 is connected to a VCC power supply 8, and the VCC power supply 8 supplies power to the microcontroller 1. The first resistor 7 is a resistor R3.
The microcontroller 1 is of the type MC96F 8208S. Wherein, the ON/OFF pin of the said microcontroller 1 connects the said charging and discharging unit 2, VCC pin of the microcontroller 1 connects the said VCC power supply 8, the VCC power supply 8 supplies power for the microcontroller 1, the microcontroller 1 outputs VCC power supply 8 to the said charging and discharging unit 2 through the ON/OFF pin; the ADCO pin of the microcontroller 1 is connected to the tank voltage detection unit 3.
The charging and discharging unit 2 comprises a resistor R1, which resistor R1 is connected at one end to the ON/OFF pin of the microcontroller 1 and at the other end to the Lo electrode 5.
The water tank voltage detection unit 3 comprises an operational amplifier 31, wherein the + pin of the operational amplifier 31 is connected with the Lo electrode 5, the-pin of the operational amplifier 31 is connected with the out pin, the out pin is further connected with a resistor R2 and then connected with the ADCO pin of the microcontroller 1, and the resistor R2 is further connected with a filter capacitor C1 and then grounded. The model of the operational amplifier 31 is MCP 6002.
The microcontroller 1 is further connected with an indicator light unit 9, and the indicator light unit 9 comprises a resistor R4 connected with an LED pin of the microcontroller 1 and an indicator light 91.
The utility model discloses the theory of operation:
1. the microcontroller is matched with the charging and discharging unit 2 through an ON/OFF pin to circularly output high and low levels to charge and discharge the water tank. The ON/OFF pin of the microcontroller outputs a high level voltage Vcc for 10 ms; the low level output voltage is 0V, and the discharge time is 10 ms. This charge-discharge time may be varied according to actual needs. The voltage of the collection tank is stored as Von at high level and as Voff at low level. The difference Diff is then calculated as Von-Voff.
2. The ON/OFF pin of the microcontroller outputs the divided voltage value Vth of the power supply voltage Vcc to the resistor R1 and the resistor R3, namely Vcc R1/(R1+ R3). When the water tank is removed relative to the Lo electrode 5 and the Hi electrode 6, the resistor R3 is disconnected, and the Von value is equal to Vcc; when the water tank is inserted into the Lo electrode 5 and the Hi electrode 6, Von is less than or equal to Vth. A value slightly larger than the divided pressure value Vth is selected as a determination point, from which whether the water tank is inserted and removed can be determined.
3. The water in the water tank is sewage, and when the water tank is full, the capacity of storing charges in the water tank is very strong, and the voltage difference Diff collected by the charging time and the discharging time of the water tank by the microcontroller 1 and the charging and discharging unit 2 is very small. When the Diff value is stable and the Von value is less than a specific value A, it can be judged that the sewage is full. The value A needs to be adjusted according to actual products.
4. The water in the water tank is clean water, and when the water tank is full, the capacity of storing charges in the water tank is poor, the voltage difference Diff acquired by the charging time and the discharging time of the water tank by the microcontroller 1, which is connected with the charging and discharging unit 2, is large, the Von value is large, and the Voff value is small. When Von is smaller than a specific value C and Voff is larger than a specific value D, it can be determined that the clear water is full. The C value and the D value need to be adjusted according to actual products.
5. When the water in the water tank is fluctuant, the frequency of judging the water fullness by acquiring the voltage can be reduced, and the effect of quickly judging the water fullness is achieved.
To sum up, the utility model discloses a microcontroller cooperation is charged and discharge unit, water tank voltage detection unit and be used for inserting the purpose that water tank 4's Lo electrode and Hi electrode can realize clear water, sewage water full state detected, can also realize the purpose that the water full state that fluctuates fast detects, can also realize that the water tank removes and the purpose that the inserted state detected, and it is very convenient to use.
Of course, the above description is only an exemplary embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes and modifications made by the constructions, features, and principles of the present invention in accordance with the claims of the present invention are intended to be included in the scope of the present invention.

Claims (7)

1. A microcontroller-based water tank state detection circuit is characterized in that: it includes microcontroller (1), charge and discharge unit (2) of being connected with this microcontroller (1), water tank voltage detection unit (3) of being connected with this microcontroller (1), be connected with this charge and discharge unit (2) and water tank voltage detection unit (3) and be arranged in inserting Lo electrode (5) in water tank (4), insert Hi electrode (6) in this water tank (4), a pin ground connection in this microcontroller (1), and this Hi electrode (6) one end ground connection, this Lo electrode (5) and Hi electrode (6) still are connected with first resistance (7), a pin connects VCC power (8) in this microcontroller (1).
2. The microcontroller-based tank condition detection circuit of claim 1, wherein: the microcontroller (1) is of the type MC96F 8208S.
3. The microcontroller-based tank condition detection circuit of claim 2, wherein: the ON/OFF pin of the microcontroller (1) is connected with the charging and discharging unit (2), and the VCC pin of the microcontroller (1) is connected with the VCC power supply (8); the ADCO pin of the microcontroller (1) is connected with the water tank voltage detection unit (3).
4. A microcontroller-based tank condition detection circuit as claimed in claim 3, wherein: the charging and discharging unit (2) comprises a resistor R1, one end of the resistor R1 is connected with an ON/OFF pin of the microcontroller (1), and the other end is connected with the Lo electrode (5).
5. A microcontroller-based tank condition detection circuit as claimed in claim 3, wherein: the water tank voltage detection unit (3) comprises an operational amplifier (31), wherein the + pin of the operational amplifier (31) is connected with the Lo electrode (5), the-pin of the operational amplifier (31) is connected with the out pin, the out pin is also connected with a resistor R2 and then connected with the ADCO pin of the microcontroller (1), and the resistor R2 is also connected with a filter capacitor C1 and then grounded.
6. The microcontroller-based tank condition detection circuit of claim 5, wherein: the model of the operational amplifier (31) is MCP 6002.
7. A microcontroller-based tank condition detection circuit as claimed in any one of claims 1-6, wherein: the microcontroller (1) is also connected with an indicator light unit (9), and the indicator light unit (9) comprises a resistor R4 and an indicator light (91) which are connected with an LED pin of the microcontroller (1).
CN202021359020.5U 2020-07-10 2020-07-10 Water tank state detection circuit based on microcontroller Active CN212903442U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202021359020.5U CN212903442U (en) 2020-07-10 2020-07-10 Water tank state detection circuit based on microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202021359020.5U CN212903442U (en) 2020-07-10 2020-07-10 Water tank state detection circuit based on microcontroller

Publications (1)

Publication Number Publication Date
CN212903442U true CN212903442U (en) 2021-04-06

Family

ID=75284802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202021359020.5U Active CN212903442U (en) 2020-07-10 2020-07-10 Water tank state detection circuit based on microcontroller

Country Status (1)

Country Link
CN (1) CN212903442U (en)

Similar Documents

Publication Publication Date Title
CN101414787A (en) Circuit for generating negative voltage
CN203301196U (en) Mobile power supply with load detection circuit
CN109217425A (en) A kind of charger circuit and its intelligent charge control method
CN205248853U (en) Power supply circuit
CN212903442U (en) Water tank state detection circuit based on microcontroller
CN103969490A (en) Charging indicating circuit and storage battery charging device
CN104614609A (en) Test method for super capacitor
CN205404714U (en) Fuse failure detector circuit
CN108759977A (en) A kind of immersion detection device
CN104215812A (en) MCU (micro controller unit) chip power voltage detection circuit
CN103969599B (en) Discharge time tested circuit by light fixture
CN203455403U (en) Battery voltage detection circuit based on Zener diode
CN201134480Y (en) Alarm for liquid level detection of accumulator's electrolyte
CN209709719U (en) A kind of electromobile battery charging circuit
CN206291936U (en) A kind of electrolyte liquid level detection device
CN105301489A (en) DC contactor contact detection device
CN217741564U (en) Capacitive load's quick discharge circuit and module
CN106053932B (en) Battery management system power consumption detection circuit
CN220671646U (en) Liquid detection circuit of charging interface and electronic product
CN209400676U (en) A kind of battery voltage measurement circuit under the scene applied to low-power consumption
CN218941379U (en) Identification circuit for multiple batteries and strong light flashlight
CN216059240U (en) Electronic atomizer, charging management circuit thereof and electronic cigarette equipment
CN218470846U (en) Voltage detection circuit for battery management device
CN220729395U (en) Circuit for detecting liquid level of automobile
CN207883860U (en) A kind of car battery

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant