-->
Page 2 of 3

Re: ESP8266 sonoff

PostPosted: Tue Jun 18, 2019 9:57 am
by rudy
I checked the schematic and it shows the led on pin 13. Does the led turn on at any time?
https://www.itead.cc/wiki/images/f/fe/S ... ematic.pdf

I tried it again, but with pin, and it worked for me.

Re: ESP8266 sonoff

PostPosted: Wed Jun 19, 2019 1:59 am
by bircastri
It is very strange, because I can see led light turn on only when connection wifi is lost.

Re: ESP8266 sonoff

PostPosted: Wed Jun 19, 2019 5:01 am
by bircastri
I don't know what is appen, but now works.

Re: ESP8266 sonoff

PostPosted: Wed Jun 19, 2019 5:08 am
by rudy
bircastri wrote:It is very strange, because I can see led light turn on only when connection wifi is lost.



Code: Select all//STATO RELE
int OFF = 0;
int ON = 1;


The port pin needs to put out a 0 to turn on the LED. The led is connected to Vcc and the port pin has to go low in order to turn it on. You need to handle on and off for the led different than the relays.


Code: Select allint statusOFF = 1;
int statusON = 0;