I want to make a simple ladder circuit to control the on and off of a light bulb using 2 switches, but I am going to manipulate one of the switches by means of a microcontroller, and also I don't want to use a relay because they wear out with time. I am trying with this circuit with optocouplers, a pnp transistor and triacs, as seen in the image, but it does not work well, also when I am simulating it in proteus 8.9 after a certain time it throws me these errors:
[SPICE] DELMIN increased to 8.88178e-016 due to lack of time precision [SPICE] transient GMIN stepping at time = 6.54158 [SPICE] TRAN: Timestep too small; timestep = 1.11022e-016: trouble with node # $ IAC AMMETER # 0020_AVS1 # AB # branch.
I don't know what I'm doing wrong, I already tried it on a breadboard and it doesn't work either.
If someone can help me or suggest another circuit that works for what I need, I appreciate it a lot and forgive my English.