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 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 ?
EDIT Power part are done with common wires from power extension cord