A multi-level voltage output circuit and system for power supply status detection

Through a multi-stage voltage output circuit, a MCU AD sampling input interface is used to detect the state of mains power and backup power supply, which solves the problem of insufficient MCU AD sampling input interface and reduces costs.

CN119044813BActive Publication Date: 2025-08-29ZHONGTIAN BROADBAND TECH +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411199852.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2025-08-29
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

In the prior art, the MCU AD sampling input interface of the communication base station is insufficient, resulting in the need to replace the MCU to realize the detection of AC mains and backup power status, which increases the cost.

Method used

A multi-stage voltage output circuit is adopted, including a first detection unit, a second detection unit and a multi-stage voltage output unit. Through a voltage conversion unit and an amplification circuit, a MCU AD sampling input interface is used to detect the state of the mains power and the backup power supply, and the output state indication voltage is achieved.

Benefits of technology

There is no need to replace the MCU, and the AD sampling input interface is used to detect the status of the mains and backup power supply, reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119044813B_ABST
    Figure CN119044813B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-level voltage output circuit and a power state detection system for power state detection. The multi-level voltage output circuit for power state detection includes a first detection unit, a second detection unit, and a multi-level voltage output unit. The first detection unit is used to perform power state detection on a first target object to obtain a first power state voltage; the second detection unit is used to perform power state detection on a second target object to obtain a second power state voltage; wherein the first power state voltage and the second power state voltage are unequal; and the multi-level voltage output unit is used to output a state indication voltage based on the first power state voltage and the second power state voltage. The multi-level voltage output circuit and the power state detection system for power state detection provided by embodiments of the present invention save costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit detection, and in particular to a multi-level voltage output circuit for power supply state detection and a power supply state detection system. Background Art

[0002] Currently, to ensure the normal operation of communication base stations, a backup power supply is configured for the communication base stations. Normally, the communication base stations are powered by AC mains electricity. When the AC mains electricity fails to power the communication base stations, the backup power supply is activated to power the communication base stations.

[0003] In the prior art, in order to detect the status of the AC mains and the backup power supply, two sensors are set to detect the status of the AC mains and the power supply status of the backup power supply respectively. The two sensors are respectively connected to the AD sampling input interface of the microcontroller unit (MCU) of a controller in the communication base station, occupying two AD sampling input interfaces of the MCU. In actual applications, there are situations where the AD sampling input interface of the MCU is insufficient and it is necessary to replace the MCU with more AD sampling input interfaces in order to provide two AD sampling input interfaces for detecting the status of the AC mains and the backup power supply. However, replacing the MCU will increase the cost. Therefore, how to provide a circuit structure that only requires one AD sampling input interface to realize the status of the AC mains and the backup power supply and avoid the replacement of the MCU has become an important issue that needs to be solved in this field. Summary of the Invention

[0004] In response to the problems in the prior art, embodiments of the present invention provide a multi-stage voltage output circuit and a power state detection system for power state detection, which can at least partially solve the problems in the prior art.

[0005] In one aspect, the present invention provides a multi-level voltage output circuit for power state detection, comprising a first detection unit, a second detection unit, and a multi-level voltage output unit, wherein:

[0006] The first detection unit is used to detect the power state of the first target object and obtain a first power state voltage; the second detection unit is used to detect the power state of the second target object and obtain a second power state voltage; wherein the first power state voltage and the second power state voltage are not equal;

[0007] The multi-level voltage output unit is configured to output a state indicating voltage according to the first power state voltage and the second power state voltage.

[0008] Furthermore, the multi-level voltage output circuit for power state detection provided in an embodiment of the present invention also includes a voltage conversion unit, which is used to perform voltage conversion on the first power state voltage to obtain a conversion voltage so that the conversion voltage is not equal to the second power state voltage; accordingly, the multi-level voltage output unit is used to output a state indication voltage based on the conversion voltage and the second power state voltage.

[0009] Furthermore, the voltage conversion unit includes a transistor, a first resistor, a second resistor and a third resistor, wherein:

