Post Top Ad

Wednesday, January 17, 2024

DIY 12V 2A Power Supply Tutorial: Step-by-Step Guide | Building a Compact 12V 2A Power Supply


 DIY 12V 2A Power Supply Tutorial: Step-by-Step Guide | Building a Compact 12V 2A Power Supply

What is an 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 a UPS


A UPS consists of 3 parts:


Transformer

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.

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 an enclosure, with added overcurrent and surge protection.

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 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.

Instead of using more expensive regulators that are 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, thus 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 ensures that the voltage difference between the two regulators is absorbed by the output resistors.

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.


 DIY 12V 2A Power Supply Tutorial: Step-by-Step Guide | Building a Compact 12V 2A Power Supply

What is an 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 a UPS


A UPS consists of 3 parts:


Transformer

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.

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 an enclosure, with added overcurrent and surge protection.

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 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.

Instead of using more expensive regulators that are 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, thus 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 ensures that the voltage difference between the two regulators is absorbed by the output resistors.

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.

No comments:

Post a Comment

Post Top Ad

Pages