CN215987297U - USB insertion detection circuit - Google Patents

USB insertion detection circuit Download PDF

Info

Publication number
CN215987297U
CN215987297U CN202122567741.6U CN202122567741U CN215987297U CN 215987297 U CN215987297 U CN 215987297U CN 202122567741 U CN202122567741 U CN 202122567741U CN 215987297 U CN215987297 U CN 215987297U
Authority
CN
China
Prior art keywords
module
pin
usb
resistor
diode
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
CN202122567741.6U
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.)
Chongqing Diange Technology Group Co ltd
Original Assignee
Chongqing Diange Technology Group 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 Chongqing Diange Technology Group Co ltd filed Critical Chongqing Diange Technology Group Co ltd
Priority to CN202122567741.6U priority Critical patent/CN215987297U/en
Application granted granted Critical
Publication of CN215987297U publication Critical patent/CN215987297U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The utility model discloses a USB insertion detection circuit, which comprises a detection module, a USB female seat, a power supply module and a protocol module, wherein the detection module is used for detecting the USB insertion; the detection module comprises an MCU module, a resistor R1, a resistor R3, a capacitor C1, a voltage stabilizing diode Z1 and a diode D3; the 3.3V voltage end is connected with a wire grounding end GND through a resistor R1 and a capacitor C1; a GPIO1 pin of the MCU module is connected with the cathode of a voltage stabilizing diode Z1 through a resistor R3, and the anode of the voltage stabilizing diode Z1 is connected with the ground end GND of the wire; the cathode of the voltage stabilizing diode Z1 is connected with the common end of the resistor R1 and the capacitor C1, the cathode of the voltage stabilizing diode Z1 is connected with the anode of the diode D3, and the cathode of the diode D3 is connected with the shell of the USB female socket; GPIO2 pin of MCU module is connected with power module and protocol module respectively; the USB female socket is respectively connected with the power supply module and the protocol module; and the power module is in communication connection with the protocol module. When no USB device is accessed, the control power module and the protocol module are not enabled, and power consumption is reduced.

Description

