ESP8266 reseted due to relay / AC plugged My Wemos card is reseting for unknown reason. For example, the pump plugged on the relay works fine till 1am and then the pump stop. After a few research I figured out the ESP should reset because all internal parameters are reseted.


My hardware is simple Wemos card + relay + sensors (not here because not connected yet).


My program is quite complex. I can command/configure the wemos via webservice (ex relay on pin 5 with on 5min/off 10min).
https://github.com/TittyPanda/ESP-commander/blob/master/ESP-COMMANDER


OK if no AC device is connected on relay (no reset)
OK if a light is connected on relay
The issue occurs only when the water pump is connected


Maybe it's an electrical/electromagnetical thing because the pump has motor. What do you think ?

Thanks,

EDIT
Power part are done with common wires from power extension cord

AC-DC converter 5 V 1A 1.5A 500mA


Pump 40W 3000L/H 220V 50Hz
Try add some power filter like this:




Between the breadboard and ESP board.