In the following circuit, I would like to understand the importance of the current limiting resistor at the base of Q1 (5K Ohm), and the function of the 500 ohm resistor at the base of the NPN transistor. Do they affect the maximum current that we specify for the regulator? I don't want it to catry more than 0.4A. I'll use 7812 regulator.
Are they optional? Because some other circuits on the internet don't use them like the following one:
I would appreciate it if you tell me a rule of thumb to calculate their values. The equations don't have to be accurate. Just easy approximate calculations are good for me.
Edit : Resources of images: