espeasy+relay why on boot COM-NO are connected?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

espeasy+relay why on boot COM-NO are connected?

#1 Post by megamarco83 » 21 Nov 2018, 01:27

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 !!!
device_5.png
device_5.png (48.53 KiB) Viewed 4212 times

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: espeasy+relay why on boot COM-NO are connected?

#2 Post by budman1758 » 21 Nov 2018, 07:46

Try selecting "inversed logic" in your switch setup.
"The glass is twice as big as it needs to be".

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

Re: espeasy+relay why on boot COM-NO are connected?

#3 Post by megamarco83 » 21 Nov 2018, 10:14

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?

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

Re: espeasy+relay why on boot COM-NO are connected?

#4 Post by megamarco83 » 21 Nov 2018, 10:48

mybe i'm missing something or some "ground" connection...??
relay.jpg
relay.jpg (612.1 KiB) Viewed 4192 times
Last edited by megamarco83 on 21 Nov 2018, 14:55, edited 1 time in total.

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

Re: espeasy+relay why on boot COM-NO are connected?

#5 Post by megamarco83 » 21 Nov 2018, 14:55

this is my connections:

Image

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

Re: espeasy+relay why on boot COM-NO are connected?

#6 Post by megamarco83 » 22 Nov 2018, 03:05

budman1758 wrote: 21 Nov 2018, 07:46 Try selecting "inversed logic" in your switch setup.
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" ??

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests