12V, 9V, 6V, 5V & 3.3V multiple voltage power supply circuit


Power Supply circuits can be extremely useful when you are working on a project which requires multiple range of input voltages. Building a dedicated power supply units for each of those can be painful and tedious process. Instead you can build this multiple voltage power supply circuit which provides output in the range of 12 , 9, 6, 5 and 3.3 Volts. 



LM317 is a voltage regulator chip which is capable of producing output voltage from 1.2v to 37V with 1.5A of current to the load. The output can be altered by using the Adj pin of the IC. The IC was built in such a way it develops a nominal voltage of 1.25v from the Output pin to the Adj pin. So putting resistor across these two terminals and applying a varied voltage to adj pin will give varied output voltage in Vout pin.


Basic Setup of LM317 Regulator

The above schematic shows the simple voltage regulator set up using LM317. Here a potential divider was used to feed the adjusting voltage to the adj pin. The output voltage obtained is given by the formula.

Vout = 1.25V ( 1 + R2 / R1 )

Where R2 and R1 denotes the lower and upper leg of the potential divider used to feed the Adj pin.


Generally when dealing with electronic circuit five voltage ranges are very commonly used 12, 9, 6, 5 and 3.3V .So we are going to build a single power supply circuit which gives all these output voltages and can be changed using a simple rotary switch SW1.

According to the Vout formula for LM317 varying the resistance in voltage divider will alter the output voltage. So we are going to keep the Resistor R1 fixed and alter the lower leg of the divider with different resistors R2, R3, R4, R5 and R6 which gives out voltages 12, 9, 6, 5 and 3.3.

To calculate the resistance value (lower leg) for our required output voltages we have to rearrange the basic LM317 formula

Vout = 1.25V ( 1 + R2/R1) Rearranging this formula we get

R2 = ( Vout x R1 / 1.25 ) – R1

This formula gives the resistance value (lower leg) for required voltage. To obtain 12V in the output the R2 will be

R2 = ( 12 x 240 / 1.25 ) – 240

R2 = 2064 ohms

Approximating this value will give 2K resistance and therefore we have fixed R2 as 2K in our schematic diagram.

So using the same formula for 9, 6, 5 and 3.3v we will get resistances 1.5K , 1K , 750 and 390 ohms approximately. This forms the resistances R3, R4, R5 and R6 respectively. So summing the above things selecting R2, R3, R4, R5 and R6 using the rotary switch will give 12,9 , 6, 5 and 3.3V in the Vout pin of LM317.


  1. Using the given formula you can substitute the above resistance values and get the output of your desire in the output pin Vout.
  2. Capacitor C1 and C2 is used for ripple rejection in the output and input signals of LM317.

Ask your query

4 Comment threads
4 Thread replies
Most reacted comment
Hottest comment thread
6 Comment authors
GregAnonymousasadFrank DonaldHaris Recent comment authors
newest oldest most voted
Notify of

Just a suggestion. Make sure the rotary switch connects the next terminal, before it disconnects from the first one. “Make before break” Otherwise, for a split second, the switch will be open circuit while you change the voltage. Spiking the output to the maximum. Destroyed a 6v audio IC switching (slowly) between 5v & 6v. These switches can be ordered through your favourite online main stream vendors. Element14, RS, Digikey, etc.


HELLOW can you please tell the multi voltage power supply circuit
circuit for negative voltages (-5 -9 -12 ) ..????


USE 7905/7909/7912 FOR NEGATIVE O/P


if my load is more than one ampere then what i need to do?

Arvind Kumar

Whar does the adj pin mean for?