[0010] The first end of the first resistor is connected to the output end of the first detection unit, the second end of the first resistor is connected to the base of the transistor, the first end of the second resistor is connected to the power supply, the second end of the second resistor is connected to the collector of the transistor, the first end of the third resistor is connected to the emitter of the transistor, the second end of the third resistor is grounded, and the collector of the transistor outputs the conversion voltage.

[0011] Furthermore, the voltage conversion unit adopts a diode.

[0012] Furthermore, the multi-stage voltage output unit includes an amplifier circuit and a voltage divider circuit, wherein:

[0013] The amplifier circuit is used to output an intermediate voltage according to the input voltage and the second power state voltage, and the voltage divider circuit is used to convert the intermediate voltage into a state indication voltage; the input voltage is the first power state voltage or the conversion voltage.

[0014] Furthermore, the amplifying circuit includes an operational amplifier, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor and an eighth resistor, wherein:

[0015] The first end of the fourth resistor inputs the input voltage, the second end of the fourth resistor is connected to the first input end of the operational amplifier, the first end of the sixth resistor is connected to the output end of the second detection unit, the second end of the sixth resistor is connected to the second input end of the operational amplifier, the first end of the seventh resistor is connected to the power supply, the second end of the seventh resistor is connected to the second input end of the operational amplifier, the first end of the eighth resistor is connected to the second input end of the operational amplifier, the second end of the eighth resistor is grounded, the first end of the fifth resistor is connected to the output end of the operational amplifier, and the second end of the fifth resistor is connected to the first input end of the operational amplifier.

[0016] Furthermore, the voltage divider circuit includes a ninth resistor and a tenth resistor, wherein:

[0017] The first end of the ninth resistor is connected to the output end of the amplifier circuit, the second end of the ninth resistor is connected to the first end of the tenth resistor, the second end of the tenth resistor is grounded, and the second end of the ninth resistor serves as the output end of the voltage divider circuit.

[0018] Furthermore, it includes at least one capacitor, and each capacitor is connected in parallel with the tenth resistor.

[0019] Furthermore, the multi-stage voltage output unit further includes a voltage follower circuit, a first input end of the voltage follower circuit is connected to the output end of the voltage divider circuit, and the output end of the voltage follower circuit outputs the state indication voltage.

[0020] In another aspect, the present invention provides a power status detection system, comprising the multi-stage voltage output circuit and control unit for power status detection described in any one of the above embodiments, wherein:

[0021] The control unit is connected to the output end of the multi-stage voltage output circuit for power state detection;

[0022] The control unit is used to obtain the power status of the first target object and the power status of the second target object based on the status indication voltage and the power status comparison table; wherein, the power status comparison table is preset and includes the correspondence between the status indication voltage and the power status of the first target object and the power status of the second target object.

[0023] A multi-level voltage output circuit and a power status detection system for power status detection provided by an embodiment of the present invention include a first detection unit, a second detection unit, and a multi-level voltage output unit. The first detection unit is used to detect the power status of a first target object and obtain a first power status voltage; the second detection unit is used to detect the power status of a second target object and obtain a second power status voltage; wherein the first power status voltage and the second power status voltage are not equal; the multi-level voltage output unit is used to output a corresponding status indication voltage based on the first power status voltage and the second power status voltage. By detecting the power status of different objects through one output voltage, there is no need to replace the MCU, thus saving costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0025] Figure 1 1 is a schematic structural diagram of a multi-stage voltage output circuit for power supply status detection provided by the first embodiment of the present invention.

[0026] Figure 2 1 is a schematic structural diagram of a multi-stage voltage output circuit for power supply status detection provided by a second embodiment of the present invention.

[0027] Figure 3 FIG. 4 is a schematic structural diagram of a voltage conversion unit provided in a third embodiment of the present invention.

[0028] Figure 4 4 is a schematic structural diagram of a multi-stage voltage output circuit for power supply status detection provided by a fourth embodiment of the present invention.

