CN214960125U - Earphone insertion detection circuit with power supply function - Google Patents

Earphone insertion detection circuit with power supply function Download PDF

Info

Publication number
CN214960125U
CN214960125U CN202121184762.3U CN202121184762U CN214960125U CN 214960125 U CN214960125 U CN 214960125U CN 202121184762 U CN202121184762 U CN 202121184762U CN 214960125 U CN214960125 U CN 214960125U
Authority
CN
China
Prior art keywords
control switch
power supply
power
signal path
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.)
Active
Application number
CN202121184762.3U
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.)
Shenzhen Horn Audio Co Ltd
Original Assignee
Shenzhen Horn Audio 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 Shenzhen Horn Audio Co Ltd filed Critical Shenzhen Horn Audio Co Ltd
Priority to CN202121184762.3U priority Critical patent/CN214960125U/en
Application granted granted Critical
Publication of CN214960125U publication Critical patent/CN214960125U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model discloses an earphone insertion detection circuit with a power supply function, which comprises an earphone female seat, a first power supply end, a first control switch and a second control switch, wherein the first power supply end is connected with a fifth pin of the earphone female seat through a pull-up resistor R96; the control end of the first control switch is connected with the fifth pin of the earphone female socket, and the first control switch enables the first signal path to be switched on or switched off; the control end of the second control switch is connected with the ground end to form a first signal path, and the second control switch is used for correspondingly controlling the conduction or the cut-off of the second signal path according to the conduction or the cut-off of the first signal path; the level change of the plugging state is converted into the on-off of a second signal path between the second power supply end and the MCU, and then a power supply end is led out from the second signal path on the side, deviating from the second power supply end, of the second control switch, and power is supplied to other circuits after the second signal path is conducted, so that the purpose of supplying power to other circuits when a male plug is inserted is achieved.

Description

