ajit5wadekar
Newbie level 4

Hello Everyone,
I need to identify the Switch press and this switch is AC Switch so I have used optocoupler to identify the same, further I given the transistor output of optocoupler to Micro-controller through which I identify the switch press. I have attached image of the circuit so as to portray the idea.
Now here 1st thing is that my input side of optocupler is heating cant identify the reason because the
resistor is of 200k which limits the current to 1.15mA i.e.264mW.
Also is my circuit right will the output be stable.
I need to identify the Switch press and this switch is AC Switch so I have used optocoupler to identify the same, further I given the transistor output of optocoupler to Micro-controller through which I identify the switch press. I have attached image of the circuit so as to portray the idea.

Now here 1st thing is that my input side of optocupler is heating cant identify the reason because the
resistor is of 200k which limits the current to 1.15mA i.e.264mW.
Also is my circuit right will the output be stable.