[0029] Figure 5 2 is a schematic structural diagram of an amplifier circuit provided in a fifth embodiment of the present invention.

[0030] Figure 6 2 is a schematic structural diagram of a voltage divider circuit provided in a sixth embodiment of the present invention.

[0031] Figure 7 2 is a schematic structural diagram of a multi-level voltage output unit provided by the seventh embodiment of the present invention.

[0032] Figure 8 2 is a schematic structural diagram of a multi-stage voltage output unit provided by an eighth embodiment of the present invention.

[0033] Figure 9 It is a structural diagram of a power status detection system provided by the ninth embodiment of the present invention.

[0034] Figure 10 1 is a schematic structural diagram of a multi-stage voltage output circuit for power supply status detection provided by the tenth embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments in this application can be combined with each other in any way. The acquisition, storage, use, processing, etc. of data in the technical solutions in this application comply with the relevant provisions of laws and regulations.

[0036] In order to facilitate understanding of the technical solution provided by this application, the relevant contents of the technical solution of this application are first explained below.

[0037] To meet the requirements of DC metering units in base stations for detecting the power status of both the mains and backup power supplies, sensors are typically used to output multi-level voltages. This requires using two MCU AD sampling inputs to monitor the status of both the mains and backup power supplies. However, if the MCU lacks sufficient AD sampling inputs, reselecting the MCU is necessary, increasing the cost of power status detection.

[0038] In response to the above problems, this application proposes a multi-level voltage output circuit for power status detection, which can realize power status detection of two different target objects using one AD sampling input interface of the MCU, reducing the use of one AD sampling input interface and reducing the cost of power status detection.

[0039] Figure 1 FIG. 1 is a schematic diagram of a multi-level voltage output circuit for power supply status detection provided by a first embodiment of the present invention. Figure 1 As shown, the multi-level voltage output circuit for power state detection provided by the embodiment of the present invention includes a first detection unit 1, a second detection unit 2 and a multi-level voltage output unit 3, wherein:

[0040] The first detection unit 1 is used to detect the power state of the first target object and obtain a first power state voltage; the second detection unit 2 is used to detect the power state of the second target object and obtain a second power state voltage; wherein the first power state voltage and the second power state voltage are not equal;

[0041] The multi-level voltage output unit 3 is configured to output a corresponding state indication voltage according to the first power state voltage and the second power state voltage.

[0042] Specifically, the first detection unit 1 can use a sensor capable of detecting the power state of a first target object, wherein different power states of the first target object correspond to different first power state voltages. The second detection unit 2 can use a sensor capable of detecting the power state of a second target object, wherein different power states of the second target object correspond to different second power state voltages. The first power state voltage and the second power state voltage are unequal, i.e., regardless of whether the power state of the first target object and the power state of the second target object are the same, the detected first power state voltage and the second power state voltage are unequal.

[0043] The multi-level voltage output unit 3 receives the first power state voltage and the second power state voltage and is capable of outputting a state indication voltage corresponding to the first power state voltage and the second power state voltage based on the first power state voltage and the second power state voltage. The state indication voltage is used to indicate the power state of a first target object and the power state of a second target object, where the first target object and the second target object are different. An AD sampling input interface of the MCU can receive the state indication voltage and, based on the state indication voltage, obtain the power state of the first target object and the power voltage state of the second target object.

[0044] For example, the first target object is the mains power supply, and the second target object is the backup power supply. The mains power supply is preferentially used to power the electrical equipment. When the mains power supply is unavailable, the backup power supply is activated to power the electrical equipment. Both the mains power supply and the backup power supply have three power states: available, unavailable, and unknown. Due to the different sensors used, the resulting power state voltages are different. The first sensor detects the power state of the mains power supply. When the first sensor detects that the mains power supply is available, it outputs a first voltage u1; when the first sensor detects that the mains power supply is unavailable, it outputs a first voltage u2; when the first sensor cannot detect the mains power, the mains power state is unknown, and it outputs a third voltage u3. The second sensor detects the power state of the backup power supply. When the second sensor detects that the backup power supply is available, it outputs a fourth voltage u4; when the second sensor detects that the backup power supply is unavailable, it outputs a fifth voltage u5; when the second sensor cannot detect the power state of the backup power supply, the backup power supply state is unknown, and it outputs a sixth voltage u6. u1, u2, u3, u4, u5, and u6 are all different.

