USB charging circuit and computer
By designing a USB charging circuit that includes energy monitoring, abnormal alarm and timing modules, the problem of traditional computer equipment lacks abnormal energy consumption monitoring and charging time reminder during USB charging, and a safe and diverse charging service and accurate voltage detection and alarm reminder are achieved.
Patent Information
- Application Number
- CN202421738112.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2034-07-22
AI Technical Summary
Traditional computer equipment lacks abnormal energy consumption monitoring and charging time reminder functions during USB charging, and cannot provide safe and diverse charging services, and cannot accurately perform voltage detection and alarm reminders.
A USB charging circuit is designed, including a USB charging module, an energy monitoring module, an abnormal alarm module and a timing module. The energy monitoring module is used to monitor energy consumption information and usage time, the abnormal alarm module is used to alert when voltage is abnormal, and the timing module is used to record the usage time of the USB interface.
The energy monitoring module and timing module monitor and remind abnormal energy consumption, provide safe and diverse charging services, promptly cut off the power supply to prevent equipment damage, and achieve accurate voltage detection and alarm reminder, which has the advantages of saving energy and easy use.
Smart Images

Figure CN222852036U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a USB charging circuit and a computer. Background Art
[0002] With the development of science and technology, computers have become essential functional equipment for people, and the design of computers and their peripherals is constantly developing towards a more intelligent, safe and convenient direction. However, traditional computer equipment lacks the functions of abnormal energy consumption monitoring and charging time reminder during USB charging, and cannot provide users with safe and diversified charging services, and cannot accurately detect voltage and alarm reminders. Utility Model Content
[0003] In view of this, the present application provides a USB charging circuit and a computer to solve the technical problems that traditional computer equipment lacks the functions of abnormal energy consumption monitoring and charging time reminder, cannot provide users with safe and diversified charging services, and cannot accurately perform voltage detection and alarm reminders.
[0004] To achieve the above object, the utility model provides the following technical solutions: a USB charging circuit, comprising: a USB charging module, an energy monitoring module, an abnormal alarm module and a timing module;
[0005] One end of the USB charging module is connected to the power circuit of the computer, and the other end of the USB charging module is connected to the USB interface, which is used to provide charging power for external devices;
[0006] The energy monitoring module is connected to the USB charging module, and is used to monitor the energy consumption information of the USB charging module and display the energy consumption information and usage time;
[0007] The abnormal alarm module is connected to the USB charging module, and the abnormal alarm module is used to give an alarm reminder when the voltage is abnormal;
[0008] The timing module is connected to the USB charging module, and the timing module is used to record the usage time of the USB interface.
[0009] Further, the USB charging module includes a power supply circuit;
[0010] The power supply circuit includes a DC-DC converter, a voltage stabilizing chip, a resistor R1, a resistor R2, a resistor R3, a capacitor C1, a capacitor C2, a capacitor C3, a diode D1 and a coil L1. The input end of the DC-DC converter is connected to the output end of the power supply circuit of the computer, the output end of the DC-DC converter is electrically connected to the input end of the voltage stabilizing chip, the BOOT pin of the voltage stabilizing chip is connected in parallel with the PH pin of the voltage stabilizing chip, the cathode of the diode D1 and one end of the coil L1 through the capacitor C1, the other end of the coil L1 is connected in parallel with one end of the capacitor C2 and one end of the resistor R1, the anode of the diode D1 and the other end of the capacitor C2 are both grounded, the other end of the resistor R1 is connected in parallel with one end of the resistor R3, one end of the capacitor C3 and the VSNS pin of the voltage stabilizing chip through the resistor R2, and the other end of the resistor R3 and the other end of the capacitor C3 are both grounded.
[0011] Furthermore, the USB charging module also includes a control circuit;
[0012] The control circuit includes a resistor R4, a resistor R5, a transistor Q1, a diode D2 and a relay. The control signal output end of the microprocessor is connected to one end of the resistor R5 and the base of the transistor Q1 through the resistor R4. The other end of the resistor R5 and the emitter of the transistor Q1 are both grounded. The collector of the transistor Q1 is connected in parallel to the positive electrode of the diode D2, the negative electrode of the diode D2 is connected to the power supply, the diode D2 is connected in parallel to the control end of the relay, and the output end of the relay is connected to the USB interface.
[0013] Furthermore, the energy monitoring module includes an energy metering chip, a microprocessor, a setting button, a display and a memory chip;
[0014] The electric energy metering chip and the display are electrically connected to the microprocessor through the serial port, and the buttons and the memory chip are electrically connected to the microprocessor.
[0015] Furthermore, the abnormal alarm module includes a voltage detection circuit, an alarm drive circuit and an electronic alarm;
[0016] The input end of the voltage detection circuit is electrically connected to the output end of the USB charging module, the output end of the voltage detection circuit is electrically connected to another signal input end of the microprocessor, the input end of the alarm drive circuit is electrically connected to the signal output end of the microprocessor, and the output end of the alarm drive circuit is electrically connected to the control end of the electronic alarm, which is used to drive the electronic alarm.
[0017] Furthermore, the voltage detection circuit includes resistors R6 and R7, one end of resistor R6 is connected to the other end of resistor R1, the other end of resistor R6 is connected in parallel with one end of resistor R7 and then connected to the AD conversion port of the microprocessor, and the other end of resistor R7 is grounded.
[0018] The present application also provides a computer, comprising a USB charging circuit, wherein the USB charging circuit of the computer is the above-mentioned USB charging circuit.
[0019] Furthermore, the computer is a desktop computer or a portable computer.
[0020] It can be seen from the above technical solution that the advantages of the utility model are:
[0021] This application can monitor abnormal energy consumption through the energy monitoring module and the timing module and remind the user when the charging time is exceeded. It can control the on and off of the charging circuit through the control circuit to provide users with safe and diverse charging services, and timely cut off the connection between the charging device and the USB interface device to prevent the charging device from being damaged by the power storage power supply of the charging device when it is in a saturated charging state, protect the safety of the charging device, and can perform accurate voltage detection and alarm reminders through the power detection circuit and the alarm drive circuit. It has the advantages of saving energy and being easy to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.
[0023] Figure 1 The figure is a schematic diagram of the structure of the USB charging circuit in the utility model.
[0024] Figure 2 It is a circuit structure schematic diagram of the power supply circuit of the utility model.
[0025] Figure 3 It is a circuit structure schematic diagram of the control circuit of the utility model. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the implementation modes and the accompanying drawings. Here, the illustrative implementation modes and descriptions of the present application are used to explain the present application, but are not intended to limit the present application.
[0027] refer to Figures 1 to 3 ,like Figure 1As shown, this embodiment provides a USB charging circuit and a computer, which include: a USB charging module, an energy monitoring module, an abnormal alarm module and a timing module. One end of the USB charging module is connected to the power circuit of the computer, and the other end of the USB charging module is connected to the USB interface, which is used to provide charging power for external devices. The energy monitoring module is connected to the USB charging module, and the energy monitoring module is used to monitor the energy consumption information of the USB charging module, and display the energy consumption information and the usage time. The abnormal alarm module is connected to the USB charging module, and the abnormal alarm module is used to alarm when the voltage is abnormal. The timing module is connected to the USB charging module, and the timing module is used to record the usage time of the USB interface. The abnormal alarm module can monitor key parameters such as charging voltage in real time. Once overcharging or overdischarging is found, the microprocessor will immediately take measures to cut off the power supply and sound an alarm to prevent equipment damage or even fire and other safety accidents. The energy monitoring module can also monitor the charging energy consumption in a timely manner. It can also automatically charge and stop charging based on user needs according to the set time threshold to extend the life of the battery components of the device.
[0028] like Figure 2 As shown, the USB charging module includes a power supply circuit; the power supply circuit includes a DC-DC converter, a voltage stabilizing chip, a resistor R1, a resistor R2, a resistor R3, a capacitor C1, a capacitor C2, a capacitor C3, a diode D1 and a coil L1, the input end of the DC-DC converter is connected to the output end of the power supply circuit of the computer, the output end of the DC-DC converter is electrically connected to the input end of the voltage stabilizing chip, the BOOT pin of the voltage stabilizing chip is connected in parallel with the PH pin of the voltage stabilizing chip, the cathode of the diode D1, and one end of the coil L1 through the capacitor C1, the other end of the coil L1 is connected in parallel with one end of the capacitor C2 and one end of the resistor R1, the anode of the diode D1 and the other end of the capacitor C2 are both grounded, the other end of the resistor R1 is connected in parallel with one end of the resistor R3, one end of the capacitor C3 and the VSNS pin of the voltage stabilizing chip through the resistor R2, and the other end of the resistor R3 and the other end of the capacitor C3 are both grounded.
[0029] like Figure 3 As shown, the USB charging module also includes a control circuit; the control circuit includes a resistor R4, a resistor R5, a transistor Q1, a diode D2 and a relay. The control signal output end of the microprocessor is connected to one end of the resistor R5 and the base of the transistor Q1 through the resistor R4, the other end of the resistor R5 and the emitter of the transistor Q1 are both grounded, the collector of the transistor Q1 is connected in parallel with the positive electrode of the diode D2, the negative electrode of the diode D2 is connected to the power supply, the diode D2 is connected in parallel to the control end of the relay, and the output end of the relay is connected to the USB interface.
[0030] When an external USB device is connected for charging, the STM microprocessor controls the relay to turn on, forming a power charging circuit. During charging, the DC voltage signal output by the computer power circuit is converted to obtain a charging voltage, and the output charging voltage is processed by a voltage stabilizing circuit composed of a voltage stabilizing chip and peripheral components to form a 5V voltage to provide charging voltage for the external USB device.
[0031] In this embodiment, the microprocessor adopts the STM32F103 chip, and the voltage regulator chip adopted is the TPS5430.
[0032] Specifically, the energy monitoring module includes an energy metering chip, a microprocessor, a setting button, a display and a memory chip; the energy metering chip and the display are electrically connected to the microprocessor through a serial port, and the setting button and the memory chip are electrically connected to the microprocessor.
[0033] In this embodiment, the power metering chip is AD7755, which is used to monitor the energy consumption of the circuit and send the signal to the microprocessor. The timer module uses the DALLAS 12887 clock chip to provide a time standard for the system. The display and USB interface are both set on the surface of the main shell of the computer.
[0034] The abnormal alarm module includes a voltage detection circuit, an alarm driving circuit and an electronic alarm; the input end of the voltage detection circuit is electrically connected to the output end of the USB charging module, the output end of the voltage detection circuit is electrically connected to another signal input end of the microprocessor, the input end of the alarm driving circuit is electrically connected to the signal output end of the microprocessor, and the output end of the alarm driving circuit is electrically connected to the control end of the electronic alarm, which is used to drive the electronic alarm.
[0035] like Figure 3 As shown, the voltage detection circuit includes a resistor R6 and a resistor R7, one end of the resistor R6 is connected to the other end of the resistor R1, the other end of the resistor R6 is connected in parallel with one end of the resistor R7 and then connected to the AD conversion port of the microprocessor, and the other end of the resistor R7 is grounded. The voltage detection circuit can monitor the voltage changes during the charging process in real time and accurately. When the voltage deviates from the preset safety range, the alarm mechanism will be triggered immediately, reminding the user through sound, and automatically cutting off the power supply to prevent damage to the equipment or causing safety accidents.
[0036] The microprocessor is the control core of the circuit. After the power is turned on, the voltage output signal is automatically collected through the voltage collection circuit. When overvoltage or undervoltage occurs, the microprocessor controls the alarm drive circuit to conduct, and the alarm drive circuit drives the electronic alarm to alarm. The display model is LCDl2864, which is used to display the voltage measurement value, usage time, etc. in real time.
[0037] The present application also discloses a computer, comprising the above-mentioned USB charging circuit, wherein the USB charging circuit of the computer is the above-mentioned USB charging circuit, wherein the computer is a desktop computer or a portable computer.
[0038] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A USB charging circuit, characterized in that: include: USB charging module, energy monitoring module, abnormal alarm module and timing module; One end of the USB charging module is connected to the power circuit of the computer, and the other end of the USB charging module is connected to the USB interface, so as to provide charging power to the external device; The energy monitoring module is connected to the USB charging module, and is used to monitor the energy consumption information of the USB charging module and display the energy consumption information and usage time; The abnormal alarm module is connected to the USB charging module, and the abnormal alarm module is used to give an alarm reminder when the voltage is abnormal; The timing module is connected to the USB charging module, and the timing module is used to record the usage time of the USB interface.
2. The USB charging circuit according to claim 1, characterized in that: The USB charging module includes a power supply circuit; The power supply circuit includes a DC-DC converter, a voltage stabilizing chip, a resistor R1, a resistor R2, a resistor R3, a capacitor C1, a capacitor C2, a capacitor C3, a diode D1 and a coil L1. The input end of the DC-DC converter is connected to the output end of the power supply circuit of the computer, the output end of the DC-DC converter is electrically connected to the input end of the voltage stabilizing chip, the BOOT pin of the voltage stabilizing chip is connected in parallel with the PH pin of the voltage stabilizing chip, the cathode of the diode D1 and one end of the coil L1 through the capacitor C1, the other end of the coil L1 is connected in parallel with one end of the capacitor C2 and one end of the resistor R1, the anode of the diode D1 and the other end of the capacitor C2 are both grounded, the other end of the resistor R1 is connected in parallel with one end of the resistor R3, one end of the capacitor C3 and the VSNS pin of the voltage stabilizing chip through the resistor R2, and the other end of the resistor R3 and the other end of the capacitor C3 are both grounded.
3. The USB charging circuit as claimed in claim 2, characterized in that: The USB charging module also includes a control circuit; The control circuit includes a resistor R4, a resistor R5, a transistor Q1, a diode D2 and a relay. The control signal output end of the microprocessor is connected to one end of the resistor R5 and the base of the transistor Q1 through the resistor R4. The other end of the resistor R5 and the emitter of the transistor Q1 are both grounded. The collector of the transistor Q1 is connected in parallel to the positive electrode of the diode D2, the negative electrode of the diode D2 is connected to the power supply, the diode D2 is connected in parallel to the control end of the relay, and the output end of the relay is connected to the USB interface.
4. The USB charging circuit as claimed in claim 3, characterized in that: The energy monitoring module includes an electric energy metering chip, a microprocessor, a display, a setting button and a memory chip; The electric energy metering chip and the display are electrically connected to the microprocessor via a serial port, and the setting button and the memory chip are electrically connected to the microprocessor.
5. The USB charging circuit as claimed in claim 4, characterized in that: The abnormal alarm module includes a voltage detection circuit, an alarm drive circuit and an electronic alarm; The input end of the voltage detection circuit is electrically connected to the output end of the USB charging module, the output end of the voltage detection circuit is electrically connected to another signal input end of the microprocessor, the input end of the alarm drive circuit is electrically connected to the signal output end of the microprocessor, and the output end of the alarm drive circuit is electrically connected to the control end of the electronic alarm for driving the electronic alarm.
6. The USB charging circuit as claimed in claim 5, characterized in that: The voltage detection circuit includes a resistor R6 and a resistor R7, one end of the resistor R6 is connected to the other end of the resistor R1, the other end of the resistor R6 is connected in parallel with one end of the resistor R7 and then connected to the AD conversion port of the microprocessor, and the other end of the resistor R7 is grounded.
7. A computer, comprising a USB charging circuit, characterized in that: The USB charging circuit of the computer is the USB charging circuit according to any one of claims 1 to 6.
8. The computer according to claim 7, wherein: The computer is a desktop computer or a portable computer.