Circuit for realizing charging and communication functions of TWS charging box and earphone
Technical Field
The invention discloses a charging circuit, in particular relates to a circuit for realizing charging and communication functions of a TWS charging box and an earphone, and belongs to the technical field of charging.
Background
With the development of smart phones in recent years, the smart phones have become the main interface for multimedia such as music, movies, and games. With the development of wireless technologies and the simplification of mobile phone structures, the proportion of wireless headsets, such as bluetooth headsets, is gradually increased, and with the popularization of wireless headsets, especially TWS headsets, the design of TWS thimble and charging bin is increasing.
At present, a charging box with a plurality of wireless earphones only has a storage function, and a function of data information interaction with the earphones is not realized.
Disclosure of Invention
Aiming at the problem that the charging box of the wireless earphone in the prior art does not realize the function of data information interaction with the earphone, the invention provides a circuit for realizing the functions of charging and communication between the TWS charging box and the earphone, which adopts an output circuit structure for controlling pulse signals, thereby realizing the function of data information interaction with the earphone by transmitting artificial ideas to the earphone through the charging box.
The technical scheme adopted by the invention for solving the technical problems is as follows: the utility model provides a realize circuit that TWS charges box and earphone charge and communication function, realization TWS charge box and earphone charge and communication function's circuit including level switch module, control module, the earphone interface, power module and power module, power module's power output pin is connected with level switch module's power input end, level switch module's power output end is connected with the power input end of earphone interface, control module's bootstrapping enables the pin and is connected with power module's the pin that steps up, control module's level control output pin is connected with level switch module's control switch-on end, control module's analog signal input pin is connected with the earphone interface of controlling, power module is used for supplying power.
The level switch module comprises a first high level conduction switch element, a second high level conduction switch element and a low level conduction switch element, wherein the power supply input end of the level switch module is the controlled conduction input end of the low level conduction switch element, the controlled conduction input end of the low level conduction switch element is connected with the power supply output pin of the power supply module, the controlled conduction output end of the low level conduction switch element is connected with the power supply input end of the earphone interface, a resistor R8 is connected between the controlled conduction input end of the low level conduction switch element and the control conduction end of the low level conduction switch element, the control conduction end of the low level conduction switch element is connected with the controlled conduction input end of the first high level conduction switch element, the controlled conduction output end of the first high level conduction switch element is grounded, the control conduction end of the level switch module is the control conduction end of the first high level conduction switch element, a resistor R17 is connected between the controlled conduction output end of the first high level conduction switch element and the control conduction end of the first high level conduction switch element, the control module comprises a first level control output pin and a second level control output pin, the control conduction end of the first high level conduction switch element is connected with the first level control output pin of the control module, the controlled conduction output end of the low level conduction switch element is connected with the controlled conduction input end of the second high level conduction switch element, the controlled conduction output end of the second high level conduction switch element is grounded, the control pulse signal end of the level switch module is the control conduction end of the second high level conduction switch element, and a resistor R18 is connected between the controlled conduction output end of the second high level conduction switch element and the control conduction end of the second high level conduction switch element, and the control conduction end of the second high-level conduction switch element is connected with a second level control output pin of the control module, and the power output end of the level switch module is the controlled conduction output end of the low-level conduction switch element.
The control module adopts a level control chip U3, the power output end of the power supply module is connected with the power input pin of the level control chip U3 through a resistor R10, the control level pin of the level control chip is grounded through a key SW1, the power input pin of the level control chip U3 is connected with a capacitor C6, the other end of the capacitor C6 is grounded, and the ground pin of the level control chip U3 is grounded.
The right earphone interface of the earphone interface is connected with a first analog signal input pin of a level control chip U3 of the control module through a resistor R12, a resistor R11 is connected between the right earphone interface of the earphone interface and a common end of a resistor R12, the other end of the resistor R11 is grounded, a capacitor C8 is connected between a resistor R12 and the common end of the first analog signal input pin of the level control chip U3 of the control module, the other end of the capacitor C8 is grounded, the left earphone interface of the earphone interface is connected with a second analog signal input pin of the level control chip U3 of the control module through a resistor R20, a resistor R13 is connected between the common end of the left earphone interface of the earphone interface and a resistor R20, the other end of the resistor R13 is grounded, a capacitor C11 is connected between the resistor R20 and the common end of the second analog signal input pin of the level control chip U3 of the control module, the other terminal of the capacitor C11 is connected to ground.
The level switch module comprises a first high level conduction switch element, a second high level conduction switch element and a low level conduction switch element, wherein the power supply input end of the level switch module is the controlled conduction input end of the low level conduction switch element, the controlled conduction input end of the low level conduction switch element is connected with the power supply output pin of the power supply module, the controlled conduction output end of the low level conduction switch element is connected with the power supply input end of the earphone interface, a resistor R8 is connected between the controlled conduction input end of the low level conduction switch element and the control conduction end of the low level conduction switch element, the control conduction end of the low level conduction switch element is connected with the controlled conduction input end of the first high level conduction switch element, the controlled conduction output end of the first high level conduction switch element is grounded, the control conduction end of the level switch module is the control conduction end of the first high level conduction switch element, a resistor R17 is connected between the controlled conduction output end of the first high-level conduction switch element and the control conduction end of the first high-level conduction switch element, the control conduction end of the first high-level conduction switch element is connected with a first level control output pin of the control module, the controlled conduction output end of the low-level conduction switch element is connected with the controlled conduction input end of the second high-level conduction switch element, the controlled conduction output end of the second high-level conduction switch element is grounded, the control conduction end of the second high-level conduction switch element is connected with the control conduction end of the low-level conduction switch element, and the power output end of the level switch module is the controlled conduction output end of the low-level conduction switch element.
The high-level conduction switch element adopts an NMOS transistor, the controlled conduction input end of the high-level conduction switch element is the drain electrode of the NMOS transistor, the controlled conduction output end of the high-level conduction switch element is the source electrode of the NMOS transistor, and the control conduction end of the high-level conduction switch element is the grid electrode of the NMOS transistor.
The low-level conduction switch element adopts a PMOS transistor, the controlled conduction input end of the low-level conduction switch element is the source electrode of the PMOS transistor, the controlled conduction output end of the low-level conduction switch element is the drain electrode of the PMOS transistor, and the control conduction end of the low-level conduction switch element is the grid electrode of the PMOS transistor.
The first high-level conduction switch element adopts an NPN type triode, the controlled conduction input end of the first high-level conduction switch element is the collector of the NPN type triode, the controlled conduction output end of the first high-level conduction switch element is the emitter of the NPN type triode, and the controlled conduction end of the first high-level conduction switch element is the base of the NPN type triode.
The low level switch-on switch element adopts a PNP type triode, the controlled switch-on input end of the low level switch-on switch element is an emitting electrode of the PNP type triode, the controlled switch-on output end of the low level switch-on switch element is a collecting electrode of the PNP type triode, and the control switch-on end of the low level switch-on switch element is a base electrode of the PNP type triode.
The power module adopt the power chip, the battery input pin of steady voltage chip is connected with power module's power output end, the on-off control pin of steady voltage chip is connected with power module's power output end through inductance L1, power module's power input end ground connection, steady voltage chip's drive current sets up the pin and passes through resistance R9 ground connection, steady voltage chip's bootstrap pin of stepping up is connected with control module's enable pin, steady voltage chip's power input pin passes through electric capacity C7 ground connection, steady voltage chip's power output pin output + 5V.
The invention has the beneficial effects that: the circuit for realizing the charging and communication functions of the TWS charging box and the earphone can charge the earphone and can perform data information interaction with the earphone.
The invention will be further described with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a block diagram of the circuit of the present invention.
Fig. 2 is a schematic circuit diagram of the TWS charging box and the headset for charging and communication according to the present invention.
Fig. 3 is a schematic circuit diagram of a second embodiment of a circuit for implementing the TWS charging box and the headset charging and communication functions in the present invention.
Detailed Description
The present embodiment is a preferred embodiment of the present invention, and other principles and basic structures that are the same as or similar to the present embodiment are within the scope of the present invention.
Please refer to fig. 1 to fig. 2 in combination, the present invention is a circuit for implementing charging and communication functions of a TWS charging box and an earphone, the circuit for implementing charging and communication functions of the TWS charging box and the earphone includes a level switch module, a control module, an earphone interface, a power module and a power supply module, a power output pin of the power module is connected to a power input end of the level switch module, a power output end of the level switch module is connected to a power input end of the earphone interface, an enable pin of the control module is connected to a bootstrap pin of the power module, a level control output pin of the control module is connected to a control conducting end of the level switch module, an analog signal input pin of the control module is connected to left and right earphone interfaces of the earphone interface, and the power supply module is used for supplying power.
In this embodiment, the level switch module includes a first high level conducting switch element, a second high level conducting switch element and a low level conducting switch element, a power input end of the level switch module is a controlled conducting input end of the low level conducting switch element, a controlled conducting input end of the low level conducting switch element is connected to a power output pin of the power module, a controlled conducting output end of the low level conducting switch element is connected to a power input end of the earphone interface, a resistor R8 is connected between the controlled conducting input end of the low level conducting switch element and a control conducting end of the low level conducting switch element, a control conducting end of the low level conducting switch element is connected to the controlled conducting input end of the first high level conducting switch element, the controlled conducting output end of the first high level conducting switch element is grounded, and the control conducting end of the level switch module is a control conducting end of the first high level conducting switch element, a resistor R17 is connected between the controlled conduction output end of the first high level conduction switch element and the control conduction end of the first high level conduction switch element, the control module comprises a first level control output pin and a second level control output pin, the control conduction end of the first high level conduction switch element is connected with the first level control output pin of the control module, the controlled conduction output end of the low level conduction switch element is connected with the controlled conduction input end of the second high level conduction switch element, the controlled conduction output end of the second high level conduction switch element is grounded, the control pulse signal end of the level switch module is the control conduction end of the second high level conduction switch element, and a resistor R18 is connected between the controlled conduction output end of the second high level conduction switch element and the control conduction end of the second high level conduction switch element, and the control conduction end of the second high-level conduction switch element is connected with a second level control output pin of the control module, and the power output end of the level switch module is the controlled conduction output end of the low-level conduction switch element. Through the aforesaid, control module when the box that charges is to level switch module output communication data, makes on its charging circuit +5V voltage become the data pulse ripples, and the earphone module passes through input port and discerns the data pulse ripples to realize the box that charges and the earphone reaches the information interaction, when control module when the box that charges is to level switch module output high level or low-level, can let power module's +5V energy charge or not charge for the earphone.
In this embodiment, the first level control pin of the control module is opposite to the level output by the second level control pin of the control module, and there is a time difference between signals, so as to prevent the upper potential and the lower potential from being conducted at the same time to damage the components.
In this embodiment, the control module adopts a level control chip U3, the power output terminal of the power supply module is connected with the power input pin of the level control chip U3 through a resistor R10, the control level pin of the level control chip is grounded through a key SW1, the power input pin of the level control chip U3 is connected with a capacitor C6, the other end of the capacitor C6 is grounded, and the ground pin of the level control chip U3 is grounded. Through the above, the normal operation of the control module is realized, after the power module normally outputs +5V, if the key SW1 is manually operated, the control level pin of the level control chip U3 outputs a series of pulse signals with high and low level changes to the level switch module through the first level control pin and the second level control pin according to the high and low level changes of the key SW 1.
In this embodiment, the right headphone interface of the headphone interface is connected to the first analog signal output pin of the level control chip U3 of the control module through a resistor R12, a resistor R11 is connected between the right headphone interface of the headphone interface and the common end of the resistor R12, the other end of the resistor R11 is grounded, a capacitor C8 is connected between the resistor R12 and the common end of the first analog signal input pin of the level control chip U3 of the control module, the other end of the capacitor C8 is grounded, the left headphone interface of the headphone interface is connected to the second analog signal input pin of the level control chip U3 of the control module through a resistor R20, a resistor R13 is connected between the common end of the left headphone interface of the headphone interface and the resistor R20, the other end of the resistor R13 is grounded, a capacitor C11 is connected between the resistor R20 and the common end of the second analog signal input/output pin of the level control chip U3 of the control module, the other terminal of the capacitor C11 is connected to ground. Through the above, the control module and the earphone module can perform data information interaction, so that the power supply module can perform charging loop detection and control with the earphone module through the level switch module.
In the second embodiment, the level switch module includes a first high level conducting switch element, a second high level conducting switch element and a low level conducting switch element, the power input end of the level switch module is the controlled conducting input end of the low level conducting switch element, the controlled conducting input end of the low level conducting switch element is connected with the power output pin of the power module, the controlled conducting output end of the low level conducting switch element is connected with the power input end of the earphone interface, a resistor R8 is connected between the controlled conducting input end of the low level conducting switch element and the control conducting end of the low level conducting switch element, the control conducting end of the low level conducting switch element is connected with the controlled conducting input end of the first high level conducting switch element, the controlled conducting output end of the first high level conducting switch element is grounded, the control conducting end of the level switch module is the control conducting end of the first high level conducting switch element, a resistor R17 is connected between the controlled conduction output end of the first high-level conduction switch element and the control conduction end of the first high-level conduction switch element, the control conduction end of the first high-level conduction switch element is connected with a first level control output pin of the control module, the controlled conduction output end of the low-level conduction switch element is connected with the controlled conduction input end of the second high-level conduction switch element, the controlled conduction output end of the second high-level conduction switch element is grounded, the control conduction end of the second high-level conduction switch element is connected with the control conduction end of the low-level conduction switch element, and the power output end of the level switch module is the controlled conduction output end of the low-level conduction switch element. Through the above, the universal I/O pin of one control module is reduced, and the functions of the invention can also be realized.
In this embodiment, the high-level conduction switch element may adopt an NMOS transistor, a controlled conduction input end of the high-level conduction switch element is a drain of the NMOS transistor, a controlled conduction output end of the high-level conduction switch element is a source of the NMOS transistor, and a controlled conduction end of the high-level conduction switch element is a gate of the NMOS transistor.
In this embodiment, the low-level conduction switch element may adopt a PMOS transistor, a controlled conduction input end of the low-level conduction switch element is a source of the PMOS transistor, a controlled conduction output end of the low-level conduction switch element is a drain of the PMOS transistor, and a control conduction end of the low-level conduction switch element is a gate of the PMOS transistor.
In this embodiment, the first high-level conducting switch element may be an NPN-type triode, a controlled conducting input end of the first high-level conducting switch element is a collector of the NPN-type triode, a controlled conducting output end of the first high-level conducting switch element is an emitter of the NPN-type triode, and a controlled conducting end of the first high-level conducting switch element is a base of the NPN-type triode.
In this embodiment, the low-level conduction switch element may be a PNP type triode, the controlled conduction input end of the low-level conduction switch element is an emitter of the PNP type triode, the controlled conduction output end of the low-level conduction switch element is a collector of the PNP type triode, and the control conduction end of the low-level conduction switch element is a base of the PNP type triode.
In this embodiment, power module adopts power chip, voltage stabilizing chip's battery input pin is connected with power module's power output end, voltage stabilizing chip's on-off control pin is connected with power module's power output end through inductance L1, power module's power input end ground connection, voltage stabilizing chip's drive current sets up the pin and passes through resistance R9 ground connection, voltage stabilizing chip's bootstrap pin is connected with control module's enable pin, voltage stabilizing chip's power input pin passes through electric capacity C7 ground connection, voltage stabilizing chip's power output pin output + 5V. Through the above, when the power supply module (battery) is connected to B + and B-, the battery voltage supplies power to the power input pin (VDD) of the level control chip U3 of the control module through the power supply resistor R10 and the filter capacitor C6, and also supplies power to the battery input pin of the voltage stabilization chip U2, the enable pin of the level control chip U3 of the control module outputs high level, so that the bootstrap boost pin of the voltage stabilization U2 is at high level, and the power output pin of the voltage stabilization chip U2 outputs + 5V.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any technical means that can achieve the object of the present invention by substantially the same means falls within the scope of the present invention.