1. Technical Field
The present disclosure relates to electronic devices, and particularly to an electronic device with a connector detection circuit.
2. Description of Related Art
Universal serial bus (USB) and serial advanced technology attachment (SATA) are popular connector communication standards used on many electronic devices. For example, a USB device or a USB data cable with a USB connector is usually connected to a computer for transmitting data. However, when the transmission of data fails, it is difficult to know whether the USB connector has an insufficient contact with the computer or whether the USB device itself is defective.
Many aspects of the present disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present embodiments.
The disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references can mean “at least one.”
Referring to
The pressure sensing module 120 comprises four pressure sensing units 122, 124, 126, and 128. The pressure sensing unit 122 is located under the power pin VCC of the connector 11 and is connected to the switch unit 129. The pressure sensing unit 124 is located under the first data pin D+ of the connector 11 and is connected to the switch unit 129. The pressure sensing unit 126 is located under the second data pin D− of the connector 11 and is connected to the switch unit 129. The pressure sensing unit 128 is located under the ground pin GND of the connector 11 and is connected to the switch unit 129. The pressure sensing unit 122 senses whether there is a pressure applied on the power pin VCC of the connector 11 by the power pin VCC of the connector 21, and outputs the sensed result to the switch unit 129. The pressure sensing unit 124 senses whether there is a pressure applied on the first data pin D+ of the connector 11 by the first data pin D+ of the connector 21, and outputs the sensed result to the switch unit 129. The pressure sensing unit 126 senses whether there is a pressure applied on the second data pin D− of the connector 11 by the second data pin D− of the connector 21, and outputs the sensed result to the switch unit 129. The pressure sensing unit 128 senses whether there is a pressure applied on the ground pin GND of the connector 11 by the ground pin GND of the connector 21, and outputs the sensed result to the switch unit 129.
The pressure sensing unit 122 comprises a bridge circuit 121, an amplifier U1, and four resistors R5-R8. The bridge circuit 121 comprises four piezoresistors R1-R4. The amplifier U1 includes a non-inverting input, an inverting input, an output terminal, a power terminal, and a ground terminal. A first end of the piezoresistor R1 is connected to a power supply VCC. A second end of the piezoresistor R1 functions as a first output terminal of the bridge circuit 121 and is grounded through the piezoresistor R4. A first end of the piezoresistor R2 is connected to the power supply VCC. A second end of the piezoresistor R2 functions as a second output terminal of the bridge circuit 121 and is grounded through the piezoresistor R3. The non-inverting input of the amplifier U1 is connected to the first output terminal of the bridge circuit 121 through the resistor R5, and grounded through the resistor R6. The inverting input of the amplifier U1 is connected to the second output terminal of the bridge circuit 121 through the resistor R7. The output terminal of the amplifier U1 functions as an output terminal of the pressure sensing unit 122 and is connected to the inverting input of the amplifier U1 through the resistor R8. The power terminal of the amplifier U1 is connected to the power supply VCC. The ground terminal of the amplifier U1 is grounded.
When none of the four piezoresistors R1-R4 of the bridge circuit 121 experience pressure from the power pin VCC of the connector 11, a voltage difference between the first output and the second output of the bridge circuit 121 is zero, which means the bridge circuit 121 is balanced. A voltage of the non-inverting input of the amplifier U1 is equal to a voltage of the non-inverting input of the amplifier U1, and the output terminal of the amplifier U1 outputs a low level signal, such as logic 0.
When any one of the piezoresistors R1-R4 of the bridge circuit 122 is pressed by the power pin VCC of the connector 11, a voltage difference between the first output and the second output of the bridge circuit 121 is generated, which means that the bridge circuit 121 is unbalanced. Resistances of the piezoresistors R1-R4 and the resistors R5-R8 are preset, to make the voltage of the non-inverting input of the amplifier U1 greater than the voltage of the inverting input of the amplifier U1 when there is a voltage difference between the first output terminal and the second output terminal of the bridge circuit 121. The output terminal of the amplifier U1 thus outputs a high level signal, such as logic 1.
The circuit structure and working principle of each of the pressure sensing units 124, 126, and 128 is the same as that of the pressure sensing unit 122.
The switch unit 129 comprises five electronic switches Q1-Q5. Each of the electronic switches Q1-Q5 comprises a first terminal, a second terminal, and a third terminal The first terminal of the electronic switch Q1 is connected to the output terminal of the pressure sensing unit 122 through a resistor R9. The second terminal of the electronic switch Q1 is connected to the power supply VCC through a resistor R10. The first terminal of the electronic switch Q2 is connected to an output terminal of the pressure sensing unit 124 through a resistor R19. The second terminal of the electronic switch Q2 is connected to the third terminal of the electronic switch Q1. The first terminal of the electronic switch Q3 is connected to an output terminal of the pressure sensing unit 126 through a resistor R29. The second terminal of the electronic switch Q3 is connected to the third terminal of the electronic switch Q2. The first terminal of the electronic switch Q4 is connected to an output terminal of the pressure sensing unit 128 through a resistor R39. The second terminal of the electronic switch Q4 is connected to the third terminal of the electronic switch Q3. The third terminal of the electronic switch Q4 is grounded. The first terminal of the electronic switch Q5 is connected to the second terminal of the electronic switch Q1. The second terminal of the electronic switch Q5 is connected to a cathode of the LED D. The third terminal of the electronic switch Q5 is grounded. An anode of the LED D is connected to the power supply VCC through a resistor R20.
If the connector 21 of the connection device 20 has a sufficient connection a sufficient connection with the connector 11 of the electronic device 10 after the connector 21 is inserted in the connector 11, each pin of the connector 11 is in respective contact with each pin of the connector 21. The power pin VCC, the first data pin D+, the second data pin D−, and the ground pin GND of the connector 11 experience pressure respectively from the power pin VCC, the first data pin D+, the second data pin D−, and the ground pin GND of the connector 21. Each output terminal of the pressure sensing units 122, 124, 126, and 128 outputs a high level signal. The electronic switches Q1-Q4 are turned on. The electronic switch Q5 is turned on, because of the first terminal of the electronic switch Q5 receiving a low level signal from the second terminal of the electronic switch Q1. The LED D is lit up to indicate that the connector 11 and the connector 21 have a sufficient contact with each other.
If the connection made by the connection device 20 to the connector 11 of the electronic device 10 is less than optimal after the connector 21 is inserted to the connector 11, at least one of the pins of the connector 11 may not be in contact with the corresponding pin of the connector 21. For example, the power pin VCC of the connector 11 corresponding to the sensing unit 122 may not be in contact with the power pin VCC of the connector 21. The pressure sensing unit 122 thus cannot get a pressure reading. The output terminal of the pressure sensing unit 122 outputs a low level signal. The electronic switch Q1 stays turned off after receiving the low level signal from the output terminal of the pressure sensing unit 122. The electronic switch Q5 stays turned off because of the first terminal of the electronic switch Q5 receiving a high level signal from the second terminal of the electronic switch Q1. The LED D is not lit up, which indicates that the connector 11 does not have a sufficient connection with the connector 21.
In the embodiment, the connector detection circuit 12 detects the integrity of the connections made by the USB connectors. Each of the electronic switches Q1-Q4 is an npn-type bipolar junction transistor (BJT). The first terminal, the second terminal, and the third terminal of each of the electronic switches Q1-Q4 are a base, a collector, and an emitter of the npn-type BJT, respectively. The electronic switch Q5 is a p-channel metal-oxide semiconductor field-effect transistor (PMOSFET). The first terminal, the second terminal, and the third terminal of the electronic switch Q5 are a gate, a source, and a drain of the PMOSFET, respectively. In other embodiments, the connector detection circuit 12 detects the integrity of connection of other types of connectors, such as serial advanced technology attachment (SATA) connectors, and the number of the pressure sensing units of the pressure sensing module 120 and the number of the electronic switches of the switch unit 129 can be changed to correspond to the number of pins of the connector to be detected by the connector detection circuit 12. Each of the electronic switches Q1-Q4 can be an n-channel metal-oxide semiconductor field-effect transistor or another type of electronic switch having similar functions. The electronic switch Q5 can be a pnp-type BJT or another type of electronic switch having similar functions. The LED D can be replaced by a buzzer or other type of indicator having similar functions.
While the disclosure has been described by way of example and in terms of preferred embodiment, it is to be understood that the disclosure is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the range of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
2012 1 05891041 | Dec 2012 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
5486119 | Nabeshima | Jan 1996 | A |
Number | Date | Country | |
---|---|---|---|
20140187078 A1 | Jul 2014 | US |