[0045] Since the mains power supply and the backup power supply each have three power states, the multi-level voltage output unit 3 can output nine status indication voltages based on the mains power state voltage and the backup power state voltage. A correspondence between the nine status indication voltages and the mains power and backup power state voltages is pre-established. Once the status indication voltages are obtained, the mains power state and the backup power state can be determined based on the obtained status indication voltages and the correspondence between the status indication voltages and the mains power and backup power state voltages.

[0046] A multi-level voltage output circuit for power status detection provided by an embodiment of the present invention includes a first detection unit, a second detection unit, and a multi-level voltage output unit. The first detection unit is used to detect the power status of a first target object and obtain a first power status voltage; the second detection unit is used to detect the power status of a second target object and obtain a second power status voltage; wherein the first power status voltage and the second power status voltage are not equal; the multi-level voltage output unit is used to output a corresponding status indication voltage based on the first power status voltage and the second power status voltage. By detecting the power status of different objects through one output voltage, there is no need to replace the MCU, thereby saving costs.

[0047] Figure 2 FIG. 1 is a schematic diagram of a multi-level voltage output circuit for power supply status detection provided by a second embodiment of the present invention. Figure 2 As shown, on the basis of the above embodiments, further, the multi-level voltage output circuit for power state detection provided in an embodiment of the present invention also includes a voltage conversion unit 4, which is used to perform voltage conversion on the first power state voltage to obtain a conversion voltage so that the conversion voltage is not equal to the second power state voltage; accordingly, the multi-level voltage output unit 3 is used to output a corresponding state indication voltage according to the conversion voltage and the second power state voltage.

[0048] Specifically, when the first detection unit 1 and the second detection unit 2 use the same components, the obtained first power state voltage and the second power state voltage may be equal. In order to distinguish the first power state voltage from the second power state voltage, a voltage conversion unit 4 can be provided. The voltage conversion unit 4 receives the first power state voltage and performs voltage conversion on the first power state voltage to obtain a converted voltage. The converted voltage is not equal to the second power state voltage.

[0049] When the voltage conversion unit 4 is added, one input terminal of the multi-level voltage output unit 3 is connected to the input terminal of the voltage conversion unit 4, and the corresponding state indication voltage is output according to the conversion voltage and the second power state voltage.

[0050] Figure 3 FIG. 1 is a schematic diagram of the structure of a voltage conversion unit provided by a third embodiment of the present invention. Figure 3 As shown, based on the above embodiments, the voltage conversion unit 4 further includes a transistor Q, a first resistor R1, a second resistor R2 and a third resistor R3, wherein:

[0051] A first end of the first resistor R1 is connected to the output end of the first detection unit 1, a second end of the first resistor R1 is connected to the base of the transistor Q, a first end of the second resistor R2 is connected to the power supply VCC, a second end of the second resistor R2 is connected to the collector of the transistor Q, a first end of the third resistor R3 is connected to the emitter of the transistor Q, a second end of the third resistor R3 is grounded, and the collector of the transistor Q outputs the conversion voltage.

[0052] The transistor Q can be an NPN transistor, which operates in the saturation region. The first resistor R1 is used to limit the current of the base of the transistor Q. The second resistor R2 and the third resistor R3 are used as voltage-dividing resistors. The first power supply state voltage from the input end of the first detection unit 1 is input from the first end of the first resistor R1, and the conversion voltage is output from the collector of the transistor Q. The specific resistance values ​​of the first resistor R1, the second resistor R2 and the third resistor R3 are set according to actual needs, and are not limited in the embodiment of the present invention. Among them, the transistor Q can also be replaced by a metal-oxide-semiconductor field-effect transistor (Metal-Oxide-Semiconductor Field-Effect Transistor, abbreviated as MOSFET), which can be selected according to actual needs, and is not limited in the embodiment of the present invention.

