CN115128989A - Intelligent water level control system of miniature water tower - Google Patents

Intelligent water level control system of miniature water tower Download PDF

Info

Publication number
CN115128989A
CN115128989A CN202211055019.7A CN202211055019A CN115128989A CN 115128989 A CN115128989 A CN 115128989A CN 202211055019 A CN202211055019 A CN 202211055019A CN 115128989 A CN115128989 A CN 115128989A
Authority
CN
China
Prior art keywords
pin
circuit
capacitor
transmitter
water
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.)
Pending
Application number
CN202211055019.7A
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.)
Shenzhen Times Energy Technology Co ltd
Original Assignee
Shenzhen Times Energy Technology 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 Shenzhen Times Energy Technology Co ltd filed Critical Shenzhen Times Energy Technology Co ltd
Priority to CN202211055019.7A priority Critical patent/CN115128989A/en
Publication of CN115128989A publication Critical patent/CN115128989A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A20/00Water conservation; Efficient water supply; Efficient water use

Abstract

The invention discloses an intelligent miniature water tower water level control system, which comprises a transmitter and a receiver; the transmitter is arranged at a water tower water level monitoring position and comprises a transmitter controller, a water tower water level acquisition circuit, a transmitter wireless communication circuit and a water pump control circuit; the receiver comprises a receiver controller, a receiver wireless communication circuit, a water tower water level height setting circuit, a display circuit and an alarm circuit; the water tower water level acquisition circuit comprises a pressure sensor and an analog-to-digital converter, the pressure sensor is used for detecting the change of the water tower water level under the control of the transmitter controller and outputting a changed analog voltage signal according to the change of the water tower water level, the analog-to-digital converter is used for performing analog-to-digital conversion on the changed analog voltage signal output by the pressure sensor, and the voltage value of a digital signal is obtained and then sent to the receiver through the transmitter controller and the transmitter wireless communication circuit.

Description

