Supplying power to ESP32 from a DC adapter instead of the USB port...is it a bad idea?
The ams1117 is a linear regulator. At 12V in and 5V out you are dropping 12 - 5 = 7V at whatever current you are pulling. So at 1 amp you are wasting 7 Watts of power. And without a heatsink you are going to have a bad time.