[0053] On the basis of the above embodiments, further, the voltage conversion unit 4 adopts a diode, the anode of the diode is connected to the output end of the first detection unit 1, and the cathode of the diode is connected to an input end of the multi-level voltage output unit 3.

[0054] Figure 4 FIG. 4 is a schematic diagram of a multi-stage voltage output circuit for power supply status detection provided by a fourth embodiment of the present invention. Figure 4 As shown, based on the above embodiments, the multi-level voltage output unit 3 further includes an amplifier circuit 31 and a voltage divider circuit 32, wherein:

[0055] Amplifier circuit 31 is configured to output an intermediate voltage based on an input voltage and the second power supply state voltage, and voltage divider circuit 32 is configured to convert the intermediate voltage into a state indication voltage. The input voltage is either the first power supply state voltage or the converted voltage. The MCU's analog-to-digital sampling input interface has a voltage amplitude limit. Voltage divider circuit 32 reduces the intermediate voltage so that the state indication voltage is within the voltage amplitude limit of the analog-to-digital sampling input interface.

[0056] For example, a first input terminal of amplifier circuit 31 is connected to the output terminal of first detection unit 1, and a second input terminal of amplifier circuit 31 is connected to the output terminal of second detection unit 2. Amplifier circuit 31 outputs an intermediate voltage based on the first power supply state voltage and the second power supply state voltage. Voltage divider circuit 32 is connected to the output terminal of amplifier circuit 31 and converts the intermediate voltage into a state indication voltage.

[0057] For example, a first input terminal of the amplifier circuit 31 is connected to the output terminal of the voltage conversion unit 4, and a second input terminal of the amplifier circuit 31 is connected to the output terminal of the second detection unit 2. The amplifier circuit 31 outputs an intermediate voltage based on the conversion voltage and the second power supply state voltage. The voltage divider circuit 32 is connected to the output terminal of the amplifier circuit 31 and converts the intermediate voltage into a state indication voltage.

[0058] Figure 5 FIG. 1 is a schematic diagram of the structure of an amplifier circuit provided in a fifth embodiment of the present invention. Figure 5 As shown, based on the above embodiments, the amplifier circuit 31 further includes an operational amplifier U1, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7 and an eighth resistor R8, wherein:

[0059] The first end of the fourth resistor R4 receives the input voltage, the second end of the fourth resistor R4 is connected to the first input end of the operational amplifier U1, the first end of the sixth resistor R6 is connected to the output end of the second detection unit 2, the second end of the sixth resistor R6 is connected to the second input end of the operational amplifier U1, the first end of the seventh resistor R7 is connected to the power supply VCC, the second end of the seventh resistor R7 is connected to the second input end of the operational amplifier U1, the first end of the eighth resistor R8 is connected to the second input end of the operational amplifier U1, the second end of the eighth resistor R8 is grounded, the first end of the fifth resistor R5 is connected to the output end of the operational amplifier U1, the second end of the fifth resistor R5 is connected to the first input end of the operational amplifier U1. The positive power supply end of the operational amplifier U1 is connected to the power supply VCC, and the negative power supply end of the operational amplifier U1 is grounded.

[0060] The fourth resistor R4 and the sixth resistor R6 serve to limit the current, and the seventh resistor R7 and the eighth resistor R8 serve to forward bias the voltage in the second power state.

[0061] When setting R4=R6=r1,R7=R8=2R5=2r2,the intermediate voltage V output by the operational amplifier U1 is out =0.5Vc+r2 / r1(V1-V2), V1 is the first power state voltage or the conversion voltage, V2 is the second power state voltage, and Vc is the voltage of the power supply connected to the operational amplifier U1.

