hi, i'm using espeasy mega and relay shild arduino with 4ch
i connected relay as wiki on espeasy:
https://www.letscontrolit.com/wiki/index.php/Relais
when i power on espeasy the relais are triggering COM and NO contact and i have led pcb that is ON
when i set for example GPIO15=1
relay is triggering COM and NC (normaly close) and led on pcb is OFF
when i set GPIO15=0
relay is triggering COM and NO (normaly open) and led on pcb is ON
but should be the opposite, otherwise, when i power OFF my nodemcu, the relay will trigger COM and NO and i have my load that will be swiched ON...
for me is correct that the command GPIO15 = 1 will trigger the relay, but should trigger COM - NO, not COM and NC !!!
espeasy+relay why on boot COM-NO are connected?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 230
- Joined: 13 Apr 2017, 23:09
- budman1758
- Normal user
- Posts: 303
- Joined: 15 Apr 2017, 05:13
- Location: Riverside CA USA
Re: espeasy+relay why on boot COM-NO are connected?
Try selecting "inversed logic" in your switch setup.
"The glass is twice as big as it needs to be".
-
- Normal user
- Posts: 230
- Joined: 13 Apr 2017, 23:09
Re: espeasy+relay why on boot COM-NO are connected?
thanks, but if i use inversed logic, when i want to trigger the relay i should use GPIO,XX,0 ??
i want to trigger the relay using GPIO "hight" so GPIO,XX,1 but i want that in this case arduino relay trigger COM<->NO
is it possible?
i want to trigger the relay using GPIO "hight" so GPIO,XX,1 but i want that in this case arduino relay trigger COM<->NO
is it possible?
-
- Normal user
- Posts: 230
- Joined: 13 Apr 2017, 23:09
Re: espeasy+relay why on boot COM-NO are connected?
mybe i'm missing something or some "ground" connection...??
Last edited by megamarco83 on 21 Nov 2018, 14:55, edited 1 time in total.
-
- Normal user
- Posts: 230
- Joined: 13 Apr 2017, 23:09
Re: espeasy+relay why on boot COM-NO are connected?
this is my connections:


-
- Normal user
- Posts: 230
- Joined: 13 Apr 2017, 23:09
Re: espeasy+relay why on boot COM-NO are connected?
after many tests and googling, it seams that this arduino relais board has a inverse logic:
when driving an input low this actuate
when driving an input high this disactivate the relay
so when i set:
http://espeasyIP/control?cmd=GPIO,13,0 -> relay is active -> NO=close
http://espeasyIP/control?cmd=GPIO,13,1 -> relay is not acrive -> NC=close
i need to code the opposite of the log in this way

i try set on switch web page in espeasy the flag to "inversed logic" but nothing change!
http://espeasyIP/control?cmd=GPIO,13,0 -> trigger ON the relay -> NO=close
http://espeasyIP/control?cmd=GPIO,13,1 -> trigger OFF the relay -> NC=close
so no difference....what's the purpose of "inversed logic" ??
Who is online
Users browsing this forum: No registered users and 17 guests