6xRelay module - relay connected on low (0) signal?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
spachal
Normal user
Posts: 55
Joined: 22 Feb 2018, 22:11

6xRelay module - relay connected on low (0) signal?

#1 Post by spachal » 31 May 2018, 00:42

Hallo, maybe I'm doing something wrong, but when I wire my relay array (six relays with optocouplers) with nodeMCU - this schema: https://www.letscontrolit.com/wiki/inde ... 4relay.jpg, I can control it without problems by mqtt or http GPIO command (http://IP/control?cmd=GPIO,12,0 for example, first relay on GPIO12/D6), but relays are connected with GPIO state low (0) and disconnected with high (1).

Is it normal? I supposed that this will be in reversed order (low disconnected - led dark, high connected with led lighting).
Thx for info! :]
Please excuse my English, thanks!

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: 6xRelay module - relay connected on low (0) signal?

#2 Post by papperone » 31 May 2018, 06:36

it depends how relays are connected, usually it's safer when using optocouplers to use reverse logic as you described 0=relay on, 1=relay off.
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

spachal
Normal user
Posts: 55
Joined: 22 Feb 2018, 22:11

Re: 6xRelay module - relay connected on low (0) signal?

#3 Post by spachal » 31 May 2018, 10:30

OK, thanks for info, if it's 'normal', then everything is OK :]
Please excuse my English, thanks!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 42 guests