Power management device and method for water quality monitoring unmanned boat
By designing the power supply monitoring module and temperature acquisition module on the water quality monitoring unmanned boat, combined with the cooperation of the microcontroller, manual control of power on and off and temperature monitoring are realized, which solves the problem of power supply safety and reliability in traditional water quality monitoring and improves the monitoring efficiency. real-time and efficiency.
Patent Information
- Application Number
- CN202211385157.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-11-07
AI Technical Summary
Traditional water quality monitoring methods are affected by weather and floating objects on the water surface, have limited monitoring range, and have low operating efficiency. They cannot achieve real-time dynamic monitoring and lack working devices to ensure the safety and reliability of the unmanned boat power supply.
A power management device for water quality monitoring unmanned boats is designed, which includes a power monitoring module, a temperature acquisition module and a microcontroller. It realizes manual control of power on and off through a tactile switch, and monitors the power supply temperature through a temperature acquisition module to ensure that Disable power during unsafe conditions.
It achieves safe and reliable management of the unmanned boat's power supply, ensures that the power supply is cut off in unsafe conditions, ensures the normal operation of the unmanned boat, and improves the real-time and efficiency of water quality monitoring.
Smart Images

Figure CN115712261B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric power technology, and in particular to a power management device and method for a water quality monitoring unmanned boat. Background Art
[0002] Water quality monitoring is the lifeline of water environment monitoring work. It is the basic basis for objectively evaluating the quality of water environment, reflecting the effectiveness of pollution control, and implementing environmental management and decision-making. The traditional water quality monitoring method is mainly manual field sampling by monitoring personnel. This water quality monitoring method is easily affected by weather and floating objects on the water surface. The monitoring range is limited and the operation efficiency is low. It is impossible to conduct real-time dynamic monitoring of water areas and it is difficult to quickly and accurately conduct comprehensive monitoring of water quality in water areas. In recent years, with the continuous development of automatic control technology, information technology, and artificial intelligence technology, unmanned boats have been rapidly developed and applied in the water quality monitoring industry, providing new methods and means to effectively solve the problems existing in traditional manual water quality monitoring. Due to the working characteristics and working environment limitations of water quality monitoring unmanned boats, the energy selection of unmanned boats should meet the conditions of high energy density, high specific energy, high safety, and low environmental pollution. Due to the advantages of batteries with high reliability, simple structure, safety and efficiency, green environmental protection, and low cost of use, electric propulsion systems are widely used in unmanned boats. For electric propulsion unmanned boats, batteries are the energy source of surface unmanned boats. Batteries are not only responsible for powering the propellers of unmanned boats, but also for powering the electrical equipment on board the boats. Safe and reliable power supply is the premise and guarantee for the normal operation of unmanned boats. At present, there is a lack of devices to ensure the safe and reliable operation of the power supply of unmanned boats, so as to realize the manual control of power on and off of the unmanned boats and monitor the safety of power supply. Summary of the invention
[0003] In view of this, it is necessary to provide a power management device and method for a water quality monitoring unmanned boat to ensure the safe and reliable operation of the power supply of the unmanned boat, to realize manual control of the power on and off of the unmanned boat, and to monitor the power safety.
[0004] In order to achieve the above object, the present invention provides a power management device for a water quality monitoring unmanned boat, comprising:
[0005] a power monitoring module, electrically connected to the power supply, for switching to an on state based on a pressing signal of a dynamic touch switch when the power supply and the target device are in a disconnected state, so as to output a power supply voltage to the target device, and outputting a first electrical signal based on a release signal of the dynamic touch switch, and outputting a second electrical signal based on the pressing signal in the on state;
[0006] A temperature acquisition module, used to acquire a power supply temperature signal and output the power supply temperature signal;
[0007] A microcontroller is electrically connected to the power monitoring module and the temperature acquisition module, and is used to send a third electrical signal to the power monitoring module based on the first electrical signal to control the power monitoring module to maintain the on state, and to send a fourth electrical signal to the power monitoring module based on the second electrical signal to control the power monitoring module to switch to the off state, and is also used to send a fifth electrical signal to the power monitoring module to control the power monitoring module to switch to the off state when it is determined based on the power temperature signal that the power temperature exceeds a preset temperature threshold.
[0008] Further, the power supply monitoring module includes: a dynamic touch switch, a relay, a first transistor, a second transistor, a first resistor, a second resistor, a third resistor and a fourth resistor;
[0009] The relay comprises a coil and a single-pole double-throw switch, wherein a first end of the coil is connected to the power supply, a second end of the coil is grounded through the dynamic touch switch, and the second end of the coil is connected to a first end of the microcontroller, a first end of the single-pole double-throw switch is connected to the power supply, and a second end of the single-pole double-throw switch is used to output the power supply voltage;
[0010] The base of the first transistor is connected to the second end of the single-pole double-throw switch through the first resistor and is grounded through the second resistor, the collector of the first transistor is connected to the second end of the coil, and the emitter of the first transistor is grounded;
[0011] The base of the second transistor is connected to the second end of the microcontroller through the third resistor and is grounded through the fourth resistor. The collector of the second transistor is connected to the base of the first transistor, and the emitter of the second transistor is grounded.
[0012] Furthermore, the power supply monitoring module also includes: a first capacitor and a second capacitor, the first capacitor and the first end and the first end of the second capacitor are both connected to the base of the first transistor, and the second end of the first capacitor and the second end of the second capacitor are both grounded.
[0013] Furthermore, the power supply monitoring module further includes: a first diode, a second diode, a third diode, a fourth diode, a fifth resistor and a sixth resistor, wherein the first diode and the second diode are voltage stabilizing diodes;
[0014] The anode of the first diode is connected to the collector of the first transistor, the cathode of the first diode is connected to the second end of the coil through the fifth resistor, and the cathode of the first diode is also connected to the anode of the third diode through the fifth resistor, and the cathode of the third diode is connected to the power supply;
[0015] The anode of the second diode is grounded, and the cathode of the second diode is connected to the first end of the microcontroller;
[0016] The anode of the fourth diode is connected to the first end of the microcontroller through the sixth resistor, and the cathode of the fourth diode is connected to the second end of the coil.
[0017] Furthermore, the power supply monitoring module further includes: a seventh resistor, an eighth resistor and a fifth diode, wherein the fifth diode is a voltage stabilizing diode;
[0018] The first end of the seventh resistor is connected to the second end of the single-pole double-throw switch, and the second end of the seventh resistor is connected to the third end of the microcontroller;
[0019] The eighth resistor is connected in parallel with the fifth diode, and the anode of the fifth diode is grounded, and the cathode of the fifth diode is connected to the third end of the microcontroller.
[0020] Furthermore, the power management device of the water quality monitoring unmanned boat also includes:
[0021] A data storage module, electrically connected to the microcontroller, for acquiring and storing power supply working status information from the microcontroller;
[0022] A real-time clock module, electrically connected to the microcontroller, for determining and storing the time of the power supply working status information based on the microcontroller;
[0023] The wireless communication module is electrically connected to the microcontroller, and is used to obtain power supply working status information from the microcontroller, send the power supply working status information to the target control terminal, and provide clock correction data for the real-time clock module.
[0024] Furthermore, the power management device of the water quality monitoring unmanned boat also includes:
[0025] The data export interface module is electrically connected to the microcontroller and is used to export the power supply operation status data from the microcontroller when a data export instruction is received.
[0026] Furthermore, the power management device of the water quality monitoring unmanned boat also includes:
[0027] The power conversion module is electrically connected to the microcontroller and the power supply, and is used for converting the power supply voltage into an operating voltage of a power management device, and transmitting the operating voltage to the microcontroller to power the power management device based on the microcontroller.
[0028] Furthermore, the power conversion module includes:
[0029] A switching power supply chip, electrically connected to the power supply, and configured to output a first voltage after stepping down the power supply voltage;
[0030] A first linear voltage regulator chip, electrically connected to the switching power supply chip, and configured to step down the first voltage and then output a second voltage;
[0031] a second linear voltage regulator chip, electrically connected to the first linear voltage regulator chip, and configured to step down the second voltage and then output a third voltage;
[0032] Wherein, the operating voltage includes the second voltage and the third voltage.
[0033] The present invention also provides a power management method for a water quality monitoring unmanned boat, the method being applied to any of the power management devices described above, the method comprising:
[0034] When the power supply and the target device are in a disconnected state, the power supply monitoring module is controlled to switch to an on state based on a pressing signal of the dynamic touch switch, so as to output the power supply voltage to the target device;
[0035] In the case where the power monitoring module outputs a first electrical signal to the microcontroller, based on the power monitoring module receiving a third electrical signal returned by the microcontroller, and based on the third electrical signal, controlling the power monitoring module to maintain the on state;
[0036] In the case where the power monitoring module outputs the second electrical signal to the microcontroller, based on the power monitoring module receiving a fourth electrical signal returned by the microcontroller, and based on the fourth electrical signal, controlling the power monitoring module to switch to the disconnected state;
[0037] When the microcontroller determines that the power supply temperature exceeds a preset temperature threshold based on the power supply temperature signal, a fifth electrical signal is sent to the power supply monitoring module to control the power supply monitoring module to switch to the disconnected state.
[0038] The beneficial effect of adopting the above-mentioned implementation method is: the power management device and method for the water quality monitoring unmanned boat provided by the present invention can realize power on or off of the target device based on the mutual cooperation between the power monitoring module and the microcontroller, and the personnel press the touch switch. Therefore, the personnel can manually power on or off the target device according to actual needs; and the power supply temperature signal can be collected by the temperature acquisition module, and the microcontroller determines whether the power supply temperature is safe. When the microcontroller determines that the power supply temperature is unsafe, the target device can be powered off to ensure the safety of the power management device, thereby ensuring the safe and reliable operation of the power supply of the unmanned boat. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A schematic diagram of the structure of an embodiment of a power management device provided by the present invention;
[0041] Figure 2 A schematic diagram of the operation of an embodiment of a power management device provided by the present invention;
[0042] Figure 3 A circuit diagram of an embodiment of a microcontroller provided by the present invention;
[0043] Figure 4 It is a circuit diagram of an embodiment of a temperature acquisition module provided by the present invention;
[0044] Figure 5 A circuit diagram of an embodiment of a power management device provided by the present invention;
[0045] Figure 6 is a circuit diagram of an embodiment of a data storage module provided by the present invention;
[0046] Figure 7 is a circuit diagram of an embodiment of a real-time clock module provided by the present invention;
[0047] Figure 8 is a circuit diagram of an embodiment of a wireless communication module provided by the present invention;
[0048] Fig. 9 is a circuit diagram of an embodiment of a data export interface module provided by the present invention;
[0049] Fig.10 is a circuit diagram of an embodiment of a switching power supply chip provided by the present invention;
[0050] Fig.11 is a circuit diagram of an embodiment of a first linear voltage regulator chip provided by the present invention;
[0051] Fig.12 is a circuit diagram of an embodiment of a second linear voltage regulator chip provided by the present invention;
[0052] Fig.13 A schematic diagram of a flow chart of an embodiment of a power management method provided by the present invention. DETAILED DESCRIPTION
[0053] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0054] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
[0055] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or equipment comprising a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or equipment.
[0056] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0057] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0058] The present invention provides a power management device and method for a water quality monitoring unmanned boat, which are described below respectively.
[0059] like Figure 1As shown, the present invention provides a power management device 100 for a water quality monitoring unmanned boat, comprising:
[0060] The power monitoring module 120 is electrically connected to the power supply 140, and is used to switch to an on state based on a pressing signal of a dynamic touch switch when the power supply 140 and the target device are in a disconnected state, so as to output a power voltage to the target device, and output a first electrical signal based on a release signal of the dynamic touch switch, and output a second electrical signal based on the pressing signal in the on state;
[0061] The temperature acquisition module 150 is used to acquire a power supply temperature signal and output the power supply temperature signal;
[0062] The microcontroller 110 is electrically connected to the power monitoring module 120 and the temperature acquisition module 150, and is used to send a third electrical signal to the power monitoring module 120 based on the first electrical signal to control the power monitoring module 120 to maintain the on state, and to send a fourth electrical signal to the power monitoring module 120 based on the second electrical signal to control the power monitoring module 120 to switch to the off state, and is also used to send a fifth electrical signal to the power monitoring module 120 to control the power monitoring module 120 to switch to the off state when it is determined based on the power temperature signal that the power temperature exceeds a preset temperature threshold.
[0063] It is understandable that the water quality monitoring unmanned boat in the present invention is electrically propelled. The power monitoring module 120 can have two functions, one is to serve as a power switch for the entire power management device 100, that is, to control the power supply 140 to power on or off the target device; the second is to collect the power supply voltage and send the collected voltage to the microcontroller 110 to determine the remaining power of the power supply.
[0064] In the power management device 100 for the water quality monitoring unmanned boat provided by the present invention, the power monitoring module 120 and the microcontroller 110 can cooperate with each other, and the target device can be powered on or off based on the personnel pressing the touch switch. Therefore, the personnel can manually power on or off the target device according to actual needs; and the power supply temperature signal can be collected by the temperature acquisition module 150, and the microcontroller 110 determines whether the temperature of the power supply 140 is safe. When the microcontroller 110 determines that the temperature of the power supply 140 is unsafe, the target device can be powered off to ensure the safety of the power management device 100, thereby ensuring the safe and reliable operation of the power supply of the unmanned boat.
[0065] like Figure 2 As shown, the power monitoring module 120 is connected to the power supply 140 and multiple target devices 200. The target device 200 may be a boat-borne device of the unmanned boat.
[0066] Furthermore, the microcontroller 110 may use a chip of the STM32F412 type. The current of the microcontroller 110 is as follows: Figure 3 As shown, LED1 is the working status indicator light of the microcontroller 110. When the microcontroller 110 works normally, the indicator light flashes at a frequency of 1 Hz. When the indicator light is always on or off, the microcontroller 110 does not work properly.
[0067] The temperature acquisition module 150 uses a DTH22 chip, such as Figure 4 As shown, the power temperature signal T_Data is sent to the microcontroller 110. The microcontroller 110 determines whether the power temperature exceeds the preset temperature threshold according to the power temperature signal. If it exceeds, it is determined that the power supply 140 is overheated. If it does not exceed, it is determined that the power supply 140 is working normally. If the power supply 140 is overheated, the microcontroller 110 will send a high-level signal (3.3V) through the pin MCU_OUT, thereby cutting off the power supply circuit, that is, controlling the power supply monitoring module 120 to switch to the disconnected state. Otherwise, the microcontroller 110 will send a low-level signal (0V) through the pin MCU_OUT, thereby maintaining the circuit power supply, that is, controlling the power supply monitoring module 120 to maintain the connected state.
[0068] In some embodiments, Figure 5 As shown, the power monitoring module 120 includes: a dynamic touch switch, a relay KA, a first transistor Q1, a second transistor Q2, a first resistor R1, a second resistor R2, a third resistor R3 and a fourth resistor R4;
[0069] The relay KA includes a coil and a single-pole double-throw switch, the first end of the coil is connected to the power supply 140, the second end of the coil is grounded through the dynamic contact switch PK, and the second end of the coil is connected to the first end of the microcontroller 110, the first end of the single-pole double-throw switch is connected to the power supply 140, and the second end of the single-pole double-throw switch is used to output the power supply voltage;
[0070] The base of the first transistor Q1 is connected to the second end of the single-pole double-throw switch through the first resistor R1 and is grounded through the second resistor R2, the collector of the first transistor Q1 is connected to the second end of the coil, and the emitter of the first transistor Q1 is grounded;
[0071] The base of the second transistor Q2 is connected to the second end of the microcontroller 110 through the third resistor R3 and is grounded through the fourth resistor R4. The collector of the second transistor Q2 is connected to the base of the first transistor Q1, and the emitter of the second transistor Q2 is grounded.
[0072] It is understandable that the power input of the power monitoring module 120 can be a 24V DC voltage, and the output is also a 24V DC voltage. The function of the power monitoring module 120 is to switch and open the 24V voltage so that electric energy flows from the DC24V_in terminal to the DC24V_out terminal.
[0073] The first resistor R1 and the second resistor R2 are voltage-dividing resistors of the first transistor Q1, and the third resistor R3 and the fourth resistor R4 are voltage-dividing resistors of the second transistor Q2. The resistance value of the first resistor R1 may be 100k, and the resistance value of the second resistor R2 may be 22k.
[0074] The power monitoring module 120 is originally in a disconnected state. The connection of the power monitoring module 120 means that the voltage at the DC24V_in end is finally sent to the DC24V_out end. The dynamic touch switch is the connection control point of the power monitoring module 120. When the dynamic touch switch is pressed, the pin 5 of the relay (i.e., the second end of the coil) is at a low level (i.e., 0V). At this time, the coil of the relay is energized and works. The contact 1 of the relay KA (i.e., the first end of the single-pole double-throw switch) is disconnected from the contact 3 (i.e., the third end of the single-pole double-throw switch) and then connected to the contact 4 (i.e., the second end of the single-pole double-throw switch). At this time, DC24V_out is connected to DC24V_in.
[0075] At the same time, the 24V power supply voltage is divided by the first resistor R1 and the second resistor R2, so that the pin 1 (ie, base) voltage of the first transistor Q1 is U Q1-1 =4.43V, thereby turning on the first transistor Q1, and then supplying power to the coil of the relay, keeping the contact 1 and the contact 4 of the relay connected.
[0076] When the tactile switch is released, the pin IN_MCU of the microcontroller 110 (i.e., the first end of the microcontroller 110) receives a high-level signal (3.3V). At this time, the pin MCU_OUT of the microcontroller 110 (i.e., the second end of the microcontroller 110) outputs a low-level signal (0V), the second transistor Q2 is turned off, the base of the first transistor Q1 remains at a high level, and the power monitoring module 120 remains on.
[0077] The power monitoring module 120 is originally in the on state, and the disconnection process is as follows: at the moment the dynamic touch switch is pressed, the voltage of pin 5 of the relay is low (0V), and at this time, pin IN_MCU of the microcontroller 110 detects that pin 5 of the relay is low, and pin MCU_OUT of the microcontroller 110 sends a high signal (3.3V), then the second transistor Q2 is turned on, and the base of the first transistor Q1 is low (0V), so the first transistor Q1 is turned off. At this time, the power supply circuit of the relay is cut off, the coil of the relay is de-energized, and contact 1 and contact 4 of the relay are disconnected, cutting off the power supply from the DC24V_in end to the DC24V_out end. At the moment the dynamic touch switch is released, the power monitoring module 120 remains in the disconnected state.
[0078] In some embodiments, the power supply monitoring module 120 further includes: a first capacitor C1 and a second capacitor C2, the first capacitor C1 and the first end and the first end of the second capacitor C2 are both connected to the base of the first transistor Q1, and the second end of the first capacitor C1 and the second end of the second capacitor C2 are both grounded.
[0079] It is understandable that in the above embodiment, in order to ensure that the first transistor Q1 and the second transistor Q2 can work normally, it is necessary to set the first capacitor C1 and the second capacitor C2 between the first transistor Q1 and the second transistor Q2, and the capacitance of the first capacitor C1 and the second capacitor C2 are equal, both of which are 1uF.
[0080] In some embodiments, the power monitoring module 120 further includes: a first diode PD1, a second diode PD2, a third diode PD3, a fourth diode PD4, a fifth resistor R5 and a sixth resistor R6, wherein the first diode PD1 and the second diode PD2 are voltage stabilizing diodes;
[0081] The anode of the first diode PD1 is connected to the collector of the first transistor Q1, the cathode of the first diode PD1 is connected to the second end of the coil through the fifth resistor R5, and the cathode of the first diode PD1 is also connected to the anode of the third diode PD3 through the fifth resistor R5, and the cathode of the third diode PD3 is connected to the power supply 140;
[0082] The anode of the second diode PD2 is grounded, and the cathode of the second diode PD2 is connected to the first end of the microcontroller 110;
[0083] An anode of the fourth diode PD4 is connected to a first end of the microcontroller 110 through the sixth resistor R6 , and a cathode of the fourth diode PD4 is connected to a second end of the coil.
[0084] It can be understood that the first diode PD1 is a voltage-stabilizing diode. When the power monitoring module 120 is originally in the disconnected state, after the dynamic touch switch is pressed, the first transistor Q1 is turned on, and a reverse current flows through the first diode PD1. At this time, the voltage stabilization value of the first diode PD1 is 3.3V, and a loop is formed with the coil of the relay through the fifth resistor R5, thereby supplying power to the coil of the relay to keep the contacts 1 and 4 of the relay KA connected. Since the relay holding current is equal to the reverse current of the first diode PD1, and the reverse current is in the microampere level, the on-state power consumption of the relay is very small at this time.
[0085] When the dynamic touch switch is released, the voltage of the pin 5 of the relay is maintained at 3.3 V due to the action of the first diode PD1. The signal of the pin 5 of the relay collected by the pin IN_MCU of the microcontroller 110 through the fourth diode PD4 and the sixth resistor R6 is a high level (3.3 V). At this time, the pin MCU_OUT of the microcontroller 110 sends a low level signal (0 V), then the second transistor Q2 is turned off, the first transistor Q1 maintains a high level, and the circuit remains continuously connected.
[0086] In some embodiments, the power monitoring module 120 further includes: a seventh resistor R7, an eighth resistor R8 and a fifth diode PD5, wherein the fifth diode PD5 is a voltage stabilizing diode;
[0087] The first end of the seventh resistor R7 is connected to the second end of the single-pole double-throw switch, and the second end of the seventh resistor R7 is connected to the third end of the microcontroller 110;
[0088] The eighth resistor R8 is connected in parallel with the fifth diode PD5 , and an anode of the fifth diode PD5 is grounded, and a cathode of the fifth diode PD5 is connected to a third terminal of the microcontroller 110 .
[0089] It is understandable that the circuit formed by the seventh resistor R7, the eighth resistor R8 and the fifth diode PD5 can collect the power supply voltage and send the collected power supply voltage to the microcontroller 110, and the microcontroller 110 determines the remaining power of the power supply. The fifth diode PD5 can keep the voltage signal sent to the microcontroller 110 stable.
[0090] In some embodiments, the power management device 100 for the water quality monitoring unmanned boat further includes:
[0091] The data storage module 160 is electrically connected to the microcontroller 110 and is used to obtain and store power supply working status information from the microcontroller 110 .
[0092] The real-time clock module 170 is electrically connected to the microcontroller 110 and is used to determine and store the time of the power supply working status information based on the microcontroller 110 .
[0093] The wireless communication module 180 is electrically connected to the microcontroller 110 , and is used to obtain power supply working status information from the microcontroller 110 , send the power supply working status information to the target control terminal, and provide clock correction data for the real-time clock module 170 .
[0094] It is understandable that the data storage module 160 uses the MX25L25645G chip, has a storage capacity of 256MB, and its interface is a serial data bus interface. The data storage module 160 can be used to record the working status of the power supply 140, and provide a reference for troubleshooting and performance improvement of the power supply 140. The circuit diagram of the data storage module 160 is shown in FIG. Figure 6 shown.
[0095] The real-time clock module 170 uses the SD3078 clock chip to record the time corresponding to the working state of the power supply 140. The clock chip uses the wireless communication network provided by the 4G module for time alignment. In order to prevent the microcontroller 110 and the real-time clock module 170 from being unable to work due to a sudden failure of the system power supply, the pin 5 of the real-time clock module 170 is connected to the BAT1 backup battery so that the microcontroller 110 and the real-time clock module 170 can be powered when the system power supply fails and cannot supply power, so that the microcontroller 110 can record the relevant parameters of the power supply at the time of the system power failure to facilitate subsequent fault analysis. The circuit diagram of the real-time clock module 170 is shown in FIG. Figure 7 shown.
[0096] The wireless communication module 180 can use a 4G module circuit for wireless communication, and send the working status of the power supply 140 to the shore-based control terminal of the unmanned boat by wireless means. At the same time, the 4G module circuit provides a network clock to align the clock chip. The circuit diagram of the wireless communication module 180 is shown in FIG. Figure 8 shown.
[0097] In some embodiments, the power management device 100 for the water quality monitoring unmanned boat further includes:
[0098] The data export interface module 190 is electrically connected to the microcontroller 110 and is used to export the power supply operation status data from the microcontroller 110 when receiving a data export instruction.
[0099] It can be understood that the function of the data export interface module 190 is to manually export the power supply operation status data. The data export interface module 190 is provided with a J_USB1 interface and a J_Signal1 interface. The J_USB1 interface is a mini USB data interface, and the J_Signal1 interface can be connected to a serial data display device to dynamically display the power supply operation status. The circuit diagram of the data export interface module 190 is shown in FIG. Fig. 9 shown.
[0100] In some embodiments, the power monitoring module 120, temperature acquisition module 150, data storage module 160, real-time clock module 170, wireless communication module 180 and data export interface module 190 designed above need to work under the cooperation and control of microcontroller 110. The signal of temperature acquisition module 150 is sent to the analog-to-digital conversion (AD) unit of microcontroller 110, the power supply quantity signal (ADI_MCU signal) of power monitoring module 120 is sent to the analog-to-digital conversion unit of microcontroller 110, IN_MCU and MCU_OUT signals of power monitoring module 120 are sent to the general input and output (GPIO) pins of microcontroller 110, and the corresponding pins of temperature acquisition module 150, wireless communication module 180, real-time clock module 170 and data export interface module 190 are respectively connected to the corresponding microcontroller 110 pins. Microcontroller 110 chip adopts STM32F412RET6 chip, and the working voltage is 3.3V.
[0101] In some embodiments, the power management device 100 for the water quality monitoring unmanned boat further includes:
[0102] The power conversion module 130 is electrically connected to the microcontroller 110 and the power supply 140, and is used to convert the power supply voltage into the working voltage of the power management device 100, and transmit the working voltage to the microcontroller 110 to power the power management device 100 based on the microcontroller 110.
[0103] It is understandable that the power supply voltage connected to the power conversion module 130 may be 24V, while the operating voltage of the microcontroller 110 in the power management device 100 is 3.3V, and the operating voltage of other modules may be 5V, therefore, it is necessary to convert the power supply voltage into a suitable operating voltage for each module of the power management device 100. In this embodiment, the first operating voltage is 5V, and the second operating voltage is 3.3V.
[0104] In some embodiments, the power management device 100 for the water quality monitoring unmanned boat, the power conversion module 130, includes:
[0105] A switching power supply chip, electrically connected to the power supply 140, and configured to output a first voltage after stepping down the power supply voltage;
[0106] A first linear voltage regulator chip, electrically connected to the switching power supply chip, and configured to step down the first voltage and then output a second voltage;
[0107] a second linear voltage regulator chip, electrically connected to the first linear voltage regulator chip, and configured to step down the second voltage and then output a third voltage;
[0108] Wherein, the operating voltage includes the second voltage and the third voltage.
[0109] It is understandable that the power supply voltage is 24V, while the circuit operating voltage of the microcontroller 110 is 3.3V, and the operating voltage of the data export interface module 190 is 5V, which requires the 24V power supply to be converted 130 into a voltage suitable for each module and circuit to work. Each subsystem module and circuit has two levels of operating voltage, namely 5V and 3.3V. To this end, a power conversion 130 chip is used to obtain 5V and 3.3V power supplies. In order to make the low voltage difference linear voltage regulator (LDO) work efficiently and safely, the LM2596-ADJ switching power supply chip is used to convert the 24V DC input voltage into an 8V DC voltage, which is then input into the LM7805 linear voltage regulator chip to generate a 5V power supply, and then the 5V power supply is input into the LM1117-33 linear voltage regulator chip to generate a 3.3V voltage.
[0110] 24V / 8V DC conversion circuit based on LM2596-ADJ switching power supply chip Fig.10 As shown. The indicator LED2 in the figure is used to indicate whether the 24V / 8V conversion circuit is working properly. If the light is on, the conversion circuit is working properly, otherwise it is abnormal. The 8V output voltage in this circuit is obtained through the resistors R13 and R14. Its output voltage Vout = 1.23 (1 + R14 / R13), where R13 is a 1K resistor (accuracy level 1%), and R14 is a 5.49K resistor (accuracy level 1%).
[0111] Fig.11 The circuit diagram of the first linear voltage regulator chip shown is an 8V / 5V power conversion circuit based on the low voltage difference linear voltage regulator chip LM7805. Fig.12 The circuit diagram of the second linear voltage regulator chip shown is a 5V / 3.3V power conversion circuit based on the low voltage difference linear voltage regulator chip LM1117-33.
[0112] The indicator light LED3 is used to indicate whether the 8V / 5V conversion circuit is working normally. If the light is on, it means that the conversion circuit is working normally, otherwise it is not working properly.
[0113] The indicator light LED4 is used to indicate whether the 5V / 3.3V conversion circuit is working normally. If the light is on, it means that the conversion circuit is working normally, otherwise it is not working properly.
[0114] In some embodiments, the power management device 100 for the water quality monitoring unmanned boat provided by the present invention includes: a power monitoring module 120, which is electrically connected to a power supply 140, and is used to switch to an on state based on a pressing signal of a dynamic touch switch when the power supply 140 and the target device are in a disconnected state, so as to output the power supply voltage to the target device, and output a first electrical signal based on a release signal of the dynamic touch switch, and in the on state, output a second electrical signal based on the pressing signal, and is also used to collect a power supply voltage signal of the power monitoring module 120 (that is, a voltage signal for powering the target device) and output the power supply voltage signal; a temperature acquisition module 150, which is used to collect a power supply temperature signal and output the power supply voltage signal; Temperature signal output; the microcontroller 110 is electrically connected to the power monitoring module 120, and is used to send a third electrical signal to the power monitoring module 120 based on the first electrical signal to control the power monitoring module 120 to maintain the on state, and to send a fourth electrical signal to the power monitoring module 120 based on the second electrical signal to control the power monitoring module 120 to switch to the off state, and is also used to determine the remaining power of the power supply 140 based on the supply voltage signal, and when it is determined based on the power supply temperature signal that the temperature of the power supply 140 exceeds a preset temperature threshold, send a fifth electrical signal to the power monitoring module 120 to control the power monitoring module 120 to switch to the off state.
[0115] In the power management device 100 for the water quality monitoring unmanned boat provided by the present invention, the power supply voltage signal of the power supply 140 is collected by the power monitoring module 120, the remaining power of the power supply 140 is determined by the microcontroller 110, the power supply temperature signal is collected by the temperature acquisition module 150, and the microcontroller 110 determines whether the temperature of the power supply 140 is safe; moreover, through the mutual cooperation between the power monitoring module 120 and the microcontroller 110, the target device can be powered on or off by a person pressing a touch switch. When the microcontroller 110 determines that the remaining power of the power supply 140 is insufficient or the temperature of the power supply 140 is unsafe, the target device can be powered off to ensure the safety of the power management device 100, thereby ensuring the safe and reliable operation of the power supply of the unmanned boat.
[0116] The present invention also provides a power management method for a water quality monitoring unmanned boat, the method being applied to any of the power management devices 100 described above, such as Fig.13 As shown, the method includes:
[0117] Step 1310: When the power supply 140 and the target device are in a disconnected state, the power supply monitoring module 120 is controlled to switch to an on state based on a pressing signal of the dynamic touch switch, so as to output the power supply voltage to the target device;
[0118] Step 1320: when the power monitoring module 120 outputs the first electrical signal to the microcontroller 110, based on the power monitoring module 120 receiving a third electrical signal returned by the microcontroller 110, and based on the third electrical signal, controlling the power monitoring module 120 to maintain the on state;
[0119] Step 1330: when the power monitoring module 120 outputs the second electrical signal to the microcontroller 110, based on the power monitoring module 120 receiving a fourth electrical signal returned by the microcontroller 110, and based on the fourth electrical signal, controlling the power monitoring module 120 to switch to the disconnected state;
[0120] Step 1340: When the microcontroller 110 determines that the power supply temperature exceeds a preset temperature threshold based on the power supply temperature signal, send a fifth electrical signal to the power supply monitoring module 120 to control the power supply monitoring module 120 to switch to the disconnected state.
[0121] It can be understood that the power conversion module 130 in the above-mentioned power management device 100 converts the power supply voltage into the working voltage of the power management device 100, and transmits the working voltage to the microcontroller 110, so as to power the power management device 100 based on the microcontroller 110, thereby ensuring that the power management device 100 can work normally and execute the subsequent method flow.
[0122] When the power supply 140 is disconnected from the target device, the user presses the touch switch, and the power monitoring module 120 controls the power monitoring module 120 to switch to the on state based on the pressing signal of the touch switch, so as to output the power voltage to the target device, thereby realizing the power supply to the target device. Moreover, the power monitoring module 120 can be controlled to remain in the on state through the third electrical signal sent by the microcontroller 110, so that the power supply 140 can continue to supply power to the target device.
[0123] When the user presses the touch switch again, the power monitoring module 120 outputs a second electrical signal to the microcontroller 110. The microcontroller 110 returns a fourth electrical signal to the power monitoring module 120 based on the second electrical signal, and controls the power monitoring module 120 to switch to the disconnected state, so that the power supply 140 stops supplying power to the target device, thereby realizing the control of powering on and off of the target device.
[0124] It should be noted that, in this embodiment, step 1340 is the last step, and in other embodiments, step 1340 may be the first step or any step in between.
[0125] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0126] The flexible job shop batch scheduling optimization method, device and electronic equipment provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A power management device for a water quality monitoring unmanned boat, characterized in that: include: a power monitoring module, electrically connected to the power supply, for switching to an on state based on a pressing signal of a dynamic touch switch when the power supply and the target device are in a disconnected state, so as to output a power supply voltage to the target device, and outputting a first electrical signal based on a release signal of the dynamic touch switch, and outputting a second electrical signal based on the pressing signal in the on state; A temperature acquisition module, used to acquire a power supply temperature signal and output the power supply temperature signal; a microcontroller, electrically connected to the power monitoring module and the temperature acquisition module, and configured to send a third electrical signal to the power monitoring module based on the first electrical signal to control the power monitoring module to maintain the on state, and to send a fourth electrical signal to the power monitoring module based on the second electrical signal to control the power monitoring module to switch to the off state, and further configured to send a fifth electrical signal to the power monitoring module to control the power monitoring module to switch to the off state when it is determined based on the power temperature signal that the power temperature exceeds a preset temperature threshold; The power supply monitoring module includes: a dynamic touch switch, a relay, a first transistor, a second transistor, a first resistor, a second resistor, a third resistor and a fourth resistor; The relay comprises a coil and a single-pole double-throw switch, wherein a first end of the coil is connected to the power supply, a second end of the coil is grounded through the dynamic touch switch, and the second end of the coil is connected to a first end of the microcontroller, a first end of the single-pole double-throw switch is connected to the power supply, and a second end of the single-pole double-throw switch is used to output the power supply voltage; The base of the first transistor is connected to the second end of the single-pole double-throw switch through the first resistor and is grounded through the second resistor, the collector of the first transistor is connected to the second end of the coil, and the emitter of the first transistor is grounded; The base of the second triode is connected to the second end of the microcontroller through the third resistor and is grounded through the fourth resistor, the collector of the second triode is connected to the base of the first triode, and the emitter of the second triode is grounded; The power supply monitoring module further includes: a first capacitor and a second capacitor, wherein the first capacitor and a first end and a first end of the second capacitor are both connected to the base of the first transistor, and the second end of the first capacitor and a second end of the second capacitor are both grounded; The power supply monitoring module further includes: a first diode, a second diode, a third diode, a fourth diode, a fifth resistor and a sixth resistor, wherein the first diode and the second diode are voltage stabilizing diodes; The anode of the first diode is connected to the collector of the first transistor, the cathode of the first diode is connected to the second end of the coil through the fifth resistor, and the cathode of the first diode is also connected to the anode of the third diode through the fifth resistor, and the cathode of the third diode is connected to the power supply; The anode of the second diode is grounded, and the cathode of the second diode is connected to the first end of the microcontroller; The anode of the fourth diode is connected to the first end of the microcontroller through the sixth resistor, and the cathode of the fourth diode is connected to the second end of the coil; The power supply monitoring module further includes: a seventh resistor, an eighth resistor and a fifth diode, wherein the fifth diode is a voltage stabilizing diode; The first end of the seventh resistor is connected to the second end of the single-pole double-throw switch, and the second end of the seventh resistor is connected to the third end of the microcontroller; The eighth resistor is connected in parallel with the fifth diode, and the anode of the fifth diode is grounded, and the cathode of the fifth diode is connected to the third end of the microcontroller.
2. The power management device for the water quality monitoring unmanned boat according to claim 1, characterized in that: Also includes: A data storage module, electrically connected to the microcontroller, for acquiring and storing power supply working status information from the microcontroller; A real-time clock module, electrically connected to the microcontroller, for determining and storing the time of the power supply working status information based on the microcontroller; The wireless communication module is electrically connected to the microcontroller, and is used to obtain power supply working status information from the microcontroller, send the power supply working status information to the target control terminal, and provide clock correction data for the real-time clock module.
3. The power management device for the water quality monitoring unmanned boat according to claim 1, characterized in that: Also includes: The data export interface module is electrically connected to the microcontroller and is used to export the power supply operation status data from the microcontroller when a data export instruction is received.
4. The power management device for the water quality monitoring unmanned boat according to any one of claims 1 to 3, characterized in that: Also includes: The power conversion module is electrically connected to the microcontroller and the power supply, and is used for converting the power supply voltage into an operating voltage of a power management device, and transmitting the operating voltage to the microcontroller to power the power management device based on the microcontroller.
5. The power management device for the water quality monitoring unmanned boat according to claim 4, characterized in that: The power conversion module comprises: A switching power supply chip, electrically connected to the power supply, and configured to output a first voltage after stepping down the power supply voltage; A first linear voltage regulator chip, electrically connected to the switching power supply chip, and configured to step down the first voltage and then output a second voltage; a second linear voltage regulator chip, electrically connected to the first linear voltage regulator chip, and configured to step down the second voltage and then output a third voltage; Wherein, the operating voltage includes the second voltage and the third voltage.
6. A power management method for a water quality monitoring unmanned boat, characterized in that: The method is applied to the power management device according to any one of claims 1 to 5, and the method comprises: When the power supply and the target device are in a disconnected state, the power supply monitoring module is controlled to switch to an on state based on a pressing signal of the dynamic touch switch, so as to output the power supply voltage to the target device; In the case where the power monitoring module outputs a first electrical signal to the microcontroller, based on the power monitoring module receiving a third electrical signal returned by the microcontroller, and based on the third electrical signal, controlling the power monitoring module to maintain the on state; In the case where the power monitoring module outputs the second electrical signal to the microcontroller, based on the power monitoring module receiving a fourth electrical signal returned by the microcontroller, and based on the fourth electrical signal, controlling the power monitoring module to switch to the disconnected state; When the microcontroller determines that the power supply temperature exceeds a preset temperature threshold based on the power supply temperature signal, a fifth electrical signal is sent to the power supply monitoring module to control the power supply monitoring module to switch to the disconnected state.
