Many electronic devices need a steady flow of clean DC power to work well.
This post teaches how to build a circuit that turns messy DC power into a smooth adjustable DC power using a common chip called the LM338.
This circuit can take an unsteady DC voltage anywhere from 5 to 34V and turn it into a clean voltage from 1.25 to 30V.
The knob on the circuit lets you adjust the output voltage to what your device needs.
Circuit Working:

Parts List:
Type | Component | Quantity |
---|---|---|
Resistors | 120Ω 1/4 W | 1 |
Potentiometer | 4.7k | 1 |
Capacitors | Electrolytic 10µF 25V | 1 |
Semiconductors | IC LM338 | 1 |
Diode 1N4007 | 2 |
Vin Pin 3 of the LM338 IC is connected to an unregulated DC input power supply with a voltage range of 5V to 34V.
An internal voltage reference and an error amplifier are advantages of the LM338.
The error amplifier makes a comparison between the output voltage and the voltage reference which is 1.25V.
Pin 1 Adjust of the LM338 is connected to ground through the variable resistor RV1.
By adjusting RV1 the user can set the reference voltage influencing the output voltage.
Resistors R1 and R2 form a voltage divider network.
The ratio of R2 to R1 along with the reference voltage calculates the output voltage according to the formula mentioned below.
The output screw terminal of the LM338 is connected to Pin 2 Vout.
This connection generates the controlled output voltage.
The user can regulate the output voltage within the specified range of 1.25V to 30V by modifying the values of R1 and RV1.
The maximum output current obtained from IC LM338 is 5 Amp
Capacitor C1 provides a soft start to the output load.
Diodes D1 and D2 are used for reverse voltage protection.
It prevents damage to the circuit in case of a reverse voltage at the input.
A controlled steady output voltage with little ripple is ensured by the resistor, capacitor and built-in IC LM338.
The LM338 works well in applications requiring dynamic power since it maintains a steady output voltage despite various loads.
A maximum constant current of 5 Amp is generated by the IC LM338.
Formulas:
Below mentioned formula are used to calculate the output voltage Vout of a circuit which involves an adjustable voltage regulator IC LM338.
Vout = 1.25V (1 + R2 / R1 ) + Iadj * R2
where,
- Vout stands for the voltage compute as the output.
- 1.25V is the value regulators such as the LM317 frequently use this constant reference value.
- R1 and R2 stands for two external resistors that are wired together in series to create a circuit that divides voltage one can change the output voltage by changing their values.
- R1 is the positive terminal of the output capacitor is connected to this resistor which is situated between it and the 1.25V reference voltage.
- R2 resistor is wired between the voltage regulators adjust pin and ground.
- Iadj pin stands for the adjustment current which is a very little current that passes via the voltage regulators adjust pin its value is frequently insignificant in comparison to the current flowing through the resistors.
Steps to calculate Vout:
Calculate the values:
To complete the calculation one need the values of R1, R2 and preferably Iadj pin.
When choosing these resistor values the expected output voltage and the voltage regulators datasheet requirements are usually taken into mind.
Calculate what the voltage divider term is:
Calculate the term (1 + R2 / R1) first.
This is an example of the voltage gain that the voltage divider resistors provide.
There will be a greater advantage if R2 is higher than R1.
Using the formula:
During the calculation enter the estimated voltage divider term (1 + R2 / R1) the known reference voltage of 1.25V and if necessary the voltage drop laid on by Iadj is (Iadj ≅ R2).
Vout = 1.25V (1 + R2 / R1 ) + Iadj * R2
Remember:
Considering that Vout appears on both sides of the equation it is possible that this formula cannot always be solved for Vout directly.
In practical applications Vout can frequently be calculated using repeated steps or circuit modeling tools.
For voltage regulators such as the LM317 the Iadj term is often small and may be ignored in the majority of calculations
The calculated Vouts accuracy is measured by the accuracy of the component values (resistors) and if needed by taking into account parameters like Iadj.
How to Build:
To build following steps are required to follow while designing Simple Adjustable Power Supply Circuit using IC LM338:
- Connect pin 3 vin of the LM338 directly to the positive terminal of the input power supply.
- Connect pin 2 vout to the output screw terminal.
- Connect pin 1 Adjust to ground through the variable resistor RV1.
- Connect R1 and R2 according to the desired output voltage using the formula mentioned earlier.
- Adjust RV1 to achieve the desired output voltage.
- This provides flexibility in setting the regulated voltage.
- Connect capacitor C1 between resistor R1 and GND and the ADJ pin.
- Confirm correct polarity and follow the datasheets recommended values.
- For reverse protection make use of diodes D1 and D2.
- In order to avoid damage from reverse voltage connect them correctly.
- Connect the input power source between 1.5V to 35V to ensure the regulator runs as planned.
Testing:
- After turning on the circuit check the output voltage with a multimeter.
- As you make modifications to RV1 see how the output voltage changes.
- A controlled output should be within the desired range.
- Keep an eye out for ripples and confirm that the output is constant.
- Capacitor C1 provides a soft start voltage for the output.
- Check diodes D1 and D2 provide effective reverse voltage protection.
Conclusion:
By following these construction details one can build Simple Adjustable Power Supply Circuit using IC LM338 by providing a regulated DC output and by modifying a specific voltage requirements and current upto 5 Amps.
When working with electronic components always make sure to take safety precautions and see the IC LM338 datasheet for further information.
Leave a Reply