Intelligent water level control system of miniature water tower
Technical Field
The invention relates to the technical field of automatic control, in particular to an intelligent miniature water tower water level control system.
Background
Water towers are water storage devices often found in everyday life and industrial applications, and supply water to satisfy needs by controlling their water levels, which is common. The first single chip microcomputer control system for the water tower level has wide application in railway, oil field, chemical industry and other departments. The water level control is widely applied in daily life and industrial fields, and a detection system for automatically detecting the water level can automatically adjust according to the change condition of the water level. The main problem of water supply of the water tower is that the water level in the tower is always kept in a certain range, so that the phenomena of 'empty tower' and 'overflow tower' are avoided. When the water level in the water tower reaches the lower limit of the water level, the motor is automatically started to supply water to the water tower; when the water level of the water tower reaches the normal water level, the motor is automatically turned off, and the water supply is stopped. And can send out the police dispatch newspaper when water supply system appears unusually to in time troubleshooting, guarantee the external normal water supply effect of water tower at any time.
With the development of modern science and technology and the development of new materials and new devices, the development of water level gauges by adopting sensors has been greatly developed in recent years. The sensors mainly used include ultrasonic, photoelectric, pressure, contact type, floating type and the like. The ultrasonic water level meter transmits ultrasonic waves to the water surface by using the transducer, measures the propagation time of the ultrasonic waves and calculates the water level. The pressure type water level gauge does not need water level measurement, the basic principle is that the water depth measurement is realized by measuring hydrostatic pressure, and methods such as a corrugated pipe and a mercury displacement type pressure sensor are adopted. Solid state pressure sensors are regarded as important because of their high sensitivity, small size, long life, and corrosion resistance, but their use is limited because of the large temperature effect of semiconductor sensors. In recent years, the problem of automatic temperature compensation of solid-state sensors has been advanced, and solid-state piezoresistive water level meters have been used. The contact type water level gauge uses an electromechanical method to measure the water level by using a probe to track the level change of the water level in a well, and has been used in a few fields, and the float type water level gauge uses a water ball (or other floats) as a sensitive device, avoids the influence of factors such as temperature, humidity and the like, has stable performance and reliable work, and thus has been used and developed for a long time. The most common self-recording water level meter used in China is a float type water level meter. In recent years, as civil engineering costs are increasing, pressure water level meters without water level are becoming more stable and mature with the development and progress of modern technologies, so that people pay more and more attention to the use of pressure water level meters.
However, the existing water tower level control system cannot effectively utilize a pressure type water level meter as a sensor to acquire data, and generally has the technical problems of unstable performance, untimely control, low accuracy and low interference resistance in a complex environment.
Disclosure of Invention
The invention aims to provide an intelligent water level control system of a miniature water tower, which can effectively solve the technical problems in the prior art.
In order to achieve the above object, an embodiment of the present invention provides an intelligent miniature water tower level control system, which includes a transmitter and a receiver; the transmitter is arranged at a water tower water level monitoring position and comprises a transmitter controller, and a water tower water level acquisition circuit, a transmitter wireless communication circuit and a water pump control circuit which are respectively connected with the transmitter controller; the receiver comprises a receiver controller, and a receiver wireless communication circuit, a water tower water level height setting circuit, a display circuit and an alarm circuit which are respectively connected with the receiver controller;
the water tower water level acquisition circuit comprises a pressure sensor and an analog-to-digital converter, the pressure sensor is used for detecting the change of the water tower water level under the control of the transmitter controller and outputting a changed analog voltage signal according to the change of the water tower water level, and the analog-to-digital converter is used for performing analog-to-digital conversion on the changed analog voltage signal output by the pressure sensor to obtain a voltage value of a digital signal and then sending the voltage value to the receiver through the transmitter controller and the transmitter wireless communication circuit;
the receiver wireless communication circuit of the receiver is used for receiving the voltage value transmitted by the transmitter wireless communication circuit and transmitting the received voltage value to the receiver controller, and the receiver controller displays the voltage value through the display circuit and compares the voltage value with the upper limit value and the lower limit value of the water tower level set by the water tower level height setting circuit to execute the following operations:
when the voltage value is judged to be less than or equal to the lower limit value of the water tower water level, a low water level alarm signal is sent out through the alarm circuit, a water pump starting instruction is generated and sent to the transmitter through the receiver wireless communication circuit, and therefore the transmitter controls the water pump control circuit to start a water pump to work to supply water to the water tower according to the water pump starting instruction received by the transmitter wireless communication circuit;
when the voltage value is judged to be larger than or equal to the upper limit value of the water tower water level, a high water level alarm signal is sent out through the alarm circuit, a water pump closing instruction is generated and sent to the transmitter through the receiver wireless communication circuit, and therefore the transmitter controls the water pump control circuit to close a water pump to stop supplying water to the water tower according to the water pump closing instruction received by the transmitter wireless communication circuit.
Preferably, the transmitter controller is implemented by a first single chip microcomputer with the model of STC89C 52; the transmitter further comprises a first 5V power supply circuit, the first 5V power supply circuit comprises a power supply interface, a first switch, a first resistor, a first electrolytic capacitor and a first light emitting diode, one end of the power supply interface is connected with the first end of the first switch, the other end of the power supply interface is grounded, the second end of the first switch is connected with the anode of the first electrolytic capacitor, the cathode of the first electrolytic capacitor is grounded, the second end of the first switch is used as a 5V voltage output end, and the first resistor and the first light emitting diode are connected in series and then connected in parallel with the first electrolytic capacitor; and the VCC pin and the EA/VPP pin of the first single chip microcomputer are both connected with the 5V voltage output end.
Preferably, the pressure sensor is a piezoresistive force sensor, the input end of the pressure sensor is connected with the 5V voltage output end, a second resistor is connected between the input end and the output end of the pressure sensor, and the grounding end of the pressure sensor is grounded;
the analog-to-digital converter comprises an AD chip with the model of ADC0832, a CH0 pin or a CH1 pin of the AD chip is connected with the output end of the piezoresistive force sensor, a VCC pin of the AD chip is connected with the 5V voltage output end, a GND pin of the AD chip is grounded, a DI pin and a DO pin of the AD chip are both connected with a P10 pin of the first single chip microcomputer, a CLK pin of the AD chip is connected with a P11 pin of the first single chip microcomputer, and a CS pin of the AD chip is connected with a P12 pin of the first single chip microcomputer.
Preferably, the water pump control circuit comprises a relay, a first triode, a third resistor, a first diode and a first capacitor, wherein the first triode is of a PNP type; one end of the relay is connected with the 5V voltage output end, the other end of the relay is connected with an emitting electrode of the first triode, a base electrode of the first triode is connected with a P20 pin of the first single chip microcomputer through the third resistor, and a collector electrode of the first triode is grounded; the input end of the first diode is connected with the emitting electrode of the first triode, and the output end of the first diode is connected with the 5V voltage output end; the first capacitor is connected between the 5V voltage output end and the emitting electrode of the first triode after being connected with the water pumping pump in parallel.
Preferably, the transmitter further comprises a first voltage-reducing circuit, the first voltage-reducing circuit comprises a first voltage-reducing chip with model number AMS1117, a second electrolytic capacitor, a third electrolytic capacitor, a second capacitor and a third capacitor, an input end of the first voltage-reducing chip is connected to the 5V voltage output end, an output end of the first voltage-reducing chip is used as a 3.3V voltage output end, and a GND end of the first voltage-reducing chip is grounded; the second electrolytic capacitor and the second capacitor are connected in parallel and then connected between the 5V voltage output end and the ground, and the third electrolytic capacitor and the third capacitor are connected in parallel and then connected between the 3.3V voltage output end and the ground;
the transmitter wireless communication circuit comprises a first radio frequency chip with the model number of 24L01, wherein a VCC pin of the first radio frequency chip is connected with the 3.3V voltage output end, a GND pin of the first radio frequency chip is grounded, and a CSN pin, a MOSI pin, an IPQ pin, a MISO pin, an SCK pin and a CE pin of the first radio frequency chip are respectively and correspondingly connected with a P32 pin-P37 pin of the first single chip microcomputer;
the transmitter further comprises a first reset circuit, the first reset circuit comprises a first key switch, a fourth resistor and a fourth capacitor, one end of the first key switch is connected with the 5V voltage output end, the other end of the first key switch is connected with the REST pin of the first single chip microcomputer, one end of the fourth capacitor is connected with the 5V voltage output end, the other end of the fourth capacitor is connected with the REST pin of the first single chip microcomputer, one end of the fourth resistor is connected with the REST pin of the first single chip microcomputer, and the other end of the fourth resistor is grounded;
the transmitter further comprises a first clock circuit, the first clock circuit comprises a first crystal oscillator, a fifth capacitor and a sixth capacitor, one end of the fifth capacitor is grounded, the other end of the fifth capacitor is connected with the first end of the first crystal oscillator, one end of the sixth capacitor is grounded, the other end of the sixth capacitor is connected with the second end of the first crystal oscillator, the first end of the first crystal oscillator is connected with the XTAL1 pin of the first single chip microcomputer, and the second end of the first crystal oscillator is connected with the XTAL2 pin of the first single chip microcomputer.
Preferably, the receiver controller is implemented by a second single chip microcomputer with the model of STC89C 52; the transmitter further comprises a second 5V power supply circuit, the second 5V power supply circuit comprises a power supply interface and a second switch, one end of the power supply interface is connected with the first end of the second switch, the other end of the power supply interface is grounded, and the second end of the second switch is used as a 5V voltage output end; and the VCC pin and the EA/VPP pin of the second singlechip are both connected with the 5V voltage output end.
Preferably, the water tower water level height setting circuit comprises a second key switch, a third key switch and a fourth key switch, one end of the second key switch is grounded, the other end of the second key switch is connected with a pin P15 of the second singlechip, one end of the third key switch is grounded, the other end of the third key switch is connected with a pin P16 of the second singlechip, one end of the fourth key switch is grounded, and the other end of the fourth key switch is connected with a pin P17 of the second singlechip;
the second single chip microcomputer executes the following operations to set the upper limit value and the lower limit value of the water tower level: when the second key switch is judged not to be pressed, the third key switch is used for switching a manual mode and an automatic mode, under the manual mode, the fourth key switch is used for switching on/off of the water pump, and a state mark for pressing the second key switch is used for recording the pressing times; when the state value is 1, the water tower enters the upper limit setting of the water level of the water tower, at the moment, the third key switch is an adding operation key, the fourth key switch is a subtracting operation key, and the upper limit value of the water tower water level can be set through the third key switch and the fourth key switch; when the state value is 2, the water tower enters a water tower water level lower limit adjusting setting mode, at the moment, the third key switch is an adding operation key, the fourth key switch is a subtracting operation key, and the water tower water level lower limit value can be set through the third key switch and the fourth key; and when the state value is 3, displaying a return homepage to display the real-time collected data.
Preferably, the display circuit comprises a display screen with a model of LCD1602, data signal/command signal communication ports D0-D7 of the display screen are respectively and correspondingly connected with pins P00-P07 of the second single chip microcomputer, and a VO port of the display screen is grounded through a potentiometer; pins P00-P07 of the second single chip microcomputer are further connected with the 5V voltage output end through first pull-up resistors, eighth pull-up resistors and the like respectively;
the alarm circuit comprises a buzzer, a second triode and a fifth resistor, wherein the second triode is in a PNP type; one end of the buzzer is connected with the 5V voltage output end, one end of the buzzer is connected with an emitting electrode of the second triode, a collector electrode of the second triode is grounded, and a base electrode of the second triode is connected with a P20 pin of the second singlechip through the fifth resistor;
the alarm circuit further comprises a second light-emitting diode, a third light-emitting diode and a sixth resistor, one end of the sixth resistor is connected with the 5V voltage output end, the other end of the sixth resistor is simultaneously connected with one ends of the second light-emitting diode and the third light-emitting diode, the other end of the second light-emitting diode is connected with a P10 pin of the second single chip microcomputer, and the other end of the third light-emitting diode is connected with a P11 pin of the second single chip microcomputer.
Preferably, the receiver further comprises a second buck circuit, the first buck circuit comprises a second buck chip of the model AMS1117, a fourth electrolytic capacitor, a fifth electrolytic capacitor, a seventh capacitor and an eighth capacitor, an input end of the second buck chip is connected to the 5V voltage output end, an output end of the second buck chip is used as a 3.3V voltage output end, and a GND end of the second buck chip is grounded; the fourth electrolytic capacitor and the seventh capacitor are connected in parallel and then connected between the 5V voltage output end and the ground, and the fifth electrolytic capacitor and the eighth capacitor are connected in parallel and then connected between the 3.3V voltage output end and the ground;
the wireless communication circuit of the receiver comprises a second radio frequency chip with the model of 24L01, a VCC pin of the second radio frequency chip is connected with the 3.3V voltage output end, a GND pin of the second radio frequency chip is grounded, and a CSN pin, a MOSI pin, an IPQ pin, a MISO pin, an SCK pin and a CE pin of the second radio frequency chip are respectively and correspondingly connected with a P32 pin-P37 pin of the second single chip microcomputer.
Preferably, the receiver further includes a second reset circuit, the second reset circuit includes a fifth key switch, a sixth resistor and a ninth capacitor, one end of the fifth key switch is connected to the 5V voltage output end, the other end of the fifth key switch is connected to the REST pin of the second single chip microcomputer, one end of the ninth capacitor is connected to the 5V voltage output end, the other end of the ninth capacitor is connected to the REST pin of the second single chip microcomputer, one end of the sixth resistor is connected to the REST pin of the first single chip microcomputer, and the other end of the sixth resistor is grounded;
the receiver further comprises a second clock circuit, the second clock circuit comprises a second crystal oscillator, a tenth capacitor and an eleventh capacitor, one end of the tenth capacitor is grounded, the other end of the tenth capacitor is connected with the first end of the second crystal oscillator, one end of the eleventh capacitor is grounded, the other end of the eleventh capacitor is connected with the second end of the second crystal oscillator, the first end of the second crystal oscillator is connected with the XTAL1 pin of the second single-chip microcomputer, and the second end of the second crystal oscillator is connected with the XTAL2 pin of the second single-chip microcomputer.
Compared with the prior art, the intelligent miniature water tower water level control system provided by the embodiment of the invention comprises a transmitter and a receiver which can realize wireless communication, wherein the transmitter is arranged at a water tower water level monitoring position, the change of the water tower water level is detected by a pressure sensor on the transmitter, a changed analog voltage signal is output to an analog-to-digital converter according to the change of the water tower water level for analog-to-digital conversion, a voltage value of a digital signal is obtained and then sent to the receiver, and the voltage value is compared with a water tower water level upper limit value and a water tower water level lower limit value which are set by a water tower water level height setting circuit, and then the following operations are executed: when the voltage value is judged to be less than or equal to the lower limit value of the water level of the water tower, sending a low water level alarm signal through the alarm circuit, generating a water pump starting instruction and sending the water pump starting instruction to the transmitter through the receiver wireless communication circuit, so that the transmitter controls the water pump control circuit to start a water pump to work to supply water to the water tower according to the water pump starting instruction received by the transmitter wireless communication circuit; when the voltage value is judged to be greater than or equal to the upper limit value of the water tower water level, a high water level alarm signal is sent out through the alarm circuit, a water pump closing instruction is generated and sent to the transmitter through the receiver wireless communication circuit, so that the transmitter controls the water pump control circuit to close the water pump to stop supplying water to the water tower according to the water pump closing instruction received by the transmitter wireless communication circuit.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a block diagram of a structure of an intelligent micro water tower level control system according to an embodiment of the present invention.
Fig. 2 is a circuit structure diagram of a transmitter controller of a transmitter of the intelligent miniature water tower water level control system according to an embodiment of the present invention.
Fig. 3 is a circuit structure diagram of a first 5V power circuit of a transmitter of an intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 4 is a circuit structure diagram of a water tower level acquisition circuit of a transmitter of the intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 5 is a circuit structure diagram of a water pump control circuit of a transmitter of the intelligent miniature water tower water level control system according to an embodiment of the present invention.
Fig. 6 is a circuit structure diagram of a first voltage reduction circuit of a transmitter of the intelligent miniature water tower water level control system according to an embodiment of the present invention.
Fig. 7 is a circuit configuration diagram of a first 5V power circuit of a transmitter of an intelligent miniature water tower water level control system according to an embodiment of the present invention.
Fig. 8 is a circuit diagram of a first reset circuit of a transmitter of the intelligent miniature water tower water level control system according to an embodiment of the present invention.
Fig. 9 is a circuit diagram of a first clock circuit of a transmitter of an intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 10 is a circuit configuration diagram of a first downloading interface circuit of a transmitter of an intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 11 is a flowchart of a water tower level collecting subroutine of the intelligent miniature water tower level control system according to the embodiment of the present invention.
Fig. 12 is a flowchart of a main program of a transmitter of the intelligent micro water tower level control system according to an embodiment of the present invention.
Fig. 13 is a circuit diagram of the connection between the second receiver controller and the display circuit of the receiver of the intelligent miniature water tower level control system according to the embodiment of the present invention.
Fig. 14 is a circuit diagram of a second 5V power circuit of a receiver of an intelligent micro water tower level control system according to an embodiment of the present invention.
Fig. 15 is a circuit diagram of a water tower level height setting circuit of a receiver of an intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 16 is a circuit diagram of an alarm circuit of a receiver of the intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 17 is a circuit configuration diagram of a second voltage reduction circuit of a receiver of an intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 18 is a circuit diagram of a second reset circuit of a receiver of the intelligent miniature water tower water level control system according to an embodiment of the present invention.
Fig. 19 is a circuit configuration diagram of a second clock circuit of a receiver of an intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 20 is a circuit diagram of a second download interface circuit of a receiver of the intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 21 is a flowchart of a key program of a receiver of the intelligent miniature water tower level control system according to an embodiment of the present invention.
Fig. 22 is a flow chart of a main routine of a receiver of the intelligent miniature water tower level control system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically connected, electrically connected or can communicate with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1, an embodiment of the present invention provides an intelligent miniature water tower level control system, which includes a transmitter 1 and a receiver 2. Transmitter 1 sets up in water tower water level monitoring position, transmitter 1 include transmitter controller 11 and respectively with water tower water level acquisition circuit 12, transmitter wireless communication circuit 13 and water pump control circuit 14 that transmitter controller 11 is connected. The receiver 2 comprises a receiver controller 21, and a receiver wireless communication circuit 23, a water tower level setting circuit 22, a display circuit 24 and an alarm circuit 25 which are respectively connected with the receiver controller 21.
The water tower level acquisition circuit 12 includes a pressure sensor 121 and an analog-to-digital converter 122, the pressure sensor 121 is configured to detect a change in the water tower level under the control of the transmitter controller 11, and output a changed analog voltage signal according to the change in the water tower level, the analog-to-digital converter 122 is configured to perform analog-to-digital conversion on the changed analog voltage signal output by the pressure sensor 121, obtain a voltage value of a digital signal, and send the voltage value to the receiver 2 through the transmitter controller 11 and the transmitter wireless communication circuit 13.
The receiver wireless communication circuit 23 of the receiver 2 is configured to receive the voltage value transmitted by the transmitter wireless communication circuit 13, and send the received voltage value to the receiver controller 21, where the receiver controller 21 displays the voltage value through the display circuit 24, and compares the voltage value with the upper limit value and the lower limit value of the water tower level set by the water tower level setting circuit 22 to perform the following operations:
when the voltage value is judged to be less than or equal to the lower limit value of the water tower level, sending a low-level alarm signal through the alarm circuit 25, generating a water pump starting instruction, and sending the water pump starting instruction to the transmitter wireless communication circuit 13 of the transmitter 1 through the receiver wireless communication circuit 23, so that the transmitter 1 controls the water pump control circuit 14 to start a water pump to work to supply water to the water tower according to the water pump starting instruction received by the transmitter wireless communication circuit 13;
when the voltage value is judged to be greater than or equal to the upper limit value of the water tower level, a high-level alarm signal is sent out through the alarm circuit 25, a water pump closing instruction is generated and sent to the transmitter wireless communication circuit 13 of the transmitter 1 through the receiver wireless communication circuit 23, and therefore the transmitter 1 controls the water pump control circuit 14 to close the water pump to stop supplying water to the water tower according to the water pump closing instruction received by the transmitter wireless communication circuit 13.
Referring to fig. 2 to 10, specific circuit connection diagrams of a preferred embodiment of the transmitter 1 of the intelligent miniature water tower level control system are shown.
With reference to fig. 2 and 3, the transmitter controller 11 is implemented by a first single chip microcomputer U3 with a model of STC89C 52. The transmitter 1 further includes a first 5V power supply circuit 14, the first 5V power supply circuit 14 includes a power supply interface 141, a first switch SW1, a first resistor R1, a first electrolytic capacitor C1 'and a first light emitting diode LED1, one end of the power supply interface 141 is connected to a first end of the first switch SW1, the other end of the power supply interface 141 is grounded GND, a second end of the first switch SW1 is connected to an anode of the first electrolytic capacitor C1', a cathode of the first electrolytic capacitor C1 'is grounded GND, a second end of the first switch SW1 serves as a 5V voltage output end VCC, and the first resistor R1 and the first light emitting diode LED1 are connected in series and then connected in parallel to the first electrolytic capacitor C1'. And a VCC pin and an EA/VPP pin of the first singlechip U3 are both connected with the 5V voltage output end VCC.
With reference to fig. 2 and 4, the pressure sensor 121 is a piezoresistive force sensor RX1, the input end (pin 1) of the pressure sensor RX1 is connected to the 5V voltage output VCC, a second resistor R2 (pull-up resistor) is connected between the input end (pin 1) and the output end (pin 2) of the pressure sensor RX1, and the ground end (pin 3) of the pressure sensor RX1 is grounded to GND. The analog-to-digital converter 122 comprises an AD chip U2 with the model of ADC0832, a CH0 pin or a CH1 pin of the AD chip U2 is connected with an output end (pin 2) of the piezoresistive force sensor RX1, a VCC pin of the AD chip U2 is connected with the 5V voltage output end VCC, a GND pin of the AD chip U2 is grounded GND, a DI pin and a DO pin of the AD chip U2 are both connected with a P10 pin of the first singlechip U3, a CLK pin of the AD chip U2 is connected with a P11 pin of the first singlechip U3, and a CS pin of the AD chip U2 is connected with a P12 pin of the first singlechip U3.
The pressure sensor 121 is a piezoresistive force sensor RX1, the inside of the piezoresistive force sensor RX1 mainly consists of a resistance strain gauge, the piezoresistive force sensor RX1 makes the resistance values of the pressure sensors different under different water pressures due to the resistance strain effect of the internal resistance strain gauge, and the resistance value of the pressure sensor changes according to the change of the water pressure. Therefore, the pressure sensor is connected in series with the second resistor R2, the midpoint of the series connection of the pressure sensor and the second resistor R2 is connected with the CH1 pin of the AD chip U2, the pressure sensor and the second resistor R2 are connected in series to output a changed analog voltage signal according to the change of the water pressure (water level) due to the change of the water pressure (water level), and the analog voltage signal is converted by the AD chip U2 and is transmitted to the receiver for processing, judgment and display.
Specifically, referring to fig. 11, a flow chart of the water tower level collection subroutine is shown. After the system is initialized in power supply, the partial pressure grade of the second resistor R2 can be changed by changing the resistance value of the second resistor R2, an analog signal is acquired by an A/D conversion chip to carry out digital signal conversion, the voltage value of the partial pressure is calculated, whether the voltage value reaches the set lower limit value or not is judged, when the voltage value reaches the lower limit value, the water pump is started to pump water, and when the water level reaches the upper limit value, the water pump is closed to pump water, so that the water tower can be kept to supplement water in time and supplement water sufficiently.
With continued reference to fig. 2 and 5, the water pump control circuit 13 includes a relay J2, a first transistor Q1, a third resistor R3, a first diode D3, and a first capacitor C1, and the first transistor Q1 is of PNP type. One end (pin 4)) of the relay J2 is connected with the 5V voltage output end VCC, the other end of the relay J2 is connected with an emitting electrode of the first triode Q1, a base electrode of the first triode Q1 is connected with a P20 pin of the first singlechip through the third resistor R3, and a collector electrode of the first triode Q1 is grounded; the input end of the first diode D3 is connected with the emitter of the first triode Q1, and the output end of the first diode D3 is connected with the 5V voltage output end VCC; the first capacitor C1 is connected in parallel with the pumped water pump B1 and then connected between the 5V voltage output terminal VCC and the emitter of the first triode Q1. In specific implementation, a low level is sent to the base of the first diode D3 through a P20 pin of the first singlechip U3, so that the first diode D3 is conducted to drive the relay J2 to suck, and the water pump B1 is started to pump water; a high level is sent to the base electrode of the first diode D3 through a P20 pin of the first single chip microcomputer U3, the first diode D3 is cut off to drive the relay J2 to reset, and the water pumping pump B1 is turned off to stop water pumping.
With reference to fig. 2, 6 and 7, the transmitter 1 further includes a first buck circuit 15, where the first buck circuit 15 includes a first buck chip U1 with model AMS1117, a second electrolytic capacitor C2 ', a third electrolytic capacitor C3', a second capacitor C2 and a third capacitor C3, an input end of the first buck chip U1 is connected to the 5V voltage output terminal VCC, an output end of the first buck chip U1 is used as the 3.3V voltage output terminal +3V3, and a GND terminal of the first buck chip U1 is connected to GND; the second electrolytic capacitor C2 'and the second capacitor C2 are connected in parallel and then connected between the 5V voltage output terminal VCC and the ground, and the third electrolytic capacitor C3' and the third capacitor C3 are connected in parallel and then connected between the 3.3V voltage output terminal +3V3 and the ground GND. The transmitter wireless communication circuit 13 comprises a first radio frequency chip P2 with the model number of 24L01, a VCC pin of the first radio frequency chip P2 is connected with the 3.3V voltage output end +3V3, a GND pin of the first radio frequency chip P2 is grounded, and a CSN pin, a MOSI pin, an IPQ pin, a MISO pin, an SCK pin and a CE pin of the first radio frequency chip P2 are respectively and correspondingly connected with a P32 pin-P37 pin of the first single chip microcomputer U3.
With reference to fig. 2 and fig. 8, the transmitter further includes a first reset circuit 16, the first reset circuit 16 includes a first key switch K1, a fourth resistor R4 and a fourth capacitor C4, one end of the first key switch K1 is connected to the 5V voltage output terminal VCC, the other end RST of the first key switch L1 is connected to the REST pin of the first monolithic computer U3, one end of the fourth capacitor C4 is connected to the 5V voltage output terminal VCC, the other end of the fourth capacitor C4 is connected to the REST pin of the first monolithic computer U3, one end of the fourth resistor R4 is connected to the REST pin of the first monolithic computer U3, and the other end of the fourth resistor R4 is grounded GND.
With reference to fig. 2 and fig. 9, the transmitter 1 further includes a first clock circuit 17, the first clock circuit 17 includes a first crystal oscillator Y1, a fifth capacitor C5 and a sixth capacitor C6, one end of the fifth capacitor C5 is connected to the ground GND, the other end of the fifth capacitor C5 is connected to the first end X1 of the first crystal oscillator Y1, one end of the sixth capacitor C6 is connected to the ground GND, the other end of the sixth capacitor C6 is connected to the second end X2 of the first crystal oscillator Y1, the first end X1 of the first crystal oscillator Y1 is connected to the XTAL1 pin of the first monolithic computer U3, and the second end X2 of the first crystal Y1 is connected to the XTAL2 pin of the first monolithic computer U3.
During specific implementation, the first crystal oscillator Y1 is 12MHZ, an XTAL1 pin and an XTAL2 pin of the first single chip microcomputer U3 are connected to an external 12MHZ crystal oscillator, and are matched with a reset input pin (REST pin) of the first single chip microcomputer U3, and when an external clock oscillator works, the REST pin receives a high potential more than two machine periods to reset the first single chip microcomputer U3.
Referring to fig. 2 and 10, the transmitter 1 further includes a first download interface circuit 18, the first download interface circuit 18 includes a first download interface P1, a power supply terminal (pin 4) of the first download interface P1 is connected to the 5V voltage output terminal VCC, a ground terminal (pin 1) of the first download interface P1 is grounded GND, and signal output terminals (pins 2 and 3) of the first download interface P1 are connected to a P30 pin and a P31 pin of the first single chip microcomputer U3, respectively.
In specific implementation, a required program can be imported into the first single chip microcomputer U3 through the first download interface P1 to control and realize work. For example, a transmitter main program may be imported into the first single chip microcomputer U3 through the first download interface P1, and the flow of the transmitter main program may refer to fig. 12.
Referring to fig. 13 to 20, a specific circuit connection diagram of a preferred embodiment of the receiver 2 of the intelligent miniature water tower level control system is shown.
As shown in fig. 13 and 14, the receiver controller 21 is implemented by a second single chip microcomputer U4 with a model of STC89C 52. The transmitter further comprises a second 5V power supply circuit 26, the second 5V power supply circuit 26 comprises a power supply interface 261 and a second switch SW2, one end of the power supply interface 261 is connected with a first end of the second switch SW2, the other end of the power supply interface 261 is grounded, and a second end of the second switch SW2 serves as a 5V voltage output terminal VCC; and the VCC pin and the EA/VPP pin of the second singlechip U4 are both connected with the 5V voltage output end VCC.
With reference to fig. 13 and 15, the water tower level setting circuit 22 includes a second key switch K2, a third key switch K3 and a fourth key switch K4, one end of the second key switch K2 is grounded GND, the other end of the second key switch K2 is connected to the P15 pin of the second single chip microcomputer U4, one end of the third key switch K3 is grounded GND, the other end of the third key switch K3 is connected to the P16 pin of the second single chip microcomputer U4, one end of the fourth key switch K4 is grounded GND, and the other end of the fourth key switch K4 is connected to the P17 pin of the second single chip microcomputer U4.
The second singlechip U4 executes the following operations to set the upper limit value and the lower limit value of the water tower level: when the second key switch K2 is not pressed, the third key switch K3 is used for switching a manual mode and an automatic mode, in the manual mode, the fourth key switch K4 is used for switching the starting/stopping of the water pump, and the state mark for pressing the second key switch K2 is used for recording the pressing times; when the state value is 1, the water tower enters the water level upper limit regulation setting, at this time, the third key switch K3 is an adding operation key, the fourth key switch K4 is a subtracting operation key, and the water tower water level upper limit value can be set through the third key switch K3 and the fourth key switch K4; when the state value is 2, the water tower enters a water level lower limit regulation setting, at the moment, the third key switch K3 is an adding operation key, the fourth key switch K4 is a subtracting operation key, and the water tower water level lower limit value can be set through the third key switch K3 and the fourth key switch K4; and when the state value is 3, displaying a return homepage to display the real-time collected data. The specific key program flow is shown in fig. 21.
Referring back to fig. 13, the display circuit 24 includes a display screen P4 with a model of LCD1602, data signal/command signal communication ports D0 to D7 of the display screen P4 are respectively and correspondingly connected to pins P00 to P07 of the second single chip microcomputer U4, and a VO port of the display screen U4 is grounded to GND through a potentiometer R10; pins P00-P07 of the second singlechip U4 are also connected with the 5V voltage output end VCC through first to eighth pull-up resistors (eight-bit-array resistor PR 1).
With combined reference to fig. 13 and 16, the alarm circuit 25 includes a buzzer LS1, a second transistor Q2 and a fifth resistor R5, and the second transistor Q2 is of PNP type; one end of the buzzer LS1 is connected with the 5V voltage output end VCC, one end of the buzzer LS1 is connected with an emitting electrode of the second triode Q2, a collector electrode of the second triode Q2 is grounded GND, and a base electrode of the second triode Q2 is connected with a P20 pin of the second single chip microcomputer through the fifth resistor.
Alarm circuit 25 still includes second emitting diode LED2, third emitting diode LED3 and sixth resistance R6, the one end of sixth resistance R6 is connected 5V voltage output end VCC, the other end of sixth resistance R6 connects simultaneously second emitting diode LED2, third emitting diode LED 3's one end, second emitting diode LED 2's the other end is connected the P10 pin of second singlechip U4, third emitting diode Q3's the other end is connected the P11 pin of second singlechip U4.
In specific implementation, the second single chip microcomputer U4 can control the alarm circuit 25 to send different signals to distinguish a low water level alarm signal from a high water level alarm signal, for example, the buzzer LS1 is driven to sound to indicate the low water level alarm signal, and the buzzer LS1 is driven to sound, and the second light emitting diode LED2 and the third light emitting diode LED3 are driven to light to indicate the high water level alarm signal. For another example, the low water level alarm signal is indicated by lighting the second light emitting diode LED2 and the third light emitting diode LED3, and the high water level alarm signal is indicated by driving the buzzer LS 1. It is understood that the invention is not limited to the examples.
With reference to fig. 13 and 17, the receiver 2 further includes a second buck circuit 27, where the second buck circuit 27 includes a second buck chip U5 with model AMS1117, a fourth electrolytic capacitor C4 ', a fifth electrolytic capacitor C5', a seventh capacitor C7, and an eighth capacitor C8, an input end of the second buck chip U5 is connected to the 5V voltage output terminal VCC, an output end of the second buck chip U5 serves as a 3.3V voltage output terminal +3V3, and a GND terminal of the second buck chip U5 is connected to GND; the fourth electrolytic capacitor C4 'and the seventh capacitor C7 are connected in parallel and then connected between the 5V voltage output end and the ground, and the fifth electrolytic capacitor C5' and the eighth capacitor C8 are connected in parallel and then connected between the 3.3V voltage output end +3V3 and the ground GND. The receiver wireless communication circuit 23 comprises a second radio frequency chip P3 with the model number of 24L01, a VCC pin of the second radio frequency chip P3 is connected with the 3.3V voltage output end +3V3, a GND pin of the second radio frequency chip P3 is grounded, and a CSN pin, a MOSI pin, an IPQ pin, a MISO pin, an SCK pin and a CE pin of the second radio frequency chip P3 are respectively and correspondingly connected with a P32 pin-P37 pin of the second single chip microcomputer U4.
With reference to fig. 13 and 18, the receiver 2 further includes a second reset circuit 28, the second reset circuit 28 includes a fifth key switch K5, a sixth resistor R6 and a ninth capacitor C9, one end of the fifth key switch K5 is connected to the 5V voltage output terminal VCC, the other end of the fifth key switch K5 is connected to the REST pin of the second monolithic computer U4, one end of the ninth capacitor C9 is connected to the 5V voltage output terminal VCC, the other end of the ninth capacitor C9 is connected to the REST pin of the second monolithic computer U4, one end of the sixth resistor R6 is connected to the REST pin of the second monolithic computer U4, and the other end of the sixth resistor R6 is grounded GND.
With reference to fig. 13 and fig. 19, the receiver 2 further includes a second clock circuit 29, the second clock circuit 29 includes a second crystal oscillator Y2, a tenth capacitor C10 and an eleventh capacitor C11, one end of the tenth capacitor C10 is grounded, the other end of the tenth capacitor C10 is connected to the first end X1 of the second crystal oscillator Y2, one end of the eleventh capacitor C11 is grounded GND, the other end of the eleventh capacitor C11 is connected to the second end X2 of the second crystal oscillator Y2, the first end X1 of the second crystal oscillator Y2 is connected to the XTAL1 pin of the second mcu, and the second end X2 of the second crystal oscillator Y2 is connected to the XTAL2 pin of the second mcu U4.
In specific implementation, the second crystal oscillator Y2 adopts 12MHZ, the XTAL1 pin and the XTAL2 pin of the second single chip microcomputer U4 are connected to an external 12MHZ crystal oscillator, and the reset input pin (REST pin) of the second single chip microcomputer U4 is matched, so that when the external clock oscillator works, the REST pin receives a high potential above two machine periods to reset the second single chip microcomputer U4.
Referring to fig. 13 and 20, the receiver 2 further includes a second download interface circuit 30, the second download interface circuit 30 includes a second download interface P5, a power supply terminal (pin 4) of the second download interface P5 is connected to the 5V voltage output terminal VCC, a ground terminal (pin 1) of the second download interface P5 is grounded GND, and signal output terminals (pins 2 and 3) of the second download interface P5 are respectively connected to a P30 pin and a P31 pin of the second mcu U4.
In specific implementation, a required program can be imported into the second singlechip U4 through the second download interface P5 to control and realize work. For example, a main program of the receiver can be imported into the second single chip microcomputer U4 through the second download interface P5, and the flow of the main program of the receiver can refer to FIG. 22.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An intelligent water level control system of a miniature water tower is characterized by comprising a transmitter and a receiver; the transmitter is arranged at a water tower water level monitoring position and comprises a transmitter controller, and a water tower water level acquisition circuit, a transmitter wireless communication circuit and a water pump control circuit which are respectively connected with the transmitter controller; the receiver comprises a receiver controller, and a receiver wireless communication circuit, a water tower water level height setting circuit, a display circuit and an alarm circuit which are respectively connected with the receiver controller;
the water tower water level acquisition circuit comprises a pressure sensor and an analog-to-digital converter, the pressure sensor is used for detecting the change of the water tower water level under the control of the transmitter controller and outputting a changed analog voltage signal according to the change of the water tower water level, and the analog-to-digital converter is used for performing analog-to-digital conversion on the changed analog voltage signal output by the pressure sensor to obtain a voltage value of a digital signal and then sending the voltage value to the receiver through the transmitter controller and the transmitter wireless communication circuit;
the receiver wireless communication circuit of the receiver is used for receiving the voltage value transmitted by the transmitter wireless communication circuit and transmitting the received voltage value to the receiver controller, and the receiver controller displays the voltage value through the display circuit and compares the voltage value with the upper limit value and the lower limit value of the water tower level set by the water tower level height setting circuit to execute the following operations:
when the voltage value is judged to be less than or equal to the lower limit value of the water tower water level, a low water level alarm signal is sent out through the alarm circuit, a water pump starting instruction is generated and sent to the transmitter through the receiver wireless communication circuit, and therefore the transmitter controls the water pump control circuit to start a water pump to work to supply water to the water tower according to the water pump starting instruction received by the transmitter wireless communication circuit;
when the voltage value is judged to be larger than or equal to the upper limit value of the water tower water level, a high water level alarm signal is sent out through the alarm circuit, a water pump closing instruction is generated and sent to the transmitter through the receiver wireless communication circuit, and therefore the transmitter controls the water pump control circuit to close the water pump to stop supplying water to the water tower according to the water pump closing instruction received by the transmitter wireless communication circuit.
2. The intelligent miniature water tower water level control system of claim 1 wherein said transmitter controller is implemented using a first single chip microcomputer model STC89C 52; the transmitter further comprises a first 5V power supply circuit, the first 5V power supply circuit comprises a power supply interface, a first switch, a first resistor, a first electrolytic capacitor and a first light emitting diode, one end of the power supply interface is connected with the first end of the first switch, the other end of the power supply interface is grounded, the second end of the first switch is connected with the anode of the first electrolytic capacitor, the cathode of the first electrolytic capacitor is grounded, the second end of the first switch is used as a 5V voltage output end, and the first resistor and the first light emitting diode are connected in series and then are connected in parallel with the first electrolytic capacitor; and the VCC pin and the EA/VPP pin of the first single chip microcomputer are both connected with the 5V voltage output end.
3. The intelligent miniature water tower water level control system of claim 2, wherein the pressure sensor is a piezoresistive force sensor, the input end of the pressure sensor is connected with the 5V voltage output end, a second resistor is connected between the input end and the output end of the pressure sensor, and the grounding end of the pressure sensor is grounded;
the analog-to-digital converter comprises an AD chip with the model of ADC0832, wherein a CH0 pin or a CH1 pin of the AD chip is connected with the output end of the piezoresistive force sensor, a VCC pin of the AD chip is connected with the 5V voltage output end, a GND pin of the AD chip is grounded, a DI pin and a DO pin of the AD chip are both connected with a P10 pin of the first single chip microcomputer, a CLK pin of the AD chip is connected with a P11 pin of the first single chip microcomputer, and a CS pin of the AD chip is connected with a P12 pin of the first single chip microcomputer.
4. The intelligent miniature water tower water level control system of claim 2 wherein said pump control circuit comprises a relay, a first triode, a third resistor, a first diode and a first capacitor, said first triode being of the PNP type; one end of the relay is connected with the 5V voltage output end, the other end of the relay is connected with an emitting electrode of the first triode, a base electrode of the first triode is connected with a P20 pin of the first single chip microcomputer through the third resistor, and a collector electrode of the first triode is grounded; the input end of the first diode is connected with the emitting electrode of the first triode, and the output end of the first diode is connected with the 5V voltage output end; the first capacitor is connected between the 5V voltage output end and the emitting electrode of the first triode after being connected with the water pumping pump in parallel.
5. The intelligent miniature water tower water level control system according to claim 2, wherein the transmitter further comprises a first voltage reduction circuit, the first voltage reduction circuit comprises a first voltage reduction chip with model number AMS1117, a second electrolytic capacitor, a third electrolytic capacitor, a second capacitor and a third capacitor, an input end of the first voltage reduction chip is connected to the 5V voltage output end, an output end of the first voltage reduction chip serves as a 3.3V voltage output end, and a GND end of the first voltage reduction chip is grounded; the second electrolytic capacitor and the second capacitor are connected in parallel and then connected between the 5V voltage output end and the ground, and the third electrolytic capacitor and the third capacitor are connected in parallel and then connected between the 3.3V voltage output end and the ground;
the transmitter wireless communication circuit comprises a first radio frequency chip with the model number of 24L01, a VCC pin of the first radio frequency chip is connected with the 3.3V voltage output end, a GND pin of the first radio frequency chip is grounded, and a CSN pin, a MOSI pin, an IPQ pin, a MISO pin, an SCK pin and a CE pin of the first radio frequency chip are respectively and correspondingly connected with a P32 pin-P37 pin of the first single chip microcomputer;
the transmitter further comprises a first reset circuit, the first reset circuit comprises a first key switch, a fourth resistor and a fourth capacitor, one end of the first key switch is connected with the 5V voltage output end, the other end of the first key switch is connected with the REST pin of the first single chip microcomputer, one end of the fourth capacitor is connected with the 5V voltage output end, the other end of the fourth capacitor is connected with the REST pin of the first single chip microcomputer, one end of the fourth resistor is connected with the REST pin of the first single chip microcomputer, and the other end of the fourth resistor is grounded;
the transmitter further comprises a first clock circuit, the first clock circuit comprises a first crystal oscillator, a fifth capacitor and a sixth capacitor, one end of the fifth capacitor is grounded, the other end of the fifth capacitor is connected with the first end of the first crystal oscillator, one end of the sixth capacitor is grounded, the other end of the sixth capacitor is connected with the second end of the first crystal oscillator, the first end of the first crystal oscillator is connected with the XTAL1 pin of the first single chip microcomputer, and the second end of the first crystal oscillator is connected with the XTAL2 pin of the first single chip microcomputer.
6. The intelligent micro water tower water level control system of claim 1, wherein the receiver controller is implemented by a second single chip microcomputer with model number STC89C 52; the transmitter further comprises a second 5V power supply circuit, the second 5V power supply circuit comprises a power supply interface and a second switch, one end of the power supply interface is connected with the first end of the second switch, the other end of the power supply interface is grounded, and the second end of the second switch is used as a 5V voltage output end; and the VCC pin and the EA/VPP pin of the second singlechip are both connected with the 5V voltage output end.
7. The intelligent micro water tower level control system of claim 6, wherein the micro water tower level control system is characterized in that
The water tower water level height setting circuit comprises a second key switch, a third key switch and a fourth key switch, one end of the second key switch is grounded, the other end of the second key switch is connected with a P15 pin of the second single chip microcomputer, one end of the third key switch is grounded, the other end of the third key switch is connected with a P16 pin of the second single chip microcomputer, one end of the fourth key switch is grounded, and the other end of the fourth key switch is connected with a P17 pin of the second single chip microcomputer;
the second single chip microcomputer executes the following operations to set the upper limit value and the lower limit value of the water tower level: when the second key switch is judged not to be pressed, the third key switch is used for switching a manual mode and an automatic mode, the fourth key switch is used for switching the starting/stopping of the water pump in the manual mode, and a state mark for pressing the second key switch is used for recording the pressing times; when the state value is 1, the water tower enters the upper limit setting of the water level of the water tower, at the moment, the third key switch is an adding operation key, the fourth key switch is a subtracting operation key, and the upper limit value of the water tower water level can be set through the third key switch and the fourth key switch; when the state value is 2, the water tower enters a water tower water level lower limit adjusting setting mode, at the moment, the third key switch is an adding operation key, the fourth key switch is a subtracting operation key, and the water tower water level lower limit value can be set through the third key switch and the fourth key; when the state value is 3, the display returns to the homepage to display the real-time data collection.
8. The intelligent miniature water tower water level control system of claim 6, wherein the display circuit comprises a display screen with a model of LCD1602, D0-D7 data signal/command signal communication ports of the display screen are respectively and correspondingly connected with pins P00-P07 of the second singlechip, and a VO port of the display screen is grounded through a potentiometer; pins P00-P07 of the second single chip microcomputer are further connected with the 5V voltage output end through first pull-up resistors, eighth pull-up resistors and the like respectively;
the alarm circuit comprises a buzzer, a second triode and a fifth resistor, wherein the second triode is of a PNP type; one end of the buzzer is connected with the 5V voltage output end, one end of the buzzer is connected with an emitting electrode of the second triode, a collector electrode of the second triode is grounded, and a base electrode of the second triode is connected with a P20 pin of the second singlechip through the fifth resistor;
the alarm circuit further comprises a second light-emitting diode, a third light-emitting diode and a sixth resistor, one end of the sixth resistor is connected with the 5V voltage output end, the other end of the sixth resistor is connected with one ends of the second light-emitting diode and the third light-emitting diode at the same time, the other end of the second light-emitting diode is connected with a P10 pin of the second single chip microcomputer, and the other end of the third light-emitting diode is connected with a P11 pin of the second single chip microcomputer.
9. The intelligent miniature water tower water level control system according to claim 6, wherein the receiver further comprises a second voltage reduction circuit, the second voltage reduction circuit comprises a second voltage reduction chip with model AMS1117, a fourth electrolytic capacitor, a fifth electrolytic capacitor, a seventh capacitor and an eighth capacitor, an input end of the second voltage reduction chip is connected with the 5V voltage output end, an output end of the second voltage reduction chip is used as a 3.3V voltage output end, and a GND end of the second voltage reduction chip is grounded; the fourth electrolytic capacitor and the seventh capacitor are connected in parallel and then connected between the 5V voltage output end and the ground, and the fifth electrolytic capacitor and the eighth capacitor are connected in parallel and then connected between the 3.3V voltage output end and the ground;
the wireless communication circuit of the receiver comprises a second radio frequency chip with the model of 24L01, a VCC pin of the second radio frequency chip is connected with the 3.3V voltage output end, a GND pin of the second radio frequency chip is grounded, and a CSN pin, a MOSI pin, an IPQ pin, a MISO pin, an SCK pin and a CE pin of the second radio frequency chip are respectively and correspondingly connected with a P32 pin-P37 pin of the second single chip microcomputer.
10. The intelligent miniature water tower water level control system of claim 6, wherein the receiver further comprises a second reset circuit, the second reset circuit comprises a fifth key switch, a sixth resistor and a ninth capacitor, one end of the fifth key switch is connected to the 5V voltage output terminal, the other end of the fifth key switch is connected to the REST pin of the second single chip microcomputer, one end of the ninth capacitor is connected to the 5V voltage output terminal, the other end of the ninth capacitor is connected to the REST pin of the second single chip microcomputer, one end of the sixth resistor is connected to the REST pin of the second single chip microcomputer, and the other end of the sixth resistor is grounded;
the receiver still includes the second clock circuit, the second clock circuit includes second crystal oscillator, tenth electric capacity and eleventh electric capacity, the one end ground connection of tenth electric capacity, the other end of tenth electric capacity is connected the first end of second crystal oscillator, the one end ground connection of eleventh electric capacity, the other end of eleventh electric capacity is connected the second end of second crystal oscillator, the first end of second crystal oscillator is connected the XTAL1 pin of second singlechip, the second end of second crystal oscillator is connected the XTAL2 pin of second singlechip.
CN202211055019.7A 2022-08-30 2022-08-30 Intelligent water level control system of miniature water tower Pending CN115128989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211055019.7A CN115128989A (en) 2022-08-30 2022-08-30 Intelligent water level control system of miniature water tower

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211055019.7A CN115128989A (en) 2022-08-30 2022-08-30 Intelligent water level control system of miniature water tower

