Integrated water pump control system based on LoRa
Through the integrated water pump control system, the microcontroller module is used to jointly judge the water level signal and timing parameters, and combined with the delay control strategy, the problems of strong communication dependence and low control accuracy of the existing water pump control system are solved, and the accuracy and robustness of water pump start and stop are improved. It is suitable for remote areas and agricultural irrigation scenarios.
Patent Information
- Application Number
- CN202510914700.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-10-03
AI Technical Summary
The existing water pump control system is highly dependent on communication methods, has high power consumption and poor coverage, and lacks coordinated judgment and delay strategy control of water level signals and timing signals, resulting in low control accuracy, poor reliability, and low integration, making it difficult to customize and expand according to different usage scenarios.
The microcontroller module is used to jointly judge the water level signal and timing control parameters, and combined with the delayed start strategy and the LoRa wireless communication protocol, precise control of the water pump is achieved through the integration of the microcontroller module, water level detection module, timing control module, execution module and wireless communication module.
The accuracy and robustness of the water pump start-stop control are improved, avoiding frequent start-stops caused by short-term fluctuations or interference signals. It is suitable for low-power, long-distance transmission needs in remote areas or agricultural irrigation environments without a network.
Smart Images

Figure CN120739683A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water pump control, and in particular to an integrated water pump control system based on LoRa. Background Art
[0002] With the advancement of agricultural automation, refined water resource management, and industrial fluid control, water pumps, as key components of water distribution systems, are gradually shifting from traditional manual start-stop control to automated, remote control. Existing water pump control systems often rely on communication methods such as timers, PLCs, or GPRS to implement basic automatic start-stop functionality. Some systems can also provide limited parameter setting and status monitoring via remote terminals. However, existing communication methods are highly dependent on these technologies, consume high power, and have poor coverage. Traditional GPRS and WiFi communication methods are limited by base station signal coverage, network latency, and power consumption, making them unsuitable for the low-power, long-distance transmission requirements of remote areas or agricultural scenarios. Most existing systems utilize a single control logic (e.g., water level priority or timing priority), lacking coordinated judgment and delay strategy control for water level and timing signals. This results in low control accuracy, poor reliability, and is prone to false starts and stops. Traditional control systems have low integration and fragmented functionality, making them difficult to customize and expand for different use cases, hindering large-scale deployment and unified maintenance. Summary of the Invention
[0003] (1) Purpose of the invention
[0004] The purpose of the present invention is to provide a LoRa-based integrated water pump control system that effectively improves the accuracy and robustness of water pump start-stop control by jointly judging the water level signal and timing control parameters through a microcontroller module and combining it with a delayed start strategy, thereby avoiding the frequent start-stop problem caused by short-term fluctuations or interference signals.
[0005] (2) Technical solution
[0006] To solve the above problems, the present invention provides an integrated water pump control system based on LoRa, comprising: a microcontroller module, a water level detection module, a timing control module, an execution module and a wireless communication module;
[0007] The microcontroller module is connected to the water level detection module, the timing control module, the execution module and the wireless communication module;
[0008] The water level detection module is used to monitor the water level signal in real time and transmit the water level signal to the microcontroller module;
[0009] The timing control module is used to set the time parameters of the water pump operation and send the set time parameters to the microcontroller module;
[0010] The microcontroller module is used to output a control signal to the execution module to control the start and stop of the water pump according to the water level signal and the set time parameters;
[0011] The execution module is used to drive the start and stop of the water pump according to the control signal of the microcontroller module;
[0012] The wireless communication module is based on the LoRa communication protocol and is used for data transmission between the microcontroller module and the remote terminal device.
[0013] In another aspect of the present invention, preferably, the water level detection module comprises: an ultrasonic liquid level sensor, a water level signal conditioning circuit and a data conversion unit;
[0014] The ultrasonic liquid level sensor is used to measure the water level in the container in real time and generate an echo signal corresponding to the water level change;
[0015] The water level signal conditioning circuit is used to filter and amplify the echo signal to obtain a stable and identifiable voltage signal;
[0016] The data conversion unit is used to convert the analog value of the voltage signal into a digital signal and transmit it to the microcontroller module.
[0017] In another aspect of the present invention, preferably, the timing control module includes: a real-time clock chip, a parameter setting unit and a time comparison logic unit;
[0018] The real-time clock chip is used to provide a high-precision time reference and generate a current time signal;
[0019] The parameter setting unit is used to receive the start and stop time parameters set by the user and store them as time control rules;
[0020] The time comparison logic unit is used to compare the current time signal with the set start and stop time parameters, and if the set start and stop time parameters are met, output a time satisfaction signal to the microcontroller module.
[0021] In another aspect of the present invention, preferably, the execution module includes: a relay unit, a power switching unit and an overcurrent protection circuit;
[0022] The relay unit controls the start and stop of the water pump according to the control signal output by the microcontroller module;
[0023] The power switching unit is used to switch power supply between the main power supply and the backup power supply;
[0024] The overcurrent protection circuit is used to disconnect the circuit when abnormal current of the water pump is detected.
[0025] In another aspect of the present invention, preferably, the microcontroller module includes: a storage unit, a signal determination unit and a delay control unit;
[0026] The storage unit is used to store water level thresholds, time parameters and historical operation data.
[0027] The signal judgment unit is used to compare the received water level signal and the current time signal with the water level threshold and time parameters preset in the storage unit, and output a judgment result;
[0028] The delay control unit is used to set the delayed start and stop conditions, and output a control signal to the execution module to control the start and stop of the water pump based on the judgment result and the set delayed start and stop conditions.
[0029] In another aspect of the present invention, preferably, the signal judgment unit is configured to perform a joint comparison based on the received water level signal and the current time signal with the water level threshold and time parameter preset in the storage unit, and output a judgment result, including:
[0030] When the water level signal is lower than the set lower threshold and the current time is in the preset pump start time period, the judgment result that the start condition is met is output;
[0031] When the water level signal is higher than the set upper threshold or the current time is not in the pump start time period, the output meets the stop condition judgment result;
[0032] In other cases, the output maintains the current state judgment result to maintain the current operating state of the pump unchanged.
[0033] In another aspect of the present invention, preferably, the delay control unit is used to set a delayed start and stop condition, and output a control signal to the execution module to control the start and stop of the water pump according to the judgment result and the set delayed start and stop condition, including:
[0034] When the signal judgment unit output meets the start condition, the delay timer is started. If the water level signal and the time signal continue to meet the start condition within the delay time, the water pump start control signal is output;
[0035] When the signal judgment unit output meets the stop condition, the delay timer is stopped. If this state lasts longer than the set stop delay time, the water pump stop control signal is output;
[0036] If the judgment condition is no longer met during the delay process, the current timing is canceled and the monitoring is returned to again.
[0037] In another aspect of the present invention, preferably, the relay unit comprises: the relay unit comprises: a driving circuit, a triode switch circuit and a relay coil;
[0038] The input end of the driving circuit is connected to the control signal output end of the microcontroller module for receiving the water pump start and stop control signal;
[0039] The transistor switch circuit is connected between the drive circuit and the relay coil, and is used to amplify the current of the control signal to realize on-off control of the relay coil;
[0040] One end of the relay coil is connected to the transistor collector, and the other end is connected to the relay power supply, so as to realize the pull-in or release operation under the action of the control signal.
[0041] In another aspect of the present invention, preferably, the relay unit further comprises: a freewheeling diode and a relay normally open contact circuit;
[0042] The freewheeling diode is connected in parallel with the relay coil and is used to release the reverse induced voltage generated by the coil when the relay is powered off, thereby protecting the drive circuit and the microcontroller module;
[0043] One end of the normally open contact circuit of the relay is connected to the high-voltage power supply, and the other end is connected to the water pump input end, which is used to close the contact when the relay is energized, so that the water pump power is connected and the water pump is started; and open the contact when the relay is released to stop the water pump.
[0044] In another aspect of the present invention, preferably, it further comprises an interaction module, wherein the interaction module is connected to the microcontroller module, and the interaction module is used to receive user input instructions and provide system operation status feedback information.
[0045] (3) Beneficial effects
[0046] The above technical solution of the present invention has the following beneficial technical effects:
[0047] This invention uses a microcontroller module to jointly determine water level signals and timing parameters, and introduces a delay control strategy to avoid false triggering caused by instantaneous water level fluctuations, effectively improving the system's operational stability and control reliability. The execution module utilizes a relay control circuit with transistor drive and freewheeling protection to ensure safe and responsive start and stop processes for the pump. It utilizes the LoRa wireless communication protocol, supporting long-distance, low-power data transmission, making it particularly suitable for automated control needs in remote areas or in off-network environments, such as agricultural irrigation. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a schematic diagram of the overall structure of an embodiment of the present invention;
[0049] Figure 2 1 is a circuit diagram of a microcontroller module according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] To make the objectives, technical solutions, and advantages of the present invention more clearly understood, the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present invention.
[0051] The accompanying drawings illustrate schematic diagrams of structures according to embodiments of the present invention. These figures are not drawn to scale; for clarity, some details are exaggerated and some details may be omitted. The shapes of the various regions and layers shown in the figures, as well as their relative sizes and positions, are merely exemplary and may deviate in practice due to manufacturing tolerances or technical limitations. Those skilled in the art may design regions / layers with different shapes, sizes, and relative positions as needed.
[0052] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0053] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0054] The present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, identical elements are represented by similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.
[0055] Example 1
[0056] An integrated water pump control system based on LoRa, Figure 1 shows a schematic diagram of the overall structure of an embodiment of the present invention; Figure 2 FIG. 4 shows a circuit diagram of a microcontroller module according to an embodiment of the present invention. Figure 1 and Figure 2 As shown; including: microcontroller module, water level detection module, timing control module, execution module and wireless communication module;
[0057] The microcontroller module is connected to the water level detection module, the timing control module, the execution module and the wireless communication module;
[0058] The water level detection module is used to monitor the water level signal in real time and transmit the water level signal to the microcontroller module; in this embodiment, the water level detection module includes: an ultrasonic liquid level sensor, a water level signal conditioning circuit and a data conversion unit;
[0059] The ultrasonic liquid level sensor is used to measure the water level in a container in real time, generating an echo signal corresponding to the water level changes. Its operating principle is based on the reflection properties of ultrasonic waves. The sensor integrates an ultrasonic transmitter and receiver. The transmitter transmits ultrasonic signals to the water surface in the container at regular intervals. When the ultrasonic waves hit the water surface, they are reflected, and the reflected waves are received by the receiver. The water level in the container can be calculated based on the propagation speed of ultrasonic waves in air and the time difference between transmission and reception.
[0060] The water level signal conditioning circuit is used to filter and amplify the echo signal to obtain a stable and recognizable voltage signal. During transmission, the echo signal generated by the ultrasonic liquid level sensor may be affected by external electromagnetic interference and weak signals. Therefore, the water level signal conditioning circuit first processes the echo signal through a filtering circuit. Furthermore, the signal is amplified by an amplifier circuit. This amplifier circuit can be constructed using an operational amplifier to amplify the signal to an appropriate amplitude, thereby obtaining a stable and recognizable voltage signal.
[0061] The data conversion unit is used to convert the analog value of the voltage signal into a digital signal and transmit it to the microcontroller module. The main function of the data conversion unit is to convert the analog voltage signal output by the water level signal conditioning circuit into a digital signal so that the microcontroller module can process and analyze it.
[0062] The timing control module is used to set the time parameters of the water pump operation and send the set time parameters to the microcontroller module; further, in this embodiment, the timing control module includes: a real-time clock chip, a parameter setting unit and a time comparison logic unit;
[0063] The real-time clock chip is used to provide a high-precision time base and generate the current time signal. The real-time clock chip is the time base core of the entire module. Through the internal high-precision oscillator and counter, it continuously outputs accurate time information of year, month, day, hour, minute and second.
[0064] The parameter setting unit is used to receive the start and stop time parameters set by the user and store them as time control rules; when a touch screen input is adopted, intuitive operation is achieved through a graphical interface.
[0065] The time comparison logic unit is used to compare the current time signal with the set start and stop time parameters. If the set start and stop time parameters are met, a time satisfaction signal is output to the microcontroller module. The current time output by the real-time clock chip is compared bit by bit with the start and stop time stored in the parameter setting unit. Taking the hour comparison as an example, when the current hour is equal to the set start hour, the minute number is compared; if all corresponding bits are equal, the start condition is determined to be met. To prevent false triggering of the time critical point, the logic control circuit incorporates an anti-shake delay design to ensure that only one valid trigger signal is generated.
[0066] The microcontroller module is used to output a control signal to the execution module to control the start and stop of the water pump according to the water level signal and the set time parameter; further, in this embodiment, the microcontroller module includes: a storage unit, a signal judgment unit and a delay control unit;
[0067] The storage unit is used to store water level thresholds, time parameters, and historical operation data. The storage unit can be composed of memory such as EEPROM, Flash, or RAM. It is used to store parameter information required during system operation, including: Water level threshold parameters include upper and lower water level thresholds, which are used to determine whether the water pump needs to be started or stopped. Time parameters include the set minimum run time, minimum downtime, and the delay time required to determine water level stability. Historical operation data includes the timestamp of the last water pump start / stop, the accumulated run time, and the number of runs, supporting subsequent optimization control or operation logging functions.
[0068] The signal judgment unit is used to compare the received water level signal and the current time signal with the water level threshold and time parameters preset in the storage unit, and output a judgment result. The signal judgment unit is used to perform logical judgment on the start and stop status of the water pump. Its core task is to compare the real-time water level signal and the current system time signal with the preset control parameters in the storage unit, such as the upper and lower limits of the water level, the pump start time period, etc., to generate a state judgment result as the input basis for the subsequent delay control unit. In this embodiment, it includes:
[0069] When the water level signal is lower than the set lower threshold and the current time is in the preset pump start time period, the judgment result that the start condition is met is output;
[0070] When the water level signal is higher than the set upper threshold or the current time is not in the pump start time period, the output meets the stop condition judgment result;
[0071] In other cases, the output maintains the current state judgment result to maintain the current operating state of the water pump. Through this combined judgment logic, the system can more intelligently control the start and stop process of the water pump, reduce the probability of false operation, improve automation stability, avoid ineffective operation, save energy, and support flexible time period control to adapt to different water demand scenarios.
[0072] The delay control unit is used to set the delayed start and stop conditions, and output a control signal to the execution module to control the start and stop of the water pump according to the judgment result and the set delayed start and stop conditions. The delay control unit is used to further execute the delayed confirmation mechanism after receiving the start and stop judgment result of the signal judgment unit, thereby preventing frequent start and stop caused by short-term water level fluctuations or false triggering conditions, and improving the robustness and stability of the water pump control system, including:
[0073] When the signal judgment unit output meets the start condition, the delay timer is started. If the water level signal and the time signal continue to meet the start condition within the delay time, the pump start control signal is output. In this state, the system will continue to detect the water level signal and the current time signal within the set start delay time, such as 10 seconds, 30 seconds, etc. If the water level is always lower than the set lower limit threshold during the entire delay time period, and the current time is always within the preset pump start time period, then the start condition is deemed to be continuously valid. At this time, the delay control unit outputs the pump start control signal, controls the execution module to start the water pump, and records the time when the water pump starts. If any condition is no longer met within the delay time, for example, the water level rises above the lower limit threshold or the current time is out of the pump start time period, the system immediately interrupts the current timing process, cancels this start operation, does not output the start control signal, and returns to the initial monitoring state, continuing to wait for new judgment results.
[0074] When the signal judgment unit outputs that the stop condition is met, the delay timer is stopped. If this state lasts longer than the set stop delay time, the pump stop control signal is output; when the signal judgment unit outputs the judgment result that the stop condition is met, the delay control unit starts the stop timer and enters the stop delay monitoring state. During the set stop delay time, the system continuously detects whether the water level signal is higher than the upper threshold, or whether the current time is in the non-pump start time period. If the judgment condition remains valid throughout the delay time, the pump stop control signal is output, the control execution module turns off the pump, and the stop time is recorded. Similarly, if the judgment condition no longer holds true during the delay time, for example, the water level falls back to a safe range or the time re-enters the pump start section, the stop delay timer is interrupted, the system cancels the pump stop instruction, returns to the monitoring state, and maintains the current operating state of the pump unchanged.
[0075] If the judgment condition is no longer met during the delay process, the current timing is canceled and the system returns to monitoring again. To improve system reliability, the delay control unit can be set to an idle monitoring mode by default. No control operations will be performed until the start / stop signal from the signal judgment unit is received. The system always maintains real-time monitoring of water level and time, ensuring that control actions are only taken after accurate judgments and delay confirmation.
[0076] The execution module is used to drive the start and stop of the water pump according to the control signal of the microcontroller module; further, in this embodiment, the execution module includes: a relay unit, a power switching unit and an overcurrent protection circuit;
[0077] The relay unit controls the start and stop of the water pump according to the control signal output by the microcontroller module;
[0078] The power switching unit is used to switch power supply between the main power supply and the backup power supply;
[0079] The overcurrent protection circuit is used to disconnect the circuit when abnormal current of the water pump is detected.
[0080] Further, the relay unit includes: the relay unit includes: a driving circuit, a transistor switch circuit and a relay coil;
[0081] The input end of the drive circuit is connected to the control signal output end of the microcontroller module for receiving the water pump start and stop control signal; a current limiting filter network composed of resistors and capacitors can be used, or an optical coupling device can be used to achieve level isolation to ensure stable transmission of the control signal.
[0082] The transistor switch circuit is connected between the drive circuit and the relay coil, and is used to amplify the control signal's current, enabling on-off control of the relay coil. This function amplifies the current of the control signal output by the microcontroller. When the control signal is active, the transistor conducts, allowing a closed circuit to form across the relay coil, energizing it and closing it. When the control signal is inactive, the transistor turns off, de-energizing the relay coil and releasing the contacts.
[0083] One end of the relay coil is connected to the transistor collector, and the other end is connected to the relay power supply, allowing it to engage or disengage in response to a control signal. When energized, the relay coil generates a magnetic field, closing the normally open contacts within the relay, thereby connecting the pump power circuit. When the control signal is removed, the coil loses power, the magnetic field disappears, the contacts release, and the pump stops.
[0084] The relay unit also includes: a freewheeling diode and a relay normally open contact circuit;
[0085] The freewheeling diode, connected in parallel with the relay coil, is used to release the reverse induced voltage generated by the coil when the relay loses power, protecting the drive circuit and microcontroller module. The freewheeling diode is connected in parallel across the relay coil, with the current flowing in the opposite direction to the normal supply current. When the relay loses power, the coil's induced potential may generate a transient high voltage. The freewheeling diode provides a release path, conducting the reverse current back into the circuit and preventing the high-voltage backlash from damaging the transistors and microcontroller.
[0086] One end of the relay's normally open contact circuit is connected to a high-voltage power supply, and the other end is connected to the water pump input. When the relay is engaged, the contacts close, connecting the water pump power and starting it; when the relay is released, the contacts open, stopping the water pump. One of the relay's normally open contacts is connected to the output of the main power supply, and the other is connected to the water pump input. When the relay is engaged, the circuit closes, powering the water pump and starting it. When the relay is released, the contacts open, disconnecting the circuit and stopping the water pump.
[0087] Furthermore, in this embodiment, the wireless communication module, based on the LoRa communication protocol, is used for data transmission between the microcontroller module and remote terminal devices. The introduction of the wireless communication module significantly enhances the system's remote monitoring capabilities and intelligence, making it particularly suitable for applications requiring remote management, such as agricultural irrigation, distributed pumping stations, and urban water supply monitoring.
[0088] Furthermore, this embodiment also includes an interaction module, which is connected to the microcontroller module and is used to receive user input commands and provide feedback information on the system's operating status. This provides a user with a local control and information feedback interface, enhancing the system's human-computer interaction and on-site operational convenience.
[0089] This invention uses a microcontroller module to jointly determine water level signals and timing parameters, and introduces a delay control strategy to avoid false triggering caused by instantaneous water level fluctuations, effectively improving the system's operational stability and control reliability. The execution module utilizes a relay control circuit with transistor drive and freewheeling protection to ensure safe and responsive start and stop processes for the pump. It utilizes the LoRa wireless communication protocol, supporting long-distance, low-power data transmission, making it particularly suitable for automated control needs in remote areas or in off-network environments, such as agricultural irrigation.
[0090] It should be understood that the above-described specific embodiments of the present invention are merely illustrative or illustrative of the principles of the present invention and do not constitute limitations of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included within the scope of protection of the present invention. In addition, the appended claims are intended to cover all variations and modifications that fall within the scope and metes and bounds of the appended claims, or equivalents thereof.
[0091] The present invention has been described above with reference to the embodiments thereof. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present invention. The scope of the present invention is defined by the appended claims and their equivalents. Those skilled in the art may make various substitutions and modifications without departing from the scope of the present invention, and such substitutions and modifications are intended to fall within the scope of the present invention.
[0092] Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
[0093] Obviously, the above embodiments are merely examples for clarity of explanation and are not intended to limit the implementation methods. Those skilled in the art will readily appreciate that other variations or modifications based on the above descriptions are possible. It is not necessary and impossible to enumerate all implementation methods here. Obvious variations or modifications arising therefrom remain within the scope of protection of the present invention.
Claims
1. An integrated water pump control system based on LoRa, characterized in that: include: Microcontroller module, water level detection module, timing control module, execution module and wireless communication module; The microcontroller module is connected to the water level detection module, the timing control module, the execution module and the wireless communication module; The water level detection module is used to monitor the water level signal in real time and transmit the water level signal to the microcontroller module; The timing control module is used to set the time parameters of the water pump operation and send the set time parameters to the microcontroller module; The microcontroller module is used to output a control signal to the execution module to control the start and stop of the water pump according to the water level signal and the set time parameters; The execution module is used to drive the start and stop of the water pump according to the control signal of the microcontroller module; The wireless communication module is based on the LoRa communication protocol and is used for data transmission between the microcontroller module and the remote terminal device.
2. The LoRa-based integrated water pump control system according to claim 1, characterized in that: The water level detection module includes: an ultrasonic liquid level sensor, a water level signal conditioning circuit and a data conversion unit; The ultrasonic liquid level sensor is used to measure the water level in the container in real time and generate an echo signal corresponding to the water level change; The water level signal conditioning circuit is used to filter and amplify the echo signal to obtain a stable and identifiable voltage signal; The data conversion unit is used to convert the analog value of the voltage signal into a digital signal and transmit it to the microcontroller module.
3. The LoRa-based integrated water pump control system according to claim 1, characterized in that: The timing control module includes: a real-time clock chip, a parameter setting unit and a time comparison logic unit; The real-time clock chip is used to provide a high-precision time reference and generate a current time signal; The parameter setting unit is used to receive the start and stop time parameters set by the user and store them as time control rules; The time comparison logic unit is used to compare the current time signal with the set start and stop time parameters, and if the set start and stop time parameters are met, output a time satisfaction signal to the microcontroller module.
4. The LoRa-based integrated water pump control system according to claim 1, characterized in that: The execution module includes: a relay unit, a power switching unit and an overcurrent protection circuit; The relay unit controls the start and stop of the water pump according to the control signal output by the microcontroller module; The power switching unit is used to switch power supply between the main power supply and the backup power supply; The overcurrent protection circuit is used to disconnect the circuit when abnormal current of the water pump is detected.
5. The LoRa-based integrated water pump control system according to claim 1, characterized in that: The microcontroller module includes: a storage unit, a signal judgment unit and a delay control unit; The storage unit is used to store water level thresholds, time parameters and historical operation data. The signal judgment unit is used to compare the received water level signal and the current time signal with the water level threshold and time parameters preset in the storage unit, and output a judgment result; The delay control unit is used to set the delayed start and stop conditions, and output a control signal to the execution module to control the start and stop of the water pump based on the judgment result and the set delayed start and stop conditions.
6. The LoRa-based integrated water pump control system according to claim 5, characterized in that: The signal judgment unit is used to perform a joint comparison between the received water level signal and the current time signal and the water level threshold and time parameters preset in the storage unit, and output a judgment result, including: When the water level signal is lower than the set lower threshold and the current time is in the preset pump start time period, the judgment result that the start condition is met is output; When the water level signal is higher than the set upper threshold or the current time is not in the pump start time period, the output meets the stop condition judgment result; In other cases, the output maintains the current state judgment result to maintain the current operating state of the pump unchanged.
7. The LoRa-based integrated water pump control system according to claim 6, characterized in that: The delay control unit is used to set the delayed start and stop conditions, and output a control signal to the execution module to control the start and stop of the water pump according to the judgment result and the set delayed start and stop conditions, including: When the signal judgment unit output meets the start condition, the delay timer is started. If the water level signal and the time signal continue to meet the start condition within the delay time, the water pump start control signal is output; When the signal judgment unit output meets the stop condition, the delay timer is stopped. If this state lasts longer than the set stop delay time, the water pump stop control signal is output; If the judgment condition is no longer met during the delay process, the current timing is canceled and the monitoring is returned to again.
8. The LoRa-based integrated water pump control system according to claim 4, characterized in that: The relay unit comprises: the relay unit comprises: a driving circuit, a triode switch circuit and a relay coil; The input end of the driving circuit is connected to the control signal output end of the microcontroller module for receiving the water pump start and stop control signal; The transistor switch circuit is connected between the drive circuit and the relay coil, and is used to amplify the current of the control signal to realize on-off control of the relay coil; One end of the relay coil is connected to the transistor collector, and the other end is connected to the relay power supply, so as to realize the pull-in or release operation under the action of the control signal.
9. The LoRa-based integrated water pump control system according to claim 8, characterized in that: The relay unit also includes: a freewheeling diode and a relay normally open contact circuit; The freewheeling diode is connected in parallel with the relay coil and is used to release the reverse induced voltage generated by the coil when the relay is powered off, thereby protecting the drive circuit and the microcontroller module; One end of the normally open contact circuit of the relay is connected to the high-voltage power supply, and the other end is connected to the water pump input end, which is used to close the contact when the relay is energized, so that the water pump power is connected and the water pump is started; and open the contact when the relay is released to stop the water pump.
10. The LoRa-based integrated water pump control system according to claim 1, characterized in that: It also includes an interaction module, which is connected to the microcontroller module and is used to receive user input instructions and provide system operation status feedback information.
Citation Information
Cited By
Multi-source data fusion intelligent water-saving irrigation control terminal and method based on artificial intelligence edge computing
CN121523114A
