How to make two independent voltage source from single 12V 2Amps power supply
&quot;But is it possible to make two supplies from the 12V 2amps adapter so that schematic 1 like circuit may fix this issue?&quot;
Without knowing the current draw of the motor, the answer is, &quot;Maybe, maybe not.&quot; It all depends on how much current the motor draws, especially on turn-on.
Presumably you are interested in trying something like



simulate this circuit &ndash; Schematic created using CircuitLab
Here's the problem: when motors turn on, they draw much more current than normal. As the motor starts turning and gets up to speed, the current required gradually drops to normal. When this happens, it will cause the output of the power supply to drop, and this will cause the uC voltage to drop - and you get weird behavior as the uC briefly stops working correctly.
You might think that the solution would be to put a big capacitor on the output of the 7805, to provide voltage for a brief period when there is a drop in the supply voltage. Unfortunately, that's not a good idea - 7805s don't like big capacitors on their output and may start oscillating.
Instead, you should try something like



simulate this circuit
There are a few caveats.
1 - I have no idea how much current your uC circuit draws, so the value of C1 is entirely speculative. 1000 uF may be higher than you need, or it may be lower. It depends on how much current the uC draws, and how long a dropout you need to operate through.
2 - When power is turned on, D1 has to provide a high-current spike to charge up C1. Depending on what value of C1 you have, and how gradually the power supply turns on, it's possible that turn-on will blow up D1. In that case you would need a beefier diode.
3 - (optional) It's a good idea to start working with less obsolete chips. Learn to use something like an LM317 if you're willing to stick with linear regulators. At the expense of a couple more resistors, you can use a single part number for different voltages - and the performance of newer regulators is better than ancient, first-generation devices like the 7800 series.