Publications (1)

Publication Number Publication Date
CN115128989A true CN115128989A (en) 2022-09-30

Family

ID=83387148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211055019.7A Pending CN115128989A (en) 2022-08-30 2022-08-30 Intelligent water level control system of miniature water tower

Country Status (1)

Country Link
CN (1) CN115128989A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2033499U (en) * 1988-06-01 1989-03-01 临汾铁路分局临汾水电段 Water level monitor
CN2211064Y (en) * 1994-11-02 1995-10-25 彭伟杰 Wireless remote-measuring monitor for the lever of water-tower
CN1632705A (en) * 2004-12-29 2005-06-29 叶灵 Wireless remote control automatic control device for water tower level
CN201828836U (en) * 2010-05-07 2011-05-11 杨蕴石 Water level automatic control system of flood discharge gate
JP2012012807A (en) * 2010-06-30 2012-01-19 Toshiba Corp Water level monitoring device of water tower
CN102505736A (en) * 2011-12-15 2012-06-20 李学红 Water tower liquid level automatic control system
CN202939510U (en) * 2012-12-02 2013-05-15 东北石油大学 Liquid level data acquisition and wireless remote control system for water storage tank
CN205334254U (en) * 2016-02-04 2016-06-22 关吉 Water level monitor control device
CN206847729U (en) * 2016-12-14 2018-01-05 国网浙江省电力公司温州供电公司 A kind of remote supervision system of water level
CN207301816U (en) * 2017-08-18 2018-05-01 上海康玙电子科技有限公司 Automobile water level controller
CN107992106A (en) * 2017-12-12 2018-05-04 长沙科悦企业管理咨询有限公司 A kind of automatic controller for water level
CN208830815U (en) * 2018-09-14 2019-05-07 国网湖北省电力有限公司武汉供电公司 Shaft tower water-level instrumentation
CN111381205A (en) * 2018-12-29 2020-07-07 深圳时代能创能源科技有限公司 Motor controller current sensor calibration system and method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2033499U (en) * 1988-06-01 1989-03-01 临汾铁路分局临汾水电段 Water level monitor
CN2211064Y (en) * 1994-11-02 1995-10-25 彭伟杰 Wireless remote-measuring monitor for the lever of water-tower
CN1632705A (en) * 2004-12-29 2005-06-29 叶灵 Wireless remote control automatic control device for water tower level
CN201828836U (en) * 2010-05-07 2011-05-11 杨蕴石 Water level automatic control system of flood discharge gate
JP2012012807A (en) * 2010-06-30 2012-01-19 Toshiba Corp Water level monitoring device of water tower
CN102505736A (en) * 2011-12-15 2012-06-20 李学红 Water tower liquid level automatic control system
CN202939510U (en) * 2012-12-02 2013-05-15 东北石油大学 Liquid level data acquisition and wireless remote control system for water storage tank
CN205334254U (en) * 2016-02-04 2016-06-22 关吉 Water level monitor control device
CN206847729U (en) * 2016-12-14 2018-01-05 国网浙江省电力公司温州供电公司 A kind of remote supervision system of water level
CN207301816U (en) * 2017-08-18 2018-05-01 上海康玙电子科技有限公司 Automobile water level controller
CN107992106A (en) * 2017-12-12 2018-05-04 长沙科悦企业管理咨询有限公司 A kind of automatic controller for water level
CN208830815U (en) * 2018-09-14 2019-05-07 国网湖北省电力有限公司武汉供电公司 Shaft tower water-level instrumentation
CN111381205A (en) * 2018-12-29 2020-07-07 深圳时代能创能源科技有限公司 Motor controller current sensor calibration system and method

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
刘正国: "《中小型水库安全管理与监测》", 31 July 2005 *
徐慧芳,程明,梁岩: "基于单片机的智能水位监控系统设计", 《佳木斯大学学报(自然科学版)》 *
徐涢基,魏全盛: "《单片机项目实训》", 28 February 2019 *
李敏: "《智能汽车设计与实践基础》", 31 August 2020 *
李科杰: "《新编传感器技术手册》", 31 January 2002 *
袁新娣: "基于单片机的智能水塔水位控制系统设计+", 《赣南师范学院学报》 *

