A charging indication circuit with single GPIO port realizing double indication effect
Patent Information
- Application Number
- CN202522430750.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-17
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2035-11-17
AI Technical Summary
现有技术中,IC芯片的GPIO口只能控制单个LED灯,如果需要控制两个LED灯,就需要改变现有单GPIO口芯片的封装,重新引出两个GPIO口,或者改用有两个多余GPIO口的芯片,这就造成针对单灯和双灯的指示电路,需要准备两种物料,提升了物料成本和备料压力
[0009]与现有技术相比,本实用新型的有益效果是:单个GPIO口就可以实现控制单个指示元件指示,或者同时控制两个指示元件指示,提升了芯片的兼容性,有效降低物料成本。
Smart Images

Figure CN224923452U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of charging circuits, specifically to a charging indicator circuit that achieves dual indication effects with a single GPIO port. Background Technology
[0002] Charging circuits typically use indicator lights to show the charging status; for example, a green light indicates charging complete, and a red light indicates charging in progress, allowing users to clearly see the charging status in real time. In current technology, the GPIO port of an IC chip can only control a single LED. If two LEDs need to be controlled, the package of the existing single-GPIO port chip needs to be changed to expose two GPIO ports, or a chip with two extra GPIO ports needs to be used. This results in two different types of materials being needed for the indicator circuits for single and dual LEDs, increasing material costs and sourcing pressure. Utility Model Content
[0003] To address the problems in the existing technology, this utility model provides a charging indicator circuit that achieves dual indication effects with a single GPIO port.
[0004] This utility model discloses a charging indicator circuit that achieves dual indication effects using a single GPIO port. It includes a charging chip, a charging interface connected to the charging chip, and a first indicator element and a second indicator element. The first and second indicator elements are connected in series, with one end connected to the positive pin of the charging interface and the other end connected to the power ground pin of the charging interface. The first pin of the charging chip is connected between the first and second indicator elements. During charging, when the first pin of the charging chip is at a low level, a potential difference is formed between the positive pin of the charging interface and the first pin of the charging interface. The first indicator element connected to the positive pin of the charging interface operates, while the second indicator element does not operate. When fully charged, the first pin of the first charging chip is either floating or in a high-impedance state, and the series-connected first and second indicator elements operate simultaneously, achieving indication of both charging in progress and charging completion states.
[0005] Furthermore, the first and second indicating elements include one or both of sound, light, and electrical indicating elements.
[0006] Furthermore, the first indicator element and the second indicator element are light-emitting diodes of different colors.
[0007] Furthermore, the charging indicator circuit also includes a charging monitoring module, one end of which is connected to the fifth pin of the charging chip, and the enable pin is connected to the controller.
[0008] Furthermore, the charging monitoring module includes resistors R4 and R6 connected in series. The other end of resistor R4 is connected to the fifth pin of the charging interface, and the other end of resistor R6 is grounded. The enable terminal is located between resistors R4 and R6.
[0009] Compared with the prior art, the beneficial effects of this utility model are: a single GPIO port can control the indication of a single indicator element, or control the indication of two indicator elements simultaneously, thereby improving the compatibility of the chip and effectively reducing material costs. Attached Figure Description
[0010] To more clearly illustrate the solutions in this utility model 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 some embodiments of this utility model. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0011] Figure 1 This is a general circuit schematic for the existing 4054 chip; Figure 2 This is a circuit schematic diagram of an embodiment of the present invention. Detailed Implementation
[0012] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, and accompanying drawings are used to distinguish different objects, not to describe a particular order.
[0013] In this invention, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment to other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this invention can be combined with other embodiments.
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
[0015] like Figure 1 As shown, the general-purpose 4054 charging IC uses an SOT23-5 package and has 5 pins. Pin 1 is connected to a light-emitting diode (LED), controlling the on / off state of the LED to indicate whether charging is in progress. However, some users require dual red and green LEDs to indicate three states: no charging, charging, and fully charged. The existing 4054 charging IC cannot adequately meet these requirements.
[0016] To overcome the technical problem of existing technologies being unable to achieve dual-indicator control, this utility model proposes a charging indicator circuit that achieves dual-indicator effect with a single GPIO port. The circuit includes a charging chip, a charging interface connected to the charging chip, and a first indicator element and a second indicator element. The first and second indicator elements are connected in series, with one end connected to the positive pin of the charging interface and the other end connected to the power ground pin of the charging interface. The first pin of the charging chip is connected between the first and second indicator elements. During charging, when the first pin of the charging chip is at a low level, a potential difference is formed between the positive pin of the charging interface and the first pin of the charging interface. The first indicator element connected to the positive pin of the charging interface operates, while the second indicator element does not operate. When fully charged, the first pin of the first charging chip is either floating or in a high-impedance state, and the series-connected first and second indicator elements operate simultaneously, achieving indication of both charging in progress and charging completion states.
[0017] like Figure 2 As shown, in a preferred embodiment of the present invention, the first indicator element and the second indicator element are a red light-emitting diode R_LED and a green light-emitting diode G_LED, respectively. Of course, the first indicator element and the second indicator element in this example can also be one or a combination of sound, light and electricity indicator elements.
[0018] This example also includes a resistor R5 connected in series with the light-emitting diodes R_LED and G_LED. The resistor R5 is used to limit the current and protect the light-emitting diodes.
[0019] In this example, the charging interface is a USB interface. Pin 2 of the USB interface is the positive power supply pin, and pin 6 is the negative power supply pin, which is also the power ground pin. The power output from pin 2 of the USB interface passes through an RC filter circuit composed of resistor 3 and capacitor C1, and then is input to the indicator branch composed of two light-emitting diodes and resistor R5 connected in series and the 4054 charging chip.
[0020] Preferably, the charging indicator circuit in this example further includes a charging monitoring module. One end of the charging monitoring module is connected to the fifth pin of the charging chip, and the enable pin is connected to the controller. The controller can control the operating state of the charging chip through the enable pin, thereby enabling timely monitoring of whether the charging chip is charging.
[0021] The charging monitoring module in this example includes resistors R4 and R6 connected in series. The other end of resistor R4 is connected to the fifth pin of the charging interface, and the other end of resistor R6 is grounded. The enable terminal is set between resistors R4 and R6.
[0022] The working principle of this example is as follows: When the USB port has no power input (i.e., is not charging), pin 2 of the USB port is low, and pin 1 of the charging chip is also low. Therefore, no current flows through LEDs R_LED and G_LED, and both LEDs are off. During normal charging, the USB port has power input, pin 1 of the charging chip is low, LED R_LED is constantly lit, and LED G_LED (grounded) is off. When fully charged, the USB port has power input, pin 1 of the charging chip is floating or in a high-impedance state, and current flows from the positive terminal of the power supply to LED G_LED (grounded). At this time, both LEDs light up simultaneously, displaying a mixed orange color. This indicates the charging and non-charging states.
[0023] With the improvement of this utility model, it is not necessary to change the existing 4054 packaging method or replace it with other charging chips with two GPIO ports. It is possible to realize the control of a single indicator element by a single GPIO port, or to control the indication of two indicator elements at the same time, thereby improving the chip compatibility and effectively reducing material costs.
[0024] This invention is applicable not only to the 4054 charging chip, but also to other functional ICs or controllers, especially to control chips that prioritize the number of GPIO ports.
[0025] The specific embodiments described above are preferred embodiments of this utility model, and are not intended to limit the specific scope of this utility model. The scope of this utility model includes but is not limited to the specific embodiments described above. All equivalent changes made in accordance with this utility model are within the protection scope of this utility model.
Claims
1. A charging indicator circuit that achieves dual indication effects using a single GPIO port, characterized in that: The device includes a charging chip, a charging interface connected to the charging chip, a first indicator element, and a second indicator element. The first and second indicator elements are connected in series, with one end connected to the positive pin of the charging interface and the other end connected to the power ground pin of the charging interface. The first pin of the charging chip is connected between the first and second indicator elements. During charging, when the first pin of the charging chip is at a low level, a potential difference is formed between the positive pin of the charging interface and the first pin of the charging interface. The first indicator element connected to the positive pin of the charging interface is activated, while the second indicator element is deactivated. When fully charged, the first pin of the charging chip is either floating or in a high-resistance state. The first and second indicator elements connected in series are activated simultaneously to indicate both charging in progress and charging completion states.
2. The charging indicator circuit for implementing dual indication effects using a single GPIO port according to claim 1, characterized in that: The first and second indicating elements include one or two of the following: sound, light, and electrical indicating elements.
3. The charging indicator circuit for achieving dual indication effects using a single GPIO port according to claim 2, characterized in that: The first and second indicator elements are light-emitting diodes of different colors.
4. The charging indicator circuit for implementing dual indication effects using a single GPIO port according to any one of claims 1-3, characterized in that: The charging indicator circuit also includes a charging monitoring module, one end of which is connected to the fifth pin of the charging chip, and the enable pin is connected to the controller.
5. The charging indicator circuit for implementing dual indication effects using a single GPIO port according to claim 4, characterized in that: The charging monitoring module includes resistors R4 and R6 connected in series. The other end of resistor R4 is connected to the fifth pin of the charging interface, and the other end of resistor R6 is grounded. The enable terminal is set between resistors R4 and R6.