I am trying to build a single LM317 power supply, with current limiting using a differential opamp and potentiometers.
I've came up with this (see schematic) and have built it on a breadboard but the current limiting (1k pot, lower left) is "glitchy."
- Sometimes it will not limit at very low load resistor values (~1 ohm) but when the load resistor gets bigger it starts working.
- Sometimes when the load resistor comes back from a high value to a low value (while in current limiting,) the current limiting breaks down and it allows a large current to flow.
- A lot of the times I can't adjust the current below ~10mA no matter the set voltage. I am not sure if it ever worked on the breadboard, but it works in the simulator. I can set very low current in the simulator eg. 10uA. I know the LM317 needs a few mA flowing out of the pin for it to regulate but it dosen't even want to go below 10mA in a lot of load/voltage scenarios.
- Other glitches.
I used:
- LM224n
- LM317t
- BC547 (NPN)
- Capacitors 100nF ceramic and 10uF electrolytic
- Resistors 5% or 1% (not final)
- 6x AA cells for the +9V supply
- 2x AA cells for 3.3V (reversed for negative rail)
- Diodes for the voltage reference (not final)
Schematic:
What am I doing wrong?
Does this circuit makes sense?
Circuit: