Weird reboot issue using relay
Posted: Sat May 30, 2015 8:48 am
Hello, I am basically combining two examples to monitor and post to thingspeak my front door status of motion and temperature.. And then I am using another example to turn on a relay momentarily for 1.5sec for a 12VAC solenoid door lock.
Example 1: posting status to thingspeak
http://captain-slow.dk/2015/04/16/posti ... d-nodemcu/
Example 2: to web enable LED but altered for relay instead of LED
http://randomnerdtutorials.com/esp8266-web-server/
Everything runs fine, without load attached to the relay..ie the load of the door lock is not connected. Even when I turn on/off the relay.
However, when I connect the load onto the relay, the ESP-12 seems to reboot when I turn on the relay. It seems to mostly happen after posting to thingspeak then I engage the relay. But not always....
I checked the heap, it hovers around 10/11000
any suggestions as what the problems is and how I would go about debugging it. There is no message before crashing/rebooting.. it just restarts normally.
Any electrical engineers out there, is there a possibility of the load on the relay 12VAC is causing some oscillating noise that is causing the ESP to restart? The relay basically sits next to the ESP
Any help would be much appreciated...
Example 1: posting status to thingspeak
http://captain-slow.dk/2015/04/16/posti ... d-nodemcu/
Example 2: to web enable LED but altered for relay instead of LED
http://randomnerdtutorials.com/esp8266-web-server/
Everything runs fine, without load attached to the relay..ie the load of the door lock is not connected. Even when I turn on/off the relay.
However, when I connect the load onto the relay, the ESP-12 seems to reboot when I turn on the relay. It seems to mostly happen after posting to thingspeak then I engage the relay. But not always....
I checked the heap, it hovers around 10/11000
any suggestions as what the problems is and how I would go about debugging it. There is no message before crashing/rebooting.. it just restarts normally.
Any electrical engineers out there, is there a possibility of the load on the relay 12VAC is causing some oscillating noise that is causing the ESP to restart? The relay basically sits next to the ESP
Any help would be much appreciated...