Ive been trying to design a LM317T power supply with a PWM (Arduino MCU etc) adjustable voltage and current limit. After various circuits, videos and tutorials i have designed the following circuit in LTspice.
I am a complete beginner in electronics, so can someone point out any practical considerations or something even more obvious that i've missed; before i commit this circuit in hardware.
I've run a few basic simulations and both the current and voltage limit seem to work without considerable oscillations.
Ive attached the LTSpice schematic below:
V3 sets the voltage
V2 sets the maximum current
R2 Represents the Load
Please note PWM filtering has not yet been implemented