I have built a power supply using an LM317:
simulate this circuit – Schematic created using CircuitLab
When the supply is on for a rather long time (several hours) with a respectable load, the output voltage increases in the order of several hundreds of millivolts. I think this is because of the warming up of the LM317. I already have a heatsink, but the IC is still getting hot, especially with a great load and a long on time, of course.
I was wondering if there would be any way to make some kind of protection to make sure the voltage doesn't change too much. I've thought of these options:
- Adding a PIC on a separate 5V supply which monitors the supply and beeps when it changes too much. This might be an overkill for such an easy problem.
- Adding a PIC and make R2 a digital pot, so that I can digitally set the output voltage, and the PIC takes care of the rest and automatically changes the resistance on the adjust pin when the output voltage changes. Again, an overkill, and I don't want to have a lot of work for this.
- Something with a comparator, but that gives a problem with that the supply is variable. I'm not sure how I could work this out with a comparator...
- Bigger heatsink, better placement, adding a fan - would probably work indeed, but I feel like there should be an electrical solution (i.e. with adding a circuit) and I'd like to see that solution.
So, what would such a solution with a circuit look like?
Here are two photos of my setup:
First, on the right: the heatsink with the LM317
First, on the left: the board with R2 somewhere
Second, bottom: the two pots (5K and 500) that are R1 together