Electronic – A better power supply for microcontroller circuits

microcontrollerpicpower supply

I've been playing around with PIC microcontrollers for a while now, and have had a fair bit of success, however I sometimes get unexplained resets and sometimes need to cycle the power a few times to get my device to start working.

I think this is down to my simplistic PSU.

I normally throw together a mains transformer, bridge rectifier, linear regulator and a few capacitors.

Does anyone have a circuit diagram of a better more efficient PSU that is easy to build on stripboard and doesn't cost too much?

Best Answer

What is REALLY important is to have 0.01-1uF ceramic capacitor soldered right on the power pins of every digital IC in your circuit no matter what is the power source.

So I belive even your current PSU will be fine if you add ceramic caps where needed. Linear regulators provide very stable power, so you should be good with what you have now (unless it is oscilating - might happen if ESR of caps does not match regulator requirements - usually happens on LDO regulators rarely).


In my projects I use USB as my main power source. It gives you stable 5v and it does have current limiter.

You can ether get it from your PC(should be careful a little) or from tiny mains adaptors which have USB output.

Then you use your linear regulator if you need less then 5V.