DIY Power Supply for 5V and 3.3V




Introduction: DIY Power Supply for 5V and 3.3V

About: Born in Berlin in 1985, engineer, contrarian, 'The Big Bang Theory' fan, my blog:

I'm currently migrating my old and hopefully interesting projects from my blog to instructables. I use this power supply regularly to power my embedded projects in the lab. It is very handy and tiny. I've used an USB port as power supply for my projects before. Some ICs need 3.3V instead of 5V as Vcc. Therefore I decided to build this small power supply. It uses a range of 7-14V (I use 7V for less power loss) as input voltage and supplies 5V and 3.3V with 1A each. Both supplies can be switched individually.

I hope you can use this power supply for your projects. If you have any questions or suggestions please feel free to ask/post them in the comments or via PM.

Enjoy :)


I got two suggestion by gm280 and rafununu concerning the heat production. They suggest to mount heatsinks to the ICs. They are right, especially for high current consumptions. Consider that the energy, in this case thermal energy, increases proportional to the voltage difference between input and output voltage. A heatsink can be easily attached with a screw or a clip directly on the LM1086. Heat paste would increase the thermal conductivity between the IC and the heatsink. There a lot of differently shaped heatsinks for the TO-220 package (this is how the housing design is called). Just ask your dealer of trust or do a quick google search. I must admit that I don't have overheat problems, but I'm mostly using the 5V line (which leads to less power loss) with a small load.

Rafununu suggests to replace the two diodes with only one Schottky diode as well.

JohnC430 suggests to limit the output current to a reasonable amount, like 600mA. That would make the power supply overheat-proofed.

Another hint by jhsa140467 concerning the heat problem would be placing another LM1086-5 right before the 3.3V circuit to reduce the voltage drop and therefor the heat generation at the LM1086-3.3

Please find all the suggestions in the comments. Thx for your support.

Step 1: Circuit Diagram

The concept is very clear. I want to have a small and handy power supply, which can provide 3.3V and 5V with at least 1A current. The output voltage should be constant even under heavy load and should have less noise.

I use to linear voltage regulator from Texas Instruments, the LM1086-5 and the LM1085-3.3. You can find typical application diagrams in the data sheet. I'll add the data sheet to the attachments. Please don't be confused, this data sheet is valid for all versions of LM1086-xx.

The two regulators are powered with the same source and the both circuits can be switched on/off individually.

This is the complete part list:

  • Power plug, any kind you find and to which you have a wall-pluged power supply to
  • 2 switches, make sure that they can handle your maximal current
  • 2 1N4004 diodes to separate the two circuits
  • LM1086-5 (for the 5V circuit)
  • LM1086-3.3 (for the 3.3V circuit)
  • 2 1k Ohm resistors for the status LEDs
  • 2 small red LEDs for status on/off
  • 4 Electrolytic capacitor (e-caps) of 100uF for smoothing the voltages and handle load switches
  • 4 capacitors of 100nF for smoothing the voltages and handle load switches
  • Some wires :D
  • Some kind of plugs for the output voltages and GND. I use male pin headers, because I use cables in my lab, which have female pin headers soldered to them

You can use different or add more LM1086-xx with another output voltage to this project. But I think 5V and 3.3V is enough for the most embedded projects.

I use eagle cad to plan the circuit and later on the PCB.

Step 2: First Prototype on a Breadboard

Before I go on, I want to test my circuit. I set up everything on a breadboard and measure the voltages at the outputs. It works perfectly. Next step is to plan the PCB layout and to route the wires.

Step 3: Layout and Soldering

Now it's time to put the circuit into a layout for the PCB. You can easily switch in eagle cad to the layout view. It takes some time and experience to place everything in the right position. There are few rules I try to follow. The capacitors should be as close to the pins of the ICs as possible. The whole design should be compact but still easy to solder. I try to separate the two circuits visually and to apply some kind of symmetry. Another important rule is to minimize the crossing over of wires, which means to minimize the number of bridges you will need. Consider the heat, which is produced by your parts, especially by the ICs.

In this case you can see my result in the foto above. I need one wire bridge (the red line). You may achieve a different version, but that is okay. There is no right solution. Just try to apply as many features, I've mentioned before, as possible to the layout.

Next step is to solder everything on a PCB. PCB is not the right word here. PCB means printed circuit board. I don't print anything. I solder it by hand with wires and not traces. But you can send your design to a company, which provides such services. Or you can do it at home. There are some technics to this. Just check, I guess you will find some examples.

My board has a width of 35 mm (1.38") and a length of 46 (1.81") mm.

Step 4: Measurements

Congratulations, you are done. The power supply is finished and can be used for your projects.

The last thing to do, but this is completely optional, is to measure the quality of the power supply. There should be no difference, if you use the same design and the same parts. I use a digital oscilloscope to measure the output voltage without and with a load. The third measurement shows to performance during the moment a load is applied to the output.

Step 5: 3.3V Output Without Load

There is no load applied to the 3.3V output port. The voltage has a small noise of +/-10mV. There is no voltage drop. This is more than enough for my purposes.

Step 6: 3.3V Output With a Load of 330mA

In this setup I want to measure the performance of the power supply under a load. The simplest way to apply a load is to use a resistor. I use a big 10 Ohm resistor. Make sure you have one, which can handle some power. I use a resistor which can handle 4 Watts. It's pretty big.

V = R*I --> I = V/R --> I = 3.30V / 10Ohm --> I = 0.33A