USB insertion detection circuit
Technical Field
The present invention relates to a detection circuit, and more particularly, to a USB insertion detection circuit.
Background
The USB female socket is a connection socket commonly used at present, and is widely applied to charging or data exchange and other scenes, and the shapes of the common USB-typeA and USB-typeC are shown in fig. 1a and 1 b. The female seat of USB is the necessary port of outdoor products such as portable power source, utilizes the female seat of this USB to charge for external USB equipment as shown in figure 2, and power module passes through the female seat of power line connection USB, and power module communication connection protocol module, the female seat of USB is connected in protocol module communication. The power module can adopt a DC/DC module or an AC/DC module, and common DC/DC chips include SC8103, SC8815, TPS 563239, BQ25731 and the like; the protocol module is used for communicating with a load and determining which voltage and power the load needs to charge, common chips include sc2001, cyp3171, FP6601Q and the like, and common protocol modes include BC1.2, QC2.0, QC3.0, Dash, WARP and the like.
Generally, in order to reduce power consumption, the portable device does not start the power module when not in use until the USB socket is plugged in, and the common control method includes:
1. using the key function: after the USB female socket is inserted into the portable equipment, the power supply module can be started by pressing the power supply key on the equipment. However, this method requires manual operation and is inconvenient to use.
2. The power chip or the protocol chip used is provided with an insertion detection function. However, in this method, power is required to be supplied to the power chip or the protocol chip, and the protocol chip consumes energy all the time, which increases energy consumption.
Therefore, a new USB insertion detection circuit is urgently needed to be designed, and the power module is started after the USB female socket is detected to be inserted into the device.
Disclosure of Invention
In order to solve the existing technical problems, the utility model provides a USB plug-in detection circuit, which is characterized in that a detection circuit is added at a USB female socket interface to achieve the purpose of controlling a USB power supply to work by a singlechip after the change is detected.
In order to achieve the above object, the present invention provides a USB insertion detection circuit, which includes a detection module, a USB female socket, a power module, and a protocol module;
the detection module comprises an MCU module, a resistor R1, a resistor R3, a capacitor C1, a voltage stabilizing diode Z1 and a diode D3; the 3.3V voltage end is connected with a wire grounding end GND through a resistor R1 and a capacitor C1; a GPIO1 pin of the MCU module is connected with the cathode of a voltage stabilizing diode Z1 through a resistor R3, and the anode of the voltage stabilizing diode Z1 is connected with the ground end GND of the wire; the cathode of the voltage stabilizing diode Z1 is connected with the common end of the resistor R1 and the capacitor C1, the cathode of the voltage stabilizing diode Z1 is connected with the anode of the diode D3, and the cathode of the diode D3 is connected with the shell of the USB female socket;
the GPIO2 pin of the MCU module is respectively connected with the power module and the protocol module;
the USB female socket is respectively connected with the power supply module and the protocol module;
and the power module is in communication connection with the protocol module.
Furthermore, GPIO2 pins of the MCU module are respectively connected with CS pins of the power supply module and the protocol module.
Further, a field effect transistor Q1 is also included; and a GPIO2 pin of the MCU module is connected with a grid G of a field effect transistor Q1, a source S of the field effect transistor Q1 is respectively connected with power supply ports of the power supply module and the protocol module, and a drain D of the field effect transistor Q1 is connected with a V1 voltage end. Namely, the MCU module controls the power supply of the power module and the two chips used by the protocol module through the MOS tube.
Furthermore, the GND pin and the VCC pin of the USB female socket are respectively connected with the GND pin and the VCC pin of the power module; and the D + pin and the D-pin of the USB female socket are respectively connected with the D + pin and the D-pin of the protocol module.
Furthermore, the SCL pin and the SDA pin of the power module are connected to the SCL pin and the SDA pin of the protocol module, respectively.
In conclusion, the utility model realizes the ultra-low standby power consumption of the whole system, effectively saves electric energy, prolongs the service life of the battery pack and the service life of the circuit, and improves the use safety of the whole system.
Compared with the prior art, the utility model has the technical advantages that:
1. the key operation is omitted, the circuit is simple, and the use is more convenient;
2. when no USB device is accessed, the control power module and the protocol module are not enabled, so that the power consumption is reduced, and the effect of power saving is achieved.
Drawings
FIG. 1a is a schematic diagram of a prior art USB-typeA structure;
FIG. 1b is a schematic diagram of a prior art USB-typeC structure;
FIG. 2 is a schematic block diagram illustrating a USB female socket charging an external USB device according to the prior art;
FIG. 3 is a circuit schematic of one embodiment of the present invention;
FIG. 4 is a circuit schematic of another embodiment of the present invention;
FIG. 5 is a flowchart of the operation of one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the utility model and are not intended to limit the utility model.
As shown in fig. 3, the present invention includes a detection module, a USB female socket, a power module, and a protocol module.
The detection module comprises an MCU module, a resistor R1, a resistor R3, a capacitor C1, a voltage stabilizing diode Z1 and a diode D3. The 3.3V voltage end is connected with a wire grounding end GND through a resistor R1 and a capacitor C1; a GPIO1 pin of the MCU module is connected with the cathode of a voltage stabilizing diode Z1 through a resistor R3, and the anode of the voltage stabilizing diode Z1 is connected with the ground end GND of the wire; the cathode of the zener diode Z1 is connected with the common end of the resistor R1 and the capacitor C1, the cathode of the zener diode Z1 is connected with the anode of the diode D3, and the cathode of the diode D3 is connected with the shell of the USB female socket.
And, the 3.3V voltage end is provided by the system that is equipped with USB power supply equipment, and MCU module is also provided by the system of USB power supply equipment.
The GND pin and the VCC pin of the USB female socket are respectively connected with the GND pin and the VCC pin of the power module; and the D + pin and the D-pin of the USB female socket are respectively connected with the D + pin and the D-pin of the protocol module.
The power module and the protocol module are connected through communication, and an SCL pin and an SDA pin of the power module are respectively connected with an SCL pin and an SDA pin of the protocol module.
And CS pins (namely enabling pins) of the power supply module and the protocol module are respectively connected with GPIO2 pins of the MCU module.
And, the VCC pin is the circuit that is used for giving external USB equipment to charge, and power module charges for USB access device. The D + and D-pins are suitable for communication of the USB equipment, and the SCL and SDA pins are IIC communication ports and used for communication between the communication module and the power module.
The main functions of the components in the circuit are as follows:
the power module is responsible for carrying out the charging of matching mode for the equipment of access, adopts the power supply chip commonly used of cell-phone charger, if: SC8815, SC8812, and the like.
The protocol module is responsible for discerning what kind of charging mode that access equipment needs to inform power module to carry out corresponding output, adopt common, can be used to the chip that USB charges all can, if: SC2001, CYPD3171, etc.
MCU adopts the singlechip chip commonly used, if: 89C52, STM32, STM8, etc. And a GPIO1 pin of the MCU module is connected with an R3 resistor and is responsible for detecting voltage, and then the MCU module starts and stops a power supply module or a protocol module.
The resistor R1 functions to limit current. In practice, the resistor R1 may be a 10K resistor.
The resistor R3 is a current limiting resistor and is used for preventing the current entering the MCU module from being overlarge. In practice, the resistor R3 may be a 10K resistor.
The capacitor C1 functions as a filter and a regulator. In practice, the capacitor C1 may be selected to be a 100nF capacitor.
The zener diode Z1 is a 3.3V zener diode and acts as a voltage regulator to prevent the supply voltage from being too high and damaging the MCU module.
The diode D3 is used to prevent current from flowing back into the tank, and in practice, a common diode is used.
The working principle of the circuit is as follows: and the GPIO1 pin of the MCU module detects whether a device is inserted in real time.
When no USB device is inserted, the shell of the USB female socket is not connected with the wire grounding end GND, but is connected with the main circuit through a diode D3, the voltage to ground of the common end of the capacitor C1 and the resistor R1 which are connected in series is 3.3V, and the pin GPIO1 of the MCU module receives a high level signal, which indicates that no device is connected into the circuit at this time. Then, the MCU module controls the power module and the CS pin of the protocol module through the GPIO2 pin, so that the two chips are in a non-working state;
the male housing on the USB device is typically digitally connected to the USB device. When a USB device is inserted, the shell of the USB female socket is also connected with a digital ground, the GPIO1 pin of the MCU module is grounded through the diode D3, the voltage at two ends of the resistor R1 is 3.3V, the voltage of the serial common end of the capacitor C1 and the resistor R1 is pulled low, and the pin of the GPIO1 is at a low level, which indicates that the device is connected into the circuit. And then, the MCU module controls the CS pins of the power supply module and the protocol module through the GPIO2 pin, so that the two chips work.
As shown in fig. 5, the specific working process of the present invention is as follows:
s1, judging whether the GPIO1 pin of the MCU module is at a low level or not, and detecting whether equipment is inserted or not;
s2, if yes, indicating that a USB device is inserted, connecting the shell of the USB female seat with a wire grounding end GND, grounding a GPIO1 pin of the MCU module through a diode D3, and controlling the power supply module and the protocol module to work through the GPIO2 pin by the MCU module;
if not, the USB device is not plugged, the shell of the USB female socket is not connected with the ground end GND of the wire, the GPIO1 pin of the MCU module receives a high level signal, and the MCU module controls the power module and the protocol module to be out of work through the GPIO2 pin.
In addition, the MCU module of the utility model can add a switch device, such as an MOS tube, a relay or others, into the power supply interfaces of the power module and the protocol module instead of directly controlling the enable pins of the power module and the protocol module.
As shown in fig. 4, the present embodiment is different from the embodiment shown in fig. 3 in that: the power supply ports of the power supply module and the protocol module are respectively connected with the source S of the field effect transistor Q1, the drain D of the field effect transistor Q1 is connected with the voltage end of V1, and the grid G of the field effect transistor Q1 is connected with the GPIO2 pin of the MCU module. Therefore, the MCU module can control the power supply ports of the power module and the protocol module through the field effect transistor Q1, and control the power supply of the two chips to control the operating states of the two chips.
In conclusion, the power supply control circuit has the advantages that the circuit is simple, and when no USB device is accessed, the power supply module and the protocol module are controlled not to be enabled, so that the power consumption is reduced, and the effect of saving power is achieved.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the utility model. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (5)

