Introduction: 12V, 2A Uninterruptible Power Supply
POWER SUPPLY CONTEST ENTRY
Please vote for me if you find this Instructable useful
What is a Uninterruptible Power Supply?
Extract from Wikipedia
"An uninterruptible power supply, also uninterruptible power source, UPS or battery backup, is an electrical apparatus that provides emergency power to a load when the input power source or mains power fails. A UPS differs from an auxiliary or emergency power system or standby generator in that it will provide near-instantaneous protection from input power interruptions, by supplying energy stored in batteries."
Note that a UPS is only a short term solution, and power availability will depend on the load connected to the UPS.
Why a 12V UPS?
Most modern electronic equipment in and around our homes rely solely on the utility power supply. When the power goes off, so does all our modern electronic equipment. There are some instances where this is undesirable, to name only a couple:
- Alarm systems
- Access control systems
- Network connectivity
- Telephone systems
- Security / Emergency lights
All these systems usually operate on 12V, and can easily be connected to a 12V UPS.
Components of an UPS
A UPS consists of 3 parts:
- Regulated power supply
- Battery charger
- Back-up battery
I will go through each step, explaining how to build a reliable 12V UPS using no special components.
Step 1: The Transformer
The 12V UPS uses an off-the-shelf, standard transformer, that is available at all leading security equipment suppliers. The transformer output should be between 16 to 17 V AC, and rated up to 3 amps. I always prefer to over design, so I will design this 2A UPS so that it is rated for a maximum of 3A.
Some suppliers have transformers already fitted into a enclosure, with added overcurrent and surge protection.
Step 2: The Regulated Power Supply
A UPS must be able to continuously supply the rated current at the rated output voltage, without relying on the back-up battery for assistance. So the first step will be to design a 12V power supply.
A good start will be to use the LM317 voltage regulator. Before we look at the current rating of the device, lets start with the regulated output voltage. Although we are all used to refer to a 12V system, it is in fact normally a 13.8V system. This voltage is the fully charged voltage of a standard SLA battery. So for all calculations, I will be using 13.8V.
To calculate the components values, refer to the LM317 datasheet. It states that:
Vout = 1.25 ( 1 + R2 / R1 ) + Iadj x R2
and that Iadj is typical limited to 50uA.
To start off, I chose R1 value to be 1Kohm, so
Vout = 1.25 ( 1 + R2 / R1 ) + Iadj x R2
13.8 = 1.25 ( 1 + R2/1K ) + 50uA x R2
13.8 = 1.25 + 1.25/10E3 x R2 ) + 50E-6 x R2
12.55 = 0.00125 R2 + 0.00005 R2
12.55 = 0.0013 R2
R2 = 9.653Kohm
But a value of 9.653Kohm is not a standard resistor value, so we will have to use multiple resistors to get close to this value. The best solution will be to place two resistors in parallel. Any two resistors in parallel, will always have a combined resistance LOWER than the lowest value resistor. So make resistor R2a 10Kohm.
1/R2 = 1/R2a + 1/R2b
1/9.653K = 1/10K + 1/R2b
1/9.653K - 1/10K = 1/R2b
R2b = 278Kohm
R2b as 270K
R2 = 9.643Kohm, close enough for what we need.
The 1000uf capacitor is not critical, but this is a good value. The 0.1uf capacitor reducing output voltage oscillations
We now have a 13.8V power supply, rated at 1.5 amp according to the datasheet.
Step 3: The Battery Charger
To use our power supply as a battery charger, we need to limit the charging current to the battery. The power supply can only provide 1.5 amps maximum, so the next step will be to look at the circuit with a battery connected to the output. As the battery voltage rises (charging), the charging current will reduce. With a fully charged battery of 13.8V, the charging current will drop to zero.
The resistor on the output will be used to limit the current to the rating of the LM317. We know the output voltage of the LM317 is fixed at 13.8V. An empty SLA battery voltage is around 12.0V. Calculating R is now simple.
R = V / I
R = (13.8V - 12V) / 1.5A
R = 1.2ohm
Now, the power dissipated in the resistor is
P = I^2 R
P = 1.5^2 x 1.2
P = 2.7W
Step 4: Doubling Current to 3A Maximum
Instead of using more expensive regulators that is rated for 3A, I opted to still make use of the standard LM317. To increase the current rating of the UPS, I simply added two circuits together, thereby doubling the current rating.
But there is a problem when connecting two power supplies together. Although their output voltages were calculated to be exactly the same, variations in components, as well as PC Board layout will result in one power supply always taking the majority of current. To eliminate this, the combined outputs were taken after the current limiting resistors, and not on the output of the regulator itself. This ensure that the voltage difference between the two regulators are absorbed by the output resistors.
Step 5: The Final Circuit
I was unable to source 1R2, 3W resistors, thus I decided to make use of several resistors to make up the 1R2 resistor. I calculated different series/parallel resistor values, and found that using six 1R8 resistors yields 1R2. Exactly what I needed. The 1R2 3W resistor has now been replaced with six 1R8 0.5W resistors.
Another addition to the circuit is a power fail output. This output will be 5V when the mains power is present, and 0V during a mains failure. This addition makes it easier to connect the UPS to systems that also require a mains status signal. The circuit also includes an on-board status LED.
Lastly, a protection fuse was added to the 12V output of the UPS.
Step 6: PC Board
Not much to say here.
I designed a simple PC Board using the freeware version of Eagle. The PC Board was designed such that non-insulated quick disconnect lugs can be soldered to the PC Board. This allow the complete UPS board to be mounted on top of the battery.
Make sure to add decent sized heat sinks to the two LM317 regulators.