Disclosure of Invention
In view of the above, it is desirable to provide a power supply system, a power supply method and an electronic device with adjustable voltage.
According to a first aspect of the present invention, there is provided a power supply system, the system comprising:
the power supply module is connected with the mains supply and is configured to convert the mains supply into direct current and output the direct current;
one end of the voltage detection module is connected with the power supply module to detect the output voltage of the power supply module;
the input end of the voltage conversion module is connected with the output of the power supply module;
and the microcontroller is connected with the other end of the voltage detection module and the voltage conversion module, is configured to receive a target voltage, acquire the output voltage of the power supply module detected by the voltage detection module, and controls the voltage conversion module to convert the output voltage of the power supply module into the target voltage and then output the target voltage. In one embodiment, a first preset resistor is disposed in the power supply module, and the voltage detection module includes: a second preset resistor and a preset power supply;
one end of the first preset resistor, which is not grounded, is connected with the second preset resistor, and the other end of the second preset resistor is connected with the preset power supply; the microcontroller acquires the divided voltage of the first preset resistor and determines the output voltage of the power supply module according to the divided voltage of the first preset resistor;
the first preset resistor and the rated output voltage of the power supply module have a preset corresponding relation.
In one embodiment, the power conversion module comprises a voltage conversion circuit and a bypass circuit, and the voltage conversion circuit and the bypass circuit are connected in parallel;
the voltage conversion circuit is configured to convert the input voltage into a target voltage and output the target voltage;
the bypass circuit is configured to directly output an output voltage of the power supply module.
In one embodiment, the microcontroller is configured to: comparing the output voltage of the power supply module with a target voltage; and
if the output voltage of the power supply module is the same as the target voltage, controlling the output of the power supply module to be connected to the bypass circuit;
and if the output voltage of the power supply module is different from the target voltage, controlling the output of the power supply module to be connected to the voltage conversion circuit.
In one embodiment, the number of the power supply modules is multiple, and the power supply modules are connected in parallel, the number of the voltage detection modules and the number of the voltage conversion modules are the same as the number of the power supply modules, the voltage detection modules correspond to the power supply modules one to one, and the voltage conversion modules correspond to the power supply modules one to one.
In one embodiment, the rated output of the plurality of power supply modules includes 48V and/or 12V.
In one embodiment, the target voltage is 48V or 12V.
According to a second aspect of the present invention, there is provided a power supply method using the power supply system described above, the method including:
converting commercial power into direct current by using a power supply module and outputting the direct current;
detecting the output voltage of the power supply module by using the voltage detection module and the microcontroller;
receiving a target voltage by the microcontroller and comparing the target voltage with an output voltage of the power supply module; and
and the microcontroller controls the voltage conversion module to convert the output voltage of the power supply module into the target voltage according to the comparison result and then outputs the target voltage.
In one embodiment, the step of controlling, by the microcontroller according to the comparison result, the voltage conversion module to convert the output voltage of the power supply module into the target voltage and output the target voltage includes:
if the output voltage of the power supply module is the same as the target voltage, the microcontroller gates the output of the power supply module to be connected to a bypass circuit in the voltage conversion module and then outputs the output;
if the output voltage of the power supply module is different from the target voltage, the microcontroller gates the output of the power supply module to be connected to a voltage conversion circuit in the voltage conversion module and then outputs the output, wherein the output voltage of the voltage conversion circuit is the same as the target voltage.
According to a third aspect of the present invention, there is provided an electronic device including the power supply system described above.
According to the power supply system, the mains supply is converted into the direct current through the power supply module and then output, the voltage detection module and the microcontroller are used for detecting the output voltage of the power supply module, meanwhile, the microcontroller is used for receiving the target voltage, the voltage conversion module is controlled by the microcontroller to convert the output voltage of the power supply module into the target voltage and then output the target voltage, the output voltage of the power supply module can be detected, the output voltage of the power supply module can be adjusted, and the power supply of the power supply system is more flexible.
In addition, the invention also provides a power supply method and electronic equipment, which can also realize the technical effects and are not described herein again.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In an embodiment, referring to fig. 1, fig. 1 shows a schematic topology structure diagram of a power supply system, and the present invention provides a power supply system, including:
the power supply module (PSU for short) is connected with the mains supply and is configured to convert the mains supply into direct current and output the direct current;
one end of the voltage detection module is connected with the power supply module to detect the output voltage of the power supply module;
the input end of the voltage conversion module is connected with the output of the power supply module;
and the microcontroller is connected with the other end of the voltage detection module and the voltage conversion module, is configured to receive a target voltage, acquire the output voltage of the power supply module detected by the voltage detection module, and controls the voltage conversion module to convert the output voltage of the power supply module into the target voltage and then output the target voltage. According to the power supply system, the mains supply is converted into the direct current through the power supply module and then output, the voltage detection module and the microcontroller are used for detecting the output voltage of the power supply module, meanwhile, the microcontroller is used for receiving the target voltage, the voltage conversion module is controlled by the microcontroller to convert the output voltage of the power supply module into the target voltage and then output the target voltage, the output voltage of the power supply module can be detected, the output voltage of the power supply module can be adjusted, and the power supply of the power supply system is more flexible.
In another embodiment, referring to fig. 2, fig. 2 shows a schematic diagram of a voltage detection module, a PSU may be 12V or 48V, and in order to obtain an output voltage of a power supply module even when a power supply circuit does not operate, a first preset resistor R1 to ground may be pre-built in PSUs of different specifications, where the first preset resistor has a preset corresponding relationship with a rated output voltage of the power supply module; the voltage detection module comprises: a second preset resistor R2 and a preset power supply VDD; one end of the first preset resistor, which is not grounded, is connected with the second preset resistor, and the other end of the second preset resistor is connected with the preset power supply; the microcontroller acquires the divided voltage of the first preset resistor and determines the output voltage of the power supply module according to the divided voltage of the first preset resistor. Preferably, the target voltage is 48V or 12V.
For example, a PSU with a rated output of 12V can preset a resistance of 1 kilo-ohm, a PSU with a rated output of 48V can preset a resistance of 2 kilo-ohm, wherein the Pd point is the point connected with the microcontroller, and the formula V is usedPd=VDD×R2/R1+R2VPd=VDD×R2/R1+R2I.e. the first predetermined resistance can be calculatedPartial pressure VPd。
The power supply system defines the pin position (namely the Pd point) for measuring the PSU output voltage, the actual output of the PSU is not required to be measured, the output voltage of the PSU can be detected even if the PSU does not work, and whether the PSU can be used or not can be judged through the self-defined voltage measuring pin position in the power supply system which can not be mixed and plugged conveniently.
In another embodiment, referring to fig. 1 again, the power conversion module includes a voltage conversion Circuit and a Bypass Circuit, and the voltage conversion Circuit is connected in parallel with the Bypass Circuit (Bypass Circuit);
the voltage conversion circuit is configured to convert the input voltage into a target voltage and output the target voltage; the voltage conversion circuit can be Buck-Boost, Buck, Boost, LLC and other various voltage conversion architecture modules.
The bypass circuit is configured to directly output an output voltage of the power supply module.
In yet another implementation, the microcontroller is configured to: comparing the output voltage of the power supply module with a target voltage; and
if the output voltage of the power supply module is the same as the target voltage, controlling the output of the power supply module to be connected to the bypass circuit;
and if the output voltage of the power supply module is different from the target voltage, controlling the output of the power supply module to be connected to the voltage conversion circuit.
In another embodiment, the number of the power supply modules is multiple, and the power supply modules are connected in parallel, the number of the voltage detection modules and the number of the voltage conversion modules are the same as the number of the power supply modules, the voltage detection modules correspond to the power supply modules one to one, and the voltage conversion modules correspond to the power supply modules one to one.
For example, assuming that six PSUs are connected in parallel, each PSU is connected to the microprocessor through a voltage detection module, and the output terminal of each PSU is connected to a voltage conversion module; for six PSUs; it should be noted that the number of PSUs is only for illustration, and the PSUs can be configured according to the needs of the user and the devices to be powered during the specific implementation process, and should not be construed as limiting the present invention.
Preferably, the rated output of the plurality of power supply modules comprises 48V and/or 12V. As shown in fig. 1, the rated output voltages of each PSU of the system may be the same or different (i.e., mixed insertion), and are specifically set according to the needs of the user; for example, six PSUs are all rated for 12V output, as well as mixed insertion: the six PSUs include three PSUs with a rated output of 12V and three PSUs with a rated output of 48V.
In another embodiment, referring to fig. 3, a method of the present invention includes the following steps:
s100, converting commercial power into direct current by using a power supply module and outputting the direct current;
s200, detecting the output voltage of the power supply module by using the voltage detection module and the microcontroller;
s300, receiving a target voltage by using the microcontroller, and comparing the target voltage with the output voltage of the power supply module; and
and S400, the microcontroller controls the voltage conversion module to convert the output voltage of the power supply module into the target voltage according to the comparison result and then outputs the target voltage.
In another embodiment, the step S400 specifically includes the following sub-steps:
if the output voltage of the power supply module is the same as the target voltage, the microcontroller gates the output of the power supply module to be connected to a bypass circuit in the voltage conversion module and then outputs the output;
if the output voltage of the power supply module is different from the target voltage, the microcontroller gates the output of the power supply module to be connected to a voltage conversion circuit in the voltage conversion module and then outputs the output, wherein the output voltage of the voltage conversion circuit is the same as the target voltage.
In another embodiment, please refer to fig. 4, in order to facilitate understanding of the technical solution of the present invention, a power supply system with a mixed-insertion PSU is taken as an example for explanation, and it is assumed that six PSUs are used in parallel, wherein three PSUs with a rated output of 12V are respectively referred to as PSU1, PSU2 and PSU3, and three PSUs with a rated output of 48V are respectively referred to as PSU4, PSU5 and PSU 6; the target voltage desired by the user is 12V and the target value is signaled to the microcontroller as a command, and the voltage regulation procedure for the above six PSUs is as follows:
step 1, the microcontroller acquires the output voltage of each PSU through respective measuring pin positions (Pd) from the PSU1 to the PSU6, and measures the voltage division value of a grounding resistor R1 inside each PSU by combining a power supply VDD and a resistor R2 outside the PSU, and the power supply VDD is blocked from an external parallel loop due to voltage conversion after being inserted, so that the output working voltage of the PSU can be detected by the microprocessor. In addition, corresponding to a system which cannot be inserted in a mixed mode, the PSU which does not meet the output requirement can be eliminated before the PSU works.
Step 2, the microcontroller receives a target voltage instruction input by a user or pre-stored, and then selects a corresponding conducting circuit for each PSU; assuming that the target voltage is 12V, at this time, the microcontroller determines that the outputs of PSU1, PSU2, and PSU3 require gating of the bypass circuit outputs, and PSU4, PSU5, and PSU6 require gating of the corresponding voltage conversion circuits.
Step 3, outputting each power supply module according to the path selected in the step 2; at this time, the outputs of PSU1, PSU2 and PSU3 are 12V by their corresponding bypass circuits, and the outputs of PSU4, PSU5 and PSU6 are adjusted from 48V to 12V by their corresponding voltage conversion circuits.
Therefore, the power supply system can use 12 and 48VPSU plug-in rack type power supply systems, the PSU which needs to output 12V or 48 is determined to be plugged in the rack type power supply system by detecting the voltage of each PSU, and the PSU which needs to output 12V or 48V is selected to be output, so that power supply mixed plug and output voltage adjustment are realized, and the flexibility of the power supply system is improved.
In another embodiment, the invention further provides an electronic device, which is powered by the power supply system.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. Although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.