Disclosure of Invention
The invention aims to provide a CP signal detection circuit with a negative pressure detection circuit and a vehicle-mounted charger, so as to realize the purposes of detecting whether power supply equipment fails or not and monitoring PWM signals in real time.
In order to achieve the aim, the invention provides a CP signal detection circuit with a negative pressure detection circuit, which comprises a negative pressure detection circuit for processing CP signals and a singlechip for judging whether power supply equipment fails according to the signals processed by the negative pressure detection circuit, wherein the negative pressure detection circuit comprises a first resistor, a second resistor and a first capacitor;
The first end of the first resistor is connected with the CP signal receiving end of the vehicle-mounted charger, the second end of the first resistor is connected with the first end of the second resistor, the first end of the first capacitor and the first AD detection function pin of the singlechip, the second end of the second resistor is connected with the first power supply, and the second end of the first capacitor is grounded.
Preferably, the circuit also comprises an absorption filter circuit for absorbing transient pulse and/or clutter signals generated when the CP signal is switched on or switched off, wherein the absorption filter circuit specifically comprises a TVS tube, a second capacitor and an inductor;
The first end of the TVS tube, the first end of the second capacitor and the first end of the inductor are connected with the CP signal receiving end, the second end of the TVS tube and the second end of the second capacitor are grounded respectively, and the second end of the inductor is connected with the first end of the first resistor.
Preferably, the circuit further comprises a first diode for isolating the CP signal in a non-negative pressure state;
The cathode of the first diode is connected with the second end of the inductor, and the anode of the first diode is connected with the first end of the first resistor.
Preferably, the LED comprises a voltage stabilizing diode;
The anode of the zener diode is connected with the anode of the first diode, and the cathode of the zener diode is connected with the first end of the first resistor.
Preferably, the charging interface of the vehicle-mounted charger is connected with a charging socket of the power supply equipment or not, and the charging interface of the vehicle-mounted charger comprises a first diode, a second resistor, a third resistor, a fourth resistor and a third capacitor;
The anode of the second diode is connected with the second end of the inductor, the cathode of the second diode is connected with the first end of the third resistor, the second end of the third resistor is connected with the first end of the fourth resistor, the first end of the third capacitor and the second AD detection function pin of the singlechip, and the second end of the fourth resistor and the second end of the third capacitor are grounded respectively.
The charging socket further comprises a national standard resistance detection circuit and a voltage supply circuit, wherein the national standard resistance detection circuit is used for detecting whether the pull-down resistance of the charging socket accords with the national standard resistance or not, and the voltage supply circuit is used for supplying detection voltage to the national standard resistance detection circuit;
The voltage supply circuit specifically comprises a first triode, a second triode, a fifth resistor, a third diode and a second power supply;
The base electrode of the first triode is connected with the first control signal output end of the singlechip, the emitting electrode of the first triode is grounded, the collecting electrode of the first triode is connected with the base electrode of the second triode, the emitting electrode of the second triode is connected with the second power supply, the collecting electrode of the second triode is connected with the first end of the fifth resistor, the second end of the fifth resistor is connected with the anode of the third diode, and the cathode of the third diode is connected with the second end of the inductor;
The national standard resistance detection circuit specifically comprises a third triode, a sixth resistor, a seventh resistor and a fourth capacitor;
The base of the third triode is connected with the second control signal output end of the singlechip, the emitter of the third triode is grounded, the collector of the third triode is connected with the first end of the sixth resistor, the second end of the sixth resistor is connected with the first end of the third resistor, the first end of the seventh resistor, the first end of the fourth capacitor and the cathode of the second diode, and the second end of the seventh resistor and the second end of the fourth capacitor are respectively grounded.
Preferably, the circuit also comprises a switching circuit for simulating a switching function, wherein the switching circuit specifically comprises a fourth triode and an eighth resistor;
the base of the fourth triode is connected with the third control signal output end of the singlechip, the emitter of the fourth triode is grounded, the collector of the fourth triode is connected with the first end of the eighth resistor, and the second end of the eighth resistor is connected with the first end of the third resistor and the cathode of the second diode.
Preferably, the system further comprises a PWM signal detection circuit, a first MOS tube, a second MOS tube and a third power supply, wherein the PWM signal detection circuit is used for determining whether the vehicle-mounted charger is completely connected with the power supply equipment or not and the PWM signal duty ratio state;
The first end of the fifth capacitor and the first end of the ninth resistor are connected with the PWM signal capturing pin of the singlechip, the second end of the fifth capacitor is grounded, the second end of the ninth resistor is connected with the drain electrode of the first MOS tube and the drain electrode of the second MOS tube, the source electrode of the second MOS tube is grounded, the source electrode of the first MOS tube is connected with the first end of the tenth resistor, the second end of the tenth resistor is connected with the third power supply, the grid electrode of the first MOS tube and the grid electrode of the second MOS tube are connected with the first end of the eleventh resistor, and the second end of the eleventh resistor is connected with the first end of the third resistor and the cathode of the second diode.
In order to achieve the above purpose, the invention also provides an on-vehicle charger, which comprises an on-vehicle charger body and the CP signal detection circuit with the negative pressure detection circuit.
The CP signal detection circuit with the negative pressure detection circuit comprises a negative pressure detection circuit and a singlechip, wherein the negative pressure detection circuit specifically comprises a first resistor, a second resistor, a first capacitor and a first power supply, the CP signal receiving end of a vehicle-mounted charger is specifically connected with the first end of the first resistor, the second end of the first resistor is connected with the first end of the second resistor, the first end of the first capacitor is connected with a first AD detection function pin of the singlechip, the second end of the second resistor is connected with the first power supply, and the second end of the first capacitor is grounded. The negative pressure detection circuit is used for processing a-12V level signal in the CP signals, the singlechip is used for judging whether power supply equipment fails or not, and the judgment basis is the CP signals processed by the negative pressure detection circuit. The negative pressure detection circuit can process a-12V level signal in the CP signal, and the singlechip judges whether the power supply equipment fails according to the negative pressure detection circuit, so that the problem that the failure information of the power supply equipment cannot be detected in the prior art can be solved.
The vehicle-mounted charger provided by the invention comprises the CP signal detection circuit with the negative pressure detection circuit, so that the vehicle-mounted charger has the beneficial effects.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
The invention provides a CP signal detection circuit with a negative pressure detection circuit and a vehicle-mounted charger, so as to realize the purposes of detecting whether power supply equipment fails or not and monitoring PWM signals in real time.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 2 is a block diagram of a CP signal detection circuit with a negative pressure detection circuit according to an embodiment of the present invention, and fig. 3 is a block diagram of a CP signal detection circuit with a negative pressure detection circuit according to an embodiment of the present invention. As shown in fig. 2, the CP signal detection circuit with the negative pressure detection circuit comprises a negative pressure detection circuit 10 for processing CP signals and a singlechip 100 for judging whether power supply equipment is faulty according to the signals processed by the negative pressure detection circuit 10, wherein the negative pressure detection circuit 10 specifically comprises a first resistor R1, a second resistor R2 and a first capacitor C1 as shown in fig. 3;
The first end of the first resistor R1 is connected with the CP signal receiving end of the vehicle-mounted charger, the second end of the first resistor R1 is connected with the first end of the second resistor R2, the first end of the first capacitor C1 and the first AD detection function pin A of the singlechip, the second end of the second resistor R2 is connected with the first power supply 5V power supply, and the second end of the first capacitor C1 is grounded.
The vehicle-mounted charger needs to receive the CP signal from the power supply device according to the specification. The CP signals are different at different moments, before the fact that whether the vehicle-mounted charger is connected with the power supply equipment or not is confirmed, the CP signals are represented as +12V level signals, when the vehicle-mounted charger is confirmed to be connected with the power supply equipment, the vehicle-mounted charger is free of self-checking faults and the battery is in a chargeable state, the CP signals are represented as PWM signals, and when the power supply equipment is in self-checking faults, the CP signals are represented as-12V level signals. Note that the first power supply may be not only a 5V power supply in the present embodiment, but also a power supply of other values, and the present invention is not limited thereto.
As shown in fig. 2, when the self-test of the power supply device is wrong, the state of the CP signal is switched to a-12V level signal and sent to the CP signal receiving end of the vehicle-mounted charger, the-12V level signal received by the CP signal receiving end flows through the negative pressure detection circuit 10, the negative pressure detection circuit 10 processes the-12V level signal of the CP signal and transmits the processed signal to the first AD detection function pin a of the single chip microcomputer 100, and if the first AD detection function pin a of the single chip microcomputer receives the processed-12V level signal of the power supply device, it is indicated that the vehicle-mounted charger detects fault information of the power supply device.
In the embodiment, the CP signal detection circuit with the negative pressure detection circuit comprises a negative pressure detection circuit and a singlechip, wherein the negative pressure detection circuit specifically comprises a first resistor, a second resistor, a first capacitor and a first power supply, the CP signal receiving end of the vehicle-mounted charger is specifically connected with the first end of the first resistor, the second end of the first resistor is connected with the first end of the second resistor, the first end of the first capacitor is connected with a first AD detection function pin of the singlechip, the second end of the second resistor is connected with the first power supply, and the second end of the first capacitor is grounded. The negative pressure detection circuit is used for processing a-12V level signal in the CP signals, the singlechip is used for judging whether power supply equipment fails or not, and the judgment basis is the CP signals processed by the negative pressure detection circuit. The negative pressure detection circuit can process the-12V level signal in the CP signal, and the singlechip judges whether the power supply equipment fails according to the negative pressure detection circuit, so that the problem that whether the power supply equipment fails can not be detected in the prior art can be solved.
On the basis of the above embodiment, in another embodiment, the circuit further comprises an absorption filter circuit 70 as shown in fig. 3 for absorbing transient pulses and/or clutter signals generated when the CP signal is turned on or turned off, wherein the absorption filter circuit 70 specifically comprises a TVS tube D1, a second capacitor C2 and an inductor L1;
The first end of the TVS tube D1, the first end of the second capacitor C2 and the first end of the inductor L1 are connected with the CP signal receiving end, the second end of the TVS tube D1 and the second end of the second capacitor C2 are respectively grounded, and the second end of the inductor L1 is connected with the first end of the first resistor R1.
When the CP signal receiving end receives the CP signal, the TVS tube D1, the second capacitor C2 and the inductor L1 are conducted, and transient pulse and/or clutter signals generated when the CP signal is turned on or off are absorbed.
The absorption filter circuit in the embodiment can absorb the instantaneous pulse and/or clutter signals generated when the power supply equipment and the vehicle are connected and disconnected, and avoid the interference of the instantaneous pulse and/or clutter signals on the negative pressure detection of the CP detection circuit.
On the basis of the above embodiment, in another embodiment, the first diode D2 shown in fig. 3 is further included for isolating the CP signal in the non-negative pressure state;
The cathode of the first diode D2 is connected to the second end of the inductor L1, and the anode of the first diode D2 is connected to the first end of the first resistor R1.
Because the CP signals have different manifestations, when the CP signals are not in a negative pressure state, the first diode D2 in this embodiment isolates the CP signals not in a negative pressure state, so as to avoid interference to the negative pressure detection of the CP detection circuit.
On the basis of the above embodiment, in another embodiment, the voltage regulator diode D3 shown in fig. 3 is further included, where an anode of the voltage regulator diode D3 is connected to an anode of the first diode D2, and a cathode of the voltage regulator diode D3 is connected to the first end of the first resistor R1.
The zener diode in this embodiment performs a voltage stabilizing function to avoid the destruction of the relevant circuit elements by the drastic change in current.
On the basis of the above embodiment, in another embodiment, the charging device further comprises a positive voltage detection circuit 20 as shown in fig. 2 for detecting whether the charging interface of the vehicle-mounted charger is connected with the charging socket of the power supply device, wherein the positive voltage detection circuit 20 specifically comprises a second diode D4, a third resistor R3, a fourth resistor R4 and a third capacitor C3 as shown in fig. 3;
The anode of the second diode D4 is connected with the second end of the inductor L1, the cathode of the second diode D4 is connected with the first end of the third resistor R3, the second end of the third resistor R3 is connected with the first end of the fourth resistor R4, the first end of the third capacitor C3 and the second AD detection function pin B of the singlechip, and the second end of the fourth resistor R4 and the second end of the third capacitor C3 are respectively grounded.
It should be noted that the second diode D4 has the same isolation function and operation manner as the first diode D2, and will not be described in detail herein. As shown in fig. 2, after the CP signal receiving end of the on-vehicle charger receives the CP signal which is represented by the +12v level signal and is sent by the power supply device, the +12v level signal flows into the positive pressure detection circuit 20 from the CP signal receiving end, and reaches the second AD detection function pin B of the single-chip microcomputer through the processing of the positive pressure detection circuit 20, if the processed signal received by the single-chip microcomputer is in the preset interval, it is indicated that the charging interface of the on-vehicle charger is connected with the charging socket of the power supply device, and if the processed signal received by the single-chip microcomputer is not in the preset interval, it is indicated that the charging interface of the on-vehicle charger is not connected with the charging socket of the power supply device.
The positive pressure detection circuit of the embodiment can detect whether a charging interface of the vehicle-mounted charger is connected with a charging socket of the power supply equipment.
On the basis of the above embodiment, in another embodiment, the device further comprises a national standard resistance detection circuit 50 and a voltage supply circuit 60 as shown in fig. 2, wherein the national standard resistance detection circuit 50 is used for detecting whether the pull-down resistance of the charging socket accords with the national standard resistance, and the voltage supply circuit 60 is used for supplying detection voltage to the national standard resistance detection circuit 50;
the voltage supply circuit 60 specifically includes, as shown in fig. 3, a first transistor T1, a second transistor T2, a fifth resistor R5, a third diode D5, and a second power supply 12V;
The base electrode of the first triode T1 is connected with a first control signal output end F of the singlechip, the emitter electrode of the first triode T1 is grounded, the collector electrode of the first triode T1 is connected with the base electrode of the second triode T2, the emitter electrode of the second triode T2 is connected with a second power supply 12V power supply, the collector electrode of the second triode T2 is connected with a first end of a fifth resistor R5, a second end of the fifth resistor R5 is connected with an anode of a third diode D5, and a cathode of the third diode D5 is connected with a second end of an inductor L1;
The national standard resistance detection circuit 50, as shown in fig. 3, specifically includes a third triode T3, a sixth resistor R6, a seventh resistor R7, and a fourth capacitor C4;
The base of the third triode T3 is connected with a second control signal output end E of the singlechip, the emitter of the third triode T3 is grounded, the collector of the third triode T3 is connected with a first end of a sixth resistor R6, a second end of the sixth resistor R6 is connected with a first end of the third resistor R3, a first end of a seventh resistor R7, a first end of a fourth capacitor C4 and a cathode of a second diode D4, and a second end of the seventh resistor R7 and a second end of the fourth capacitor C4 are respectively grounded.
When the vehicle-mounted charger is connected with the power supply device, as shown in fig. 3, the singlechip causes the first control signal output end F to output a high level, the second control signal output end E to output a low level, the first triode T1 and the second triode T2 are turned on, the second power supply 12V outputs a current, the current flows through the fifth resistor R5 and the third diode D5 to enter the positive voltage detection circuit 20, and the seventh resistor R7 and the fifth resistor R5 form a voltage division. When the charging jack of the power supply equipment is provided with a pull-down resistor, the pull-down resistor is connected with the seventh resistor R7 in parallel, the voltage received by the second AD detection function pin B of the single chip microcomputer is reduced, the second control signal output end E of the single chip microcomputer outputs a low level, the pull-down resistor is connected with the seventh resistor R7 in parallel, the national standard resistance requirement of R22 shown in figure 1 is met, when the charging jack of the power supply equipment is not provided with the pull-down resistor, the voltage received by the second AD detection function pin B of the single chip microcomputer is not reduced, and the second control signal output end E of the single chip microcomputer controls the single chip microcomputer to output a high level, so that the sixth resistor R6 and the seventh resistor R7 are connected in parallel, and the national standard resistance requirement of R22 shown in figure 1 is met. The second power supply may be not only a 12V power supply, but also a power supply of other values, and the present invention is not limited thereto. It should be noted that the third diode D5 has the same isolation function and operation manner as the first diode D2, and will not be described in detail herein.
The national standard resistance circuit and the voltage supply circuit of the embodiment enable the pull-down resistance of the charging jack of each power supply device to conform to the national standard resistance, and are convenient for CP signal detection and data analysis.
On the basis of the above embodiment, in another embodiment, the switching circuit 40 shown in fig. 2 is further included for simulating a switching function, and the switching circuit 40 specifically includes a fourth triode T4 and an eighth resistor R8 shown in fig. 3;
The base of the fourth triode T4 is connected with a third control signal output end D of the singlechip, the emitter of the fourth triode T4 is grounded, the collector of the fourth triode T4 is connected with a first end of an eighth resistor R8, and a second end of the eighth resistor R8 is connected with a first end of a third resistor R3 and a cathode of a second diode D4.
When the self-check of the vehicle-mounted charger is fault-free and the battery is in a chargeable state, as shown in fig. 3, the singlechip controls the third control signal output end D to send out a signal, so that the fourth triode T4 is conducted, the R6 is pulled down to the ground, and the switch S2 in fig. 1 is simulated. It should be noted that the use scenario of the switch is that the vehicle-mounted charger is connected with the power supply equipment, the self-checking of the vehicle-mounted charger is completed, and the switch is closed to enable the resistor R22 meeting the national standard resistance in fig. 1 to be connected into the circuit.
The switch circuit of the embodiment is controlled by signals, has simple structure and is easy to realize.
On the basis of the above embodiment, in another embodiment, the vehicle-mounted charger and power supply device further comprises a PWM signal detection circuit 30 shown in fig. 2 for determining whether the vehicle-mounted charger and the power supply device are completely connected and a PWM signal duty ratio state, wherein the PWM signal detection circuit 30 specifically comprises a fifth capacitor C5, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a first MOS transistor T5, a second MOS transistor T6, and a third power supply 3.3V power supply as shown in fig. 3;
The first end of a fifth capacitor C5 and the first end of a ninth resistor R9 are connected with a PWM signal capturing pin C of the singlechip, the second end of the fifth capacitor C5 is grounded, the second end of the ninth resistor R9 is connected with the drain electrode of a first MOS tube T5 and the drain electrode of a second MOS tube T6, the source electrode of the second MOS tube T6 is grounded, the source electrode of the first MOS tube T5 is connected with the first end of a tenth resistor R10, the second end of the tenth resistor R10 is connected with a third power supply 3.3V power supply, the grid electrode of the first MOS tube T5 and the grid electrode of the second MOS tube T6 are connected with the first end of an eleventh resistor R11, and the second end of the eleventh resistor R11 is connected with the first end of the third resistor R3 and the cathode of a second diode D4.
When the CP signal is in the PWM signal, as shown in fig. 3, the PWM signal is sent to the first MOS transistor T5 and the second MOS transistor T6 through the eleventh resistor R11, where the first MOS transistor T5 is a P-channel, the second MOS transistor T6 is an N-channel, when the PWM signal is high, the second MOS transistor T6 of the N-channel is turned on, when the PWM signal is low, the first MOS transistor T5 of the P-channel is turned on, and a PWM signal with a high level of 3.3V, a low level of 0V, and a frequency within a set range is generated at the drain of the common terminal of the first MOS transistor T5 and the second MOS transistor T6, and the square wave signal is filtered by the ninth resistor R9 and the fifth capacitor C5 and then sent to the PWM signal capturing pin C of the singlechip. If the PWM signal received by the PWM signal capturing pin C of the singlechip is in the judging section, the switch S1 shown in FIG. 1 is closed, and the charging voltage of the power supply equipment meets the requirement. The specific voltage value of the third power supply is not limited, and may be 3.3V in the present embodiment, or may not be limited.
It should be noted that the PWM detection circuit of the present invention also has a wake-up function. If the power supply equipment has the reserved charging function, after the power supply equipment is connected with the vehicle-mounted charger, the CP signal sent by the power supply equipment is not converted into a PWM signal state and is still in a level signal state. When the reserved time is up or the remote APP sends out a command for waking up the vehicle-mounted charger system, the power supply equipment sends out a wake-up signal to control the state of the CP signal to be switched into the state of the PWM signal. It is understood that the wake-up signal is a voltage jump signal for bringing the CP signal voltage from 0V to 9V, a voltage jump signal for bringing the CP signal voltage from-9V to 0V, a frequency change signal for bringing the frequency of the CP signal from 0to 1KHz, or a signal for bringing the duty cycle of the PWM signal to more than 4%.
The PWM signal detection circuit of the present embodiment can determine whether the switch is closed or not and wake up the in-vehicle charger system.
It will be appreciated that the CP signal detection circuit with the negative pressure detection circuit of the above-described embodiment may be applied to an in-vehicle connector if sold or used as a separate product. Based on such understanding, the invention provides a vehicle-mounted connector, which comprises a vehicle-mounted connector body and further comprises the CP signal detection circuit with the negative pressure detection circuit. Because the vehicle-mounted charger provided by the invention comprises the CP signal detection circuit with the negative pressure detection circuit, the embodiment of the CP signal detection circuit with the negative pressure detection circuit is described in the above embodiment, and the beneficial effects are the same as those of the above embodiment, and are not repeated here.
The CP signal detection circuit with the negative pressure detection circuit and the vehicle-mounted charger provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.