1. Technical Field
The present disclosure relates to a circuit for displaying energy consumption.
2. Description of Related Art
Computers are used more and more, but energy conscious users may want to but cannot know energy consumption of the computers every month. This is inconvenient.
Many aspects of the present embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Referring to
Referring to
The output terminal of the amplifier U1 is further connected to a non-inverting terminal of the amplifier U3 through a resistor R5. The output terminal of the amplifier U2 is further connected to an inverting terminal of the amplifier U3 through a resistor R6. A node between the non-inverting terminal of the amplifier U3 and the resistor R5 is connected to an output terminal of the amplifier U3 through a resistor R7. A node between the inverting terminal of the amplifier U3 and the resistor R6 is grounded through a resistor R8. An output terminal of the amplifier U3 functions as an output terminal P1 of the first A/D converting circuit 10, and is connected to the microprocessor 60.
Referring to
Referring to
The first A/D converting circuit 10 converts a voltage between two terminals of the resistor R1 to a digital signal, and transmits the digital signal to the microprocessor 60. The microprocessor 60 receives the digital signal and determines a current flowing from the power output P3.3V of the PSU 1 according to a resistance of the resistor R1. Based on the current value and the voltage value, the microprocessor 60 determines a power of the power output P3.3V of the PSU 1.
In the same manner as the first A/D converting circuit 10, the microprocessor 60, utilizing the second to fifth A/D converting circuits 20-50, determines a power of each of the power output P3.3V_SB, P5V, P5V_SB, and P12V of the PSU 1. The microprocessor 60 further obtains a sum of the powers of the power outputs P3V, P3.3V_SB, P5V, P5V_SB, and P12V. A product of the sum of the powers and a working time of the PSU 1 is equal to the total energy consumed by the PSU 1. The product of the sum of the powers and the working time of the PSU 1 can be displayed by the display 70.
In the embodiment, the switch SW2 controls the microprocessor 60 to operate or not. When the switch SW2 is pressed, the microprocessor 60 operates. At this time, the microprocessor 60 begins to measure the working time of the PSU 1. The switch SW1 is used to reset the microprocessor 60.
The foregoing description of the exemplary embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above. The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others of ordinary skill in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those of ordinary skills in the art to which the present disclosure pertains without departing from its spirit and scope. Accordingly, the scope of the present disclosure is defined by the appended claims rather than by the foregoing description and the exemplary embodiments described therein.
Number | Date | Country | Kind |
---|---|---|---|
201210123700.0 | Apr 2012 | CN | national |