CN216981560U - Circuit for displaying four sections of electric quantity - Google Patents

Circuit for displaying four sections of electric quantity Download PDF

Info

Publication number
CN216981560U
CN216981560U CN202220102280.7U CN202220102280U CN216981560U CN 216981560 U CN216981560 U CN 216981560U CN 202220102280 U CN202220102280 U CN 202220102280U CN 216981560 U CN216981560 U CN 216981560U
Authority
CN
China
Prior art keywords
mcu
electric quantity
pin
emitting diode
resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202220102280.7U
Other languages
Chinese (zh)
Inventor
舒鹏松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Zhepong Electronics Co ltd
Original Assignee
Ningbo Zhepong Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Zhepong Electronics Co ltd filed Critical Ningbo Zhepong Electronics Co ltd
Priority to CN202220102280.7U priority Critical patent/CN216981560U/en
Application granted granted Critical
Publication of CN216981560U publication Critical patent/CN216981560U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model discloses a circuit for displaying four sections of electric quantity, which comprises a control module, an electric quantity indicating module and a charging module, wherein the control module is used for controlling the electric quantity indicating module to be charged; the control module is connected with the electric quantity indicating module and the charging module; the control module comprises an MCU (microprogrammed control unit), the electric quantity indicating module comprises electric quantity indicating lamps, and two IO (input/output) ports of the MCU control the four electric quantity indicating lamps; in the utility model, the two IO ports control the four sections of electric quantity display, so that the number of the IO ports of the MCU can be less, the research and development and manufacturing cost of the MCU is reduced, and the cost performance of the MCU is higher.

Description

