Lighting driving circuit and multifunctional flashlight
By designing a lighting drive circuit, real-time monitoring of flashlight battery level and control of various lighting effects were achieved, solving the problem of flashlight battery depletion and improving the rescue efficiency of firefighters at fire scenes.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN OCEAN WANGGONGXIAO LIGHTING TECH CO LTD
- Filing Date
- 2023-06-25
- Publication Date
- 2026-07-03
AI Technical Summary
When existing flashlights are used at fire scenes, it is impossible to monitor the battery status in real time, which can easily lead to the battery running out, affecting the rescue work of firefighters and posing a safety hazard.
A lighting driving circuit was designed, including a charging circuit, a conversion circuit, a switching circuit, a main control circuit, an LED driving circuit, and a display circuit. Through power storage, voltage conversion, pulse signal processing, and PWM signal control, the circuit enables different levels of LED illumination and displays power information.
It enables real-time monitoring of flashlight battery level and control of different lighting effects, ensuring that firefighters can promptly understand the battery status at the fire scene and guarantee the effective conduct of rescue work.
Smart Images

Figure CN116669253B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lighting technology, and in particular to a lighting driving circuit and a multi-functional flashlight. Background Technology
[0002] In complex building environments, firefighters often need to enter the building to carry out firefighting and rescue work when a fire breaks out. Due to power outages caused by fires, firefighters face constant threats to their lives when entering poorly lit buildings. Therefore, it is necessary to carry flashlights into the fire scene to ensure the lighting needs of firefighters and to maximize their safety.
[0003] In existing technology, flashlights only serve an illumination function, and the illumination effect is limited. Before firefighters enter the fire scene, they cannot know the current status of the flashlight. If they bring a flashlight with insufficient power into the fire scene, it is highly likely that the flashlight will run out of power midway, preventing firefighters from carrying out rescue work normally, seriously threatening the lives of firefighters, and also reducing rescue efficiency. Summary of the Invention
[0004] Based on this, it is necessary to propose a lighting driving circuit and a multi-functional flashlight to address the above problems.
[0005] A lighting driving circuit, comprising:
[0006] The charging circuit has an input terminal connected to an external power source and an output terminal connected to the input terminals of a conversion circuit and a switching circuit. It is used to receive a first voltage provided by the external power source and store the charge; and to output a second voltage to the conversion circuit and the switching circuit to power the conversion circuit and the switching circuit.
[0007] The conversion circuit has its output terminal connected to the input terminal of the main control circuit and the input terminal of the display circuit. It is used to convert the second voltage into a third voltage and a fourth voltage, and output the third voltage to the main control circuit and the display circuit, and output the fourth voltage to the main control circuit to power the main control circuit and the display circuit.
[0008] The switching circuit has an input terminal for receiving multiple manually given pulse signals, and an output terminal connected to the input terminal of the main control circuit for converting each pulse signal into a continuous level signal and outputting it to the main control circuit.
[0009] The main control circuit has its output terminal connected to the input terminal of the LED driver circuit and the input terminal of the display circuit. It is used to convert the level signal into a PWM signal and output it to the LED driver circuit. It also outputs to the display circuit the current battery percentage stored in the charging circuit, the time the battery can light up the LED, low battery warning information, user information, and working status information.
[0010] The LED driver circuit has its output terminal connected to the LED, used to receive the PWM signal and control the LED to light up;
[0011] The display circuit is used to display the battery level, the time, the low battery warning message, the user information, and the operating status information;
[0012] The main control circuit outputs different PWM signals according to different level signals, so that the LED driving circuit controls the LED to achieve different degrees of illumination according to the different PWM signals.
[0013] In one embodiment, the conversion circuit includes:
[0014] The first voltage conversion circuit has its input terminal connected to the output terminal of the charging circuit, and its output terminal connected to the input terminal of the main control circuit and the input terminal of the display circuit. It is used to convert the second voltage into a third voltage and output it to the main control circuit and the display circuit.
[0015] The second voltage conversion circuit has its input terminal connected to the output terminal of the charging circuit and its output terminal connected to the input terminal of the switching circuit. It is used to convert the second voltage into the fourth voltage and output it to the switching circuit.
[0016] In one embodiment, the switching circuit further includes:
[0017] An indicator circuit is connected at one end to the output terminal of the conversion circuit and at the other end to the first output terminal of the switch circuit. It is used to receive the control signal output by the switch circuit and to illuminate the circuit.
[0018] In one embodiment, the LED driving circuit includes:
[0019] An amplifier circuit, with its input terminal connected to the output terminal of the main control circuit and its output terminal connected to the input terminal of the step-down constant current circuit, is used to amplify the PWM signal and output it to the step-down constant current circuit.
[0020] The output terminal of the step-down constant current circuit is connected to the LED to receive the amplified PWM signal and control the LED to light up.
[0021] In one embodiment, the charging circuit includes: a power chip, a first diode, a second diode, a first capacitor, and a second capacitor;
[0022] The power input terminal of the power chip is connected to the cathode of the first diode, the anode of the first diode is connected to the cathode of the first diode, and the anode of the first diode is connected to the external power supply.
[0023] The enable terminal of the power chip is connected to the cathode of the first diode;
[0024] The charging status indicator and the charging termination indicator of the power chip are both connected to the input of the main control circuit.
[0025] The output terminal of the power chip is connected to the input terminal of the conversion circuit and the input terminal of the switching circuit.
[0026] One end of the first capacitor is connected to the power input terminal of the power chip, and the other end is grounded;
[0027] One end of the second capacitor is connected to the output terminal of the power chip, and the other end is grounded.
[0028] In one embodiment,
[0029] The main control circuit includes: a microcontroller;
[0030] The display circuit includes: a display screen;
[0031] The first and second power supply terminals of the microcontroller are both connected to the output terminal of the charging circuit.
[0032] The first and second state detection terminals of the microcontroller are both connected to the output terminal of the charging circuit.
[0033] The clock terminal, data terminal, clock line, bidirectional data line, and reset terminal of the microcontroller are all connected to the input terminal of the display screen.
[0034] The first signal input terminal of the microcontroller is connected to the output terminal of the switching circuit.
[0035] The second signal input terminal of the microcontroller is connected to the input terminal of the LED driver circuit.
[0036] In one embodiment,
[0037] The first voltage conversion circuit includes: a potentiometer, a third capacitor, and a fourth capacitor;
[0038] The second voltage conversion circuit includes: a second resistor, a third resistor, and a fifth capacitor;
[0039] One end of the potentiometer is connected to the output terminal of the charging circuit, and the other end is connected to the input terminal of the main control circuit and the input terminal of the display circuit.
[0040] One end of the third capacitor is connected to one end of the potentiometer, and the other end of the third capacitor is grounded.
[0041] One end of the fourth capacitor is connected to the other end of the potentiometer, and the other end of the fourth capacitor is grounded.
[0042] One end of the second resistor is connected to the power supply terminal of the main control circuit, and the other end of the second resistor is grounded;
[0043] One end of the third resistor is connected to the other end of the second resistor, and the other end of the third resistor is connected to the output terminal of the charging circuit.
[0044] The fifth capacitor is connected in parallel with the second resistor.
[0045] In one embodiment,
[0046] The switching circuit includes: a switching chip and a tactile switch;
[0047] The indicator circuit includes: a first light-emitting diode, a second light-emitting diode, a MOSFET, a fourth resistor, a fifth resistor, a sixth resistor, and a seventh resistor;
[0048] The first output of the conversion chip is connected to one end of the fifth resistor, and the other end of the fifth resistor is connected to one end of the fourth resistor and the gate of the MOS transistor; the second output of the conversion chip is connected to the input of the main control circuit.
[0049] The other end of the fourth resistor is connected to the output terminal of the charging circuit.
[0050] The source of the MOS transistor is connected to the output terminal of the charging circuit, and the drain of the MOS transistor is connected to the cathode of the first light-emitting diode and the cathode of the second light-emitting diode.
[0051] The anode of the first light-emitting diode is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the output terminal of the charging circuit;
[0052] The anode of the second light-emitting diode is connected to one end of the seventh resistor, and the other end of the seventh resistor is connected to the output terminal of the charging circuit.
[0053] In one embodiment,
[0054] The step-down constant current circuit includes: an operational amplifier, an eighth resistor, a ninth resistor, a tenth resistor, and a sixth capacitor;
[0055] The amplifier circuit includes: a step-down chip and an inductor;
[0056] The signal input terminal of the operational amplifier is connected to one end of the ninth resistor, and the other end of the ninth resistor is connected to the output terminal of the main control circuit.
[0057] The power supply input terminal of the operational amplifier is connected to the power supply input terminal of the buck chip;
[0058] The signal output terminal of the operational amplifier is connected to the signal input terminal of the buck chip;
[0059] The ground terminal of the operational amplifier is connected to and grounded by the LED;
[0060] One end of the tenth resistor is connected to the signal input terminal of the operational amplifier, and the other end is grounded.
[0061] The sixth capacitor is connected in parallel with the tenth resistor;
[0062] The output terminal of the step-down chip is connected to one end of the inductor, and the other end of the inductor L is connected to the LED.
[0063] A multi-functional flashlight includes: an LED, a housing, and a lighting driving circuit as described above. The charging circuit, the conversion circuit, the switching circuit, the main control circuit, and the LED driving circuit are disposed inside the housing, and the display circuit and the LED are disposed on the surface of the housing.
[0064] Implementing the embodiments of the invention will have the following beneficial effects:
[0065] This application uses a charging circuit to connect to an external power source for energy storage, while simultaneously providing a second voltage to the conversion circuit and the switching circuit. The conversion circuit converts the second voltage into a third and a fourth voltage, outputting the third voltage to the main control circuit and the display circuit, and the fourth voltage to the main control circuit. The switching circuit receives multiple manually input pulse signals, converts each pulse signal into a corresponding continuous level signal, and outputs it to the main control circuit. The main control circuit converts the level signal into a PWM signal and outputs it to the LED driver circuit. It also outputs to the display circuit the amount of energy stored in the charging circuit, the time the energy is sufficient to light the LED, a low battery warning message, and user information. The LED driver circuit receives the PWM signal and controls the LED to light up. The display circuit displays the energy level, time, low battery warning message, and user information. The main control circuit outputs different PWM signals based on different level signals, so that the LED driver circuit controls the LED to achieve different levels of illumination based on the different PWM signals. This enables the lighting drive circuit to achieve different lighting effects. At the same time, with the combination of the main control circuit and the display circuit, it realizes the display of current power, the time that the current power can keep the LED lit, low power warning information, and user information. This allows firefighters to know the current status of the flashlight in time before entering the fire scene, ensuring that the flashlight they are carrying has sufficient power, which greatly ensures that firefighters can carry out rescue work effectively and improves rescue efficiency. Attached Figure Description
[0066] To more clearly illustrate the technical solutions in the embodiments of the invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0067] in:
[0068] Figure 1 This is a block diagram of the lighting driving circuit in one embodiment;
[0069] Figure 2 This is a block diagram of the lighting drive circuit in another embodiment;
[0070] Figure 3 This is a circuit diagram of the charging circuit in one embodiment;
[0071] Figure 4 This is a circuit diagram of the first voltage conversion circuit in one embodiment;
[0072] Figure 5 This is a circuit diagram of the second voltage conversion circuit in one embodiment;
[0073] Figure 6This is a circuit diagram of a switching circuit in one embodiment;
[0074] Figure 7 This is a circuit diagram of the main control circuit in one embodiment;
[0075] Figure 8 This is a circuit diagram of an LED driver circuit in one embodiment;
[0076] Figure 9 This is a circuit diagram showing the circuitry in one embodiment;
[0077] Figure 10 This is a structural diagram of a multi-functional flashlight in one embodiment;
[0078] Figure 11 This is a schematic diagram of a programming tool in one embodiment. Detailed Implementation
[0079] The technical solutions of the embodiments of the invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the invention, not all embodiments. Based on the embodiments of the invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the invention.
[0080] In complex building environments, firefighters often need to enter the building to conduct firefighting and rescue operations during a fire. Due to power outages caused by fires, firefighters entering poorly lit buildings face constant threats to their lives. Therefore, it is necessary to carry flashlights into the fire scene to ensure the lighting needs of firefighters and maximize their safety. In existing technology, flashlights only provide illumination, and the illumination effect is limited. Firefighters cannot know the current status of the flashlights before entering the fire scene. If a flashlight with insufficient power is carried into the fire scene, it is highly likely that the flashlight will run out of power midway, preventing firefighters from carrying out rescue operations and seriously threatening their lives, while also reducing rescue efficiency. To solve the above technical problems, this application provides a lighting driving circuit, such as... Figure 1As shown, the circuit includes: a charging circuit 10, a conversion circuit 20, a switching circuit 30, a main control circuit 40, an LED driving circuit 50, and a display circuit 60. The input terminal of the charging circuit 10 is connected to an external power source, and its output terminal is connected to the input terminals of the conversion circuit 20 and the switching circuit 30. It receives a first voltage provided by the external power source and stores the charge; and outputs a second voltage to the conversion circuit 20 and the switching circuit 30 to power them. The output terminal of the conversion circuit 20 is connected to the input terminals of the main control circuit 40 and the display circuit 60. It converts the second voltage into a third voltage and a fourth voltage, and outputs the third voltage to the main control circuit 40 and the display circuit 60, and outputs the fourth voltage to the main control circuit 40 to power them. The input terminal of the switching circuit 30 also receives multiple manually input pulse signals, and its output terminal is connected to the input terminal of the main control circuit 40. The circuit is configured to convert each pulse signal into a continuous level signal and output it to the main control circuit 40; the output terminal of the main control circuit 40 is connected to the input terminal of the LED driver circuit 50 and the input terminal of the display circuit 60, and is used to convert the level signal into a PWM signal and output it to the LED driver circuit 50; and to output to the display circuit 60 the current battery percentage stored in the charging circuit 10, the time the battery can sustain the LED, low battery warning information, user information, and working status information; the output terminal of the LED driver circuit 50 is connected to the LED, and is used to receive the PWM signal and control the LED to light up; the display circuit 60 is used to display the battery level, the time, the low battery warning information, the user information, and the working status information; wherein, the main control circuit 40 outputs different PWM signals according to different level signals, so that the LED driver circuit 50 controls the LED to achieve different degrees of lighting according to different PWM signals.This application uses a charging circuit to connect to an external power source for energy storage, while simultaneously providing a second voltage to the conversion circuit and switching circuit. The conversion circuit converts the second voltage into a third and a fourth voltage, outputting the third voltage to the main control circuit and the display circuit, and the fourth voltage to the main control circuit. The switching circuit receives multiple manually input pulse signals, converts each pulse signal into a corresponding continuous level signal, and outputs it to the main control circuit. The main control circuit converts the level signal into a PWM signal and outputs it to the LED driver circuit. It also outputs to the display circuit the amount of energy stored in the charging circuit, the time the energy is sufficient to light the LED, a low battery warning message, user information, and operating status information. The LED driver circuit receives the PWM signal and controls the LED to light up. The display circuit displays the energy level, time, low battery warning message, user information, and operating status information. The main control circuit outputs different PWM signals based on different level signals, so that the LED driver circuit controls the LED to achieve different levels of illumination based on the different PWM signals. This enables the lighting drive circuit to achieve different lighting effects. At the same time, with the combination of the main control circuit and the display circuit, it realizes the display of current power, the time that the current power can keep the LED lit, low power warning information, and user information. This allows firefighters to know the current status of the flashlight in time before entering the fire scene, ensuring that the flashlight they are carrying has sufficient power, which greatly ensures that firefighters can carry out rescue work effectively and improves rescue efficiency.
[0081] In one embodiment, such as Figure 2 As shown, the conversion circuit 20 includes: a first voltage conversion circuit 201 and a second voltage conversion circuit 202; the input terminal of the first voltage conversion circuit 201 is connected to the output terminal of the charging circuit 10, and the output terminal is connected to the input terminal of the main control circuit 40 and the input terminal of the display circuit 60, for converting the second voltage into a third voltage and outputting it to the main control circuit 40 and the display circuit 60; the input terminal of the second voltage conversion circuit 202 is connected to the output terminal of the charging circuit 10, and the output terminal is connected to the input terminal of the switching circuit 30, for converting the second voltage into the fourth voltage and outputting it to the switching circuit 30. Wherein, as... Figure 4 As shown, the first voltage conversion circuit 201 includes: a potentiometer W1, a third capacitor C4, and a fourth capacitor C5; as Figure 5As shown, the second voltage conversion circuit 202 includes: a second resistor R9, a third resistor R10, and a fifth capacitor C6; wherein, one end of the potentiometer W1 is connected to the output terminal of the charging circuit 10, and the other end is connected to the input terminal of the main control circuit 40 and the input terminal of the display circuit 60; one end of the third capacitor C4 is connected to one end of the potentiometer W1, and the other end of the third capacitor C4 is grounded; one end of the fourth capacitor C5 is connected to the other end of the potentiometer W1, and the other end of the fourth capacitor C5 is grounded; one end of the second resistor R9 is connected to the power supply terminal of the main control circuit 40, and the other end of the second resistor R9 is grounded; one end of the third resistor R10 is connected to the other end of the second resistor R9, and the other end of the third resistor R10 is connected to the output terminal of the charging circuit 10; the fifth capacitor C6 is connected in parallel with the second resistor R9.
[0082] Specifically, in this embodiment, potentiometer W1 is used to step down and stabilize the battery voltage to 2.8V, supplying power to the main control circuit 40 and the display circuit 60. This maintains the stability of the power supply to the main control circuit 40 and prevents unstable internal communication and reference deviations in the microcontroller U2 of the main control circuit 40 due to battery voltage fluctuations. The battery voltage is detected as AD_BAT through the voltage divider between the second resistor R9 and the third resistor R10. When the second power supply terminal AD_BAT of the microcontroller U2 detects a battery voltage below 3V, the microcontroller U2 enters an undervoltage protection state, with no PWM signal output and the circuit not operating, preventing battery damage caused by over-discharge. When the lighting driver circuit is struck or dropped, the battery and the ejector pin detach momentarily, causing the battery output BAT+ to drop to 0V for 100ms-200ms. Without special handling, the microcontroller's U2 will detect that the voltage of BAT+ is below 3V, resulting in no output from BAT+, and the power display and LED will be off or flashing. To address this, the BAT+ program was modified to continuously detect the voltage for 1 second and take the average value as the input voltage. This determines whether the battery voltage is momentarily low or continuously low. Only when the average value of the detected voltage for 1 second is below 3V will the microcontroller U2 shut down the output PWM signal and turn off the power display and LED.
[0083] In one embodiment, such as Figure 6As shown, the switching circuit 30 further includes an indicator circuit 301, one end of which is connected to the output terminal of the conversion circuit 20, and the other end of which is connected to the first output terminal 3 of the switching circuit 30. This indicator circuit receives the control signal output by the switching circuit 30 and illuminates the circuit. The switching circuit 30 includes a conversion chip U3 and a tactile switch S1; the indicator circuit 301 includes a first light-emitting diode D3, a second light-emitting diode D4, a MOSFET Q1, a fourth resistor R1, a fifth resistor R3, a sixth resistor R2, and a seventh resistor R5; the first output terminal 3 of the conversion chip U3 is connected to one end of the fifth resistor R3, and the other end of the fifth resistor R3 is connected to one end of the fourth resistor R1 and the gate of the MOSFET Q1; the second output terminal 6 of the conversion chip U3 is connected to the input terminal of the main control circuit 40; the fourth resistor R1... The other end of 1 is connected to the output terminal of the charging circuit 10; the source of the MOS transistor Q1 is connected to the output terminal of the charging circuit 10, and the drain of the MOS transistor Q1 is connected to the cathode of the first light-emitting diode D3 and the cathode of the second light-emitting diode D4; the anode of the first light-emitting diode D3 is connected to one end of the sixth resistor R2, and the other end of the sixth resistor R2 is connected to the output terminal of the charging circuit 10; the anode of the second light-emitting diode D4 is connected to one end of the seventh resistor R5, and the other end of the seventh resistor R5 is connected to the output terminal of the charging circuit 10.
[0084] Specifically, in this embodiment, the conversion chip U3 is powered by the positive terminal BT+ and the negative terminal BT- of the battery BAT. When the tactile switch S1 is pressed, a conduction signal is given to the conversion chip U3. When the tactile switch S1 is released, the tactile switch S1 automatically becomes non-conductive and the state is stable, which makes it convenient for the conversion chip U3 to receive pulse signals at different times and output corresponding continuous level signals.
[0085] When the tactile switch S1 is pressed for the first time, the first output terminal 3 of the conversion chip U3 is at a high level, the MOSFET Q1 is turned on, and the first LED D3 and the second LED D4 limit the current to 15mA through the sixth resistor R2 and the seventh resistor R5, respectively. The two red LEDs D3 and D4 light up. At the same time, the second output terminal 6 of the conversion chip U3 outputs a low level. The microcontroller U2 receives the continuous low level, and the internal working state bit of the microcontroller U2 is 01. It outputs a PWM signal to the LED driver circuit 50 to control the LED driver circuit 50 to output a strong current, so that the LED emits strong light.
[0086] When the tactile switch S1 is pressed for the second time, the first output terminal 3 of the conversion chip U3 is at a low level, the MOSFET Q1 is not turned on, the first LED D3 and the second LED D4 are not working, and at the same time, the second output terminal 6 of the conversion chip U3 outputs a high level. The microcontroller U2 receives a continuous high level, and the internal working state bit of the microcontroller U2 changes to 02, with no PWM signal output, causing the LED driver circuit 50 to have no output and the LED to turn off.
[0087] When the tactile switch S1 is pressed for the third time, the first output terminal 3 of the conversion chip U3 is at a high level, the MOSFET Q1 is turned on, and the first LED D3 and the second LED D4 limit the current to 15mA through the sixth resistor R2 and the seventh resistor R5, respectively. The two red LEDs D3 and D4 light up. At the same time, the second output terminal 6 of the conversion chip U3 outputs a low level. The microcontroller U2 receives the continuous low level, and the working state bit of the microcontroller U2 changes to 03. It outputs a PWM signal to the LED driver circuit 50 to control the LED driver circuit 50 to output the working current, so that the LED emits working light.
[0088] When the tactile switch S1 is pressed for the fourth time, the first output terminal 3 of the conversion chip U3 is at a low level, the MOSFET Q1 is not turned on, the first LED D3 and the second LED D4 are not working, and at the same time, the second output terminal 6 of the conversion chip U3 outputs a high level. The microcontroller U2 receives a continuous high level, and the internal working state bit of the microcontroller U2 changes to 04, with no PWM signal output, causing the LED driver circuit 50 to have no output and the LED to turn off.
[0089] When the tactile switch S1 is pressed for the fifth time, the first output terminal 3 of the conversion chip U3 is at a high level, the MOSFET Q1 is turned on, and the first LED D3 and the second LED D4 limit the current to 15mA through the sixth resistor R2 and the seventh resistor R5, respectively. The two red LEDs D3 and D4 light up. At the same time, the second output terminal 6 of the conversion chip U3 outputs a low level. The microcontroller U2 receives the continuous low level, and the working state bit of the microcontroller U2 changes to 05. It outputs a PWM signal to the LED driver circuit 50 to control the LED driver circuit 50 to output the working current. The frequency of the working current is 4HZ, which makes the LED flash.
[0090] When the tactile switch S1 is pressed for the sixth time, the first output terminal 3 of the conversion chip U3 is at a low level, the MOSFET Q1 is not turned on, the first LED D3 and the second LED D4 are not working, and at the same time, the second output terminal 6 of the conversion chip U3 outputs a high level. The microcontroller U2 receives a continuous high level, and the internal working state bit of the microcontroller U2 changes to 06, with no PWM signal output, causing the LED driver circuit 50 to have no output and the LED to turn off; this cycle repeats.
[0091] After each LED turns off, the microcontroller U2 does not enter sleep mode, and the clock continues to count. Within one minute, it still remembers the LED's working status bit. If the tactile switch S1 is pressed within one minute, the above working state will continue. When the LED has been off for one minute, the LED's working status bit value returns to 00, the LED returns to its initial state, and the microcontroller U2 enters sleep mode. Therefore, if the tactile switch S1 is pressed again within one minute after the LED turns off, the LED will light up in the following sequence: high light, off, working light, off, strobe, off, and so on.
[0092] In one embodiment, the LED driving circuit 50 includes an amplifier circuit 501 and a buck constant current circuit 502; wherein, the input terminal of the amplifier circuit 501 is connected to the output terminal of the main control circuit 40, and the output terminal is connected to the input terminal of the buck constant current circuit 502, for amplifying the PWM signal and outputting it to the buck constant current circuit 502; the output terminal of the buck constant current circuit 502 is connected to the LED, for receiving the amplified PWM signal and controlling the LED to light up.
[0093] Specifically, in this embodiment, such as Figure 8 As shown, the step-down constant current circuit 501 includes: operational amplifier U5, eighth resistor R6, ninth resistor R15, tenth resistor R16, and sixth capacitor C12; the amplifier circuit 502 includes: step-down chip U4 and inductor L; the signal input terminal 3 of the operational amplifier U5 is connected to one end of the ninth resistor R15, and the other end of the ninth resistor R15 is connected to the output terminal of the main control circuit 40; the power supply input terminal 1 of the operational amplifier U5 is connected to the power supply input terminal 3 of the step-down chip U4; the signal output terminal 2 of the operational amplifier U5 is connected to the signal input terminal 1 of the step-down chip U4; the ground terminal 4 of the operational amplifier U5 is connected to the LED and grounded; one end of the tenth resistor R16 is connected to the signal input terminal 3 of the operational amplifier U5, and the other end is grounded; the sixth capacitor C12 is connected in parallel with the tenth resistor R16; the output terminal 2 of the step-down chip U4 is connected to one end of the inductor L, and the other end of the inductor L is connected to the LED.
[0094] Specifically, in this embodiment, the operational amplifier U5 is an LMV321TP, and the buck converter U4 is an LP3219. The current output from the output terminal 2 of the buck converter U4 is controlled by the PWM signal at the second signal input terminal of the microcontroller U2, thereby controlling the brightness of the LED. The operational amplifier U5 stabilizes the waveform of the PWM signal output by the microcontroller U2, thereby driving the signal input terminal 1 of the buck converter U4. The buck converter U4 controls the output current through the PWM signal, and the inductor L improves the driving efficiency of the buck converter U4.
[0095] In one embodiment, such as Figure 3 As shown, the charging circuit 10 includes: a power chip U1, a first diode D1, a second diode D2, a first capacitor C1, and a second capacitor C7; wherein, the power input terminal VCC of the power chip U1 is connected to the cathode of the second diode D2, the anode of the second diode D2 is connected to the cathode of the first diode D1, and the anode of the first diode D1 is connected to the external power supply; the enable terminal EN of the power chip U1 is connected to the cathode of the second diode D2; the charging status indicator terminal CHONG and the charging status termination indicator terminal FULL of the power chip U1 are both connected to the input terminal of the main control circuit 40; the output terminal BAT of the power chip U1 is connected to the input terminal of the conversion circuit 20 and the input terminal of the switching circuit 30; one end of the first capacitor C1 is connected to the power input terminal VCC of the power chip U1, and the other end is grounded; one end of the second capacitor C7 is connected to the output terminal BAT of the power chip U1, and the other end is grounded.
[0096] Specifically, in this embodiment, the power chip U1 uses a common Type-C input port, allowing charging with commonly available mobile phone adapters for greater convenience. A first diode D1 and a second diode D2 are connected in series between the charging port (CH+, CH-) and the battery BAT to prevent current from the battery BAT from flowing back to the charger, meeting intrinsic safety and explosion-proof requirements. The power chip U1 uses the LY4057, a complete single-cell lithium-ion battery chip with reverse polarity protection and constant current charging. Due to its internal PMOSFET architecture and overcharge protection circuit, it does not require an external sensing resistor or isolation diode. Thermal feedback allows for adjustment of the charging current to limit chip temperature under high-power operation or high ambient temperature conditions. The charging voltage is fixed at 4.2V, while the charging current can be externally set via a resistor. When the charging current drops to 1 / 10 of the set value after reaching the final float voltage, the LY4057 automatically terminates the charging cycle. When the input voltage is removed, the LY4057 automatically enters a low-current state, reducing the battery leakage current to below 2uA. The LY4057 can also be placed in a shutdown mode to reduce the supply current to 40uA. Other features of the LY4057 include a charging current monitor, undervoltage lockout, automatic recharge, and two status pins for indicating charging completion (CH_GREEN) and input voltage connection (CH_RED). The first status detection pin (CH_RED) and the second status detection pin (CH_GREEN) output two signals to the main control circuit. During charging, the second status detection pin (CH_GREEN) is low, and the first status detection pin (CH_RED) is high. When fully charged, the second status detection pin (CH_GREEN) is high, the first status detection pin (CH_RED) is low, and this is output to the microcontroller U2.
[0097] In one embodiment, such as Figure 7 As shown, the main control circuit 40 includes: a microcontroller U2; as Figure 9 As shown, the display circuit 60 includes: an OLED display screen; wherein, the first power supply terminal U2.8V+ and the second power supply terminal AD_BAT of the microcontroller U2 are both connected to the output terminal of the charging circuit 10; the first state detection terminal CH_RED and the second state detection terminal CH_GREEN of the microcontroller U2 are both connected to the output terminal of the charging circuit 10; the clock terminal ISP_CLK, the data terminal ISP_DATA, the clock line SCL, the bidirectional data line SDA, and the reset terminal RES of the microcontroller U2 are all connected to the input terminal of the OLED display screen; the first signal input terminal S of the microcontroller U2 is connected to the output terminal of the switching circuit 30; and the second signal input terminal PWM of the microcontroller U2 is connected to the input terminal of the LED driving circuit 50.
[0098] Specifically, in this embodiment, the microcontroller U2 is model FT61F0Ax or other chip capable of performing the same function. The microcontroller U2 has charging data ports D-RX and D+TX, which can be used to upgrade the internal program of the microcontroller U2, specifically to change the display content of the screen. For example... Figure 11 As shown, the text on the programming tool can be programmed into the microcontroller U2 via a programming cable and displayed on a 0.77-inch screen. The displayed content can be changed according to customer needs, such as changing it to the customer's company name or the user's name, facilitating equipment management. After each light is turned off, the microcontroller U2 does not enter sleep mode; the clock continues to count down. Within one minute, it retains the LED's operating status bit. Pressing the tactile switch S1 within one minute will continue this process. When the LED has been off for one minute, the LED's operating status bit value returns to 00, the LED returns to its initial state, and the microcontroller U2 enters sleep mode.
[0099] In this application, the percentage of battery power and the time the battery power can sustain the LED are displayed in the following ways:
[0100] Given that the LED of this application can emit strong light, working light, and strobe light; when emitting strong light, its first working current is I1; when emitting working light, its second working current is I2; when strobe light, its third working current is I3; the first working current I1, the second working current I2, and the third working current I3 are all pre-stored in the microcontroller U2; when the battery BAT is fully charged, its total capacity is Q;
[0101] When the LED is turned on with strong light, the time that the power available to light the LED, as displayed on the OLED screen, is sufficient is the first duration T1 that can be used in the continuous strong light mode, where T1 = Q / I1. In the current mode, if the actual working time of the LED is T2, then its power consumption is Q1 = T2 * I1, and the remaining power is Q2 = Q - Q1. The percentage of power displayed on the OLED screen is (Q2 / Q) * 100%.
[0102] At this time, if the operation mode is switched to working light, the battery percentage displayed on the OLED screen is the remaining battery power Q2, which can be used for the second duration T3 of the LED in the working light mode. T3 = Q2 / I2. In the current mode, if the actual working duration of the LED is T4, then its power consumption is Q3 = T4 * I1, and the remaining battery power is Q4 = Q2 - Q3. The battery percentage displayed on the OLED screen is (Q4 / Q) * 100%. If the operation mode is switched to strobe mode, the principle is the same as the working mode.
[0103] Low battery warning messages, user information, and operating status information are displayed in the following ways:
[0104] Low battery warning message: When the microcontroller U2 detects that the second state detection terminal CH_GREEN of the power chip U1 is low, it indicates that charging is in progress, and the OLED display shows "Charging". When it detects that the first state detection terminal CH_RED of the power chip U1 is low, it indicates that the battery is fully charged, and the display shows "Fully Charged" until the charging cable is unplugged, at which point the display stops. When the battery BAT is low (the battery level is sufficient to light the LED for 30 minutes, or 60 minutes in working light mode), the display shows "Low battery, please charge promptly". The LED will turn off when the driver enters undervoltage protection mode. If the device enters a low battery state upon power-on, the LED will also display a low battery reminder to prompt the user to charge promptly.
[0105] User Information: The OLED display will show two interfaces. Upon first pressing of the touch switch S1, the first interface on the OLED will display the power-on screen, which may show the manufacturer's name. The second interface is customizable, allowing customers to change it to unique, customized information. The interface is connected to the UART RX and UART TX of the microcontroller U2 via the D+ and D- pins of the Type-C interface. The program corresponding to the customized text is burned into the microcontroller U2, thus changing the content displayed on the second interface. It can customize the display of organization names and personal names (supporting up to 9 Chinese characters). Each interface is displayed for three seconds after power-on before moving to the next. The microcontroller U2 is connected to the OLED display via clock line SCL and bidirectional data line SDA to transmit the OLED's display content. Preferably, the screen size is [specific value missing], set to a 9-grid layout, and restricts input to 9 characters.
[0106] Operating status information: When the LED is in high-intensity light mode, working light mode, or strobe mode, the operating status information displayed on the OLED screen corresponds to "high-intensity light mode," "working light mode," or "strobe mode." During the discharge process, the current battery level displayed on the OLED screen cannot change abruptly (the single digits gradually decrease). Since the remaining battery level and the remaining discharge time are in one-to-one correspondence, and the remaining discharge time is controlled by the clock of the microcontroller U2, the discharge time in high-intensity light mode is 330 minutes. It is estimated that 1% of the battery level can be discharged in 3.3 minutes. Because the remaining discharge time and the remaining battery level are in one-to-one correspondence, the remaining discharge time will not change abruptly, so the current battery level will not change abruptly either, decreasing by 1% every 3.3 minutes.
[0107] This application also provides a multi-functional flashlight, such as... Figure 10As shown, it includes: LED, housing 100 and lighting driving circuit as described above. The charging circuit 10, the conversion circuit 20, the switching circuit 30, the main control circuit 40 and the LED driving circuit 50 are disposed inside the housing, and the display circuit 60 and the LED are disposed on the surface of the housing.
[0108] The above-disclosed embodiments are merely preferred embodiments of the invention and should not be construed as limiting the scope of the invention. Therefore, any equivalent variations made in accordance with the claims are still within the scope of the invention.
Claims
1. A lighting driving circuit, characterized in that, include: The charging circuit has an input terminal connected to an external power source and an output terminal connected to the input terminals of a conversion circuit and a switching circuit. It is used to receive a first voltage provided by the external power source and store the charge; and to output a second voltage to the conversion circuit and the switching circuit to power the conversion circuit and the switching circuit. The conversion circuit has its output terminal connected to the input terminal of the main control circuit and the input terminal of the display circuit. It is used to convert the second voltage into a third voltage and a fourth voltage, and output the third voltage to the main control circuit and the display circuit, and output the fourth voltage to the main control circuit to power the main control circuit and the display circuit. The switching circuit has an input terminal for receiving multiple manually given pulse signals, and an output terminal connected to the input terminal of the main control circuit for converting each pulse signal into a continuous level signal and outputting it to the main control circuit. The main control circuit has its output terminal connected to the input terminal of the LED driver circuit and the input terminal of the display circuit. It is used to convert the level signal into a PWM signal and output it to the LED driver circuit. It also outputs to the display circuit the current battery percentage stored in the charging circuit, the time the battery can light up the LED, low battery warning information, user information, and working status information. The main control circuit is also used to determine the target lighting mode according to the PWM signal, and to determine the operating current value corresponding to the target lighting mode from the pre-stored different operating current values corresponding to different lighting modes, so as to determine the time according to the operating current value corresponding to the target lighting mode and the power consumption; The LED driver circuit has its output terminal connected to the LED, used to receive the PWM signal and control the LED to light up; The display circuit is used to display the battery percentage, the time, the low battery warning message, the user information, and the working status information; The main control circuit outputs different PWM signals according to different level signals, so that the LED driving circuit controls the LED to achieve different degrees of illumination according to the different PWM signals.
2. The lighting driving circuit according to claim 1, characterized in that, The conversion circuit includes: The first voltage conversion circuit has its input terminal connected to the output terminal of the charging circuit, and its output terminal connected to the input terminal of the main control circuit and the input terminal of the display circuit. It is used to convert the second voltage into a third voltage and output it to the main control circuit and the display circuit. The second voltage conversion circuit has its input terminal connected to the output terminal of the charging circuit and its output terminal connected to the input terminal of the switching circuit. It is used to convert the second voltage into the fourth voltage and output it to the switching circuit.
3. The lighting driving circuit according to claim 1, characterized in that, The switching circuit also includes: An indicator circuit is connected at one end to the output terminal of the conversion circuit and at the other end to the first output terminal of the switch circuit. It is used to receive the control signal output by the switch circuit and to illuminate the circuit.
4. The lighting driving circuit according to claim 1, characterized in that, The LED driving circuit includes: An amplifier circuit, with its input terminal connected to the output terminal of the main control circuit and its output terminal connected to the input terminal of the step-down constant current circuit, is used to amplify the PWM signal and output it to the step-down constant current circuit. The output terminal of the step-down constant current circuit is connected to the LED to receive the amplified PWM signal and control the LED to light up.
5. The lighting driving circuit according to claim 1, characterized in that, The charging circuit includes: a power chip, a first diode, a second diode, a first capacitor, and a second capacitor; The power input terminal of the power chip is connected to the cathode of the second diode, the anode of the second diode is connected to the cathode of the first diode, and the anode of the first diode is connected to the external power supply. The enable terminal of the power chip is connected to the cathode of the second diode. The charging status indicator and the charging termination indicator of the power chip are both connected to the input of the main control circuit. The output terminal of the power chip is connected to the input terminal of the conversion circuit and the input terminal of the switching circuit. One end of the first capacitor is connected to the power input terminal of the power chip, and the other end is grounded; One end of the second capacitor is connected to the output terminal of the power chip, and the other end is grounded.
6. The lighting driving circuit according to claim 1, characterized in that, The main control circuit includes: a microcontroller; The display circuit includes: a display screen; The first and second power supply terminals of the microcontroller are both connected to the output terminal of the charging circuit. The first and second state detection terminals of the microcontroller are both connected to the output terminal of the charging circuit. The clock terminal, data terminal, clock line, bidirectional data line, and reset terminal of the microcontroller are all connected to the input terminal of the display screen. The first signal input terminal of the microcontroller is connected to the output terminal of the switching circuit. The second signal input terminal of the microcontroller is connected to the input terminal of the LED driver circuit.
7. The lighting driving circuit according to claim 2, characterized in that, The first voltage conversion circuit includes: a potentiometer, a third capacitor, and a fourth capacitor; The second voltage conversion circuit includes: a second resistor, a third resistor, and a fifth capacitor; One end of the potentiometer is connected to the output terminal of the charging circuit, and the other end is connected to the input terminal of the main control circuit and the input terminal of the display circuit. One end of the third capacitor is connected to one end of the potentiometer, and the other end of the third capacitor is grounded. One end of the fourth capacitor is connected to the other end of the potentiometer, and the other end of the fourth capacitor is grounded. One end of the second resistor is connected to the power supply terminal of the main control circuit, and the other end of the second resistor is grounded; One end of the third resistor is connected to the other end of the second resistor, and the other end of the third resistor is connected to the output terminal of the charging circuit. The fifth capacitor is connected in parallel with the second resistor.
8. The lighting driving circuit according to claim 3, characterized in that, The switching circuit includes: a switching chip and a tactile switch; The indicator circuit includes: a first light-emitting diode, a second light-emitting diode, a MOSFET, a fourth resistor, a fifth resistor, a sixth resistor, and a seventh resistor; The first output of the conversion chip is connected to one end of the fifth resistor, and the other end of the fifth resistor is connected to one end of the fourth resistor and the gate of the MOS transistor; the second output of the conversion chip is connected to the input of the main control circuit. The other end of the fourth resistor is connected to the output terminal of the charging circuit. The source of the MOS transistor is connected to the output terminal of the charging circuit, and the drain of the MOS transistor is connected to the cathode of the first light-emitting diode and the cathode of the second light-emitting diode. The anode of the first light-emitting diode is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the output terminal of the charging circuit; The anode of the second light-emitting diode is connected to one end of the seventh resistor, and the other end of the seventh resistor is connected to the output terminal of the charging circuit.
9. The lighting driving circuit according to claim 4, characterized in that, The step-down constant current circuit includes: an operational amplifier, an eighth resistor, a ninth resistor, a tenth resistor, and a sixth capacitor; The amplifier circuit includes: a step-down chip and an inductor; The signal input terminal of the operational amplifier is connected to one end of the ninth resistor, and the other end of the ninth resistor is connected to the output terminal of the main control circuit. The power supply input terminal of the operational amplifier is connected to the power supply input terminal of the buck chip; The signal output terminal of the operational amplifier is connected to the signal input terminal of the buck chip; The ground terminal of the operational amplifier is connected to and grounded by the LED; One end of the tenth resistor is connected to the signal input terminal of the operational amplifier, and the other end is grounded; The sixth capacitor is connected in parallel with the tenth resistor; The output terminal of the step-down chip is connected to one end of the inductor, and the other end of the inductor L is connected to the LED.
10. A multi-functional flashlight, characterized in that, include: The LED, the housing, and the lighting driving circuit as described in any one of claims 1-9, wherein the charging circuit, the conversion circuit, the switching circuit, the main control circuit, and the LED driving circuit are disposed within the housing, and the display circuit and the LED are disposed on the surface of the housing.