Adapter circuit with power voltage and current indication function
By introducing the main MCU, power supply circuit and indicator circuit into the adapter circuit, combined with the detection resistor, real-time display and monitoring of current, voltage and power is achieved, solving the problem of the lack of detection function of the existing adapter and reducing the equipment Volume, improves portability.
Patent Information
- Application Number
- CN202420825909.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-21
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2034-04-21
AI Technical Summary
The existing adapters lack detection and display functions, which makes it impossible for users to monitor charging information in real time. The complex circuit design leads to the large size of the equipment and is not suitable for carrying it.
Design an adapter circuit including a main control MCU, power supply circuit, indication circuit and detection resistor. Through the main control MCU sampling comparison, program calculation and driving indicator circuit, the current, voltage, power, charging speed and charging efficiency are displayed, and the resistor is used. Sampling enables real-time observation and volume reduction.
Real-time observation of the adapter working condition is achieved, sampling circuits are simplified, equipment volume is reduced, and portable is convenient.
Smart Images

Figure CN222215241U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of equipment charging, in particular to an adapter circuit with power, voltage and current indication functions. Background Art
[0002] Due to different regions or different device interfaces, some devices need to be charged through adapters. However, existing adapters do not have detection and display functions. Users cannot obtain charging information in real time during charging, and then adjust and monitor charging time and efficiency. In addition, some existing adapters with detection capabilities have too complex circuits, resulting in the adapters being too large and not suitable for carrying. Utility Model Content
[0003] The utility model provides an adapter circuit with power, voltage and current indication functions, aiming to solve the problem that the existing adapter has no detection and display functions.
[0004] The utility model provides an adapter circuit with power voltage and current indication functions, comprising a main control MCU, a power supply circuit, an indication circuit and a detection resistor, wherein the input end of the power supply circuit is connected to an input socket, the output end of the power supply circuit is connected to the main control MCU, the indication circuit is connected to the main control MCU, the output end of the main control MCU is connected to an output socket, the detection resistor is connected between the input socket and the output socket and is connected to the main control MCU, and the voltage difference of the detection resistor is transmitted to an amplifier of the main control MCU.
[0005] As a further improvement of the utility model, the power supply circuit includes a power supply chip U1, a capacitor C1 and a capacitor C2, pin 3 of the power supply chip U1 is connected to pin 1 of the input socket, pin 2 of the power supply chip U1 is connected to pin 1 of the main control MCU, one end of the capacitor C1 is connected to pin 3 of the power supply chip U1, one end of the capacitor C2 is connected to pin 2 of the power supply chip U1, and the VSS end of the power supply chip U1, the other end of the capacitor C1 and the other end of the capacitor C2 are all grounded.
[0006] As a further improvement of the present utility model, the indication circuit includes a digital tube display screen LED1, pin 1 of the digital tube display screen LED1 is connected to one end of the resistor R1, and the other end of the resistor R1 is connected to pin 2 of the main control MCU, pin 2 of the digital tube display screen LED1 is connected to one end of the resistor R2, and the other end of the resistor R2 is connected to pin 3 of the main control MCU, pin 3 of the digital tube display screen LED1 is connected to one end of the resistor R3, and the other end of the resistor R3 is connected to pin 4 of the main control MCU, pin 4 of the digital tube display screen LED1 is connected to one end of the resistor R4, and the other end of the resistor R4 is connected to pin 15 of the main control MCU, pin 5 of the digital tube display screen LED1 is connected to one end of the resistor R5, and the other end of the resistor R5 is connected to pin 14 of the main control MCU, pin 6 of the digital tube display screen LED1 is connected to one end of the resistor R6, and the other end of the resistor R6 is connected to pin 13 of the main control MCU.
[0007] As a further improvement of the present invention, pin 1 of the input socket is connected to pin 1 of the output socket and both are connected to the external voltage VBUS, pin 2 of the input socket is connected to one end of the detection resistor, and the other end of the detection resistor is connected to pin 2 of the output socket.
[0008] As a further improvement of the present invention, the inverting input terminal of the amplifier is connected to one end of the detection resistor, the inverting input terminal of the amplifier is grounded, the non-inverting input terminal of the amplifier is connected to one end of the resistor R9, the other end of the resistor R9 is connected to the other end of the detection resistor, and the output terminal of the amplifier is output to the main control MCU.
[0009] As a further improvement of the present invention, pin 7 of the main control MCU is connected to one end of the resistor R8, and the other end of the resistor R8 is connected to one end of the resistor R9.
[0010] As a further improvement of the present invention, pin 10 of the main control MCU is connected to one end of the resistor R7, and the other end of the resistor R7 is connected to one end of the resistor R8.
[0011] As a further improvement of the present invention, pin 8 of the main control MCU is connected to one end of resistor R11, the other end of resistor R11 is grounded, one end of resistor R10 is connected to pin 8 of the main control MCU, and the other end of resistor R10 is connected to external voltage VBUS.
[0012] The beneficial effects of the utility model are as follows: the circuit performs sampling and comparison, program calculation and driving indication circuit program through the main control MCU, and displays the desired current, voltage, power, charging speed, charging efficiency and charging status through the indication unit. At the same time, the resistance sampling is extremely fast, which can not only observe the working condition of the adapter in real time, but also the sampling circuit is not complicated, which can reduce the size of the adapter and facilitate carrying. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a specific circuit connection diagram of the utility model. DETAILED DESCRIPTION
[0014] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0015] like Figure 1 As shown, the utility model provides an adapter circuit with power voltage and current indication functions, including a main control MCU, a power supply circuit, an indication circuit and a detection resistor, the input end of the power supply circuit is connected to an input socket, the output end of the power supply circuit is connected to the main control MCU, the indication circuit is connected to the main control MCU, the output end of the main control MCU is connected to an output socket, the detection resistor is connected between the input socket and the output socket and connected to the main control MCU, and the voltage difference of the detection resistor is transmitted to the amplifier of the main control MCU.
[0016] As an embodiment of the utility model, the power supply circuit includes a power supply chip U1, a capacitor C1 and a capacitor C2, pin 3 of the power supply chip U1 is connected to pin 1 of the input socket, pin 2 of the power supply chip U1 is connected to pin 1 of the main control MCU, one end of the capacitor C1 is connected to pin 3 of the power supply chip U1, one end of the inductor C2 is connected to pin 2 of the power supply chip U1, and the VSS end of the power supply chip U1, the other end of the capacitor C1 and the other end of the capacitor C2 are all grounded.
[0017] As another embodiment of the utility model, the indication circuit includes a digital tube display screen LED1, pin 1 of the digital tube display screen LED1 is connected to one end of the resistor R1, and the other end of the resistor R1 is connected to pin 2 of the main control MCU, pin 2 of the digital tube display screen LED1 is connected to one end of the resistor R2, and the other end of the resistor R2 is connected to pin 3 of the main control MCU, pin 3 of the digital tube display screen LED1 is connected to one end of the resistor R3, and the other end of the resistor R3 is connected to pin 4 of the main control MCU, pin 4 of the digital tube display screen LED1 is connected to one end of the resistor R4, and the other end of the resistor R4 is connected to pin 15 of the main control MCU, pin 5 of the digital tube display screen LED1 is connected to one end of the resistor R5, and the other end of the resistor R5 is connected to pin 14 of the main control MCU, pin 6 of the digital tube display screen LED1 is connected to one end of the resistor R6, and the other end of the resistor R6 is connected to pin 13 of the main control MCU.
[0018] As another embodiment of the present utility model, pin 1 of the input socket is connected to pin 1 of the output socket and both are connected to the external voltage VBUS, pin 2 of the input socket is connected to one end of the detection resistor, and the other end of the detection resistor is connected to pin 2 of the output socket.
[0019] As another embodiment of the present utility model, the inverting input terminal of the amplifier is connected to one end of the detection resistor, the inverting input terminal of the amplifier is grounded, the non-inverting input terminal of the amplifier is connected to one end of the resistor R9, the other end of the resistor R9 is connected to the other end of the detection resistor, and the output terminal of the amplifier is output to the main control MCU.
[0020] As another embodiment of the present utility model, pin 7 of the main control MCU is connected to one end of the resistor R8, and the other end of the resistor R8 is connected to one end of the resistor R9.
[0021] As another embodiment of the present utility model, pin 10 of the main control MCU is connected to one end of the resistor R7, and the other end of the resistor R7 is connected to one end of the resistor R8.
[0022] As another embodiment of the present utility model, pin 8 of the main control MCU is connected to one end of resistor R11, the other end of resistor R11 is grounded, one end of resistor R10 is connected to pin 8 of the main control MCU, and the other end of resistor R10 is connected to external voltage VBUS.
[0023] The utility model provides an adapter circuit with power voltage and current indication function, which is used for charging monitoring of handheld devices. The power resistor on the adapter PCB detects the current flowing through to generate a voltage difference, which is transmitted to the main control MCU by the first-level resistor and then transmitted to the main control MCU via the second-level resistor. The current and the voltage of the voltage divider resistor are accurately calculated by program operation to calculate the power, and the indicating unit displays different voltage, current and power. The main control MCU compares the detected power resistor potential difference and calculates the charging power through the program. The program drives the display unit to indicate the voltage, current and power respectively.
[0024] The circuit includes a PCBA board, an input socket and an output socket. The input socket is used for a charger or a mobile power supply, such as an expansion connector or a USB connector of standard, mini, micro, Lightning, or Type-C specifications; the output plug is used to connect handheld devices, small appliances, and other household appliances, such as an interface for connecting a power adapter or a USB connector of standard, mini, micro, or Type-C specifications.
[0025] The main control MCU has sampling comparison, program operation, indication circuit program drive and other functions. It is extremely clever to sample through resistance, the internal program provides reference bias, internal comparison, and proprietary algorithm. It can realize bidirectional (regardless of positive and negative directions) detection function through single resistance current sampling, and display the desired current, voltage, power, charging speed, charging efficiency, and charging status through the indication circuit. It can also read functions by adding other protocols. In the drawings of the specification, resistor R12 is a detection resistor. The chip model of the main control MCU can be JSX168, YX168 or XWY20P02.
[0026] The working principle of the whole circuit is: when the input socket is connected to a power supply device such as a charger, the power supply chip U1 takes 3.3V electricity and provides it to the main control MCU for operation. The positive pole (VBUS) of resistor R10 and resistor R11 divides the voltage on the ground line to obtain the value of the input voltage and gives it to the 8-pin of the main control MCU, so that the voltage can be calculated and the actual voltage is displayed through the digital tube display LED1. The 10-pin of the main control MCU provides a reference potential value, which is raised to the input pin threshold value through resistors R7 and R8 to the bias potential of the 6-pin of the main control MCU, solving the input offset problem.
[0027] The output terminal is connected to mobile phones, small appliances, laptops and other electrical appliances for charging or drawing power. When the current passes through the detection resistor R12, a voltage difference will be generated. This voltage difference is fed to the 6-pin of the main control MCU through the resistor R9, and the 7-pin of the main control MCU is fed back to the amplifier through the resistor R8 for amplification. In addition, the 7-pin of the main control MCU obtains the voltage difference on the detection resistor R12 to perform a second set of data code calculations. The current value and power value are obtained, and the digital tube display LED1 is driven to display the current and power.
[0028] The above contents are further detailed descriptions of the present invention in combination with specific preferred implementations, and the specific implementation of the present invention cannot be considered to be limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A switching circuit with power voltage and current indication function, characterized in that: It includes a main control MCU, a power supply circuit, an indication circuit and a detection resistor, the input end of the power supply circuit is connected to the input socket, the output end of the power supply circuit is connected to the main control MCU, the indication circuit is connected to the main control MCU, the output end of the main control MCU is connected to the output socket, the detection resistor is connected between the input socket and the output socket and connected to the main control MCU, and the voltage difference of the detection resistor is transmitted to the amplifier of the main control MCU; the power supply circuit includes a power supply chip U1, a capacitor C1 and a capacitor C2, pin 3 of the power supply chip U1 is connected to pin 1 of the input socket, pin 2 of the power supply chip U1 is connected to pin 1 of the main control MCU, one end of the capacitor C1 is connected to pin 3 of the power supply chip U1, one end of the capacitor C2 is connected to pin 2 of the power supply chip U1, the VSS end of the power supply chip U1, the other end of the capacitor C1 and the other end of the capacitor C2 All are grounded; the indication circuit includes a digital tube display screen LED1, pin 1 of the digital tube display screen LED1 is connected to one end of a resistor R1, and the other end of the resistor R1 is connected to pin 2 of the main control MCU, pin 2 of the digital tube display screen LED1 is connected to one end of a resistor R2, and the other end of the resistor R2 is connected to pin 3 of the main control MCU, pin 3 of the digital tube display screen LED1 is connected to one end of a resistor R3, and the other end of the resistor R3 is connected to pin 4 of the main control MCU, pin 4 of the digital tube display screen LED1 is connected to one end of a resistor R4, and the other end of the resistor R4 is connected to pin 15 of the main control MCU, pin 5 of the digital tube display screen LED1 is connected to one end of a resistor R5, and the other end of the resistor R5 is connected to pin 14 of the main control MCU, pin 6 of the digital tube display screen LED1 is connected to one end of a resistor R6, and the other end of the resistor R6 is connected to pin 13 of the main control MCU.
2. The adapter circuit with power voltage and current indication function according to claim 1, characterized in that: Pin 1 of the input socket is connected to pin 1 of the output socket and both are connected to the external voltage VBUS, pin 2 of the input socket is connected to one end of the detection resistor, and the other end of the detection resistor is connected to pin 2 of the output socket.
3. The adapter circuit with power voltage and current indication function according to claim 1, characterized in that: The inverting input terminal of the amplifier is connected to one end of the detection resistor, the inverting input terminal of the amplifier is grounded, the non-inverting input terminal of the amplifier is connected to one end of the resistor R9, the other end of the resistor R9 is connected to the other end of the detection resistor, and the output terminal of the amplifier is output to the main control MCU.
4. The adapter circuit with power voltage and current indication function according to claim 3, characterized in that: Pin 7 of the main control MCU is connected to one end of the resistor R8, and the other end of the resistor R8 is connected to one end of the resistor R9.
5. The adapter circuit with power voltage and current indication function according to claim 4, characterized in that: Pin 10 of the main control MCU is connected to one end of the resistor R7, and the other end of the resistor R7 is connected to one end of the resistor R8.
6. The adapter circuit with power voltage and current indication function according to claim 1, characterized in that: Pin 8 of the main control MCU is connected to one end of a resistor R11, the other end of the resistor R11 is grounded, one end of a resistor R10 is connected to pin 8 of the main control MCU, and the other end of the resistor R10 is connected to an external voltage VBUS.