Circuit for displaying four sections of electric quantity
Technical Field
The utility model relates to the field of manufacturing of flashlights, in particular to a circuit for displaying four sections of electric quantity.
Background
A Micro Control Unit (MCU), also called a Single Chip Microcomputer (Single Chip Microcomputer) or a Single Chip Microcomputer (MCU), which properly reduces the frequency and specification of a Central Processing Unit (CPU), and integrates peripheral interfaces such as a memory, a counter (Timer), a USB, an a/D converter, a UART, a PLC, a DMA, and the like, even an LCD driving circuit on a Single Chip to form a Chip-level computer, thereby performing different combination control for different application occasions; the flashlight is provided with the MCU to prompt the residual electric quantity inside the flashlight, one IO port of the MCU controls one electric quantity under the common condition, and therefore more IO ports need to be arranged for arranging more electric quantity prompting lamps in the flashlight, and research, development and manufacturing cost of the MCU is improved.
Disclosure of Invention
The four-section electric quantity display circuit overcomes the defects of the prior art, and is simple in structure, reasonable in design, lower in research and development and manufacturing cost and higher in cost performance.
In order to solve the technical problems, the technical scheme of the utility model is as follows:
a circuit for displaying four sections of electric quantity comprises a control module, an electric quantity indicating module and a charging module; the control module is connected with the electric quantity indicating module and the charging module; the control module comprises an MCU (microprogrammed control unit), the electric quantity indicating module comprises electric quantity indicating lamps, and two IO (input/output) ports of the MCU control the four electric quantity indicating lamps.
Further, the control module comprises a resistor R1, a resistor R2, a key switch S1 and a capacitor C1;
a No. 1 pin of the MCU is connected with one end of a capacitor C1; a No. 2 pin of the MCU is connected with one end of the resistor R1 and one end of the resistor R2; a No. 4 pin of the MCU is connected with one end of a key switch S1; the other end of the key switch S1 is connected with the other end of the resistor R2 and is grounded; pin 8 of the MCU is connected to the other end of capacitor C1 and to ground.
Further, the power indicator lamp comprises a light emitting diode D1, a light emitting diode D2, a light emitting diode D3 and a light emitting diode D4; the light emitting diode D1 and the light emitting diode D2 are connected with the same IO port of the MCU; the light emitting diode D3 and the light emitting diode D4 are connected with the same IO port of the MCU.
Furthermore, a No. 6 pin of the MCU is connected with one end of the light-emitting diode D1 and one end of the light-emitting diode D2, and the other end of the light-emitting diode D2 is grounded; pin 7 of the MCU is connected to one end of the led D3 and one end of the led D4, and the other end of the led D4 is grounded.
Further, the charging module comprises a charging chip U2, a battery BT1, an interface JS1 and a resistor R3;
the No. 2 pin of the charging chip U2 is grounded; the No. 3 pin of the charging chip U2 is connected with the positive electrode of the battery BT1, and the negative electrode of the battery BT1 is grounded; a pin 4 of the charging chip U2 is connected with the anode of the interface JS1 and the other end of the resistor R1, and the cathode of the interface JS1 is grounded; the pin 6 of the charging chip U2 is connected to one end of the resistor R3, and the other end of the resistor R3 is grounded.
Furthermore, a No. 1 pin of the MCU and a capacitor C1 are connected with the anode of the battery; the other end of the light-emitting diode D1 and the other end of the light-emitting diode D3 are connected to the positive electrode of the battery BT 1.
The utility model has the beneficial effects that:
in the utility model, the two IO ports control the four-section electric quantity display, so that the number of the IO ports of the MCU can be less, the research and development and manufacturing cost of the MCU is further reduced, and the cost performance of the MCU is higher.
Drawings
Fig. 1 is a block diagram of the present invention.
Fig. 2 is an overall circuit diagram of the present invention.
Fig. 3 is a circuit diagram of the control module and the power indication module.
Fig. 4 is a circuit diagram of a charging module.
Detailed Description
The utility model is further described with reference to the following figures and specific examples. It should be noted that the examples are only for specifically illustrating the present invention, and the purpose thereof is to make the technical solution of the present invention better understood by those skilled in the art, and should not be construed as limiting the present invention.
Example (b):
a circuit for displaying four sections of electric quantity comprises a control module, an electric quantity indicating module and a charging module; the control module is connected with the electric quantity indicating module and the charging module; the control module comprises an MCU (microprogrammed control unit), the electric quantity indicating module comprises electric quantity indicating lamps, and two IO (input/output) ports of the MCU control the four electric quantity indicating lamps; in the utility model, the two IO ports control the four-section electric quantity display, so that the number of the IO ports of the MCU can be less, the research and development and manufacturing cost of the MCU is further reduced, and the cost performance of the MCU is higher.
Further, the control module comprises a resistor R1, a resistor R2, a key switch S1 and a capacitor C1;
a No. 1 pin of the MCU is connected with one end of a capacitor C1; a No. 2 pin of the MCU is connected with one end of the resistor R1 and one end of the resistor R2; a No. 4 pin of the MCU is connected with one end of a key switch S1; the other end of the key switch S1 is connected with the other end of the resistor R2 and is grounded; pin 8 of the MCU is connected to the other end of capacitor C1 and to ground.
Further, the power indicator lamp comprises a light emitting diode D1, a light emitting diode D2, a light emitting diode D3 and a light emitting diode D4; the light emitting diode D1 and the light emitting diode D2 are connected with the same IO port of the MCU; the light emitting diode D3 and the light emitting diode D4 are connected with the same IO port of the MCU.
Furthermore, a No. 6 pin of the MCU is connected with one end of the light-emitting diode D1 and one end of the light-emitting diode D2, and the other end of the light-emitting diode D2 is grounded; pin 7 of the MCU is connected to one end of the led D3 and one end of the led D4, and the other end of the led D4 is grounded.
Further, the charging module comprises a charging chip U2, a battery BT1, an interface JS1 and a resistor R3;
the No. 2 pin of the charging chip U2 is grounded; the No. 3 pin of the charging chip U2 is connected with the positive electrode of the battery BT1, and the negative electrode of the battery BT1 is grounded; a pin 4 of the charging chip U2 is connected with the anode of the interface JS1 and the other end of the resistor R1, and the cathode of the interface JS1 is grounded; the pin 6 of the charging chip U2 is connected to one end of the resistor R3, and the other end of the resistor R3 is grounded.
Furthermore, a No. 1 pin of the MCU and a capacitor C1 are connected with the anode of the battery; the other end of the light-emitting diode D1 and the other end of the light-emitting diode D3 are connected to the positive electrode of the battery BT 1.
The MCU control principle of the utility model is as follows:
the input high resistance and the output driving function of the MCU port are utilized; four power indicator lights were scanned for attention over a 4ms period (25% duty cycle per light).
In the utility model, when two electric quantity indicator lamps on a single port do not need to be turned on, the port is set to be high-impedance input; when the light on a single port is to be on (e.g., LED D1 and LED D3), the port is set to output, and the signal is low; when the single port lower light is to be lit (e.g., LED D2 and LED D4), the port is set to output and the signal is high.
It should be noted that other technical solutions of the present invention all belong to the prior art, and therefore are not described in detail.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (6)

