Hello there !
I am working on controlling devices with arduino/esp8166 from web page
An example by using arduino pin 2 to switch ON the relay through web page, in the web page it shows the relay ON but in real world it is not, so I found this link in which the relay out put is further
connected with the opto-coupler circuit. When the opto-coupler gives 5 V output, I must get the
message relay ON and when 0V relay is OFF.
Can it be done with only one pin or I have to use separate pin for the opto-coupler also ?
What logic I have to use to make this working ?