1. A USB insertion detection circuit is characterized by comprising a detection module, a USB female seat, a power supply module and a protocol module;
the detection module comprises an MCU module, a resistor R1, a resistor R3, a capacitor C1, a voltage stabilizing diode Z1 and a diode D3; the 3.3V voltage end is connected with a wire grounding end GND through a resistor R1 and a capacitor C1; a GPIO1 pin of the MCU module is connected with the cathode of a voltage stabilizing diode Z1 through a resistor R3, and the anode of the voltage stabilizing diode Z1 is connected with the ground end GND of the wire; the cathode of the voltage stabilizing diode Z1 is connected with the common end of the resistor R1 and the capacitor C1, the cathode of the voltage stabilizing diode Z1 is connected with the anode of the diode D3, and the cathode of the diode D3 is connected with the shell of the USB female socket;
the GPIO2 pin of the MCU module is respectively connected with the power module and the protocol module;
the USB female socket is respectively connected with the power supply module and the protocol module;
and the power module is in communication connection with the protocol module.
2. The USB plug-in detection circuit of claim 1, wherein the GPIO2 pin of the MCU module is connected to the CS pin of the power module and the protocol module, respectively.
3. A USB insertion detection circuit according to claim 1 further including a field effect transistor Q1; and a GPIO2 pin of the MCU module is connected with a grid G of a field effect transistor Q1, a source S of the field effect transistor Q1 is respectively connected with power supply ports of the power supply module and the protocol module, and a drain D of the field effect transistor Q1 is connected with a V1 voltage end.
4. A USB plug-in detection circuit according to any of claims 1-3 wherein the GND pin and the VCC pin of the USB female socket are connected to the GND pin and the VCC pin of the power module, respectively; and the D + pin and the D-pin of the USB female socket are respectively connected with the D + pin and the D-pin of the protocol module.
5. A USB insertion detection circuit according to any of claims 1-3 wherein the SCL pin and SDA pin of the power module are connected to the SCL pin and SDA pin of the protocol module, respectively.
CN202122567741.6U 2021-10-25 2021-10-25 USB insertion detection circuit Active CN215987297U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202122567741.6U CN215987297U (en) 2021-10-25 2021-10-25 USB insertion detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202122567741.6U CN215987297U (en) 2021-10-25 2021-10-25 USB insertion detection circuit

Publications (1)

Publication Number Publication Date
CN215987297U true CN215987297U (en) 2022-03-08

Family

ID=80510802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202122567741.6U Active CN215987297U (en) 2021-10-25 2021-10-25 USB insertion detection circuit

Country Status (1)

Country Link
CN (1) CN215987297U (en)

Similar Documents

Publication Publication Date Title
CN105630724B (en) A kind of USB Type C system control circuits
US20140159649A1 (en) Method and apparatus for recharging batteries in a more efficient manner
CN108556669B (en) Vehicle-mounted charger and control device thereof
KR20130114619A (en) Power supply unit cutting off standby electric power and method thereof
CN106786967B (en) Battery management device and battery charging system with same
CN103607010A (en) Charging and discharging control device and method of mobile power source
CN108173327B (en) A kind of auto-power-off energy-saving protective device
CN110994769A (en) Double-battery system and mobile terminal equipment
CN215987297U (en) USB insertion detection circuit
CN203014439U (en) Automatic identification apparatus of charger
CN207490595U (en) Power-supplying circuit and electrical equipment
US11239614B2 (en) Sofa USB socket
CN212965358U (en) Broken line detection circuit with load access automatic wake-up function and power bank
CN114552710A (en) Automatic power-off method and device for intelligent charger, electronic equipment and medium
CN114285128A (en) Outdoor equipment power supply control circuit, outdoor equipment power supply system and outdoor equipment
CN113525143A (en) CC signal processing system
CN207164696U (en) A kind of low-power dissipation power supply
CN214590606U (en) Direct current power-on protection controller after external switch self-locking
CN217642782U (en) Automatic identification switching circuit of OTG voltage and charging voltage
CN113900871A (en) Circuit and method for detecting insertion of USB (universal serial bus) equipment
CN214337577U (en) Power supply circuit of mobile terminal and mobile terminal
CN216184632U (en) Alternating current charging awakens acquisition circuit up
CN219446741U (en) Storage battery electricity supplementing system and electric automobile
CN219204172U (en) Power supply circuit and electronic equipment
CN220985337U (en) Insufficient-power charging circuit suitable for battery protection system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant