Mcu keeps reseting because of noise
The output capacitance of the AMS1117 is too less, causing the 3V3 to be unstable. The datasheet recommends 22μF:


  The circuit design used in the AMS1117 series requires the use of an output capacitor as part of the device frequency compensation. The addition of 22μF solid tantalum on the output will ensure stability for all operating conditions.
  When the adjustment terminal is bypassed with a capacitor to improve the ripple rejection, the requirement for an output capacitor increases. The value of 22μF tantalum covers all cases of bypassing the adjustment terminal. Without bypassing the adjustment terminal smaller capacitors can be used with equally good results.
  To further improve stability and transient response of these
  devices larger values of output capacitor can be used.


Do also read: Capacitors for AMS1117 for 5V to 3.3V regulation