Earphone insertion detection circuit with power supply function
Technical Field
The utility model relates to an earphone technical field especially relates to an earphone of subsidiary power supply function inserts detection circuitry.
Background
The 3.5AUX plugging state detection of the game earphones on the market at present is to directly detect the high and low levels through a GPIO port of an MCU (microprogrammed control Unit) to judge whether the earphone is plugged, so that a function of detecting external equipment is achieved, but the method cannot be used as a power supply switch to supply power to other circuits through the 3.5AUX plugging, and the function is single.
SUMMERY OF THE UTILITY MODEL
The utility model aims at providing an earphone of subsidiary power supply function inserts detection circuitry aims at solving prior art, and unable plug through 3.5AUX comes to supply power for other circuit power supply, problem of function singleness as power switch.
In a first aspect, an embodiment of the present invention provides an earphone insertion detection circuit with a power supply function, including a female earphone seat, a first power end, a first control switch and a second control switch.
The first power end is connected with a power supply and is connected with the fifth pin of the earphone female socket through a pull-up resistor R96; the control end of the first control switch is connected with a fifth pin of the earphone female socket, and the first control switch enables a first signal path to be switched on or switched off; the control end of the second control switch is connected with the ground end and is a first signal path, and the second control switch is used for correspondingly controlling the conduction or the cut-off of a second signal path according to the conduction or the cut-off of the first signal path;
the pin from a second power supply end to the GPIO1 pin of the MCU is a second signal path, the second power supply end is connected with the power supply, a first voltage-dividing resistor R45 is arranged between the second control switch and the GPIO1 pin of the MCU, and one end of the first voltage-dividing resistor R45, which is connected with the second control switch, is connected with an external power supply end.
The utility model discloses a set up first control switch and second control switch respectively, change the level of plug state and convert the break-make of second signal route between second power end and MCU's GPIO1 pin, and then through drawing forth a feeder nose on the second signal route that deviates from second power end one side at second control switch, for other circuit power supplies after the second signal route switches on, realize the purpose for other circuit power supplies when inserting public first plug.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without any creative effort.
Fig. 1 is a circuit structure diagram of an earphone insertion detection circuit with a power supply function provided by the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, of the embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, an earphone insertion detection circuit with a power supply function includes an earphone socket, a first power source terminal, a first control switch, and a second control switch.
The first power end is connected with a power supply and is connected with the fifth pin of the earphone female socket through a pull-up resistor R96; the control end of the first control switch is connected with a fifth pin of the earphone female socket, and the first control switch enables a first signal path to be switched on or switched off; the control end of the second control switch is connected with the ground end and is a first signal path, and the second control switch is used for correspondingly controlling the conduction or the cut-off of a second signal path according to the conduction or the cut-off of the first signal path;
the pin from a second power supply end to the GPIO1 pin of the MCU is a second signal path, the second power supply end is connected with the power supply, a first voltage-dividing resistor R45 is arranged between the second control switch and the GPIO1 pin of the MCU, and one end of the first voltage-dividing resistor R45, which is connected with the second control switch, is connected with an external power supply end.
In this embodiment, the fifth pin of the earphone female socket is grounded when the male plug is not inserted, the control terminal of the first control switch at this time is at a low level, the first control switch controls the first signal path to be cut off, so that the control terminal of the second control switch is not connected to the ground, the control terminal of the second control switch is still at a high level, the second control switch controls the second signal path to be cut off, so that an open circuit is formed between the second power supply terminal and the GPIO1 pin of the MCU, the GPIO1 pin of the MCU does not receive a high level, the MCU logically determines that the male plug is not inserted, and the function of detecting whether the male plug is inserted into the earphone female socket is achieved.
After the male plug is inserted into the female earphone seat, the fifth pin of the female earphone seat is disconnected from the ground, the first power supply end stretches to a high level through the pull-up resistor R96, the first control switch controls the first signal path to be conducted at the moment, the control end of the second control switch is grounded, the second signal path is controlled to be conducted by the second control switch, a power supply end only needs to be led out from the second signal path between the second control switch and the first divider resistor R45 at the moment, the second power supply end can supply power for a circuit on the power supply end through the second signal path, and the male plug is detected to be inserted or not and meanwhile the circuit on the power supply end is supplied with power.
The first power supply end and the second power supply end are both connected with the anode of the battery.
The pull-up resistor R96 prevents the first power supply end from being directly grounded, and when the male plug is inserted, the first power supply end plays a role in pulling up the level of the fifth pin of the earphone female seat.
The first voltage dividing resistor R45 prevents the second power supply end from being directly connected to a GPIO1 pin of the MCU; because the required voltage of GPIO1 pin and the power supply end of MCU is different, so kept apart the GPIO1 pin of power supply end and MCU through first divider resistance R45 for the voltage of power supply end can be close to the voltage of second power supply end, and GPIO1 pin of MCU is the voltage after passing through first divider resistance R45 partial pressure.
The first power source terminal is VBAT1 in fig. 1, the second power source terminal is VBAT2 in fig. 1, the power SUPPLY terminal is VDD _ SUPPLY, and the earphone socket is J1 in fig. 1.
The embodiment that the second control switch is at the high level may be that an external circuit pulls the high level, or that the second control switch is connected to the power supply through a resistor, which is many ways, and will not be described here.
In an embodiment, the first control switch includes a N-MOS transistor Q8, the control terminal of the N-MOS transistor Q8 is connected to the fifth pin of the headset female base, the source of the N-MOS transistor Q8 is grounded, and the drain of the N-MOS transistor Q8 is connected to the control terminal of the second control switch.
In this embodiment, the first control switch is an N-MOS transistor, and the N-MOS transistor plays a role in controlling low-level turn-off and high-level turn-on.
In one embodiment, the second control switch includes a P-MOS transistor Q3, the control terminal of the P-MOS transistor Q3 is connected to one terminal of the first control switch, the other terminal of the first control switch is grounded, the source of the P-MOS transistor Q3 is connected to the second power supply terminal, and the drain of the P-MOS transistor Q3 is connected to the external power supply terminal.
In this embodiment, the second control switch is a P-MOS transistor, and the P-MOS transistor plays a role in controlling the high-level turn-off and the low-level turn-on.
The first control switch and the second control switch in the above two embodiments may also be other control circuits or control electronics having high-level off and low-level on control effects.
In one embodiment, the control terminal of the first control switch is grounded through a first filtering module, and the first filtering module comprises a first capacitor C50 and a second capacitor C47 which are connected in parallel.
In this embodiment, the first filtering module is used for filtering.
In an embodiment, a first voltage dividing module is disposed between the control terminals of the first control switch and the second control switch, and the first voltage dividing module includes a second voltage dividing resistor R112.
In this embodiment, the first voltage dividing module is used for voltage division.
In an embodiment, a second voltage dividing module is disposed between the control terminal of the second control switch and the second power terminal, and the second voltage dividing module includes a third voltage dividing resistor R100.
In this embodiment, the second voltage dividing module is used for dividing voltage, and is aimed at keeping the control end of the second control switch at a cut-off level when the first control switch is turned off, so as to prevent the second control switch from controlling the second signal path to be turned on, and thus the plugging state of the male plug cannot be detected.
In one embodiment, the second power supply terminal is grounded through a second filtering module, and the second filtering module includes a third capacitor C31.
In this embodiment, the second filtering module is used for filtering.
In one embodiment, the external power supply terminal is grounded through a third filtering module, and the third filtering module includes a fourth capacitor C30.
In this embodiment, the third filtering module is used for filtering.
In one embodiment, the GPIO1 pin of the MCU is grounded through a third voltage division module, which includes a fourth voltage division resistor R139.
In this embodiment, the third voltage dividing module is used for voltage division.
In one embodiment, the power source is the positive electrode of a battery.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope of the present invention, and these modifications or replacements should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A power supply capable earphone insertion detection circuit, comprising:
a headset female base;
the first power end is connected with a power supply and is connected with the fifth pin of the earphone female socket through a pull-up resistor R96;
the control end of the first control switch is connected with the fifth pin of the earphone female socket, and the first control switch enables a first signal path to be switched on or switched off;
the control end of the second control switch to the grounding end is a first signal path, and the second control switch is used for correspondingly controlling the conduction or the cut-off of a second signal path according to the conduction or the cut-off of the first signal path;
the pin from a second power supply end to the GPIO1 pin of the MCU is a second signal path, the second power supply end is connected with the power supply, a first voltage-dividing resistor R45 is arranged between the second control switch and the GPIO1 pin of the MCU, and one end of the first voltage-dividing resistor R45, which is connected with the second control switch, is connected with an external power supply end.
2. The power-supplied earphone insertion detection circuit according to claim 1, wherein: the first control switch comprises an N-MOS transistor Q8, the control end of the N-MOS transistor Q8 is connected with the fifth pin of the earphone female seat, the source electrode of the N-MOS transistor Q8 is grounded, and the drain electrode of the N-MOS transistor Q8 is connected with the control end of the second control switch.
3. The power-supplied earphone insertion detection circuit according to claim 1, wherein: the second control switch comprises a P-MOS tube Q3, the control end of the P-MOS tube Q3 is connected with one end of the first control switch, the other end of the first control switch is grounded, the source electrode of the P-MOS tube Q3 is connected with the second power supply end, and the drain electrode of the P-MOS tube Q3 is connected with the external power supply end.
4. The power-supplied earphone insertion detection circuit according to claim 1, wherein: the control end of the first control switch is grounded through a first filtering module, and the first filtering module comprises a first capacitor C50 and a second capacitor C47 which are connected in parallel.
5. The power-supplied earphone insertion detection circuit according to claim 1, wherein: a first voltage division module is arranged between the control ends of the first control switch and the second control switch, and the first voltage division module comprises a second voltage division resistor R112.
6. The power-supplied earphone insertion detection circuit according to claim 1, wherein: a second voltage division module is arranged between the control end of the second control switch and the second power end, and the second voltage division module comprises a third voltage division resistor R100.
7. The power-supplied earphone insertion detection circuit according to claim 1, wherein: the second power supply terminal is grounded through a second filtering module, which includes a third capacitor C31.
8. The power-supplied earphone insertion detection circuit according to claim 1, wherein: the external power supply end is grounded through a third filtering module, and the third filtering module comprises a fourth capacitor C30.
9. The power-supplied earphone insertion detection circuit according to claim 1, wherein: and the GPIO1 pin of the MCU is grounded through a third voltage division module, and the third voltage division module comprises a fourth voltage division resistor R139.
10. The power-supplied earphone insertion detection circuit according to claim 1, wherein: the power source is the positive pole of a battery.
CN202121184762.3U 2021-05-28 2021-05-28 Earphone insertion detection circuit with power supply function Active CN214960125U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202121184762.3U CN214960125U (en) 2021-05-28 2021-05-28 Earphone insertion detection circuit with power supply function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202121184762.3U CN214960125U (en) 2021-05-28 2021-05-28 Earphone insertion detection circuit with power supply function