[0062] Figure 6FIG. 1 is a schematic diagram of a voltage divider circuit according to a sixth embodiment of the present invention. Figure 6 As shown, based on the above embodiments, the voltage divider circuit 32 further includes a ninth resistor R9 and a tenth resistor R10, wherein:

[0063] The first end of the ninth resistor R9 is connected to the output end of the amplifier circuit 31 , the second end of the ninth resistor R9 is connected to the first end of the tenth resistor R10 , the second end of the tenth resistor R10 is grounded, and the second end of the ninth resistor R9 serves as the output end of the voltage divider circuit 32 .

[0064] Figure 7 FIG. 1 is a structural diagram of a multi-level voltage output unit provided by a seventh embodiment of the present invention. Figure 7 As shown, the multi-stage voltage output unit provided in an embodiment of the present invention further includes at least one capacitor C, each capacitor C being connected in parallel with the tenth resistor R10. The capacitor C is used to filter the voltage output by the voltage divider circuit 32 to reduce the impact of voltage ripple on the multi-stage voltage output circuit for power supply status detection. The capacitance values ​​of the capacitors C may be unequal to filter out waves of different frequencies. The specific number of the at least one capacitor C may be 1, 2, 3, etc., and may be set according to actual needs, and is not limited in the embodiment of the present invention.

[0065] Figure 8 FIG. 8 is a schematic structural diagram of a multi-level voltage output unit provided by an eighth embodiment of the present invention. Figure 8 As shown, based on the above embodiments, the multi-level voltage output unit 3 further includes a voltage follower circuit 33. The first input terminal of the voltage follower circuit 33 is connected to the output terminal of the voltage divider circuit 32, and the output terminal of the voltage follower circuit 33 outputs the state indication voltage. The voltage follower circuit 33 can enhance the output capability of the voltage and provide isolation.

[0066] Figure 9 FIG. 1 is a schematic diagram of the structure of a power status detection system provided by a ninth embodiment of the present invention. Figure 9 As shown, the power state detection system provided by an embodiment of the present invention includes the multi-level voltage output circuit 100 and the control unit 200 for power state detection described in any of the above embodiments, wherein:

[0067] The control unit 200 is connected to the output terminal of the multi-level voltage output circuit 100 for power state detection;

[0068] The control unit 200 is configured to obtain the power status of a first target object and the power status of a second target object based on the status indication voltage and a power status comparison table. The power status comparison table is preset and includes a correspondence between the status indication voltage and the power status of the first target object and the power status of the second target object. The control unit 200 may be an MCU.

[0069] The multi-level voltage output circuit 100 for power state detection can detect the power state of a first target object and a second target object, and output a state indication voltage. The control unit 200 receives the state indication voltage and, based on the state indication voltage, queries a power state comparison table to obtain the power state of the first target object and the power state of the second target object. The power state comparison table is preset and includes a correspondence between the state indication voltage and the power state of the first target object and the power state of the second target object.

[0070] For example, the first target object is the mains power supply, and the second target object is the backup power supply. Both the mains power supply and the backup power supply have three power states: available, unavailable, and unknown. Accordingly, a power state comparison table is set as shown in Table 1. If the status indicator voltage is E3, the query indicates that the mains power state is unknown and the backup power state is available.

[0071] Table 1 Power status comparison table

[0072]

[0073] Figure 10 FIG. 1 is a schematic diagram of a multi-stage voltage output circuit for power supply status detection provided by a tenth embodiment of the present invention. Figure 10 As shown, the multi-level voltage output circuit for power state detection provided by the embodiment of the present invention includes a sensor 1, a sensor 2, a voltage conversion unit and a multi-level voltage output unit, wherein:

[0074] The voltage conversion unit includes a transistor Q, a first resistor R1, a second resistor R2, and a third resistor R3. A first end of the first resistor R1 is connected to the output end of the sensor 1, a second end of the first resistor R1 is connected to the base of the transistor Q, a first end of the second resistor R2 is connected to the first power supply VCC1, a second end of the second resistor R2 is connected to the collector of the transistor Q, a first end of the third resistor R3 is connected to the emitter of the transistor Q, a second end of the third resistor R3 is grounded, and the collector of the transistor Q is connected to the first end of the fourth resistor R4.

