An LED flash control circuit capable of detecting water entry and exit and a control method thereof
By designing an LED flash control circuit including power conversion circuit, microcontroller system, inlet and outlet water detection circuit, etc., the inlet and outlet water short circuit and light detection realize inlet and outlet water state judgment and LED flash control, the design complexity and effort in the prior art are solved. The problem of high consumption achieves low power consumption and reliable inlet and outlet detection.
Patent Information
- Application Number
- CN202210450178.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-04-27
AI Technical Summary
The existing inlet and outlet water detection device is complex in design, the sensor has always been in a working state, and the power consumption is high, so a simple low-power inlet and outlet water detection circuit is needed.
Design an LED flash control circuit including power conversion circuit, microcontroller system, inlet and outlet water detection circuit, power control circuit, light detection circuit, LED control circuit and flash frequency setting circuit. Use the short circuit to determine the inlet and outlet water state, and the circuit is in water Sleep down and control the LED flash according to the light intensity after exiting the water.
It realizes the advantages of simple circuit structure, low cost, long effective working time, adjustable LED flash frequency and high reliability, and extends the service life and effective working time of the equipment.
Smart Images

Figure CN114828322B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of ocean detection equipment recovery, and in particular relates to an LED flash control circuit capable of detecting water entry and exit and a control method thereof in the field. Background Art
[0002] At present, the known water inlet and outlet detection devices mostly use different types of sensors to identify the water inlet and outlet status, and the sensors output analog voltage values to the control circuit, thereby outputting different water inlet and outlet signals. The circuit design is complex, and the sensors are always in working state, and the power consumption is high. Therefore, it is necessary to design a simple low-power water inlet and outlet detection circuit. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a low-power LED flash control circuit which can sleep when touching water, flash when out of water and has adjustable frequency, and a control method thereof.
[0004] The present invention adopts the following technical solution:
[0005] The invention discloses an LED flash control circuit capable of detecting water ingress and egress. The improvement of the circuit is as follows: the circuit comprises a power conversion circuit electrically connected to a power supply, a single-chip computer system electrically connected to the power conversion circuit, a water ingress and egress detection circuit and a power control circuit, the water ingress and egress detection circuit is electrically connected to the single-chip computer system, the single-chip computer system is electrically connected to the power control circuit, the power control circuit is electrically connected to a light detection circuit, and the circuit also comprises a light detection circuit electrically connected to the single-chip computer system, an LED control circuit and a flash frequency setting circuit.
[0006] Furthermore, the power conversion circuit uses the HT7533 power chip to convert the 12V power input voltage into a 3.3V voltage.
[0007] Furthermore, the single-chip microcomputer system adopts the STM32F103C8T6 single-chip microcomputer based on the ARM Cortex-M core, and has a WAT_IN port, a POWER01 port, a SENSOR port and an LED port.
[0008] Furthermore, the water inlet and outlet detection circuit includes a transistor Q3, the emitter of the transistor Q3 is grounded, the collector is electrically connected to the voltage output port VCC of the power conversion circuit through a resistor R16, the voltage output port VCC of the power conversion circuit is also electrically connected to the WAT_IN port of the single-chip computer system through the resistor R16, the base is electrically connected to the voltage output port VCC of the power conversion circuit through resistors R19 and R14 in sequence, the voltage output port VCC of the power conversion circuit is also electrically connected to the water inlet and outlet status detection interface 2 through the resistor R14, the water inlet and outlet status detection interface 1 is grounded, the water inlet and outlet status detection interface 1 and the water inlet and outlet status detection interface 2 are short-circuited underwater, the transistor Q3 is turned on, and a low-level signal is output to the WAT_IN port of the single-chip computer system; the water inlet and outlet status detection interface 1 and the water inlet and outlet status detection interface 2 are disconnected after the water comes out, the transistor Q3 is turned off, and a high-level signal is output to the WAT_IN port of the single-chip computer system.
[0009] Furthermore, the power control circuit includes a MOS tube Q1, which is electrically connected to the POWER01 port of the single-chip computer system. The MOS tube Q1 is cut off when POWER01 is a high level signal and is turned on when a low level signal is provided to output a 3.3V voltage to the light detection circuit.
[0010] Furthermore, the light detection circuit includes a voltage comparator LMV331ILT, the input end of the voltage comparator is electrically connected to the photoresistor R4, the photoresistor R4 is electrically connected to the power control circuit through the adjustable resistor R29, the output end of the voltage comparator is electrically connected to the SENSOR port of the single-chip microcomputer system, and the voltage comparator outputs a high-level signal to the SENSOR port of the single-chip microcomputer system when the light is strong, and outputs a low-level signal to the SENSOR port of the single-chip microcomputer system when the light is weak.
[0011] Furthermore, the LED control circuit is electrically connected to the LED port of the single-chip microcomputer system. When a low-level signal is input to the LED port, the transistor Q4 of the LED control circuit is turned off, the MOS tube Q2 is turned off, and the LED lamp is powered off. When a high-level signal is input to the LED port, the transistor Q4 is turned on, the MOS tube Q2 is turned on, and the LED lamp is powered on.
[0012] Furthermore, the flash frequency setting circuit is a 6-way dip switch SW1.
[0013] A control method uses the above control circuit, and its improvement lies in that: the water inlet and outlet detection circuit transmits the water inlet and outlet status to the single-chip computer system, the single-chip computer system is in a dormant state when underwater, the single-chip computer system is connected to the power control circuit after exiting the water, the power control circuit supplies power to the light detection circuit, the light detection circuit obtains light intensity information and feeds it back to the single-chip computer system, the single-chip computer system starts the LED control circuit when the light intensity is weaker than the set value so that the LED lamp is powered and emits light, and the flash frequency setting circuit controls the flash frequency of the LED lamp.
[0014] The beneficial effects of the present invention are:
[0015] The control circuit disclosed in the present invention has the advantages of simple circuit structure, low cost, long effective working time, adjustable LED flashing frequency, high reliability, etc.
[0016] The control method disclosed in the present invention can enable the control circuit to stably and reliably identify the water entry and exit states, thereby extending the service life and effective working time of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a block diagram of the control circuit disclosed in the present invention;
[0018] Figure 2 It is a circuit connection diagram of a power conversion circuit in the control circuit disclosed in the present invention;
[0019] Figure 3 It is a circuit connection diagram of a single chip computer system in a control circuit disclosed in the present invention;
[0020] Figure 4 It is a circuit connection diagram of a water inlet and outlet detection circuit in the control circuit disclosed in the present invention;
[0021] Figure 5 It is a circuit connection diagram of a power supply control circuit in the control circuit disclosed in the present invention;
[0022] Figure 6 It is a circuit connection diagram of a light detection circuit in a control circuit disclosed in the present invention;
[0023] Figure 7 It is a circuit connection diagram of the LED control circuit in the control circuit disclosed in the present invention;
[0024] Figure 8 The invention discloses a circuit connection diagram of a flash frequency setting circuit in a control circuit disclosed in the invention.
[0025] Figure numerals: 1—power supply, 2—power supply conversion circuit, 3—single chip computer system, 4—water inlet and outlet detection circuit, 5—power supply control circuit, 6—light detection circuit, 7—LED control circuit, 8—flash frequency setting circuit. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0027] Embodiment 1, as Figure 1 As shown, this embodiment discloses an LED flash control circuit capable of detecting water ingress and egress, comprising a power conversion circuit 2 electrically connected to a power supply 1, a single-chip computer system 3 electrically connected to the power conversion circuit, a water ingress and egress detection circuit 4 and a power control circuit 5, the water ingress and egress detection circuit being electrically connected to the single-chip computer system, the single-chip computer system being electrically connected to the power control circuit, the power control circuit being electrically connected to the light detection circuit 6, and also comprising a light detection circuit electrically connected to the single-chip computer system, an LED control circuit 7 and a flash frequency setting circuit 8, as well as a power supply interface and a water ingress and egress status detection interface.
[0028] After the device enters the water, the circuit enters the sleep mode and runs in the low-power standby mode; when the device emerges from the water, the circuit enters the working mode, and when it is dim at night, it emits the LED light flash signal according to the preset flash frequency before entering the water.
[0029] like Figure 2 As shown, the power conversion circuit uses the HT7533 power chip to convert the 12V power input voltage into a 3.3V voltage to power the microcontroller system, the light detection circuit, and the water inlet and outlet detection circuit.
[0030] like Figure 3 As shown in the figure, the single-chip microcomputer system adopts the STM32F103C8T6 single-chip microcomputer based on the ARM Cortex-M core, which has WAT_IN port, POWER01 port, SENSOR port and LED port. It has the advantages of high performance, low power consumption and small package size.
[0031] The single-chip microcomputer system adopts the power-on reset mode. After the device enters the water, the single-chip microcomputer system reads the low-level signal of the WAT_IN port and enters the low-power standby mode. At this time, the current is a small current of uA level, which can greatly extend the standby time of the device. After the device exits the water, the single-chip microcomputer system reads the rising edge pulse signal of the WAT_IN port and enters the working mode. The POWER01 port outputs a low-level signal, and the power control circuit outputs a 3.3V voltage to the light detection circuit. Under strong light conditions such as daytime, the SENSOR port of the single-chip microcomputer system reads the high-level signal sent by the light detection circuit, the LED port of the single-chip microcomputer system outputs a low level, and the LED light does not light up. Under weak light conditions such as night, the SENSOR port of the single-chip microcomputer system reads the low-level signal sent by the light detection circuit, the LED port of the single-chip microcomputer system outputs a high level, and the LED light flashes according to the frequency preset by the flash frequency setting circuit.
[0032] like Figure 4 As shown, the water inlet and outlet detection circuit includes a transistor Q3, the emitter of the transistor Q3 is grounded, the collector is electrically connected to the voltage output port VCC of the power conversion circuit through a resistor R16, the voltage output port VCC of the power conversion circuit is also electrically connected to the WAT_IN port of the single-chip computer system through the resistor R16, the base is electrically connected to the voltage output port VCC of the power conversion circuit through resistors R19 and R14 in sequence, the voltage output port VCC of the power conversion circuit is also electrically connected to the water inlet and outlet state detection interface 2 through the resistor R14, the water inlet and outlet state detection interface 1 is grounded, the water inlet and outlet state detection interface 1 and the water inlet and outlet state detection interface 2 are short-circuited underwater, the transistor Q3 is turned on, and a low-level signal is output to the WAT_IN port of the single-chip computer system; the water inlet and outlet state detection interface 1 and the water inlet and outlet state detection interface 2 are disconnected after the water comes out, the transistor Q3 is turned off, and a high-level signal is output to the WAT_IN port of the single-chip computer system.
[0033] like Figure 5 As shown, the power control circuit includes a MOS tube Q1, which is electrically connected to the POWER01 port of the single-chip computer. The MOS tube Q1 is cut off when POWER01 is a high-level signal and is turned on when the signal is a low-level signal, outputting a 3.3V voltage to the light detection circuit.
[0034] like Figure 6 As shown, the light detection circuit includes a voltage comparator LMV331ILT, the input end of the voltage comparator is electrically connected to the photoresistor R4, the photoresistor R4 is electrically connected to the power control circuit through the adjustable resistor R29, the photoresistor R4 uses GL3528 to sense light intensity, and the appropriate sensed light intensity is adjusted through the adjustable resistor R29.
[0035] The output end of the voltage comparator is electrically connected to the SENSOR port of the single-chip microcomputer. The voltage comparator outputs a high level signal to the SENSOR port of the single-chip microcomputer when the light is strong during the day, and outputs a low level signal to the SENSOR port of the single-chip microcomputer when the light is weak at night.
[0036] like Figure 7 As shown, the LED control circuit is electrically connected to the LED port of the single-chip microcomputer. When a low-level signal is input to the LED port, the transistor Q4 of the LED control circuit is turned off, the MOS tube Q2 is turned off, and the LED lamp is powered off. When a high-level signal is input to the LED port, the transistor Q4 is turned on, the MOS tube Q2 is turned on, and the LED lamp is powered on.
[0037] like Figure 8 As shown, the flash frequency setting circuit is a 6-way dip switch SW1. The dip switch SW1 corresponds to switches 1, 2, 3, 4, 5, and 6. When switch 1 is disconnected, SW1 is a high-level signal, and when switch 1 is closed, SW1 is a low-level signal. The working mode of switches 2-6 is the same as that of switch 1. By closing different switches, the flash frequency of six LED lights can be set, and it has a power-off memory function, which can be set before the device enters the water.
[0038] This embodiment also discloses a control method, using the above-mentioned control circuit, the water inlet and outlet detection circuit transmits the water inlet and outlet status to the single-chip computer system, the single-chip computer system is in a dormant state when underwater, and the single-chip computer system is connected to the power control circuit after it comes out of water, and the power control circuit supplies power to the light detection circuit, the light detection circuit obtains light intensity information and feeds it back to the single-chip computer system, and the single-chip computer system starts the LED control circuit when the light intensity is weaker than the set value so that the LED lamp is powered and emits light, and the flash frequency setting circuit controls the flash frequency of the LED lamp.
[0039] The control method uses water-touch short circuit as the basis for judging water entry and exit, and uses a dip switch to achieve adjustable flash frequency. The circuit has low power consumption in standby mode, which not only ensures the effective working time of the water entry and exit detection device, but also improves reliability and stability.
Claims
1. An LED flash control circuit capable of detecting water ingress and egress, characterized in that: It includes a power conversion circuit electrically connected to the power supply, a single-chip computer system electrically connected to the power conversion circuit, a water inlet and outlet detection circuit and a power control circuit, the water inlet and outlet detection circuit is electrically connected to the single-chip computer system, the single-chip computer system is electrically connected to the power control circuit, the power control circuit is electrically connected to the light detection circuit, and also includes a light detection circuit, an LED control circuit and a flash frequency setting circuit electrically connected to the single-chip computer system; The single-chip microcomputer system uses the STM32F103C8T6 single-chip microcomputer based on the ARM Cortex-M core, which has WAT_IN port, POWER01 port, SENSOR port and LED port; The power control circuit includes a MOS tube Q1, which is electrically connected to the POWER01 port of the single-chip computer system. The MOS tube Q1 is cut off when POWER01 is a high-level signal, and is turned on when a low-level signal is provided, and outputs a 3.3V voltage to the light detection circuit; The water inlet and outlet detection circuit includes a transistor Q3, the emitter of the transistor Q3 is grounded, the collector is electrically connected to the voltage output port VCC of the power conversion circuit through a resistor R16, the voltage output port VCC of the power conversion circuit is also electrically connected to the WAT_IN port of the single-chip computer system through the resistor R16, the base is electrically connected to the voltage output port VCC of the power conversion circuit through resistors R19 and R14 in sequence, the voltage output port VCC of the power conversion circuit is also electrically connected to the water inlet and outlet state detection interface 2 through the resistor R14, the water inlet and outlet state detection interface 1 is grounded, the water inlet and outlet state detection interface 1 and the water inlet and outlet state detection interface 2 are short-circuited underwater, the transistor Q3 is turned on, and a low-level signal is output to the WAT_IN port of the single-chip computer system; the water inlet and outlet state detection interface 1 and the water inlet and outlet state detection interface 2 are disconnected after the water comes out, the transistor Q3 is turned off, and a high-level signal is output to the WAT_IN port of the single-chip computer system; The light detection circuit includes a voltage comparator LMV331ILT, the input end of the voltage comparator is electrically connected to the photoresistor R4, the photoresistor R4 is electrically connected to the power control circuit through the adjustable resistor R29, the output end of the voltage comparator is electrically connected to the SENSOR port of the single-chip microcomputer system, and the voltage comparator outputs a high-level signal to the SENSOR port of the single-chip microcomputer system when the light is strong, and outputs a low-level signal to the SENSOR port of the single-chip microcomputer system when the light is weak.
2. The LED flash control circuit capable of detecting water entry and exit according to claim 1, characterized in that: The power conversion circuit uses the HT7533 power chip to convert the 12V power input voltage into a 3.3V voltage.
3. The LED flash control circuit capable of detecting water entry and exit according to claim 1, characterized in that: The LED control circuit is electrically connected to the LED port of the single-chip microcomputer system. When a low-level signal is input to the LED port, the transistor Q4 of the LED control circuit is turned off, the MOS tube Q2 is turned off, and the LED lamp is powered off. When a high-level signal is input to the LED port, the transistor Q4 is turned on, the MOS tube Q2 is turned on, and the LED lamp is powered on.
4. The LED flash control circuit capable of detecting water entry and exit according to claim 1, characterized in that: The flash frequency setting circuit is a 6-way dip switch SW1.
5. A control method, using the control circuit according to claim 1, characterized in that: The water inlet and outlet detection circuit transmits the water inlet and outlet status to the single-chip computer system. The single-chip computer system is in a dormant state when underwater. After the single-chip computer system comes out of water, it turns on the power control circuit, and the power control circuit supplies power to the light detection circuit. The light detection circuit obtains the light intensity information and feeds it back to the single-chip computer system. When the light intensity is weaker than the set value, the single-chip computer system starts the LED control circuit to make the LED lamp energized and illuminated, and the flash frequency setting circuit controls the flash frequency of the LED lamp.
Citation Information
Patent Citations
LED twinkling lamp with increased brightness
CN201306669Y
Multifunctional LED illuminating lamp circuit temperature protection system
CN213028624U