-->
Page 1 of 1

esp8266 + octocoupler relay: WDT reset when using AC current

PostPosted: Fri Oct 19, 2018 11:16 am
by iRajesh
I'm trying to switch on bulb via 4 channel 5V optocoupler relay controller from ESP8266 using WIFI Access point. All my connections looking fine and i can able to connect WIFI SoftAP and send signal to ESP8266 01. Even i can able to switch the Relay from NO to NC or other way around. Only when a connect 240V AC current to relay for powering the bulb, i'm getting following error from ESP

Code: Select all21:11:34.312 ->  ets Jan  8 2013,rst cause:4, boot mode:(1,7)
21:11:34.312 -> 
21:11:34.312 -> wdt reset


If i use 12V DC power to light the led via relay its working fine. if again use 240V power to relay to light bulb i'm get same error again.

I have already tried using ceramic capacitor for decoupling to avoid noise from AC. Still no luck. Please advice. I'm very new and naive at handling electronics.

Adding the circuit as requested.
wifi bulb_bb.png

Re: esp8266 + octocoupler relay: WDT reset when using AC cur

PostPosted: Fri Oct 19, 2018 2:29 pm
by rudy
How you implement the wiring for the power circuit makes a difference. Schematically you may have proper connections, but how the wiring is physically connected, the actual path the wires take, can cause this kind of issue.

Post a picture that shows the wiring.