Disclosure of Invention
An object of the present invention is to solve at least the above problems and to provide at least the advantages described later.
The invention also aims to provide a self-generating induction water valve controller, which aims to fully utilize the kinetic energy of water outlet of the water valve, convert the kinetic energy into electric energy to supply energy to a system, and intelligently control the water outlet time by utilizing a single chip microcomputer so as to achieve the purposes of energy conservation and emission reduction.
To achieve these objects and other advantages and in accordance with the purpose of the invention, there is provided a self-generating induction water valve controller including:
the water pipe generator is arranged in the water inlet pipe, a pulse electromagnetic valve is arranged on the water inlet pipe at the downstream of the water pipe generator, two ends of the pulse electromagnetic valve are connected with a manual water valve in parallel, and the output end of the water pipe generator is provided with a voltage acquisition unit;
the input end of the charge-discharge protection module is connected with the output end of the water pipe generator;
the battery is connected to the output end of the charge and discharge protection module;
the power end of the sensor module is connected with the output end of the charge-discharge protection module, and the sensor module is arranged on outlet equipment of the water outlet pipe;
a power supply end of the controller is connected with the output end of the charge-discharge protection module, a first input end of the controller is connected with the output end of the voltage acquisition unit, and a second input end of the controller is connected with the output end of the sensor module; and
and the input end of the driving module is connected with the output end of the controller, and the output end of the driving module is connected with the control end of the pulse electromagnetic valve.
Preferably, the charge and discharge protection module is a TP4056 integrated charging and protection board.
Preferably, the battery is a lithium battery, and two ends of the battery are connected with a super capacitor in parallel.
Preferably, the sensor module is an infrared sensor module.
Preferably, a timing module is arranged in the controller.
Preferably, the driving module includes: the circuit comprises a first triode Q1, a second triode Q2, a third triode Q3, a fourth triode Q4, a fifth triode Q5, a sixth triode Q6, a seventh triode Q7, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, a first capacitor C3, a second capacitor C2 and a third capacitor C4; an emitter of the first transistor Q1 is connected to an emitter of the second transistor Q2 as an input port a of the driving module, a collector of the first transistor Q1 is connected to a collector of the third transistor Q3 as an output port D of the driving module, a base of the first transistor Q1 is connected to a first end of the second resistor R2, a collector of the second transistor Q2 is connected to a collector of the fourth transistor Q4 as an output port F of the driving module, a base of the second transistor Q2 is connected to a first end of the third resistor R3, an emitter of the third transistor Q3 is connected to an emitter of the fourth transistor Q4 as an input port C of the driving module, a base of the third transistor Q3 is connected to a first end of the fourth resistor R4, a base of the fourth transistor Q4 is connected to a first end of the fifth resistor R5, a collector of the fifth transistor Q5 is connected to a second end of the second resistor R2, and an emitter of the fifth transistor Q5 is connected to a second end of the fifth resistor R5, a base of the fifth transistor Q5 is connected to a first end of the sixth resistor R6, a collector of the sixth transistor Q6 is connected to a second end of the third resistor R3, an emitter of the sixth transistor Q6 is connected to a second end of the fourth resistor R4, a base of the sixth transistor Q6 is connected to a first end of the seventh resistor R7, a collector of the seventh transistor Q7 is connected to a second end of the sixth resistor R6, an emitter of the seventh transistor Q7 is connected to the driving module input port C, a base of the seventh transistor Q7 is connected to a second end of the seventh resistor R7 as the driving module input port B, a first end of the first resistor R1 is connected to the driving module input port a, a second end of the first resistor R1 is connected to a collector of the seventh transistor Q7, a first end of the first capacitor C3 is connected to a base of the fifth transistor Q5, and a second end of the first capacitor C3 is connected to the driving module input port C, a first end of the second capacitor C2 is connected to the output port D of the driving module, a second end of the second capacitor C2 is connected to the output port F of the driving module, a first end of the third capacitor C4 is connected to the base of the sixth transistor Q6, and a second end of the third capacitor C4 is connected to the input port C of the driving module.
Preferably, the controller has three output pins, wherein a first output pin is connected to the input port a, a second output pin is connected to the input port B, a third output pin is connected to the input port C, the first output pin and the third output pin provide a working voltage of the driving module, the output port D and the output port F are connected to a driving signal input terminal of the pulse solenoid valve, and the second output pin outputs a control signal for controlling the electrode on the pulse solenoid valve to reverse.
A control method of a self-generating induction water valve comprises the following steps:
step one, when a sensor module is triggered, the sensor module generates a first trigger signal and transmits the first trigger signal to a controller, and the controller wakes up from a sleep state after receiving the first trigger signal;
step two, when the sensor module is triggered, the sensor module generates a second trigger signal and transmits the second trigger signal to the controller, and the timing module calculates the duration t from the first trigger signal to the second trigger signal;
when the sensor module is triggered, controlling the pulse electromagnetic valve to be opened, enabling the water pipe generator to run to generate power, and supplying power to the battery, the sensor module, the controller and the driving module through the charge-discharge protection module;
and step four, acquiring an output voltage value x of the water pipe generator and transmitting the output voltage value x to a controller, setting a delay time a by the controller according to the voltage value x and the duration time t, and controlling the opening duration time of the pulse electromagnetic valve to be a, wherein a is inversely proportional to x and a is directly proportional to t.
And step five, the controller enters the dormant state again and waits for the next trigger starting.
Preferably, in the third step, if the duration t is detected to be less than five seconds, the process directly proceeds to the fifth step.
Preferably, in the fourth step, a database is set in the controller, the database stores a corresponding relation table between a and x, t, and the x, t values collected by the controller are imported into the database for automatic searching to obtain the delay time a.
The invention at least comprises the following beneficial effects:
1. the kinetic energy of the water discharged by the water valve is fully utilized and converted into electric energy for the system, so that the energy consumption of the system is reduced;
2. the controller automatically adjusts the water outlet flow according to the induction time and the water pressure, reduces the water outlet quantity on the premise of not influencing the flushing effect, and achieves the purpose of water saving.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Detailed Description
The present invention is further described in detail below with reference to the attached drawings so that those skilled in the art can implement the invention by referring to the description text.
It will be understood that terms such as "having," "including," and "comprising," as used herein, do not preclude the presence or addition of one or more other elements or groups thereof.
As shown in fig. 1-2, a self-generating induction water valve controller comprises a water pipe generator, a lithium battery charging and discharging module, an infrared sensor module, a controller, a pulse battery valve and a driving module thereof.
The water pipe generator 1 is arranged in the water inlet pipe, and when water in the water inlet pipe flows through the water pipe generator 1, water flow energy drives water to flow through the water pipe generator 1 to generate electricity. The water pipe generator is characterized in that a pulse electromagnetic valve 8 is arranged on the water inlet pipe at the downstream of the water pipe generator 1, two ends of the pulse electromagnetic valve 8 are connected with a manual water valve 9 in parallel, and the output end of the water pipe generator 1 is provided with a voltage acquisition unit for acquiring the output voltage value of the water pipe generator 1.
The input of the charge and discharge protection module 2 is connected at the output end of the water pipe generator 1, in this embodiment, what the charge and discharge protection module 2 adopted is a TP4056 integrated plate for charging and protecting, and the battery 5 is connected at the output end of the charge and discharge protection module 2 for charging the battery 5 through the charge and discharge protection module 2, in this embodiment, the battery is a lithium battery, a super capacitor 6 is connected in parallel at two ends of the battery 5.
The 3 power ends of sensor module with charge and discharge protection module 2's output is connected, what sensor module 3 adopted is pyroelectric infrared sensor module, and the electric energy that water pipe generator 1 sent directly supplies power for sensor module 3 through charge and discharge protection module 2, perhaps supplies power for sensor module 3 through battery 5, sensor module 3 sets up on outlet pipe exit device, and in this embodiment, sensor module 3 sets up in the urinal upper end for whether someone uses the urinal in the response.
The power end of the controller 4 is connected with the output end of the charge-discharge protection module 2, the electric energy generated by the water pipe generator 1 directly supplies power to the controller 4 through the charge-discharge protection module 2, or supplies power to the controller 4 through the battery 5, and in the embodiment, the controller 4 adopts a single chip microcomputer.
The first input end of the controller 4 is connected with the output end of the voltage acquisition unit and used for receiving the output voltage value of the water pipe generator 1, and the second input end of the controller 4 is connected with the output end of the sensor module 3 and used for receiving the sensing signal of the sensor module 3.
The controller 4 is provided with a timing module for calculating the time from the sensor module 3 sensing that a person enters the sensing area to the time when the person leaves the sensing area.
The input end of the driving module 7 is connected with the output end of the controller 4, and the output end of the driving module 7 is connected with the control end of the pulse electromagnetic valve 8 and used for controlling the on-off state of the pulse electromagnetic valve 8.
The drive module 7 includes: the circuit comprises a first triode Q1, a second triode Q2, a third triode Q3, a fourth triode Q4, a fifth triode Q5, a sixth triode Q6, a seventh triode Q7, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, a first capacitor C3, a second capacitor C2 and a third capacitor C4; an emitter of the first transistor Q1 is connected to an emitter of the second transistor Q2 as an input port a of the driving module 7, a collector of the first transistor Q1 is connected to a collector of the third transistor Q3 as an output port D of the driving module 7, a base of the first transistor Q1 is connected to a first end of the second resistor R2, a collector of the second transistor Q2 is connected to a collector of the fourth transistor Q4 as an output port F of the driving module 7, a base of the second transistor Q2 is connected to a first end of the third resistor R3, an emitter of the third transistor Q3 is connected to an emitter of the fourth transistor Q4 as an input port C of the driving module 7, a base of the third transistor Q3 is connected to a first end of the fourth resistor R4, a base of the fourth transistor Q4 is connected to a first end of the fifth resistor R5, a collector of the fifth transistor Q5 is connected to a second end of the second resistor R2, an emitter of the fifth transistor Q5 is connected to a second end of the fifth resistor R5, a base of the fifth transistor Q5 is connected to a first end of the sixth resistor R6, a collector of the sixth transistor Q6 is connected to a second end of the third resistor R3, an emitter of the sixth transistor Q6 is connected to a second end of the fourth resistor R4, a base of the sixth transistor Q6 is connected to a first end of the seventh resistor R7, a collector of the seventh transistor Q7 is connected to a second end of the sixth resistor R6, an emitter of the seventh transistor Q7 is connected to the input port C of the driving module 7, a base of the seventh transistor Q7 is connected to a second end of the seventh resistor R7 as the input port B of the driving module 7, a first end of the first resistor R1 is connected to the input port a of the driving module 7, a second end of the first resistor R1 is connected to a collector of the seventh transistor Q7, and a first end of the first capacitor C3 is connected to a base 5 of the fifth transistor Q3536, the second end of the first capacitor C3 is connected to the input port C of the driving module 7, the first end of the second capacitor C2 is connected to the output port D of the driving module 7, the second end of the second capacitor C2 is connected to the output port F of the driving module 7, the first end of the third capacitor C4 is connected to the base of the sixth triode Q6, and the second end of the third capacitor C4 is connected to the input port C of the driving module 7.
The controller 4 is provided with three output pins, wherein a first output pin is connected with the input port A, a second output pin is connected with the input port B, a third output pin is connected with the input port C, the first output pin and the third output pin provide working voltage of the driving module 7, the output port D and the output port F are connected with a driving signal input end of the pulse electromagnetic valve 8 to provide a driving signal for an electrode on the pulse electromagnetic valve 8, the second output pin outputs a control signal for controlling the electrode on the pulse electromagnetic valve 8 to reverse, the controller outputs a control signal according to the output voltage value of the water pipe generator 1 and the time from the time when a person enters an induction area of the sensor module to the time when the person leaves the induction area, the control signal is output from the second output pin, and the input port B of the driving module receives the control signal to control the output port D, the, The polarity of the output signal on the output port F is used for controlling the polarity of the electrode on the pulse electromagnetic valve 8 to turn over, so that the on-off state of the pulse electromagnetic valve 8 is controlled, and the water yield of the water valve is automatically controlled by a program.
The control method of the self-generating induction water valve comprises the following steps:
step one, when a person goes to a toilet and enters a sensing area of a sensor module 3, the sensor module 3 is triggered, the sensor module 3 generates a first trigger signal and transmits the first trigger signal to a controller 4, and the controller 4 wakes up from a sleep state after receiving the first trigger signal;
step two, when the toilet leaves the sensing area of the sensor module 3 after the toilet is finished, the sensor module 3 finishes the triggered state, the sensor module 3 generates a second trigger signal and transmits the second trigger signal to the controller 4, and the timing module calculates the duration time t from the first trigger signal to the second trigger signal;
step three, when a person leaves the induction area of the sensor module 3, the pulse electromagnetic valve 8 is controlled to be opened, water discharged from the water valve washes the urinal, meanwhile, the water pipe generator 1 operates to generate power, and the battery 5, the sensor module 3, the controller 4 and the driving module 7 are powered through the charge-discharge protection module 2; in addition, the pyroelectric infrared sensor can only sense a moving human body within the range, if the time detected by the pyroelectric infrared sensor is less than 5 seconds, the human body sensing is ignored, and the step five is directly performed;
and step four, acquiring an output voltage value x of the water pipe generator 1 through a voltage acquisition unit and transmitting the output voltage value x to the controller 4, setting a delay time a by the controller 4 according to the voltage value x and the duration time t, and controlling the opening duration time of the pulse electromagnetic valve 8 to be a, wherein a is inversely proportional to x and a is directly proportional to t.
And step five, the controller 4 enters the dormant state again and waits for the next trigger starting.
Specifically, a database is set in the controller 4, a corresponding relation table of a and x and t is stored in the database in advance, and the values of x and t acquired by the controller 4 are imported into the database for automatic searching to obtain the delay time a.
From the above, the water pipe passes through the miniature water pipe generator 1, the miniature water pipe generator is connected with the charge and discharge protection module 2, the charge and discharge protection module 2 charges the lithium battery 5, two ends of the lithium battery 5 are connected with the super capacitor 6 in parallel, and the load of the charge and discharge protection module is the infrared sensor module 3; the load of the charge-discharge protection module is also connected with an STC15 micro single-chip microcomputer system 4 in parallel, a control signal of the infrared sensor is connected with the STC15 micro single-chip microcomputer system 4, a voltage value generated by the water pipe generator is input through one pin of the STC15 micro single-chip microcomputer system 4, the STC15 micro single-chip microcomputer system 4 is provided with three pins to be output to a pulse electromagnetic valve driving module 7, the pulse electromagnetic valve driving module is connected to a pulse electromagnetic valve 8, the pulse electromagnetic valve 8 is connected to a water pipe, and two ends of the pulse electromagnetic valve 8 are connected with.
The electric energy generated by the water pipe generator 1 is supplied to the system through the charge-discharge protection module 2, and meanwhile, part of the electric energy is stored in the lithium battery 5 and the super capacitor 6 to provide electric energy before the next water valve is opened; the load of the charge and discharge protection module 2 is connected with the infrared sensor module 3 and the STC15 micro single-chip microcomputer system 4 in parallel to provide working voltage for the infrared sensor module and the STC15 micro single-chip microcomputer system; the STC15 micro single-chip microcomputer system 4 is provided with two input pins which are respectively a control signal of the infrared sensor module and a voltage value signal generated by the water pipe generator; the STC15 micro-singlechip system 4 has three output pins, two of which provide working voltage for the pulse solenoid valve driving module 7 and one of which provides a driving control signal.
FIG. 3 is a flow chart of the present invention.
Wherein, the singlechip is in a sleep mode when not working; when the infrared sensor senses that a human body approaches and transmits a control signal to the single chip microcomputer, the single chip microcomputer stops sleeping and starts timing; when the infrared sensor senses that the human body leaves and transmits a control signal to the single chip microcomputer again, the end of timing is marked as t, and the single chip microcomputer sends a water valve opening command; the water valve is opened to cause the water pipe generator to generate electricity, and the single chip microcomputer can read the voltage value x of the water pipe generator; comparing the timing value t with the voltage value x with the existing database to obtain a proper delay time a; the singlechip sends a water valve closing command after delaying for a seconds; and then the singlechip enters a sleep mode to wait for the next control signal of the infrared sensor.
Wherein t represents the time for using the urinal by a person, and the longer the t time is, the more the required flushing water amount is; in the case of a certain required flushing water amount, the lower the voltage value x, which means that the water flow in the water pipe is smaller, the longer the delay time a is needed to reach the required flushing water amount.
Fig. 2 is a circuit diagram of a water valve driving module according to the present invention.
Wherein, the port A, B, C is connected with an output pin of the singlechip; port D, F connects the two ends of the pulsed solenoid valve.
The whole working process of the invention is as follows: when the system does not work, the singlechip is in a sleep mode; when the infrared sensor senses that the human body approaches, a control signal is sent to the single chip microcomputer, the single chip microcomputer releases the sleep mode, and timing is started; when the infrared sensor senses that the human body leaves, the infrared sensor sends out a control signal again to finish timing, and meanwhile, three output pins (which correspond to ports A, B, C in fig. 2 respectively) of the single chip microcomputer output 110 to open the pulse electromagnetic valve and then output 000 to stop the power supply of the pulse electromagnetic valve driving module; the singlechip can draw up a specific water yield according to the length of the timing time t, judge the water pressure in the water pipe according to the voltage value x generated by the water pipe generator, and obtain a specific delay time a by comparing the values x and t in the database so as to meet the requirement of the required water flushing amount; after the single chip microcomputer is delayed by a, 100 is output at an output port, so that the pulse electromagnetic valve is closed, then 000 is output, and the power supply of the pulse electromagnetic valve driving module is stopped; at the pulse solenoid valve stage of opening, the water pipe generator can utilize the water energy electricity generation to supply energy for the system, has partial electric energy to pass through the storage of charge-discharge protection module in super capacitor and lithium cell simultaneously, for the system energy supply when the water pipe closes.
The invention takes a selected singlechip development board as a core, designs an induction water valve control system by expanding peripheral circuits such as an infrared sensor and the like, and mainly realizes the following functions: when the controller senses that water needs to be discharged, the controller intelligently processes the required water discharge through the single chip microcomputer, drives the ultra-low power consumption pulse electromagnetic valve to open, and tap water flows out, and meanwhile, the kinetic energy of the pulse electromagnetic valve is used for generating power and charging the rechargeable battery, so that external energy is completely not needed, and the purposes of energy conservation and emission reduction are achieved.
The intelligent water output control method is intelligently embodied in the calculation of the required water output and the control of the actual water output. The water yield calculation is based on the user urine time collected by the infrared sensor and is controlled by the single chip microcomputer, and the time is counted when the user enters the sensor area and is finished when the user leaves the time. Aiming at different use time, the singlechip sends out control signals of different water flushing amount; the control basis of actual water yield is then the voltage numerical value that the generator produced, and the voltage value that produces because of the generator can be along with hydraulic big or small change in the pipeline, utilizes the AD function of singlechip, can accomplish when water pressure is great, and control water time is short slightly, and water pressure is less, then control water time is long slightly for actual water yield can be more accurate reach the requirement, avoids the condition of washing by water not enough or wasting water.
The invention has the characteristics of self-generating electricity, no external power supply is needed, in order to achieve the purpose, the device can be used for a long time, the voltages at the two ends of the rechargeable battery are introduced into the AD module of the singlechip, and when the voltage at the two ends of the rechargeable battery is detected to be lower, the water outlet time can be properly prolonged when water is discharged next time, so that the generator can generate more electric energy and store the electric energy for standby. Meanwhile, the design of the circuit and the selection of each device take low power consumption as a standard, the energy consumption of the system is reduced as much as possible, and the purposes of energy conservation and emission reduction are fully achieved.
In order to enhance the practicability of the system, a manual water valve switch is connected in parallel at two ends of the pulse electromagnetic valve, when the energy storage of the rechargeable battery is insufficient due to long-time non-use, the water valve is opened manually to discharge water, the generator can generate and store electricity by utilizing the kinetic energy of the generator, and the generator can be normally used next time. Meanwhile, the condition that the urinal cannot be used when the device breaks down is also avoided.
In the invention, the kinetic energy of the water outlet of the water valve is fully utilized by the water valve controller, and the kinetic energy is converted into electric energy for the system, so that the energy consumption of the system is reduced; meanwhile, the controller automatically adjusts the water outlet flow according to the induction time and the water pressure, reduces the water outlet quantity on the premise of not influencing the flushing effect, and achieves the purpose of water saving.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.