Disclosure of Invention
The utility model aims to provide a small-sized charging regulating circuit and a flashlight.
The technical scheme adopted by the utility model for solving the technical problems is as follows:
a small-sized charging regulating circuit is connected with a lithium battery and an electric appliance and comprises a charging interface, a charging circuit and a control circuit;
the charging circuit is respectively connected with the charging interface, the charging circuit and the control circuit, and the charging circuit is used for controlling the charging current of the lithium battery;
the control circuit is connected with the electric appliance and used for adjusting the working current of the electric appliance.
Furthermore, the charging interface is a type-c interface.
Further, the charging circuit comprises a first current limiting resistor, a filter capacitor, an indicating lamp component and a charging IC;
the charging circuit is connected with the charging interface through a first current-limiting resistor;
a positive input power end of the charging IC is connected with the first current-limiting resistor;
one end of the indicating lamp assembly is connected with the first current-limiting resistor, and the other end of the indicating lamp assembly is respectively connected with a charging state indicating end of the charging IC and a battery charging completion indicating end;
the filter capacitor is connected with the first current limiting resistor and the grounding wire;
the charging current output end of the charging IC is connected with the lithium battery, and the battery output end of the charging IC is connected with the control circuit.
Furthermore, the current setting end of the charging IC is connected with a grounding wire through a current control resistor.
Further, the charging IC model is TP 4102.
Furthermore, the control circuit comprises a power supply end, a singlechip, a second current-limiting resistor, a detection resistor, a gear-shifting switch, a PMOS (P-channel metal oxide semiconductor) tube and a parallel resistor group;
the power supply end is connected with the charging circuit, and the singlechip is connected with the power supply end;
the gear shifting switch is connected with the control circuit and the electric appliance and comprises a first contact and a second contact;
the first contact is connected with a power supply end through a second current-limiting resistor;
the second contact is connected with the drain electrode of the PMOS tube through the parallel resistor group;
the source electrode of the PMOS tube is connected with the power supply end, and the grid electrode of the PMOS tube is connected with the PWM output end of the singlechip;
a detection resistor is arranged between the second contact and the parallel resistor group and is grounded;
and the detection end of the singlechip is connected with a detection resistor.
Further, the single chip microcomputer is EN8F202 in model.
Further, including above-mentioned small-size regulating circuit that charges, it is the LED lamp to use electrical apparatus.
The technical scheme of the utility model is composed of a charging circuit and a control circuit, the peripheral devices are simple, and the charging circuit can be formed by only charging an IC, a singlechip, a resistor, a capacitor and a PMOS (P-channel metal oxide semiconductor) transistor. The PWM wave is set through the single chip microcomputer and used for controlling the conduction time of the PMOS tube, the high-light-gear time is indirectly controlled, slow downshift is achieved, the current and the heat of the LED are reduced, the battery endurance is improved, and the capacity of the lithium battery is reduced, so that the size of a flashlight is reduced.
Additional features and advantages of the utility model will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the utility model. The objectives and other advantages of the utility model will be realized and attained by the structure particularly pointed out in the written description and drawings.
Detailed Description
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be connected or detachably connected or integrated; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
As shown in fig. 1-2, a small-sized charging regulating circuit is connected with a lithium battery BT1 and an electric appliance, and comprises a lithium battery U2, a charging circuit and a control circuit;
the charging circuit is respectively connected with the lithium battery U2, the charging circuit and the control circuit, and the charging circuit is used for controlling the charging current of the lithium battery BT 1;
the control circuit is connected with the electric appliance and used for adjusting the working current of the electric appliance.
For charging equipment, the charging current and voltage of a common type-c interface are converted by a charging head and are not too high, in order to ensure the charging safety, the current is limited by a charging circuit to ensure the safety of flashlight charging, and the working current, namely the power of an electric appliance is controlled by a control circuit.
In this embodiment, the lithium battery U2 is a type-c interface.
In this embodiment, the charging circuit includes a first current limiting resistor R17, a filter capacitor C1, an indicator light assembly D2, and a charging ICU 6;
the charging circuit is connected with a lithium battery U2 through a first current limiting resistor R17;
the positive input power terminal of the charging ICU6 is connected with the first current limiting resistor R17;
one end of the indicator light assembly D2 is connected with a first current limiting resistor R17, and the other end is respectively connected with a charging state indicating end and a battery charging completion indicating end of the charging ICU 6;
the filter capacitor C1 is connected with the first current limiting resistor R17 and the grounding wire;
the charging current output end of the charging ICU6 is connected with the lithium battery BT1, and the battery output end of the charging ICU6 is connected with the control circuit. When the TYPE-C interface is connected, the charging ICU6 detects whether the battery of the lithium battery BT1 is connected, if not, the indicating lamp assembly D2 flickers to indicate that the battery is not connected, when the battery is connected, the charging ICU6 detects the voltage of the lithium battery BT1, and if the voltage is lower than the set charging threshold voltage, the red LED of the indicating lamp assembly D2 lights to indicate that the battery is being charged.
In this embodiment, the current setting terminal of the charging ICU6 is connected to the ground line through a current control resistor. The charging ICU6 performs constant current charging with the charging current set by a current control resistor. When charging to the float voltage, the charging ICU6 slowly reduced the charging current to the charging current 1/10, ending the charge, indicating that the green LED of lamp assembly D2 was lit, indicating that the battery was fully charged.
In this embodiment, the charging ICU6 has a model number TP 4102.
In this embodiment, the control circuit includes a power supply terminal, a single chip microcomputer U5, a second current limiting resistor, detection resistors R6 and R11, a shift switch KEY, a shift switch Q1, and a parallel resistor group;
the power supply end is connected with a charging circuit, and the single chip microcomputer U5 is connected with the power supply end;
the gear shifting switch KEY is connected with the control circuit and the electric appliance and comprises a first contact and a second contact;
the first contact is connected with a power supply end through a second current-limiting resistor;
the second contact is connected with the drain electrode of a shift switch Q1 through a parallel resistor group;
the source electrode of the shift switch Q1 is connected with the power supply end, and the grid electrode of the shift switch Q1 is connected with the PWM output end of the singlechip U5;
detection resistors R6 and R11 are arranged between the second contact and the parallel resistor group and grounded;
and the detection end of the singlechip U5 is connected with detection resistors R6 and R11.
The current of the lithium battery BT1 flows through the internal protection circuit of the charging ICU6 to reach the control circuit, meanwhile, the power is supplied to the single chip microcomputer U5, when the gear shift switch KEY is dialed to the first contact, the circuit is in a low-light level at the moment, and the current of the lithium battery BT1 flows through the second current-limiting resistor and the electric LED lamp bead to return to the negative electrode. At this moment, no current flows through the detection resistors R6 and R11, the voltages of the detection resistors R6 and R11 are zero, the single chip microcomputer U5 detects a low level, then the single chip microcomputer U5 enters a sleep mode, power consumption is reduced, the current flowing through the LED lamp beads is I (Vbat-Vf)/R6, and the current is small, so that the electric quantity loss speed is low, the voltage can be slowly reduced, the operation curve is gentle, and the brightness cannot be obviously changed.
When the switch is simultaneously dialed to a second contact, the high-brightness gear is achieved at the moment, the positive electrode of the battery flows through the second current-limiting resistor and then flows through the detection resistor R6 and the detection resistor R11 from the gear-shifting switch KEY to divide the voltage, the single chip microcomputer U5 detects the high level when the high level voltage is generated, the single chip microcomputer U5 wakes up and starts timing, then the single chip microcomputer U5PWM output end sends a low level to enable the gear-shifting switch Q1 to be conducted, the current flows through the PMOS source electrode, the PMOS drain electrode and the parallel resistor group, and the LED lamp beads flow back to the ground.
If fully charged, the LED lamp is brightest at the moment, the brightness also slowly drops along with the slow drop of the voltage, after the high-brightness electricity is bright for three minutes, the PWM output end outputs a specific PWM duty ratio to control the gear shifting switch Q1, the output and the brightness are adjusted, the brightness of the LED lamp bead drops to half of the original brightness within two minutes, the current is reduced, the cruising ability of the battery is improved, and people cannot feel that the brightness has step-type attenuation.
In this embodiment, the model of the single chip microcomputer U5 is EN8F 202.
In this embodiment, including the above-mentioned small-size regulating circuit that charges, electrical apparatus is the LED lamp.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the utility model. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.