I'm making a WiFi power strip with a Wemos D1 mini v3 (ESP8266) microcontroller and a 4 mechanical relay board. 220v mains is converted to 5v 600mA using a HLK-PM01 which powers both the relay board and the ESP8266. Now I'm using 4 standard AC rated switches as a digital input each of which are wired to a 10k pull up resistor. The whole setup worked for some time (while I tested everything) and then I take it for a demo just then the ESP stops booting up (have tried with MongooseOS and Tasmota firmware) when plugged in the circuit made on the protoboard. Here are the schematics, sorry for the mess.. I'm new to Fritzing.
The microcontroller works just fine once it's disconnected from this circuit. I can't seem to understand what's wrong. Appreciate the help!