Hey.
I have more or less the following circuit controlling a relay:
.
I've deleted the values because I can't open it up to read the data precisely now, but the circuit works to some extent.
The control is provided to me by the GPIO25 output on the ESP32 Vroom 30pin chip.
The RM84-2012-35-1003 relay on the other hand controls the MC-25M/20 single phase contactor.
In contrast, I have a problem with the ESP32.
When switching the state on the GPIO25 pin, 4 times out of 5, the relay, and at the same time the contactor, switches on/off. On the other hand, this one time out of five, the ESP32 feels like it reboots, at which point it loses connection to WiFi.
.
When I have only the relay connected, the ESP32 works stably and does not lose WiFi connection. The trouble starts when I add the aforementioned contactor to the whole thing.
Should I focus more on the interference from the power supply side of the ESP32, or should I pay attention to the electromagnetic interference though?
Many thanks for any suggestions.
I have more or less the following circuit controlling a relay:

I've deleted the values because I can't open it up to read the data precisely now, but the circuit works to some extent.
The control is provided to me by the GPIO25 output on the ESP32 Vroom 30pin chip.
The RM84-2012-35-1003 relay on the other hand controls the MC-25M/20 single phase contactor.
In contrast, I have a problem with the ESP32.
When switching the state on the GPIO25 pin, 4 times out of 5, the relay, and at the same time the contactor, switches on/off. On the other hand, this one time out of five, the ESP32 feels like it reboots, at which point it loses connection to WiFi.

When I have only the relay connected, the ESP32 works stably and does not lose WiFi connection. The trouble starts when I add the aforementioned contactor to the whole thing.
Should I focus more on the interference from the power supply side of the ESP32, or should I pay attention to the electromagnetic interference though?
Many thanks for any suggestions.