Figurę 7. Voltage regulator with protection diodes
1N4001
Notę:
D1 protect the device against input short Circuit, while D2 protects against output short Circuit for capacitors discharging.