esp8266 + octocoupler relay: WDT reset when using AC current
Posted: Fri Oct 19, 2018 11:16 am
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
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.
Code: Select all
21: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.