1. A circuit for displaying four sections of electric quantity is characterized by comprising a control module, an electric quantity indicating module and a charging module; the control module is connected with the electric quantity indicating module and the charging module; the control module comprises an MCU (microprogrammed control unit), the electric quantity indicating module comprises electric quantity indicating lamps, and two IO (input/output) ports of the MCU control the four electric quantity indicating lamps.
2. The circuit for displaying four segments of electric quantity according to claim 1, wherein the control module comprises a resistor R1, a resistor R2, a key switch S1 and a capacitor C1;
a No. 1 pin of the MCU is connected with one end of a capacitor C1; a No. 2 pin of the MCU is connected with one end of the resistor R1 and one end of the resistor R2; a No. 4 pin of the MCU is connected with one end of a key switch S1; the other end of the key switch S1 is connected with the other end of the resistor R2 and is grounded; pin 8 of the MCU is connected to the other end of capacitor C1 and to ground.
3. The circuit for displaying four sections of electric quantity according to claim 1, wherein the electric quantity indicating lamp comprises a light emitting diode D1, a light emitting diode D2, a light emitting diode D3 and a light emitting diode D4; the light emitting diode D1 and the light emitting diode D2 are connected with the same IO port of the MCU; the light emitting diode D3 and the light emitting diode D4 are connected with the same IO port of the MCU.
4. The circuit for displaying four segments of electric quantity of claim 3, wherein pin No. 6 of the MCU is connected with one end of the LED D1 and one end of the LED D2, and the other end of the LED D2 is grounded; pin 7 of the MCU is connected to one end of the led D3 and one end of the led D4, and the other end of the led D4 is grounded.
5. The circuit for displaying four battery quantities according to claim 1, wherein the charging module comprises a charging chip U2, a battery BT1, an interface JS1 and a resistor R3;
the No. 2 pin of the charging chip U2 is grounded; the No. 3 pin of the charging chip U2 is connected with the positive electrode of the battery BT1, and the negative electrode of the battery BT1 is grounded; a pin No. 4 of the charging chip U2 is connected with the anode of the interface JS1 and the other end of the resistor R1, and the cathode of the interface JS1 is grounded; the pin 6 of the charging chip U2 is connected to one end of the resistor R3, and the other end of the resistor R3 is grounded.
6. The circuit for displaying the four-section electricity quantity according to the claim 2 or 4, characterized in that the pin No. 1 of the MCU and the capacitor C1 are connected with the positive pole of the battery; the other end of the light-emitting diode D1 and the other end of the light-emitting diode D3 are connected to the positive electrode of the battery BT 1.
CN202220102280.7U 2022-01-17 2022-01-17 Circuit for displaying four sections of electric quantity Active CN216981560U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202220102280.7U CN216981560U (en) 2022-01-17 2022-01-17 Circuit for displaying four sections of electric quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202220102280.7U CN216981560U (en) 2022-01-17 2022-01-17 Circuit for displaying four sections of electric quantity

Publications (1)

Publication Number Publication Date
CN216981560U true CN216981560U (en) 2022-07-15

Family

ID=82352914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202220102280.7U Active CN216981560U (en) 2022-01-17 2022-01-17 Circuit for displaying four sections of electric quantity

Country Status (1)

Country Link
CN (1) CN216981560U (en)

Similar Documents

Publication Publication Date Title
CN110677953B (en) Special arm lamp control circuit for gynecologist and obstetrician
CN216981560U (en) Circuit for displaying four sections of electric quantity
CN209165070U (en) A kind of modular plug-in type LED bulb lamp
CN201398257Y (en) Automatic control circuit of lithium battery LED fire-fighting emergency light
CN201396679Y (en) Household LED emergency lamp with remote control function
CN102752935A (en) Solar light-emitting diode (LED) lamp controller
CN113966052A (en) Intelligent control circuit
CN201382278Y (en) Portable solar lighting device
CN202035180U (en) Signal lamp circuit and signal lamp
CN209329711U (en) A kind of battery and charging assembly
CN107543094A (en) A kind of LED lamp with function of emergency illumination
CN217088205U (en) Flashlight control circuit and flashlight
CN219999647U (en) Maintenance small lamp based on AI voice recognition chip
CN201126109Y (en) Novel key buckle LED currency examine electric torch
CN209805449U (en) Battery emergency converter
CN211086563U (en) External interface that charges embeds rechargeable battery power supply cable tester
CN218830708U (en) Single-signal control double-LED circuit for lithium electric wrench control panel
CN215641723U (en) Battery voltage detection display device
CN212514922U (en) Low-cost electric quantity full-charge indicating circuit
CN112074037B (en) Intelligent controller circuit system of solar street lamp
CN213694236U (en) Circuit for light-sensing miner lamp
CN211015087U (en) Timing startup and shutdown control device based on multiple systems
CN208797619U (en) A kind of charging of novel belt is turned off the light functional circuit
CN203467043U (en) Led emergency controller
CN215379280U (en) Touch illuminating lamp and circuit

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant