This is my first time posting on a forum so please pardon me if i do anything incorrectly.
I'm kinda new with using TRIACs, i'm using them as a replacement for a Relay and my sole goal is to switch a light bulb on and off from an arduino. I'm having serious trouble with combining the Optocoupler (4n35) with the TRIAC. When I first prototyped the TRIAC on a breadboard without the optocoupler, using wires, it worked totally fine, would switch ON and OFF when I made contact/removed contact of the GND wire at T2.
When I introduced the optocoupler, the Gate on the TRIAC seems to be triggered on all the time and i'm not to switch ON / OFF as expected on a relay.
Can somebody please tell me what i'm doing wrong here and provide me with a more accurate explanation on the triggering of a gate on a triac? All i understand is that you need some current flowing between Gate and MT1 (Some say MT2!), which means that you put the gate on 5V, MT2 on GND (or vice versa) and you'll trigger the TRIAC and short MT1 and MT2 allowing AC conductivity between them
Thanks and sorry for the long post.