I uploaded the given code to my esp8266 esp-01 and it uploaded perfectly. The circuit also works perfectly while connected to my desktop but as soon as I transfer it to an external adapter(I used this: http://buy.mi.com/in/item/3173700005) it works for a minute or two and then the relay gets stuck or the esp stops responding. I tried to give the relay a different power supply(used the same type of adapter) but it still hangs. Please advise what to do. Thanks!
I uploaded the given code to my esp8266 esp-01 and it uploaded perfectly. The circuit also works perfectly while connected to my desktop but as soon as I transfer it to an external adapter(I used this: http://buy.mi.com/in/item/3173700005) it works for a minute or two and then the relay gets stuck or the esp stops responding. I tried to give the relay a different power supply(used the same type of adapter) but it still hangs. Please advise what to do. Thanks!