cdj wrote: I have same problem, when i use relay with 220v esp reset and hang... what can we do ? a 100nf ceramic caps between vcc and ground of esp ? i use a 1000microfarad capacitor on 3.3v in my project and a 100mf on 5v , but nothing change...
Dario
you need to uses at last a 10 to 100µF capacitator
10µf is 10000nf
Especially the ESP-01 hass been reported to be susceptible to pick up electromagnetic noise causing it to reset. A relay switching high voltages will be quite noisy, and high frequency noise can be expected to reach the module via the GPIO lines that control the relays. A user on
www.esp8266.com
reports that the RESET line on the ESP-01 has a layout that could make it especially sensitive to pick up noise, as it follows the edge of the module. He proposes to cut the line on the module. Cutting the line the way he proposes stabilized such an ESP-01 for me. On the other hand, some users report having used "hundreds" of modules and not seen any such problem. So it might be a (chip or module) production lot related issue. But well worth a try for those who struggle. Link to the discussion:
http://www.esp8266.com/viewtopic.php?f=13&t=1924