CN207764337U - A kind of USB device insertion detection circuit - Google Patents
A kind of USB device insertion detection circuit Download PDFInfo
- Publication number
- CN207764337U CN207764337U CN201721867223.3U CN201721867223U CN207764337U CN 207764337 U CN207764337 U CN 207764337U CN 201721867223 U CN201721867223 U CN 201721867223U CN 207764337 U CN207764337 U CN 207764337U
- Authority
- CN
- China
- Prior art keywords
- usb device
- diode
- npn pipes
- usb
- detection circuit
- 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.)
- Expired - Fee Related
Links
Landscapes
- Power Sources (AREA)
Abstract
The utility model discloses a kind of USB device insertion detection circuits, it includes USB socket, diode, PNP pipe and NPN pipes, the anode of diode is connected to power end, the cathode of diode is connected to the positive pole of USB socket, the emitter of PNP pipe is connected to the anode of diode, the base stage of PNP pipe is connected to the cathode of diode, the collector voltage of PNP pipe is transmitted to the base stage of NPN pipes, the emitter of NPN pipes is grounded, the collector of NPN pipes is connected to high potential by first resistor, the collector of NPN pipes is also connected with a main control unit, the main control unit judges whether USB device is inserted into according to the level state of NPN pipe collectors:When USB socket is inserted into without USB device, the collector of NPN pipes is in high level;When USB socket is inserted into USB device, the collector of NPN pipes is in low level.The utility model only needs simple circuit that the inserting state detection to USB device can be realized, and contributes to host computer to carry out equipment switching, and then improve service efficiency, meet application demand.
Description
Technical field
The utility model is related to electronic equipment connection status detection circuits more particularly to a kind of USB device to be inserted into detection electricity
Road.
Background technology
In many cases, when USB device is plugged in the host computers such as tablet computer, it is required for host computer to USB device
Insert state is detected, and existing USB device mostly uses greatly 5 core USB plugs or 4 core USB plugs, for 5 core USB plugs
Speech, in addition to power pins, data pin, there is also a detection pin, host computer can be sentenced according to the electric signal that the pin is fed back
Break and the inserting state of USB, but for 4 core USB plugs, the pin of detection signal is fed back due to lacking, causes keyboard
For equal USB devices after connecting host computer, host computer cannot detect USB device grafting in time, cannot carry out equipment in time and cut
It changes, cannot be satisfied application requirement.
Utility model content
The technical problem to be solved by the present invention is in view of the deficiencies of the prior art, provide a kind of only need simply
The inserting state detection to USB device can be realized in circuit, contributes to host computer to carry out equipment switching, and then improve using effect
Rate, the USB device insertion detection circuit for meeting application demand.
In order to solve the above technical problems, the utility model adopts the following technical solution.
A kind of USB device insertion detection circuit comprising have USB socket, diode, PNP pipe and NPN pipes, two pole
The anode of pipe is connected to power end, and the cathode of the diode is connected to the positive pole of USB socket, the transmitting of the PNP pipe
Pole is connected to the anode of diode, and the base stage of the PNP pipe is connected to the cathode of diode, the collector voltage of the PNP pipe
It is transmitted to the base stage of NPN pipes, the emitter ground connection of the NPN pipes, the collector of the NPN pipes is connected to by first resistor
The collector of high potential, the NPN pipes is also connected with a main control unit, and the main control unit is according to the level of the NPN pipe collectors
Whether condition adjudgement USB device is inserted into:When the USB socket is inserted into without USB device, the cathode of the diode is hanging, institute
It states PNP pipe and NPN pipes is turned off, the collector of the NPN pipes is in high level;When the USB socket is inserted into USB device, institute
It states diode, PNP pipe and NPN pipes to be both turned on, the collector of the NPN pipes is in low level.
Preferably, the collector of the PNP pipe is connected to the base stage of NPN pipes by second resistance.
Preferably, the resistance value for stating second resistance is 1K Ω.
Preferably, the base stage of the NPN pipes is grounded by 3rd resistor.
Preferably, the resistance value of the 3rd resistor is 10K Ω.
Preferably, the resistance value of the first resistor is 10K Ω.
Preferably, the cathode of the diode passes through capacity earth.
Preferably, the capacitance of the capacitance is 4.7 μ F.
Preferably, the power cathode ground connection of the USB socket, two data pins of the USB socket are connected to master control
Unit.
Preferably, two data pins of the USB socket are grounded by two Transient Suppression Diodes respectively.
USB device insertion detection circuit disclosed by the utility model, advantageous effect compared to existing technologies be,
The utility model is not limited by 4 core USB devices, while the utility model only needs simple circuit to can be realized to USB device
Inserting state detection, contribute to host computer to carry out equipment switching, and then improve service efficiency, meet application demand.
Description of the drawings
Fig. 1 is the schematic diagram of the utility model USB device insertion detection circuit.
Specific implementation mode
The utility model is described in more detail with reference to the accompanying drawings and examples.
The utility model discloses a kind of USB device insertion detection circuits, please refer to Fig. 1 comprising have USB socket J1,
Diode D1, PNP pipe Q1 and NPN pipe Q2, the diode D1 anode be connected to power end 5.3V_IN, the diode D1
Cathode be connected to the positive pole of USB socket J1, the emitter of the PNP pipe Q1 is connected to the anode of diode D1, described
The base stage of PNP pipe Q1 is connected to the cathode of diode D1, and the collector voltage of the PNP pipe Q1 is transmitted to the base stage of NPN pipes Q2,
The emitter of the NPN pipes Q2 is grounded, and the collector of the NPN pipes Q2 is connected to high potential 3.3V by first resistor R1,
The collector of the NPN pipes Q2 is also connected with a main control unit, and the main control unit is according to the level states of the NPN pipes Q2 collectors
Judge whether USB device is inserted into:
When the USB socket J1 is inserted into without USB device, the cathode of the diode D1 is hanging, the PNP pipe Q1 and
NPN pipes Q2 is turned off, and the collector of the NPN pipes Q2 is in high level;
When the USB socket J1 is inserted into USB device, the diode D1, PNP pipe Q1 and NPN pipe Q2 are both turned on, described
The collector of NPN pipes Q2 is in low level.
The operation principle of foregoing circuit is:When the USB socket J1 is inserted into without USB device, USB socket J1 is without negative at this time
It carries, the cathode of the diode D1 is hanging and its both end voltage is identical, causes PNP pipe Q1 and NPN pipe Q2 to be turned off, NPN pipes Q2
Collector high level signal is transmitted to main control unit, when the USB socket J1 has USB device insertion, power end 5.3V_
IN voltages are transmitted to USB device, the diode D1 conductings and the generation pressure drop of its both ends by diode D1 and USB socket J1,
PNP pipe Q1 is caused to be connected, the NPN pipes Q2 is connected and drags down its collector voltage therewith, and the collector of NPN pipes Q2 is at this time
Low level, main control unit can judge whether USB device is plugged according to both level states of NPN pipe Q2 collectors
USB socket J1.Compared to existing technologies, the utility model is not limited by 4 core USB devices, while the utility model only needs
The inserting state detection to USB device can be realized in simple circuit, contributes to host computer to carry out equipment switching, and then raising makes
With efficiency, meet application demand.
In order to play metering function, the collector of the PNP pipe Q1 is connected to the base of NPN pipes Q2 by second resistance R2
Pole.Further, the resistance value of the second resistance R2 is 1K Ω.
In the present embodiment, the base stage of the NPN pipes Q2 is grounded by 3rd resistor R3.Further, the 3rd resistor
The resistance value of R3 is 10K Ω.The resistance value of the first resistor R1 is 10K Ω.
The cathode of the diode D1 is grounded by capacitance C1 as a preferred method,.Further, the capacitance C1
Capacitance be 4.7 μ F.
About other pins of USB socket J1, the power cathode of the USB socket J1 is grounded, and the two of the USB socket J1
A data pin is connected to main control unit.
In order to play a protective role to data-interface, two data pins of the USB socket J1 passed through for two winks respectively
State inhibits diode (2CR1,2CR2) to be grounded.
The above is the utility model preferred embodiment, is not intended to limit the utility model, all in this practicality
Modification, equivalent replacement or the improvement etc. made in novel technical scope, should be included in the model that the utility model is protected
In enclosing.
Claims (10)
1. a kind of USB device insertion detection circuit, which is characterized in that include USB socket, diode, PNP pipe and NPN pipes, institute
The anode for stating diode is connected to power end, and the cathode of the diode is connected to the positive pole of USB socket, the PNP pipe
Emitter be connected to the anode of diode, the base stage of the PNP pipe is connected to the cathode of diode, the current collection of the PNP pipe
Pole tension is transmitted to the base stage of NPN pipes, and the emitter ground connection of the NPN pipes, the collector of the NPN pipes is by first resistor
It is connected to high potential, the collector of the NPN pipes is also connected with a main control unit, and the main control unit is according to the NPN pipe collectors
Level state judge whether USB device is inserted into:
When the USB socket is inserted into without USB device, the cathode of the diode is hanging, and the PNP pipe and NPN pipes are turned off,
The collector of the NPN pipes is in high level;
When the USB socket is inserted into USB device, the diode, PNP pipe and NPN pipes are both turned on, the current collection of the NPN pipes
Pole is in low level.
2. USB device insertion detection circuit as described in claim 1, which is characterized in that the collector of the PNP pipe passes through
Two resistance are connected to the base stage of NPN pipes.
3. USB device insertion detection circuit as claimed in claim 2, which is characterized in that the resistance value of the second resistance is 1K
Ω。
4. USB device insertion detection circuit as described in claim 1, which is characterized in that the base stage of the NPN pipes passes through third
Resistance eutral grounding.
5. USB device insertion detection circuit as claimed in claim 4, which is characterized in that the resistance value of the 3rd resistor is 10K
Ω。
6. USB device insertion detection circuit as described in claim 1, which is characterized in that the resistance value of the first resistor is 10K
Ω。
7. USB device insertion detection circuit as described in claim 1, which is characterized in that the cathode of the diode passes through electricity
Hold ground connection.
8. USB device insertion detection circuit as claimed in claim 7, which is characterized in that the capacitance of the capacitance is 4.7 μ
F。
9. USB device insertion detection circuit as described in claim 1, which is characterized in that the power cathode of the USB socket connects
Two data pins on ground, the USB socket are connected to main control unit.
10. USB device insertion detection circuit as claimed in claim 9, which is characterized in that two data of the USB socket
Pin is grounded by two Transient Suppression Diodes respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201721867223.3U CN207764337U (en) | 2017-12-27 | 2017-12-27 | A kind of USB device insertion detection circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201721867223.3U CN207764337U (en) | 2017-12-27 | 2017-12-27 | A kind of USB device insertion detection circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN207764337U true CN207764337U (en) | 2018-08-24 |
Family
ID=63185355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201721867223.3U Expired - Fee Related CN207764337U (en) | 2017-12-27 | 2017-12-27 | A kind of USB device insertion detection circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN207764337U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111025195A (en) * | 2019-12-19 | 2020-04-17 | 山东爱德邦智能科技有限公司 | Detection circuit |
-
2017
- 2017-12-27 CN CN201721867223.3U patent/CN207764337U/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111025195A (en) * | 2019-12-19 | 2020-04-17 | 山东爱德邦智能科技有限公司 | Detection circuit |
CN111025195B (en) * | 2019-12-19 | 2021-10-19 | 山东爱德邦智能科技有限公司 | Detection circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101963835A (en) | Electronic equipment and method for dynamically allocating USB port power | |
CN107077874A (en) | Power loss is protected | |
CN103455121A (en) | Universal serial bus (USB) power supply control circuit | |
CN108628787A (en) | Interface control circuit | |
CN207764337U (en) | A kind of USB device insertion detection circuit | |
CN101634885A (en) | Detection supply circuit for USB interface | |
CN102404679B (en) | Headset detection circuit and electronic equipment | |
CN105451149B (en) | A kind of loudspeaker plug-pull detecting circuit and electronic equipment | |
CN206180986U (en) | Trigger circuit and earphone restore to throne | |
CN101373394A (en) | Power supply control signal generating apparatus | |
CN103365335A (en) | Signal processing circuit | |
CN102624051A (en) | Mobile phone and charging protection circuit | |
CN203013261U (en) | Intelligent mobile hard disk | |
CN207265995U (en) | It is a kind of to use the key switch electromechanics road with ena-bung function linear voltage regulator | |
CN103166171A (en) | Universal serial bus (USB) overcurrent protection circuit | |
CN204719122U (en) | A kind of voltage detecting warning circuit | |
CN202421457U (en) | Motor over-current detection circuit | |
CN206039739U (en) | HOSTUSB function sharing circuit that charges | |
CN104423519A (en) | Mainboard power supply system | |
CN102385018B (en) | External equipment connection sensing circuit | |
CN104124735B (en) | Charging voltage stabilizing circuit | |
CN207937526U (en) | Power-fail detection circuit on charging pile | |
CN108572936B (en) | USB interface control circuit | |
CN203708369U (en) | Control circuit shared by MHL interface and HDMI interface, and display device | |
CN202143049U (en) | General purpose input output (GPIO) isolating circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180824 Termination date: 20201227 |
|
CF01 | Termination of patent right due to non-payment of annual fee |