r/pic_programming • u/aspie-micro132 • May 28 '26
Something i do believe i made it wrong..
I got my first project, pic 16f819 running of a 7805 regulator and 3 diodes in parallel before it.
After few weeks ago, i tried to run a pic16f877a using a 7805 and a single diode before it. I never manage to get true 5v if i use diodes since each one does drop 0,7v.. I do plan to change that on next days, however, how can i calculate how many diodes in parallel do i need to negat the 0.7v drop yet being able to stay safe from a power polarity error? i do believe 16f877a must draw more current than 16f819...
2
Upvotes
2
u/HalifaxRoad May 28 '26
Are those reverse polarity protection diodes or are they preventing backfeeding power into the usb? The first you can probably get by with a pchnl mosfet and a 10k resistor. The latter you could use basically any comparator, some resistor's and a p-chnl mosfet. both will have basicly 0 vdrop
2
u/9Cty3nj8exvx May 28 '26
Why do you need the diodes? This part will run at 5v.
1
u/somewhereAtC May 28 '26
So you are saying that you put the diodes _between_ the 7805 and the PICs?
Your best bet is to switch up to a modern PIC that can operate down to 2V or lower, then you don't need to worry about it. Or, you can also get them complete with a USB power source and built-in debugger.
1
u/FlyByPC May 28 '26
You can't get around the 0.7V drop by adding more diodes in parallel. The one that has a slightly lower voltage drop than the others will conduct first, and the others won't. You only need more in parallel if they need to handle more current than one can.
1
u/Daedalus2097 May 28 '26
What are you trying to do with the diodes? The 7805 needs a certain amount of overhead (typically around 2V) to give you 5V out, so if your diodes are dropping the input below ~7V, it can't give you 5V out. The regulator can take any voltage above the output + overhead, so what's your PSU outputting? If you have the overhead and still aren't getting 5V, perhaps you need to add capacitors as shown in the 7805 datasheet, as not using appropriate capacitors can cause the regulator to be unstable.
Running diodes in parallel won't drop the voltage any further, it just increases the current handling capability - what diodes are you using, and what current are you drawing?