Now I'm designing a intelligent socket. I use esp8266 as main chip with esp8266. I use hold relay as relay. There are two coils, so I need two way to control. The type of relay is HF115F - L5. At the time of closing relay, esp8266 will restart.I have added a stream diode in the relay coil. Also I have paralled pf / 2 220 kv ceramics capacitors on the closing point of the relays, but it still restart. Because of the lack of space , there is no space between the relay and esp8266 on the board.
![Image](http://bbs.elecfans.com/data/attachment/forum/201606/23/153730rpvzz2a4cqvoh4fm.png.thumb.jpg)
![Image](http://bbs.elecfans.com/data/attachment/forum/201606/23/153731smzix2mqqxpaaxmq.png.thumb.jpg)
Regards