Similar Documents

Publication Publication Date Title
CN201508339U (en) Air mass monitor with USB interface
CN101915077A (en) Pressure and the output self-adaptation measurement and control system of electric pump producing well
CN2714804Y (en) Integrative wireless monitoring indicator
CN103376142A (en) Single chip microcomputer based weighing type liquid level meter
CN204595515U (en) Wireless multifunctional converter
CN111462469A (en) Multi-channel acquisition terminal
CN115128989A (en) Intelligent water level control system of miniature water tower
CN201138218Y (en) Intelligent liquid flow meter
CN204479014U (en) Hold grid chi slit gauge
CN208795318U (en) A kind of road ponding automatic monitoring system
CN200946502Y (en) Rod type monitoring indicator
CN100451636C (en) Humidity transmitter in low cost
CN201402164Y (en) Two-path low power consumption ultrasonic wave open channel flowmeter
CN201819712U (en) Gas ultrasonic flow metering unit based on DSP (Digital Signal Processor)
CN210603295U (en) Remote awakening type hydrological telemetering terminal equipment
CN2864622Y (en) Wireless operable canal level flow meter
CN201016951Y (en) Low-cost humidity transducer
CN202275074U (en) High accuracy portable water oxygen dissolving meter
CN2665360Y (en) Digitalized top board monitoring apparatus
CN214407640U (en) Multi-parameter flow integrating instrument
CN202119507U (en) Ultrasonic material level instrument with temperature/humidity compensation and remote monitoring functions
CN200993005Y (en) Oil well working condition monitoring device
CN205405821U (en) Alarming monitoring device is leaked in intelligence gas
CN104655353A (en) Micro power digital pressure gauge and pressure measuring method
CN213274127U (en) Infrared distance measurement terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220930

RJ01 Rejection of invention patent application after publication