[0075] The multi-level voltage output unit includes an amplifier circuit, a voltage divider circuit, and a voltage follower circuit. The amplifier circuit includes an operational amplifier U1, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8. The first end of the fourth resistor R4 is connected to the collector of the transistor Q, the second end of the fourth resistor R4 is connected to the first input terminal of the first operational amplifier U1, the first end of the sixth resistor R6 is connected to the output terminal of the second detection unit 2, the second end of the sixth resistor R6 is connected to the second input terminal of the first operational amplifier U1, the first end of the seventh resistor R7 is connected to the second power supply VCC2, the second end of the seventh resistor R7 is connected to the second input terminal of the first operational amplifier U1, the first end of the eighth resistor R8 is connected to the second input terminal of the first operational amplifier U1, the second end of the eighth resistor R8 is grounded, the first end of the fifth resistor R5 is connected to the output terminal of the first operational amplifier U1, the second end of the fifth resistor R5 is connected to the first input terminal of the first operational amplifier U1, the positive power supply terminal of the first operational amplifier U1 is connected to the third power supply VCC3, and the negative power supply terminal of the first operational amplifier U1 is grounded.

[0076] The voltage divider circuit includes a ninth resistor R9 and a tenth resistor R10. The first end of the ninth resistor R9 is connected to the output end of the first operational amplifier U1. The second end of the ninth resistor R9 is connected to the first end of the tenth resistor R10. The second end of the tenth resistor R10 is grounded. The second end of the ninth resistor R9 serves as the output end of the voltage divider circuit 32.

[0077] The voltage follower circuit adopts a second operational amplifier U2, a first input terminal of the second operational amplifier U2 is connected to the second terminal of the ninth resistor R9, and an output terminal of the second operational amplifier U2 is connected to the second input terminal of the second operational amplifier U2.

[0078] Furthermore, the multi-level voltage output unit also includes a first capacitor C1, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, and an eleventh resistor R11. The first end of the first capacitor C1 is connected to the positive power supply terminal of the operational amplifier U1, and the second end of the first capacitor C1 is grounded. The second capacitor C2 and the third capacitor C3 are respectively connected in parallel to the two ends of the tenth resistor R10. The first end of the eleventh resistor R11 is connected to the output terminal of the second operational amplifier U2, and the second end of the eleventh resistor R11 is connected to an AD sampling input interface of the MCU. The first end of the fourth capacitor C4 is connected to the second end of the eleventh resistor R11, and the second end of the fourth capacitor C4 is grounded.

[0079] The first capacitor C1, the second capacitor C2, the third capacitor C3, and the fourth capacitor C4 are used to filter the voltage and reduce the impact of voltage ripple on the multi-stage voltage output circuit used for power status detection. The eleventh resistor R11 acts as a current limiter in the circuit, limiting the current value input to the MCU to prevent damage to the MCU.

[0080] The multi-level voltage output circuit for power status detection provided in an embodiment of the present invention reduces the number of AD sampling input interfaces used to detect the power status of two different objects when the MCU has insufficient AD sampling input interfaces, without replacing the MCU, thereby saving costs.

[0081] Throughout this specification, reference to terms such as "one embodiment," "a specific embodiment," "some embodiments," "for example," "example," "specific example," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0082] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A multi-level voltage output circuit for power supply status detection, characterized in that: It includes a first detection unit, a second detection unit and a multi-level voltage output unit, wherein: The first detection unit is used to detect the power state of the first target object and obtain a first power state voltage; the second detection unit is used to detect the power state of the second target object and obtain a second power state voltage; wherein the first power state voltage and the second power state voltage are not equal; the power state is available, unavailable or unknown; The multi-level voltage output unit is used to output a state indication voltage according to the first power state voltage and the second power state voltage; there are multiple state indication voltages, each state indication voltage is used to indicate the power state of the first target object and the power state of the second target object.

2. The multi-level voltage output circuit for power supply status detection according to claim 1, characterized in that: It also includes a voltage conversion unit, which is used to perform voltage conversion on the first power state voltage to obtain a conversion voltage so that the conversion voltage is not equal to the second power state voltage; accordingly, the multi-level voltage output unit is used to output a state indication voltage based on the conversion voltage and the second power state voltage.

3. The multi-level voltage output circuit for power supply status detection according to claim 2, characterized in that: The voltage conversion unit includes a transistor, a first resistor, a second resistor and a third resistor, wherein: The first end of the first resistor is connected to the output end of the first detection unit, the second end of the first resistor is connected to the base of the transistor, the first end of the second resistor is connected to the power supply, the second end of the second resistor is connected to the collector of the transistor, the first end of the third resistor is connected to the emitter of the transistor, the second end of the third resistor is grounded, and the collector of the transistor outputs the conversion voltage.

4. The multi-level voltage output circuit for power supply status detection according to claim 2, characterized in that: The voltage conversion unit uses a diode.

5. The multi-level voltage output circuit for power supply status detection according to claim 1 or 2, characterized in that: The multi-level voltage output unit includes an amplifier circuit and a voltage divider circuit, wherein: The amplifier circuit is used to output an intermediate voltage according to the input voltage and the second power state voltage, and the voltage divider circuit is used to convert the intermediate voltage into a state indication voltage; the input voltage is the first power state voltage or the conversion voltage.

6. The multi-level voltage output circuit for power supply status detection according to claim 5, characterized in that: The amplifying circuit includes an operational amplifier, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, and an eighth resistor, wherein: The first end of the fourth resistor inputs the input voltage, the second end of the fourth resistor is connected to the first input end of the operational amplifier, the first end of the sixth resistor is connected to the output end of the second detection unit, the second end of the sixth resistor is connected to the second input end of the operational amplifier, the first end of the seventh resistor is connected to the power supply, the second end of the seventh resistor is connected to the second input end of the operational amplifier, the first end of the eighth resistor is connected to the second input end of the operational amplifier, the second end of the eighth resistor is grounded, the first end of the fifth resistor is connected to the output end of the operational amplifier, and the second end of the fifth resistor is connected to the first input end of the operational amplifier.

7. The multi-level voltage output circuit for power supply status detection according to claim 5, characterized in that: The voltage divider circuit includes a ninth resistor and a tenth resistor, wherein: The first end of the ninth resistor is connected to the output end of the amplifier circuit, the second end of the ninth resistor is connected to the first end of the tenth resistor, the second end of the tenth resistor is grounded, and the second end of the ninth resistor serves as the output end of the voltage divider circuit.

8. The multi-level voltage output circuit for power supply status detection according to claim 7, characterized in that: The device further includes at least one capacitor, and each capacitor is connected in parallel with the tenth resistor.

9. The multi-level voltage output circuit for power supply status detection according to claim 5, characterized in that: The multi-stage voltage output unit further includes a voltage follower circuit, a first input end of the voltage follower circuit is connected to the output end of the voltage divider circuit, and an output end of the voltage follower circuit outputs the state indication voltage.

10. A power status detection system, characterized in that: The multi-level voltage output circuit and control unit for power state detection according to any one of claims 1 to 9, wherein: The control unit is connected to the output end of the multi-stage voltage output circuit for power state detection; The control unit is used to obtain the power status of the first target object and the power status of the second target object based on the status indication voltage and the power status comparison table; wherein, the power status comparison table is preset and includes the correspondence between the status indication voltage and the power status of the first target object and the power status of the second target object.

Citation Information

Patent Citations

  • Self-adaptive optimized control system and method of distributive battery management system

    CN103904376A

  • Standby power supply switching circuit and device

    CN114513046A

  • Gas station monitoring platform power supply protection device

    CN215009732U

  • Dual power supply reverse connection state detection circuit and detection device

    CN219245732U