I apply a load of 330mA. The noise level is the same +/-10mV. There is a small voltage drop as well of 20mV. This is still enough for my purposes.

Step 7: 3.3V Output With a Load Switch to 330mA

The noise level and the voltage drops are important for a power supply. Another important criteria is the behavior during the switching process. I use a MOSFET to switch between two loads (from small to big). The MOSFET is triggered by a function generator with a square-wave signal. This signal is used to trigger the oscilloscope as well.

The noise level is the same +/-10mV. The voltage drops immediately a bit. There is no resonance or big amplitude.

Step 8: Conclusion

The power supply suites my requirements. The voltage is smooth with less noise. The small voltage drop under heavy load is negligible. The process of switching the loads does not interfere with the performance.

I hope you enjoyed the small instructables :)



    • Creative Misuse Contest

      Creative Misuse Contest
    • Water Contest

      Water Contest
    • Metalworking Contest

      Metalworking Contest

    31 Discussions

    The main idea of a DIY is to say I "I Made It",not that "I Bought It" so if you don't or can't make something then go buy it but don't knock the DIYers for building it!Good Work my friend and this was just the project I was looking for,Thank You for taking the time to build,post and answer our questions.

    That's Ok guys! You're right , we can get cheaper and already constructed and buy it from many sites, but the fact is to enjoy the experience to build something creative... So let everybody do what seems best to them and we continue with our technical and scientific works...


    For me it looks like another boring DC-DC, which can be found anywhere for $1. What's benefit of _your_ converter? It even doesn't work from wall socket! (read: "requires ONE MORE device AC-DC")

    Note: LM1086 can take up to 30V input, you confuse people with lower figures.

    Note 2: Even for RaspberryPI-3 it's recommended to have 3A DC. Don't know why, but it's official.

    2 replies

    You are right, there are cheap power supplies out there. I've mentioned this before, but this is not the idea about DIY. You can buy everything online. It's fun to build something on your own from scrap parts. But I get your point.

    I've decreased the input voltage to limit the power loss and the heat generation.

    About the the Raspberry Pi, SebastianC107 asked for 2.5A and I've checked the FAQ from RasberryPi, which recommends a 2.5A power supply for the most hungry model. Please see: . I agree with you, that I would use a wall-plugged power supply here.

    In my mind if you DIY, then your goal is not only "repeat the wheel", but make it better/unique. Or cheaper. :) Hope you'll also find something to improve! Good luck!


    Thanks for the great work.

    Can I replace the LM1086-x with the LM1084-x to increase the Amps to 5+ amps?

    Or Can you please provide a circuit to do the same?

    1 reply

    Thank you. Please see the data sheet of the LM1084: . The LM1084 and the LM1086 are identically constructed, so there shouldn't be any problem. You have to consider to use thicker wiring and check the passive parts for their maximal current ratings (diodes, switches etc.). I would definitely add a heatsink to the LM1084.

    You would need the LM1084-5 and the LM1084-3.3, the adjustable version would need a different circuit. There are typical application circuits in the data sheet. I've found a blog post about the LM1084, which might be worth reading for you:

    This circuit is a bit simpler and they are talking about the right capacitors. I hope this is helpful :)

    I love it!! I do have one that I built a long time ago that steps the 5 volt USB down to 3.3 volts for those projects, and several power banks that I built from salvaged laptop batteries with an adjustable power supply one from 1.25 volts to 11.6 volts, and another from 12 volts to 24 volts as well as my super pack that runs at a straight 32 volts for 50 and 100 watt LEDs. This, however looks like a great little project to have on my desk for instant relief. Perhaps I will build this and hook up several 18650's for power. I think, if I dig around, I do have one of these that I ordered off Ebay that does exactly the same thing, but it isn't as much fun as building your own.

    1 reply

    Thx, I'm glad you like it. I've used old laptop accumulators for several projects as well. They work pretty good with a cheap charging regulator. Are you using your 100W LEDs as a flashlight? That must be very bright :D

    You're right, there are a lot of cheap power supplies available, especially on eBay or aliexpress. I had a lot of fun building my own version :)

    Could I Adapt it to provide 2.5 A? I'm trying to build a Raspberry Pi Power supply

    3 replies

    Referring to the data sheet, the LM1086 has a typical maximal output current of 2.7A. That means it would be sufficient for your demands. But keep in mind that you might increase the diameters of your wires and use parts, which can handle the current (like the switches, connectors etc.). You would definitely need a heatsink on your ICs.

    Thanks for your reply, i will use just 5V circuit and a heatsink.

    Great article

    Idea, connect another 5V regulator before the 3.3V regulator. That will decrease the difference of potential on the 3.3V reg, keeping things cooler :-)

    Another alternative if you don't want to increase the parts number, would be to connect the input of the 3.3V reg to the output of the existing 5V regulator.. I prefer the first option though..

    3 replies

    This is a good idea. It would distribute the heat generation to more parts. Thx.

    It is still a good idea to install some heatsink on the regulators :-)


    1 year ago

    I've added the suggestions from the comments to the project description for a better overview. Thx for your remarks.

    With 7 VDC max input, the 3.3 V regulator will have about 3 watts at 1 Amp. Generally the TO-220 package is only good for 2 W to 2.5 W. if you limit the output current to about 0.6 Amps then you don't need any heat sinks. I suppose lost loads are lower than that.

    1 reply

    Thx, thats a good idea. My projects need barely more than 200mA. A limitation would make this power supply safe.