Voltage-adjustable power supply circuit with indicating lamp for protecting power supply and grounding short circuit
By designing an indicator light power supply circuit with adjustable voltage and ground short circuit protection, the problems of single voltage range, single protection method and lack of indicator light in the traditional automotive sensor power supply output circuit are solved, and voltage regulation, double protection and redundancy are realized Power supply improves the reliability and efficiency of automotive sensor power supply.
Patent Information
- Application Number
- CN202420421295.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2034-03-05
AI Technical Summary
The traditional automotive sensor power supply output circuit has a single power supply output voltage range, a single protection method, no redundant power supply and lack of indicator lights, resulting in high cost, low efficiency and insufficient reliability.
A light supply circuit with adjustable voltage to power supply and ground short circuit protection is designed. Multiple groups of comparator switch circuits and ground short circuit protection circuits are connected in parallel and in series, combining LDO low dropout linear regulator and light emitting diode LED, realizes voltage regulation, short circuit protection, redundant power supply and indicator light functions.
It realizes adjustability of the output voltage, double protection of power supply and ground short circuit, redundant power supply and indicator light reminder, reduces costs, improves circuit efficiency and reliability in automobile use.
Smart Images

Figure CN222073440U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, in particular to a power supply circuit with an indicator light and adjustable voltage for short-circuit protection of a power supply and ground. Background Art
[0002] The traditional automotive sensor power supply output circuit has the defects of a single power supply output voltage range, a single power supply output protection method, no redundant power supply, no independent indicator light for the power supply output, and the power supply output requires MCU intervention for output recovery, resulting in high costs.
[0003] For example, application number CN201711288327.3 discloses a car button circuit with short-circuit protection, including a first voltage-dividing circuit, an on-off control circuit, a second voltage-dividing circuit in the protection circuit, and a transistor on-off circuit structure. By adding a voltage-dividing circuit and a protection circuit to the button circuit, when a short-circuit fault occurs in the button circuit, the button protection circuit protects against damage to the circuit. When the fault is removed, the circuit can automatically return to normal. It can only protect the circuit from damage when the power supply is short-circuited, but it cannot distinguish the voltage condition in the voltage-dividing circuit, and there is no indicator light to guide, which makes it difficult for maintenance personnel to conveniently and timely. There are defects in inspection or adjustment; Application No. CN201510169897.5 discloses a power supply protection circuit for a vehicle speed sensor. By adding a low-cost transistor and utilizing the characteristics of the transistor, when the power output +8V terminal is mistakenly grounded, the transistor will bear part of the voltage, so that the working current of the resistor R1 will not be too large, and it can work at the rated power, thereby ensuring that the power supply will not be burned out, thereby enhancing the reliability of the vehicle's power output. However, the power supply protection circuit has a single output voltage range and cannot be adjusted, and the power supply output protection method is single and there is no independent indicator light reminder.
[0004] Therefore, in the above-mentioned disclosed patents, there is a lack of simple circuit design for the power supply output circuit of the automobile sensor, the power supply output lacks efficiency and intuitiveness, the protection strategy is incomplete, the output voltage cannot be adjusted, there is no backup power output and the cost is high. Utility Model Content
[0005] The utility model aims to provide a power supply circuit with an indicator light and adjustable voltage for short-circuit protection to the power supply and the ground, so as to solve the technical problems mentioned in the above background technology.
[0006] In order to achieve the above-mentioned purpose, the utility model discloses a power supply circuit with an indicator light and adjustable voltage for power supply and short-circuit protection to ground, comprising an output circuit, a first comparator switch circuit, a second comparator switch circuit, a first short-circuit protection circuit to ground and a second short-circuit protection circuit to ground, wherein the first comparator switch circuit and the second comparator switch circuit are respectively connected at two ends of the output circuit, and the first comparator switch circuit and the second comparator switch circuit are connected in parallel, the first comparator switch circuit is connected in series with the first short-circuit protection circuit to ground, the second comparator switch circuit is connected in series with the second short-circuit protection circuit to ground, and the first short-circuit protection circuit to ground and the second short-circuit protection circuit to ground are connected in parallel, and an adjustable voltage output terminal is led out between the first short-circuit protection circuit to ground and the second short-circuit protection circuit to ground;
[0007] The output circuit is provided with an LDO low-voltage dropout linear regulator U3, which is located at the input pin 1 end of the LDO low-voltage dropout linear regulator U3, and is connected in series with a diode D2 and a diode D3 in sequence, and the other ends of the diode D2 and the diode D3 are respectively connected to a 12V power supply and a 12V standby power supply, and the LDO low-voltage dropout linear regulator U3 converts an input voltage of 12V into an output voltage of 5V, and the LDO low-voltage dropout linear regulator U3 is used to provide a stable output voltage;
[0008] The first comparator switch circuit includes a P-channel field effect transistor M1, an N-channel field effect transistor M4, a light emitting diode LED1, a resistor R5, a resistor R7, a resistor R10, a resistor R6, a resistor R12 and a comparator U1, wherein the P-channel field effect transistor M1 and the N-channel field effect transistor M4 both include pins 1, 2 and 3, which respectively represent the drain, source, gate and gate, drain and source of the field effect transistor MOSFET, and a resistor R5 is connected in series between pin 1 of the P-channel field effect transistor M1 and pin 3 of the N-channel field effect transistor M4, pin 2 of the P-channel field effect transistor M1 is connected to a 12V power supply, pin 3 of the P-channel field effect transistor M1 is connected to a light emitting diode LED1, and pin 2 of the N-channel field effect transistor M4 is grounded;
[0009] The comparator U1 includes pins 1, 2, 3, 4 and 5, which are respectively represented as a positive input pin, a negative power supply pin, a negative input pin, an output pin and a positive power supply pin. Pin 1 of the N-channel field effect transistor M4 is connected to pin 4 of the comparator U1. The other end of the output of the light-emitting diode LED1 is connected in series with resistors R7 and R10 in sequence. The voltage divider circuit between the resistors R7 and R10 is connected to pin 3 of the comparator U1. Pin 1 of the comparator U1 is connected to a voltage divider circuit, and one end of the voltage divider circuit is connected in series with a 5V voltage, a resistor R6, a resistor R12 and grounding in sequence from one end to the other end. Pin 5 of the comparator U1 is connected to a 5V voltage, and pin 2 of the comparator U1 is grounded.
[0010] Resistors R5, R7, R10, and R6 are equal-value resistors, and the resistance values are all 10K ohms; resistor R12 is an adjustable resistor, and the resistance value ranges from 1K to 100K ohms;
[0011] The node between the light emitting diode LED1 and the first short-circuit protection circuit to ground is marked as point A, and the output voltage of point A is UA; when the non-inverting input terminal of the comparator U1 is greater than the reverse input terminal, the pin 4 of the comparator U1 directly outputs a 5V voltage, at which time the N-channel field effect transistor M4 is turned on, and because the N-channel field effect transistor M4 is turned on, the P-channel field effect transistor M1 is turned on, and the voltage is obtained at point A;
[0012] When the voltage at point A is divided by resistors R7 and R10, the voltage at the reverse input terminal of comparator U1 is greater than the voltage at the same input terminal of comparator U1, so that the input voltage at pin 3 of comparator U1 is greater than the input voltage of the 5V voltage obtained at pin 1 of comparator U1 after being divided by resistors R6 and R12, then comparator U1 outputs 0V, and at this time, N-channel field effect transistor M4 is turned off, and because N-channel field effect transistor M4 is turned off, P-channel field effect transistor M1 is turned off;
[0013] The output voltage at point A is UA, so the voltage calculation formula at point A is In the formula, R6=R7=R10=10KΩ, R12=1KΩ-100KΩ, then UA=0.9V-9V, and the output voltage UA at point A can be adjusted between 0.9V and 9V through the adjustable resistance value of R12. Conversely, when the value of the output voltage UA is determined, the resistance value of R12 can be calculated.
[0014] Optionally, the first short-circuit protection circuit to ground is provided with a bipolar PNP transistor Q1 as a switch of the protection circuit, the bipolar PNP transistor Q1 includes pins 1, 2 and 3, which are respectively represented as a base, an emitter and a collector, and pin 2 of the bipolar PNP transistor Q1 is connected to the output end of the light-emitting diode LED1, and a resistor R1, a first field effect transistor amplifier circuit and a resistor R2 are sequentially connected in series between pins 1 to 3 of the bipolar PNP transistor Q1, wherein the first field effect transistor amplifier circuit includes an N-channel field effect transistor M5, a capacitor C1 and a resistor R4, and the N-channel field effect transistor M5 includes pins 1, 2 and 3, which are respectively represented as a gate, a drain and a source of a field effect transistor MOSFET, and pin 2 of the N-channel field effect transistor M5 is grounded, and a resistor R4 and a capacitor C1 are sequentially connected in series between pins 1 to 3 of the N-channel field effect transistor M5;
[0015] When the adjustable resistor is set to R12 = 10K ohms, the voltage at point A reaches 5V at the moment of power-on. Because the voltage across capacitor C1 cannot change suddenly, the upper plate of capacitor C1 is charged at the moment of power-on. During the charging process of capacitor C1, bipolar PNP transistor Q1 is turned on. After bipolar PNP transistor Q1 is turned on, because resistors R2 and R4 are both 10K ohms, the voltage divided to 2.5V can drive N-channel field effect transistor M5 to turn on. N-channel field After the N-channel field effect transistor M5 is turned on, the bipolar PNP transistor Q1 can be turned on continuously to output 5V. When the output terminal is short-circuited to the ground, the resistors R2 and R4 are both 10K ohms and the voltage is divided to 0V. At this time, the N-channel field effect transistor M5 is turned off. After the N-channel field effect transistor M5 is turned off, the bipolar PNP transistor Q1 is turned off. When the adjustable voltage output terminal is short-circuited to the ground, the first short-circuit protection circuit to the ground can automatically turn off the output, thereby achieving the purpose of protecting the circuit.
[0016] The resistors R1, R2 and R4 are equal-valued resistors, and the resistance values are all 10K ohms. The specification of the capacitor C1 is 1uF / 50V, which means that the capacitance of the capacitor C1 is 1 microfarad and the rated voltage is 50 volts.
[0017] Optionally, the second comparator switch circuit includes a P-channel field effect transistor M3, an N-channel field effect transistor M6, a light emitting diode LED2, a resistor R3, a resistor R13, a resistor R115, a resistor R11, a resistor R16 and a comparator U2, wherein the P-channel field effect transistor M3 and the N-channel field effect transistor M6 both include pins 1, 2 and 3, which respectively represent the drain, source, gate and gate, drain and source of the field effect transistor MOSFET, and a resistor R3 is connected in series between pin 1 of the P-channel field effect transistor M3 and pin 3 of the N-channel field effect transistor M6, pin 2 of the P-channel field effect transistor M3 is connected to a 12V standby power supply, pin 3 of the P-channel field effect transistor M3 is connected to the light emitting diode LED2, and pin 2 of the N-channel field effect transistor M6 is grounded;
[0018] The comparator U2 includes pins 1, 2, 3, 4 and 5, which are respectively represented as a positive input pin, a negative power supply pin, a negative input pin, an output pin and a positive power supply pin. Pin 1 of the N-channel field effect transistor M6 is connected to pin 4 of the comparator U2. The other end of the output of the light-emitting diode LED2 is connected in series with resistors R13 and R15 in sequence. The voltage divider circuit between the resistors R13 and R15 is connected to pin 3 of the comparator U2. Pin 1 of the comparator U2 is connected to another voltage divider circuit, and one end of the other voltage divider circuit is connected in series with a 5V voltage, a resistor R11, a resistor R16 and grounding in sequence from one end to the other end. Pin 5 of the comparator U2 is connected to a 5V voltage, and pin 2 of the comparator U2 is grounded.
[0019] Resistors R3, R13, R15 and R11 are equal-value resistors, and the resistance values are all 10K ohms; resistor R16 is an adjustable resistor, and the resistance value ranges from 1K to 100K ohms;
[0020] The node between the light emitting diode LED2 and the second short-circuit protection circuit to ground is marked as point B, and the output voltage of point B is UB; when the same-direction input terminal of the comparator U2 is greater than the reverse input terminal, the pin 4 of the comparator U2 directly outputs a 5V voltage, at which time the N-channel field effect transistor M6 is turned on, and because the N-channel field effect transistor M6 is turned on, the P-channel field effect transistor M3 is turned on, and the voltage is obtained at point B;
[0021] When the voltage at point B is divided by resistors R13 and R15, the voltage at the reverse input terminal of comparator U2 is greater than the voltage at the same input terminal of comparator U2, so that the input voltage at pin 3 of comparator U2 is greater than the input voltage of the 5V voltage in the voltage divider circuit obtained at pin 1 of comparator U2 after being divided by resistors R11 and R16, then comparator U3 outputs 0V, and at this time, N-channel field effect transistor M6 is turned off, and because the N-channel field effect transistor M6 is turned off, the P-channel field effect transistor M3 is turned off;
[0022] The output voltage at point B is UB, so the voltage calculation formula at point B is In the formula, R11=R13=R15=10KΩ, R16=1KΩ-100KΩ, then UB=0.9V-9V, and the output voltage UB at point B can be adjusted between 0.9V and 9V through the adjustable resistance value of R16. Conversely, when the value of the output voltage UB is determined, the resistance value of R16 can be calculated.
[0023] Optionally, the second short-circuit protection circuit to ground is provided with a bipolar PNP transistor Q2 as a switch of the protection circuit, the bipolar PNP transistor Q2 includes pins 1, 2 and 3, which are respectively represented as a base, an emitter and a collector, and pin 2 of the bipolar PNP transistor Q2 is connected to the output end of the light-emitting diode LED2, and resistor R8, a second field effect transistor amplifier circuit and a resistor R9 are sequentially connected in series between pins 1 to 3 of the bipolar PNP transistor Q2, wherein the second field effect transistor amplifier circuit includes an N-channel field effect transistor M7, a capacitor C2 and a resistor R14, and the N-channel field effect transistor M7 includes pins 1, 2 and 3, which are respectively represented as a gate, a drain and a source of a field effect transistor MOSFET, and pin 2 of the N-channel field effect transistor M7 is grounded, and resistor R14 and capacitor C2 are sequentially connected in series between pins 1 to 3 of the N-channel field effect transistor M7;
[0024] When the adjustable resistor is set to R16 = 10K ohms, the voltage at point B reaches 5V at the moment of power-on. Since the voltage across capacitor C2 cannot change suddenly, the upper plate of capacitor C2 is charged at the moment of power-on. During the charging process of capacitor C2, bipolar PNP transistor Q2 is turned on. After bipolar PNP transistor Q2 is turned on, since resistors R8 and R9 are both 10K ohms, the voltage divided to 2.5V can drive N-channel field effect transistor M7 to turn on. After the transistor M7 is turned on, the bipolar PNP transistor Q2 can be continuously turned on to output 5V. When the output terminal is short-circuited to the ground, the resistor R9 and the resistor R14 are both 10K ohms and the voltage is divided to 0V. At this time, the N-channel field effect transistor M7 is turned off. After the N-channel field effect transistor M7 is turned off, the bipolar PNP transistor Q2 is turned off. When the adjustable voltage output terminal is short-circuited to the ground, the second short-circuit protection circuit to the ground can automatically turn off the output, thereby achieving the purpose of protecting the circuit;
[0025] The resistors R8, R9 and R14 are equal-value resistors, and the resistance values are all 10K ohms. The specification of the capacitor C2 is 1uF / 50V, which means that the capacitance of the capacitor C2 is 1 microfarad and the rated voltage is 50 volts.
[0026] Optionally, the 12V power supply introduces a line connected between pin 1 of the P-channel field effect transistor M3 and the resistor R3, so that when the 12V power supply is in normal output operation, the gate-source voltage VGS of the P-channel field effect transistor M3 is 0V, so that the P-channel field effect transistor M3 is turned off, and point A in the first comparator switch circuit outputs a 5V voltage, so that when the power supply circuit where the external sensor is located is working, the light-emitting diode LED1 lights up green, and at the same time, point B does not output voltage;
[0027] When the 12V power supply has no output, when the non-inverting input of the comparator U2 is greater than the reverse input, the pin 4 of the comparator U2 directly outputs a 5V voltage, at which time the N-channel field effect transistor M6 is turned on, and because the N-channel field effect transistor M6 is turned on, the P-channel field effect transistor M3 is turned on, then point B obtains voltage, and the 12V backup power supply circuit starts to work, achieving the purpose of redundant power supply, ensuring the normal operation of external sensors such as the accelerator pedal sensor, brake sensor, and current detection sensor, and improving the reliability of the vehicle.
[0028] Optionally, the light emitting diode LED1 lights up green, and the light emitting diode LED2 lights up yellow. In the circuit where the light emitting diodes LED1 and LED2 are located, the light will be emitted when there is current output in the corresponding output channel. Therefore, the staff can judge which power supply in the power supply circuit is outputting current by the green and yellow colors emitted by the light emitting diodes LED, thereby achieving the function of an indicator light; when the adjustable voltage output terminal is short-circuited to a power supply with a voltage higher than 12V, due to the unidirectional conductivity of the light emitting diode LED, it has the characteristic of preventing the external power supply from backflowing and damaging the internal circuit, and the light emitting diode LED also has a protective function of preventing the output terminal from being short-circuited to the power supply.
[0029] Optionally, the model of the LDO low dropout linear regulator U3 is TPS7B6950QDBVRQ1;
[0030] The diode D2 and the diode D3 are of the same model, both of which are BAS21HT1G;
[0031] The P-channel field effect transistor M1 and the P-channel field effect transistor M3 are of the same model, both of which are BSS84LT1G;
[0032] The N-channel field effect transistor M4, the N-channel field effect transistor M6, the N-channel field effect transistor M5 and the N-channel field effect transistor M7 are of the same model, which is 2N7002BK;
[0033] The comparator U1 and the comparator U2 are of the same model, both of which are MCP6001UT-E / OT;
[0034] The bipolar PNP transistor Q1 and the bipolar PNP transistor Q2 are of the same model, MMBT3906LT1G.
[0035] Optionally, the power supply circuit with indicator light does not include a single-chip microcomputer MCU and does not require a software algorithm, thereby improving the execution efficiency of the power supply circuit and greatly reducing the hardware material cost and software cost.
[0036] Compared with the prior art, the utility model has the following advantages:
[0037] In the power supply circuit with an indicator light and adjustable voltage for short-circuit protection to the power supply and the ground, two groups of independent and identical comparator switch circuits and two groups of independent and identical output short-circuit protection circuit structures to the ground are arranged on the output circuit, and two light-emitting diode LED structures are respectively arranged in the power supply circuit, so that the power supply circuit with an indicator light can adjust the output voltage, short-circuit protection to the ground, short-circuit protection to the power supply, redundant power supply and indicator light reminder functions, thereby achieving the effect of reducing the circuit cost and enhancing the efficiency, increasing the adjustability of the output voltage, expanding the output of the backup power supply and improving the reliability during the use of the automobile. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 The utility model is a schematic diagram of the structure of a power supply circuit with an adjustable voltage and short-circuit protection to the power supply and the ground with an indicator light.
[0039] The accompanying drawings are marked as follows: 1. output circuit; 2. first comparator switch circuit; 3. second comparator switch circuit; 4. first short-circuit protection circuit to ground; 5. second short-circuit protection circuit to ground. DETAILED DESCRIPTION
[0040] The technical solution of the utility model is described in detail below through specific embodiments.
[0041] Reference Figure 1 As shown, the utility model discloses a power supply circuit structure with an indicator light and adjustable voltage for power supply and short-circuit protection to ground, comprising an output circuit 1, a first comparator switch circuit 2, a second comparator switch circuit 3, a first short-circuit protection circuit to ground 4, and a second short-circuit protection circuit to ground 5, wherein the first comparator switch circuit 2 and the second comparator switch circuit 3 are connected to both ends of the output circuit 1 respectively, and the first comparator switch circuit 2 and the second comparator switch circuit 3 are connected in parallel, the first comparator switch circuit 2 is connected in series with the first short-circuit protection circuit to ground 4, the second comparator switch circuit 3 is connected in series with the second short-circuit protection circuit to ground 5, and the first short-circuit protection circuit to ground 4 and the second short-circuit protection circuit to ground 5 are connected in parallel, and an adjustable voltage output terminal is drawn out between the first short-circuit protection circuit to ground 4 and the second short-circuit protection circuit to ground 5;
[0042] The output circuit 1 is provided with an LDO low-voltage dropout linear regulator U3, which is located at the input pin 1 end of the LDO low-voltage dropout linear regulator U3, and is connected in series with a diode D2 and a diode D3 in sequence, and the other ends of the diodes D2 and D3 are respectively connected to a 12V power supply and a 12V standby power supply. The LDO low-voltage dropout linear regulator U3 converts an input voltage of 12V into an output voltage of 5V, and the LDO low-voltage dropout linear regulator U3 is used to provide a stable output voltage;
[0043] The first comparator switch circuit 2 includes a P-channel field effect transistor M1, an N-channel field effect transistor M4, a light emitting diode LED1, a resistor R5, a resistor R7, a resistor R10, a resistor R6, a resistor R12 and a comparator U1, wherein the P-channel field effect transistor M1 and the N-channel field effect transistor M4 both include pins 1, 2 and 3, which respectively represent the drain, source, gate and gate, drain and source of the field effect transistor MOSFET, and a resistor R5 is connected in series between pin 1 of the P-channel field effect transistor M1 and pin 3 of the N-channel field effect transistor M4, pin 2 of the P-channel field effect transistor M1 is connected to a 12V power supply, pin 3 of the P-channel field effect transistor M1 is connected to the light emitting diode LED1, and pin 2 of the N-channel field effect transistor M4 is grounded;
[0044] The comparator U1 includes pins 1, 2, 3, 4 and 5, which are respectively represented as a positive input pin, a negative power supply pin, a negative input pin, an output pin and a positive power supply pin. Pin 1 of the N-channel field effect transistor M4 is connected to pin 4 of the comparator U1. The other end of the output of the light-emitting diode LED1 is connected in series with resistors R7 and R10 in sequence. The voltage divider circuit between the resistors R7 and R10 is connected to pin 3 of the comparator U1. Pin 1 of the comparator U1 is connected to a voltage divider circuit, and one end of the voltage divider circuit is connected in series with a 5V voltage, a resistor R6, a resistor R12 and grounding in sequence from one end to the other end. Pin 5 of the comparator U1 is connected to a 5V voltage, and pin 2 of the comparator U1 is grounded.
[0045] Resistors R5, R7, R10, and R6 are equal-value resistors, and the resistance values are all 10K ohms; resistor R12 is an adjustable resistor, and the resistance value ranges from 1K to 100K ohms;
[0046] The node between the light emitting diode LED1 and the first short-circuit protection circuit 4 to ground is marked as point A, and the output voltage of point A is UA; when the non-inverting input terminal of the comparator U1 is greater than the reverse input terminal, the pin 4 of the comparator U1 directly outputs a 5V voltage, at which time the N-channel field effect transistor M4 is turned on, and because the N-channel field effect transistor M4 is turned on, the P-channel field effect transistor M1 is turned on, and the voltage is obtained at point A;
[0047] When the voltage at point A is divided by resistors R7 and R10, the voltage at the reverse input terminal of comparator U1 is greater than the voltage at the same input terminal of comparator U1, so that the input voltage at pin 3 of comparator U1 is greater than the input voltage of the 5V voltage obtained at pin 1 of comparator U1 after being divided by resistors R6 and R12, then comparator U1 outputs 0V, and at this time, N-channel field effect transistor M4 is turned off, and because N-channel field effect transistor M4 is turned off, P-channel field effect transistor M1 is turned off;
[0048] The output voltage at point A is UA, so the voltage calculation formula at point A is In the formula, R6=R7=R10=10KΩ, R12=1KΩ-100KΩ, then UA=0.9V-9V, and the output voltage UA at point A can be adjusted between 0.9V and 9V through the adjustable resistance value of R12. Conversely, when the value of the output voltage UA is determined, the resistance value of R12 can be calculated.
[0049] Preferably, the first short-circuit protection circuit 4 to ground is provided with a bipolar PNP transistor Q1 as a switch of the protection circuit, the bipolar PNP transistor Q1 includes pins 1, 2 and 3, which are respectively represented as a base, an emitter and a collector, the pin 2 of the bipolar PNP transistor Q1 is connected to the output end of the light-emitting diode LED1, the resistor R1, the first field effect transistor amplifier circuit and the resistor R2 are sequentially connected in series between the pins 1 to 3 of the bipolar PNP transistor Q1, wherein the first field effect transistor amplifier circuit includes an N-channel field effect transistor M5, a capacitor C1 and a resistor R4, the N-channel field effect transistor M5 includes pins 1, 2 and 3, which are respectively represented as a gate, a drain and a source of a field effect transistor MOSFET, the pin 2 of the N-channel field effect transistor M5 is grounded, and the resistor R4 and the capacitor C1 are sequentially connected in series between the pins 1 to 3 of the N-channel field effect transistor M5;
[0050] When the adjustable resistor is set to R12 = 10K ohms, the voltage at point A reaches 5V at the moment of power-on. Since the voltage across capacitor C1 cannot change suddenly, the upper plate of capacitor C1 is charged at the moment of power-on. During the charging process of capacitor C1, bipolar PNP transistor Q1 is turned on. After bipolar PNP transistor Q1 is turned on, since resistors R2 and R4 are both 10K ohms, the voltage divided to 2.5V can drive N-channel field effect transistor M5 to turn on. After the transistor M5 is turned on, the bipolar PNP transistor Q1 can be continuously turned on to output 5V. When the output terminal is short-circuited to the ground, the resistor R2 and the resistor R4 are both 10K ohms and the voltage is divided to 0V. At this time, the N-channel field effect transistor M5 is turned off. After the N-channel field effect transistor M5 is turned off, the bipolar PNP transistor Q1 is turned off. When the adjustable voltage output terminal is short-circuited to the ground, the first short-circuit protection circuit 4 can automatically turn off the output, thereby achieving the purpose of protecting the circuit;
[0051] The resistors R1 , R2 and R4 are equal-valued resistors, and the resistance values are all 10K ohms. The specification of the capacitor C1 is 1uF / 50V, which means that the capacitance of the capacitor C1 is 1 microfarad and the rated voltage is 50 volts.
[0052] Preferably, the second comparator switch circuit 3 includes a P-channel field effect transistor M3, an N-channel field effect transistor M6, a light emitting diode LED2, a resistor R3, a resistor R13, a resistor R115, a resistor R11, a resistor R16 and a comparator U2, wherein the P-channel field effect transistor M3 and the N-channel field effect transistor M6 both include pins 1, 2 and 3, which respectively represent the drain, source, gate and gate, drain and source of the field effect transistor MOSFET, and a resistor R3 is connected in series between pin 1 of the P-channel field effect transistor M3 and pin 3 of the N-channel field effect transistor M6, pin 2 of the P-channel field effect transistor M3 is connected to a 12V standby power supply, pin 3 of the P-channel field effect transistor M3 is connected to the light emitting diode LED2, and pin 2 of the N-channel field effect transistor M6 is grounded;
[0053] The comparator U2 includes pins 1, 2, 3, 4 and 5, which are respectively represented as a positive input pin, a negative power supply pin, a negative input pin, an output pin and a positive power supply pin. Pin 1 of the N-channel field effect transistor M6 is connected to pin 4 of the comparator U2. The other end of the output of the light-emitting diode LED2 is connected in series with resistors R13 and R15 in sequence. The voltage divider circuit between the resistors R13 and R15 is connected to pin 3 of the comparator U2. Pin 1 of the comparator U2 is connected to another voltage divider circuit, and one end of the other voltage divider circuit is connected in series with a 5V voltage, a resistor R11, a resistor R16 and grounding in sequence from one end to the other end. Pin 5 of the comparator U2 is connected to a 5V voltage, and pin 2 of the comparator U2 is grounded.
[0054] Resistors R3, R13, R15 and R11 are equal-value resistors, and the resistance values are all 10K ohms; resistor R16 is an adjustable resistor, and the resistance value ranges from 1K to 100K ohms;
[0055] The node between the light emitting diode LED2 and the second short-circuit protection circuit 5 to ground is marked as point B, and the output voltage at point B is UB; when the non-inverting input terminal of the comparator U2 is greater than the reverse input terminal, the pin 4 of the comparator U2 directly outputs a 5V voltage, at which time the N-channel field effect transistor M6 is turned on, and because the N-channel field effect transistor M6 is turned on, the P-channel field effect transistor M3 is turned on, and the voltage is obtained at point B;
[0056] When the voltage at point B is divided by resistors R13 and R15, the voltage at the reverse input terminal of comparator U2 is greater than the voltage at the same input terminal of comparator U2, so that the input voltage at pin 3 of comparator U2 is greater than the input voltage of the 5V voltage in the voltage divider circuit obtained at pin 1 of comparator U2 after being divided by resistors R11 and R16, then comparator U3 outputs 0V, and at this time, N-channel field effect transistor M6 is turned off, and because the N-channel field effect transistor M6 is turned off, the P-channel field effect transistor M3 is turned off;
[0057] The output voltage at point B is UB, so the voltage calculation formula at point B is In the formula, R11=R13=R15=10KΩ, R16=1KΩ-100KΩ, then UB=0.9V-9V, and the output voltage UB at point B can be adjusted between 0.9V and 9V through the adjustable resistance value of R16. Conversely, when the value of the output voltage UB is determined, the resistance value of R16 can be calculated.
[0058] Preferably, the second short-circuit protection circuit 5 to ground is provided with a bipolar PNP transistor Q2 as a switch of the protection circuit, the bipolar PNP transistor Q2 includes pins 1, 2 and 3, which are respectively represented as a base, an emitter and a collector, the pin 2 of the bipolar PNP transistor Q2 is connected to the output end of the light-emitting diode LED2, the resistor R8, the second field effect transistor amplifier circuit and the resistor R9 are sequentially connected in series between the pins 1 to 3 of the bipolar PNP transistor Q2, wherein the second field effect transistor amplifier circuit includes an N-channel field effect transistor M7, a capacitor C2 and a resistor R14, the N-channel field effect transistor M7 includes pins 1, 2 and 3, which are respectively represented as a gate, a drain and a source of a field effect transistor MOSFET, the pin 2 of the N-channel field effect transistor M7 is grounded, and the resistor R14 and the capacitor C2 are sequentially connected in series between the pins 1 to 3 of the N-channel field effect transistor M7;
[0059] When the adjustable resistor is set to R16 = 10K ohms, the voltage at point B reaches 5V at the moment of power-on. Since the voltage across capacitor C2 cannot change suddenly, the upper plate of capacitor C2 is charged at the moment of power-on. During the charging process of capacitor C2, bipolar PNP transistor Q2 is turned on. After bipolar PNP transistor Q2 is turned on, since resistors R8 and R9 are both 10K ohms, the voltage divided to 2.5V can drive N-channel field effect transistor M7 to turn on. After the transistor M7 is turned on, the bipolar PNP transistor Q2 can be continuously turned on to output 5V. When the output terminal is short-circuited to the ground, the resistor R9 and the resistor R14 are both 10K ohms and the voltage is divided to 0V. At this time, the N-channel field effect transistor M7 is turned off. After the N-channel field effect transistor M7 is turned off, the bipolar PNP transistor Q2 is turned off. When the adjustable voltage output terminal is short-circuited to the ground, the second short-circuit protection circuit 5 can automatically turn off the output, thereby achieving the purpose of protecting the circuit;
[0060] The resistors R8, R9 and R14 are equal-valued resistors, and the resistance values are all 10K ohms. The specification of the capacitor C2 is 1uF / 50V, which means that the capacitance of the capacitor C2 is 1 microfarad and the rated voltage is 50 volts.
[0061] Preferably, a 12V power supply is introduced into a line connected between pin 1 of the P-channel field effect transistor M3 and the resistor R3, so that when the 12V power supply is in the normal output operation process, the gate-source voltage VGS of the P-channel field effect transistor M3 is 0V, so that the P-channel field effect transistor M3 is turned off, and the point A in the first comparator switch circuit 2 outputs a 5V voltage, so that when the power supply circuit where the external sensor is located is working, the light-emitting diode LED1 lights up green, and at the same time, the point B does not output voltage;
[0062] When the 12V power supply has no output, when the non-inverting input of the comparator U2 is greater than the reverse input, the pin 4 of the comparator U2 directly outputs a 5V voltage, at which time the N-channel field effect transistor M6 is turned on, and because the N-channel field effect transistor M6 is turned on, the P-channel field effect transistor M3 is turned on, then point B obtains voltage, and the 12V backup power supply circuit starts to work, achieving the purpose of redundant power supply, ensuring the normal operation of external sensors such as the accelerator pedal sensor, brake sensor, and current detection sensor, and improving the reliability of the vehicle.
[0063] Preferably, the light-emitting diode LED1 lights up green, and the light-emitting diode LED2 lights up yellow. In the circuit where the light-emitting diodes LED1 and LED2 are located, the light will be emitted when there is current output in the corresponding output channel. Therefore, the staff can judge which power supply in the power supply circuit is outputting current by the green and yellow colors emitted by the light-emitting diodes LED, thereby achieving the function of an indicator light; when the adjustable voltage output terminal is short-circuited to a power supply with a voltage higher than 12V, due to the unidirectional conductivity of the light-emitting diode LED, it has the characteristic of preventing the external power supply from flowing back and damaging the internal circuit. The light-emitting diode LED also has a protective function of preventing the output terminal from being short-circuited to the power supply.
[0064] Preferably, the model of the LDO low dropout linear regulator U3 is TPS7B6950QDBVRQ1;
[0065] The diode D2 and the diode D3 are of the same model, both BAS21HT1G;
[0066] The P-channel field effect transistor M1 and the P-channel field effect transistor M3 are of the same model, both of which are BSS84LT1G;
[0067] The N-channel field effect transistor M4, the N-channel field effect transistor M6, the N-channel field effect transistor M5 and the N-channel field effect transistor M7 are of the same model, which is 2N7002BK;
[0068] Comparator U1 and comparator U2 are of the same model, both are MCP6001UT-E / OT;
[0069] The bipolar PNP transistor Q1 and the bipolar PNP transistor Q2 are of the same model, MMBT3906LT1G.
[0070] Preferably, a single-chip microcomputer MCU is not provided in the power supply circuit with an indicator light, and no software algorithm is required, which improves the execution efficiency of the power supply circuit and greatly reduces the hardware material cost and software cost.
[0071] Working principle:
[0072] Step 1: When the 12V power supply and the 12V standby power supply are independent of each other and the 12V power supply is provided at the same time, or when any one of them is independently powered and the other is not powered, the LDO low voltage dropout linear regulator U3 can convert the input voltage into a 5V output voltage;
[0073] Step 2, when the non-inverting input terminal of the comparator U1 is greater than the reverse input terminal, the pin 4 of the comparator U1 directly outputs a 5V voltage, at this time the N-channel field effect transistor M4 is turned on and the P-channel field effect transistor M1 is turned on, then the voltage is obtained at point A, the output current when the 12V power supply is normally output passes through the light-emitting diode LED1 and the green light is on, and the gate-source voltage VGS of the P-channel field effect transistor M3 connected to the 12V power supply is 0V, then the P-channel field effect transistor M3 is turned off, and no voltage is output at point B;
[0074] At the same time, when the adjustable resistor R12 is 1K-100K ohms, the instantaneous voltage at point A reaches 0.9-9V, at which time the upper plate of capacitor C1 is charged and the bipolar PNP transistor Q1 is turned on, and the voltage divided by the resistor R2 and the resistor R4, which are equivalent to 10K ohms, is 0.45-4.5V, which can turn on the driving N-channel field effect transistor M5, so that the bipolar PNP transistor Q1 is continuously turned on and outputs 5V. When the output end is short-circuited to the ground, the voltage divided by the equivalent resistor R2 and the resistor R4 is 0V, which will turn off the N-channel field effect transistor M5, and further turn off the bipolar PNP transistor Q1;
[0075] Step 3, when the same-direction input terminal of the comparator U2 is greater than the reverse input terminal, the pin 4 of the comparator U2 directly outputs a 5V voltage, at this time the N-channel field effect transistor M6 is turned on and the P-channel field effect transistor M3 is turned on, then the voltage is obtained at point B, the 12V standby power supply is normal and the output current passes through the light-emitting diode LED2 and the yellow light is on, the 12V power supply is abnormal and there is no output, and no voltage is output at point A;
[0076] At the same time, when the adjustable resistor R16 is 1K-100K ohms, the voltage at the moment of power-on at point B reaches 0.9-9V, at this time, the upper plate of capacitor C2 is charged, and the bipolar PNP transistor Q2 is turned on, and the voltage is divided by the resistor R8 and the resistor R9, which are equivalent to 10K ohms, to obtain 0.45-4.5V, which can turn on the driving N-channel field effect transistor M7, so that the bipolar PNP transistor Q2 is continuously turned on and outputs 5V. When the output end is short-circuited to the ground, the voltage divided by the equivalent resistor R8 and the resistor R9 is 0V, which will turn off the N-channel field effect transistor M7, and further turn off the bipolar PNP transistor Q2;
[0077] Step 4: The voltage value of the adjustable voltage output terminal is controlled by the adjustable resistor R12 and the adjustable resistor R16, and in the power supply circuit with indicator light, two independent power supplies, 12V power supply and 12V backup power supply, are used. When one power supply fails, the backup power supply can automatically take over the work of the vehicle's external sensor to ensure the continuous operation of the power supply circuit.
[0078] The above description is only a preferred embodiment of the utility model and is not intended to limit the utility model. Any modifications, equivalent substitutions, improvements, etc. made within the design concept of the utility model should be included in the protection scope of the utility model.
Claims
1. A power supply circuit with an indicator light and adjustable voltage for short-circuit protection to the power supply and to the ground, characterized in that: The invention comprises an output circuit (1), a first comparator switch circuit (2), a second comparator switch circuit (3), a first short-circuit protection circuit (4) to ground and a second short-circuit protection circuit (5) to ground, wherein two ends of the output circuit (1) are respectively connected to the first comparator switch circuit (2) and the second comparator switch circuit (3), and the first comparator switch circuit (2) and the second comparator switch circuit (3) are connected in parallel, the first comparator switch circuit (2) and the first short-circuit protection circuit (4) to ground are connected in series, the second comparator switch circuit (3) and the second short-circuit protection circuit (5) to ground are connected in series, and the first short-circuit protection circuit (4) and the second short-circuit protection circuit (5) to ground are connected in parallel, and an adjustable voltage output terminal is drawn between the first short-circuit protection circuit (4) and the second short-circuit protection circuit (5); The output circuit (1) is provided with an LDO low-voltage dropout linear regulator U3, and a diode D2 and a diode D3 are connected in series at an input pin 1 end of the LDO low-voltage dropout linear regulator U3, and the other ends of the diode D2 and the diode D3 are connected to a 12V power supply and a 12V standby power supply respectively, and the LDO low-voltage dropout linear regulator U3 converts an input voltage of 12V into an output voltage of 5V; The first comparator switch circuit (2) comprises a P-channel field effect transistor M1, an N-channel field effect transistor M4, a light emitting diode LED1, a resistor R5, a resistor R7, a resistor R10, a resistor R6, a resistor R12 and a comparator U1, wherein the P-channel field effect transistor M1 and the N-channel field effect transistor M4 both comprise pins 1, 2 and 3, and a resistor R5 is connected in series between the pin 1 of the P-channel field effect transistor M1 and the pin 3 of the N-channel field effect transistor M4, the pin 2 of the P-channel field effect transistor M1 is connected to a 12V power supply, the pin 3 of the P-channel field effect transistor M1 is connected to the light emitting diode LED1, and the pin 2 of the N-channel field effect transistor M4 is grounded; The comparator U1 includes pins 1, 2, 3, 4 and 5, the pin 1 of the N-channel field effect transistor M4 is connected to the pin 4 of the comparator U1, the other end of the output of the light emitting diode LED1 is connected in series with resistors R7 and R10 in sequence, the voltage divider circuit between the resistors R7 and R10 is connected to the pin 3 of the comparator U1, the pin 1 of the comparator U1 is connected to a voltage divider circuit, and one end of the voltage divider circuit is connected in series with a 5V voltage, a resistor R6, a resistor R12 and grounding in sequence from one end to the other end, the pin 5 of the comparator U1 is connected to a 5V voltage, and the pin 2 of the comparator U1 is grounded; Resistors R5, R7, R10, and R6 are equal-value resistors, and the resistance values are all 10K ohms; resistor R12 is an adjustable resistor, and the resistance value ranges from 1K to 100K ohms; The node between the light emitting diode LED1 and the first short-circuit protection circuit (4) to ground is marked as point A, and the output voltage of point A is UA; when the same-direction input terminal of the comparator U1 is greater than the reverse input terminal, the pin 4 of the comparator U1 directly outputs a 5V voltage, at which time the N-channel field effect transistor M4 is turned on, and because the N-channel field effect transistor M4 is turned on, the P-channel field effect transistor M1 is turned on, and the voltage is obtained at point A; When the voltage at point A is divided by resistors R7 and R10, the voltage at the reverse input terminal of comparator U1 is greater than the voltage at the same input terminal of comparator U1, so that the input voltage at pin 3 of comparator U1 is greater than the input voltage of the 5V voltage obtained at pin 1 of comparator U1 after being divided by resistors R6 and R12, then comparator U1 outputs 0V, and at this time, N-channel field effect transistor M4 is turned off, and because N-channel field effect transistor M4 is turned off, P-channel field effect transistor M1 is turned off; The output voltage at point A is UA, so the voltage calculation formula at point A is In the formula, R6=R7=R10=10KΩ, R12=1KΩ-100KΩ, then UA=0.9V-9V, and the output voltage UA at point A can be adjusted between 0.9V and 9V through the adjustable resistance value of R12. Conversely, when the value of the output voltage UA is determined, the resistance value of R12 can be calculated.
2. A power supply circuit with an indicator light and adjustable voltage for short-circuit protection to the power supply and the ground according to claim 1, characterized in that: The first short-circuit protection circuit (4) to ground is provided with a bipolar PNP transistor Q1, the bipolar PNP transistor Q1 comprises pins 1, 2 and 3, the pin 2 of the bipolar PNP transistor Q1 is connected to the output end of the light-emitting diode LED1, the resistor R1, the first field effect transistor amplifier circuit and the resistor R2 are sequentially connected in series between the pins 1 to 3 of the bipolar PNP transistor Q1, wherein the first field effect transistor amplifier circuit comprises an N-channel field effect transistor M5, a capacitor C1 and a resistor R4, the N-channel field effect transistor M5 comprises pins 1, 2 and 3, the pin 2 of the N-channel field effect transistor M5 is grounded, and the resistor R4 and the capacitor C1 are sequentially connected in series between the pins 1 to 3 of the N-channel field effect transistor M5; When the adjustable resistor is set to R12=10K ohms, the voltage at point A reaches 5V at the moment of power-on. Because the voltage across the capacitor C1 cannot change suddenly, the upper plate of the capacitor C1 is charged at the moment of power-on. During the charging process of the capacitor C1, the bipolar PNP transistor Q1 is turned on. After the bipolar PNP transistor Q1 is turned on, because the resistors R2 and R4 are both 10K ohms, the voltage divided to 2.5V can drive the N-channel field effect transistor M5 to turn on. After the N-channel field effect transistor M5 is turned on, the bipolar PNP transistor Q1 can be continuously turned on to output 5V. When the output end is short-circuited to the ground, the resistors R2 and R4 are both 10K ohms and the voltage divided to 0V. At this time, the N-channel field effect transistor M5 is turned off. After the N-channel field effect transistor M5 is turned off, the bipolar PNP transistor Q1 is turned off. The resistors R1 , R2 and R4 are equal-valued resistors, and the resistance values are all 10K ohms. The specification of the capacitor C1 is 1uF / 50V.
3. A power supply circuit with an indicator light and adjustable voltage for short-circuit protection to the power supply and the ground according to claim 2, characterized in that: The second comparator switch circuit (3) comprises a P-channel field effect transistor M3, an N-channel field effect transistor M6, a light emitting diode LED2, a resistor R3, a resistor R13, a resistor R115, a resistor R11, a resistor R16 and a comparator U2, wherein the P-channel field effect transistor M3 and the N-channel field effect transistor M6 both comprise pins 1, 2 and 3, and a resistor R3 is connected in series between pin 1 of the P-channel field effect transistor M3 and pin 3 of the N-channel field effect transistor M6, pin 2 of the P-channel field effect transistor M3 is connected to a 12V standby power supply, pin 3 of the P-channel field effect transistor M3 is connected to the light emitting diode LED2, and pin 2 of the N-channel field effect transistor M6 is grounded; The comparator U2 includes pins 1, 2, 3, 4 and 5, the pin 1 of the N-channel field effect transistor M6 is connected to the pin 4 of the comparator U2, the other end of the output of the light emitting diode LED2 is connected in series with a resistor R13 and a resistor R15 in sequence, the voltage divider circuit between the resistor R13 and the resistor R15 is connected to the pin 3 of the comparator U2, the pin 1 of the comparator U2 is connected to another voltage divider circuit, and one end of the other voltage divider circuit is connected in series with a 5V voltage, a resistor R11, a resistor R16 and grounding in sequence from one end to the other end, the pin 5 of the comparator U2 is connected to a 5V voltage, and the pin 2 of the comparator U2 is grounded; Resistors R3, R13, R15 and R11 are equal-value resistors, and the resistance values are all 10K ohms; resistor R16 is an adjustable resistor, and the resistance value ranges from 1K to 100K ohms; The node between the light emitting diode LED2 and the second short-circuit protection circuit (5) to ground is marked as point B, and the output voltage of point B is UB; when the same-direction input terminal of the comparator U2 is greater than the reverse input terminal, the pin 4 of the comparator U2 directly outputs a 5V voltage, at which time the N-channel field effect transistor M6 is turned on, and because the N-channel field effect transistor M6 is turned on, the P-channel field effect transistor M3 is turned on, and the voltage is obtained at point B; When the voltage at point B is divided by resistors R13 and R15, the voltage at the reverse input terminal of comparator U2 is greater than the voltage at the same input terminal of comparator U2, so that the input voltage at pin 3 of comparator U2 is greater than the input voltage of the 5V voltage in the voltage divider circuit obtained at pin 1 of comparator U2 after being divided by resistors R11 and R16, then comparator U3 outputs 0V, and at this time, N-channel field effect transistor M6 is turned off, and because the N-channel field effect transistor M6 is turned off, the P-channel field effect transistor M3 is turned off; The output voltage at point B is UB, so the voltage calculation formula at point B is In the formula, R11=R13=R15=10KΩ, R16=1KΩ-100KΩ, then UB=0.9V-9V, and the output voltage UB at point B can be adjusted between 0.9V and 9V through the adjustable resistance value of R16. Conversely, when the value of the output voltage UB is determined, the resistance value of R16 can be calculated.
4. A power supply circuit with an indicator light and adjustable voltage for short-circuit protection to the power supply and the ground according to claim 3, characterized in that: The second short-circuit protection circuit (5) to ground is provided with a bipolar PNP transistor Q2, the bipolar PNP transistor Q2 comprises pins 1, 2 and 3, the pin 2 of the bipolar PNP transistor Q2 is connected to the output end of the light-emitting diode LED2, the resistor R8, the second field effect transistor amplifier circuit and the resistor R9 are sequentially connected in series between the pins 1 to 3 of the bipolar PNP transistor Q2, wherein the second field effect transistor amplifier circuit comprises an N-channel field effect transistor M7, a capacitor C2 and a resistor R14, the N-channel field effect transistor M7 comprises pins 1, 2 and 3, the pin 2 of the N-channel field effect transistor M7 is grounded, and the resistor R14 and the capacitor C2 are sequentially connected in series between the pins 1 to 3 of the N-channel field effect transistor M7; When the adjustable resistor is set to R16=10K ohms, the voltage at point B reaches 5V at the moment of power-on. Because the voltage across capacitor C2 cannot change suddenly, the upper plate of capacitor C2 is charged at the moment of power-on. During the charging process of capacitor C2, bipolar PNP transistor Q2 is turned on. After bipolar PNP transistor Q2 is turned on, because resistors R8 and R9 are both 10K ohms, the voltage divided to 2.5V can drive N-channel field effect transistor M7 to turn on. After N-channel field effect transistor M7 is turned on, bipolar PNP transistor Q2 can be continuously turned on to output 5V. When the output end is short-circuited to the ground, resistors R9 and R14 are both 10K ohms and the voltage divided to 0V. At this time, N-channel field effect transistor M7 is turned off. After N-channel field effect transistor M7 is turned off, bipolar PNP transistor Q2 is turned off. The resistors R8 , R9 and R14 are equal-valued resistors, and the resistance values are all 10K ohms. The specification of the capacitor C2 is 1uF / 50V.
5. A power supply circuit with an indicator light and adjustable voltage for short-circuit protection to power supply and ground according to claim 4, characterized in that: The 12V power supply introduces a line connecting between the pin No. 1 of the P-channel field effect transistor M3 and the resistor R3, so that when the 12V power supply is in the normal output operation process, the gate-source voltage VGS of the P-channel field effect transistor M3 is 0V, so that the P-channel field effect transistor M3 is turned off, and the point A in the first comparator switch circuit (2) outputs a 5V voltage, so that when the power supply circuit where the external sensor is located is working, the light-emitting diode LED1 lights up green, and at the same time, the point B does not output voltage; When the 12V power supply has no output, when the non-inverting input of the comparator U2 is greater than the reverse input, the pin 4 of the comparator U2 directly outputs a 5V voltage, at which time the N-channel field effect transistor M6 is turned on, and because the N-channel field effect transistor M6 is turned on, the P-channel field effect transistor M3 is turned on, then point B obtains voltage, and the 12V backup power supply circuit starts to work.
6. A power supply circuit with an indicator light and adjustable voltage for short-circuit protection to power supply and ground according to claim 4, characterized in that: The light emitting diode LED1 lights up green, and the light emitting diode LED2 lights up yellow. In the circuit where the light emitting diodes LED1 and LED2 are located, light will be emitted when there is current output in the corresponding output channel; when the adjustable voltage output terminal is short-circuited to a power supply with a voltage higher than 12V, due to the unidirectional conductivity of the light emitting diode LED, it has the characteristic of preventing external power from flowing back and damaging the internal circuit.
7. The power supply circuit with an indicator light and adjustable voltage for short-circuit protection to the power supply and the ground according to claim 4, characterized in that: The model of the LDO low-dropout linear regulator U3 is TPS7B6950QDBVRQ1; The diode D2 and the diode D3 are of the same model, both of which are BAS21HT1G; The P-channel field effect transistor M1 and the P-channel field effect transistor M3 are of the same model, both of which are BSS84LT1G; The N-channel field effect transistor M4, the N-channel field effect transistor M6, the N-channel field effect transistor M5 and the N-channel field effect transistor M7 are of the same model, which is 2N7002BK; The comparator U1 and the comparator U2 are of the same model, both of which are MCP6001UT-E / OT; The bipolar PNP transistor Q1 and the bipolar PNP transistor Q2 are of the same model, MMBT3906LT1G.