Publications (1)

Publication Number Publication Date
CN214960125U true CN214960125U (en) 2021-11-30

Family

ID=79056254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202121184762.3U Active CN214960125U (en) 2021-05-28 2021-05-28 Earphone insertion detection circuit with power supply function

Country Status (1)

Country Link
CN (1) CN214960125U (en)

Similar Documents

Publication Publication Date Title
US7106566B2 (en) Power adapter interface circuitry for protecting a battery operated system
WO2018113378A1 (en) Device for detecting plugging state of electrical connector, and receptacle and plug of electrical connector
EP2863652A1 (en) Audio interface self-adaptation device
CN103779829A (en) Load protection circuit
CN110944076A (en) Electronic equipment and accessory with quick charging and audio transmission functions
CN109586110A (en) Socket is inserted into automatic detection circuit and mobile terminal
CN103391495A (en) Automatic earphone adaptation circuit and adaptation method thereof
US8437484B2 (en) Switching circuit and electronic device using the same
CN106027012A (en) Pull-down resistor switching circuit
CN214960125U (en) Earphone insertion detection circuit with power supply function
CN111315612B (en) Sleep circuit of vehicle-mounted charger
CN109066627B (en) Protection circuit for hot plug detection port with HPD and ESD
CN206650453U (en) Multiplex roles quick charge cable
CN113746079B (en) Hot plug circuit, control device and equipment
CN107343234B (en) Intelligent earphone
CN218103478U (en) Input circuit capable of identifying moving-coil microphone and electret condenser microphone
CN219760169U (en) Socket insertion detection circuit and USB sound card
CN113595193B (en) Communication protocol authentication device and connecting wire
CN205792498U (en) A kind of pull down resistor on-off circuit
CN216721167U (en) Hot plug circuit and electronic equipment
CN212008731U (en) Multifunctional voltage detection device without external power supply
CN214627346U (en) Circuit controlled by 3.5mm connector and used for dual-mode switching
CN212542917U (en) Multi-joint data line device
CN217135177U (en) Charging circuit and electronic product
CN112310755B (en) Charging data transmission circuit, magnetic suction seat and charging data line

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant