Switching power supply and discharging method
Technical Field
The invention relates to the field of electric power, in particular to a switching power supply and a discharging method.
Background
In the final assembly production process of the multi-split air conditioner external unit, the assembled air conditioner external unit needs to be subjected to power-on test, and meanwhile, hardware of the whole air conditioner external unit can be detected through professional computer software. And when the test result is qualified, cutting off the power supply of the multi-connected outdoor unit, and sending the tested air conditioner outdoor unit to a refrigerant filling station. During filling, the problems that the refrigerant cannot be added or the addition amount is insufficient and the like often occur, so that the phenomenon of secondary filling of the refrigerant occurs. The investigation shows that after the multi-connected outdoor unit is powered off, the switching power supply can stop working after a long time because the bus capacitor of the switching power supply still stores a large amount of electric energy. This results in the electronic expansion valve being in an uncontrolled working state, and continuing to keep working depending on the residual electric quantity of the bus capacitor, and finally the electronic expansion valve is in a state of almost complete closing, resulting in that the subsequent refrigerant filling cannot be carried out.
In view of the above problems in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a switching power supply and a discharging method, which at least solve the problem that a bus capacitor of a multi-online switching power supply cannot be rapidly discharged after power failure in the related technology.
According to an embodiment of the present invention, there is provided a switching power supply including: the device comprises a rectifying circuit, an alternating current relay, a bus capacitor and a discharge resistor; the first end and the second end of the rectifying circuit are connected with the input end of the open source power supply, and the third end and the fourth end of the rectifying circuit are connected with the output end of the open source power supply; the first end and the second end of the alternating current relay are connected with the input end of the open source power supply, and the third end and the fourth end of the alternating current relay are connected with the output end of the open source power supply; one end of the bus capacitor is connected with the fifth end of the alternating current relay, and the other end of the bus capacitor is connected with the third end of the rectifying circuit;
one end of the discharge resistor is connected with the third end of the rectifying circuit, and the other end of the discharge resistor is connected with the fourth end of the alternating current relay.
Optionally, when the switching power supply is powered on, one end of the bus capacitor is connected with a third end of the ac relay to form a loop, so as to charge the bus capacitor; and under the condition that the switching power supply is powered off, one end of the bus capacitor is connected with the fourth end of the alternating current relay to form a loop with the discharge resistor, so that the bus capacitor releases the stored electric energy through the discharge resistor.
Optionally, the switching power supply further includes: an overcurrent protection circuit; the overcurrent protection circuit is connected in series between the rectifying circuit and the input end.
Optionally, the over-current protection circuit includes: and the protective tube is connected between the rectifying circuit and the input end in series.
Optionally, the switching power supply further includes: an overvoltage protection circuit, wherein the overvoltage protection circuit is connected in parallel to the switching power supply.
Optionally, the overvoltage protection circuit comprises a bidirectional regulator tube and a first capacitor; the bidirectional voltage-regulator tube is connected with the first capacitor in parallel.
According to an embodiment of the present invention, there is provided a method for discharging a bus capacitor in a switching power supply, including: acquiring the power-on condition of the switching power supply; and determining whether to discharge the bus capacitor according to the power-on condition of the switching power supply.
Optionally, the switching power supply comprises: the device comprises a rectifying circuit, an alternating current relay and a discharge resistor; determining whether to discharge the bus capacitor according to the power-on condition of the switching power supply, including: under the condition that the switching power supply is electrified, triggering the bus capacitor to be connected with the alternating current relay end to form a loop to charge the bus capacitor; and under the condition that the switching power supply is powered off, triggering the bus capacitor to be connected with the alternating current relay to form a loop with the discharge resistor, so that the bus capacitor releases the stored electric energy through the discharge resistor.
Optionally, the switching power supply further comprises an overcurrent protection circuit; the method further comprises the following steps: and controlling the current input into the switching power supply through the overcurrent protection circuit.
Optionally, the switching power supply further comprises an overvoltage protection circuit; the method further comprises the following steps: and controlling the voltage of the switching power supply through the overvoltage protection circuit.
According to the invention, under the condition that the switching power supply is electrified, one end of the bus capacitor is connected with the third end of the alternating current relay to form a loop so as to charge the bus capacitor; under the condition that the switching power supply is powered off, one end of the bus capacitor is connected with the fourth end of the alternating current relay to form a loop with the discharge resistor, so that the bus capacitor releases stored electric energy through the discharge resistor, the problem that the bus capacitor of the multi-online switching power supply cannot discharge quickly after the power supply is powered off in the related technology is solved, the phenomenon of misoperation caused by disorder of a control circuit under the condition of power supply of the bus capacitor is prevented, and the service life of the switching power supply is prolonged.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a circuit schematic of a switching power supply according to an embodiment of the invention;
fig. 2 is an alternative circuit schematic of a switching power supply according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
In the present embodiment, there is provided a switching power supply, as shown in fig. 1, including: the device comprises a rectifying circuit, an alternating current relay, a bus capacitor and a discharge resistor; the first end and the second end of the rectifying circuit are connected with the input end of the open source power supply, and the third end and the fourth end of the rectifying circuit are connected with the output end of the open source power supply; the first end and the second end of the alternating current relay are connected with the input end of the open source power supply, and the third end and the fourth end of the alternating current relay are connected with the output end of the open source power supply; one end of the bus capacitor is connected with the fifth end of the alternating current relay, and the other end of the bus capacitor is connected with the third end of the rectifying circuit; one end of the discharge resistor is connected with the third end of the rectifying circuit, and the other end of the discharge resistor is connected with the fourth end of the alternating current relay.
Under the condition that the switching power supply is electrified, one end of the bus capacitor is connected with the third end of the alternating current relay to form a loop, and the loop charges the bus capacitor; and under the condition that the switching power supply is powered off, one end of the bus capacitor is connected with the fourth end of the alternating current relay to form a loop with the discharge resistor, so that the bus capacitor releases the stored electric energy through the discharge resistor. It should be noted that, the bus capacitor can be quickly isolated after power failure, and the colleagues also isolate the hazard source, so that the electric shock hazard in the process of air conditioner disassembly, maintenance and the like is avoided.
Optionally, the switching power supply in this embodiment further includes: an overcurrent protection circuit; the overcurrent protection circuit is connected in series between the rectifying circuit and the input end. In an optional implementation manner of this embodiment, the over-current protection circuit includes: and the protective tube is connected between the rectifying circuit and the input end in series.
Optionally, the switching power supply in this embodiment further includes: and the overvoltage protection circuit is connected in parallel to the switching power supply. In an optional implementation manner of the embodiment, the overvoltage protection circuit comprises a bidirectional voltage regulator tube and a first capacitor; the bidirectional voltage-regulator tube is connected with the first capacitor in parallel.
It should be noted that the present application is applicable not only to a single-phase ac circuit, but also to a three-phase ac circuit with appropriate modifications of the circuit.
The present application will be illustrated with reference to alternative embodiments of the present embodiment;
as shown in fig. 2, after the ac power source is rectified by the full bridge, the power supply state of the ac power source is detected; when the alternating current power supply is detected to supply power, the circuit can control the conduction of a bus capacitor for filtering, and the back-end circuit can obtain stable direct current voltage. When the alternating current power supply is detected to be powered down, the core control circuit can automatically cut off a power supply loop of a bus capacitor of the switching power supply at the moment, and independent discharge of the bus capacitor is completed.
The specific process is as follows: an alternating current power supply is input from a CN1 terminal, and enters a rectifier bridge circuit after a series of measures such as interference reduction, overvoltage protection, overcurrent protection and the like. The alternating current voltage is converted into pulsating direct current voltage under the action of full-bridge rectification. The ac power source passes through the coil of the ac relay while passing through the CN1 terminal. When current is applied to the coil of the relay, a magnetic field is generated to attract the armature of the relay. It can thus be seen that the contacts 3 and 5 of the ac relay are closed after power-up.
The rectified voltage of the rectifier bridge charges a bus capacitor of the switching power supply through a path formed by a contact 3 and a contact 5 of the alternating current relay. The pulsating direct current voltage forms pure direct current voltage under the filtering action of the bus capacitor. And supplying power to the back-end switch power supply through the HIGVOL port and the AGND port.
When the alternating current power supply is powered off, no current flows through the coil of the alternating current relay any more, the armature of the relay restores the initial state, and the contact 4 and the contact 5 are connected. And a bus capacitor of the switching power supply is isolated from the rear-end power supply circuit. And forms a loop with the discharge resistor R7, and the bus capacitor discharges the stored electric energy through the discharge resistor.
The embodiment also provides a discharging method of a bus capacitor in the switching power supply, and the method comprises the following steps:
step S102, acquiring the power-on condition of the switching power supply;
and step S104, determining whether to discharge the bus capacitor according to the power-on condition of the switching power supply.
Wherein, switching power supply in this implementation includes: the device comprises a rectifying circuit, an alternating current relay and a discharge resistor; based on this, the method for determining whether to discharge the bus capacitor according to the power-on condition of the switching power supply in step S104 may further include:
step S104-11, under the condition that the switching power supply is electrified, triggering a bus capacitor to be connected with an alternating current relay end to form a loop to charge the bus capacitor;
and step S104-12, under the condition that the switching power supply is powered off, triggering the bus capacitor to be connected with the alternating current relay to form a loop with the discharge resistor, so that the bus capacitor releases the stored electric energy through the discharge resistor.
Wherein, switching power supply still includes overcurrent protection circuit, still includes based on this embodiment: the current input into the switching power supply is controlled by the overcurrent protection circuit.
The switching power supply of the embodiment further comprises an overvoltage protection circuit; based on this, the method of this embodiment further includes: the voltage of the switching power supply is controlled by the overvoltage protection circuit.
By the embodiment, after the main power supply is powered off, the bus capacitor of the switch power supply can be quickly isolated, and the electric energy stored by the bus capacitor can be independently discharged; therefore, the phenomena of control circuit disorder, misoperation and the like caused by the power supply of the bus capacitor after the power failure of the main power supply are prevented. And after the power is cut off, the bus capacitor is blocked timely to provide power for subsequent circuits, and the service life of the mainboard is prolonged.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.